diff --git a/tasks/construct-ae-p38-factorial-factors-l3-s2/environment/Dockerfile b/tasks/construct-ae-p38-factorial-factors-l3-s2/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-ae-p38-factorial-factors-l3-s2/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-ae-p38-factorial-factors-l3-s2/environment/instance.json b/tasks/construct-ae-p38-factorial-factors-l3-s2/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..5b2605c9948ac9c90e02a43a8a2e599873f93cbe --- /dev/null +++ b/tasks/construct-ae-p38-factorial-factors-l3-s2/environment/instance.json @@ -0,0 +1 @@ +{"N": 252, "t": 75, "family": "ae_p38_factorial_factors", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-ae-p38-factorial-factors-l3-s2/solution/solve.sh b/tasks/construct-ae-p38-factorial-factors-l3-s2/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..af206d278f2c7539e8dd7cf696c223fc8953161c --- /dev/null +++ b/tasks/construct-ae-p38-factorial-factors-l3-s2/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"factors": [750, 75, 75, 75, 75, 75, 75, 75, 75, 75, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 79, 79, 79, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 82, 82, 82, 82, 82, 82, 83, 83, 83, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 86, 86, 86, 86, 86, 87, 87, 87, 87, 87, 87, 87, 87, 89, 89, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 93, 93, 93, 93, 93, 93, 93, 93, 94, 94, 94, 94, 94, 97, 97, 101, 101, 103, 103, 106, 106, 106, 106, 107, 107, 109, 109, 111, 111, 111, 111, 111, 111, 113, 113, 118, 118, 118, 118, 122, 122, 122, 122, 127, 131, 134, 134, 134, 137, 139, 142, 142, 142, 146, 146, 146, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251]} +RLMATH_EOF diff --git a/tasks/construct-ae-p38-factorial-factors-l3-s2/tests/check.py b/tasks/construct-ae-p38-factorial-factors-l3-s2/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..93ec67a19039afa8b4ce6e39811691b802132562 --- /dev/null +++ b/tasks/construct-ae-p38-factorial-factors-l3-s2/tests/check.py @@ -0,0 +1,12 @@ +"""Factor N! into N factors, each >= t (AlphaEvolve problem 38 / OEIS A034258). Exact big-integer check.""" +import math + +from run import Invalid, int_list + + +def check(inst, ans): + n, t = inst["N"], inst["t"] + f = int_list(ans.get("factors"), n, t, None, "factors") + if math.prod(f) != math.factorial(n): + raise Invalid(f"the product of the factors is not {n}!") + return None, {"min_factor": min(f)} diff --git a/tasks/construct-ae-p38-factorial-factors-l3-s2/tests/instance.json b/tasks/construct-ae-p38-factorial-factors-l3-s2/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..5b2605c9948ac9c90e02a43a8a2e599873f93cbe --- /dev/null +++ b/tasks/construct-ae-p38-factorial-factors-l3-s2/tests/instance.json @@ -0,0 +1 @@ +{"N": 252, "t": 75, "family": "ae_p38_factorial_factors", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-ae-p38-factorial-factors-l3-s2/tests/run.py b/tasks/construct-ae-p38-factorial-factors-l3-s2/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-ae-p38-factorial-factors-l3-s2/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-ae-p38-factorial-factors-l3-s2/tests/test.sh b/tasks/construct-ae-p38-factorial-factors-l3-s2/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-ae-p38-factorial-factors-l3-s2/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-ae-p38-factorial-factors-l3-s5/environment/Dockerfile b/tasks/construct-ae-p38-factorial-factors-l3-s5/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-ae-p38-factorial-factors-l3-s5/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-ae-p38-factorial-factors-l3-s5/environment/instance.json b/tasks/construct-ae-p38-factorial-factors-l3-s5/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..70cc3b36bad38ad7419493396b7782f815f1c465 --- /dev/null +++ b/tasks/construct-ae-p38-factorial-factors-l3-s5/environment/instance.json @@ -0,0 +1 @@ +{"N": 313, "t": 93, "family": "ae_p38_factorial_factors", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-ae-p38-factorial-factors-l3-s5/solution/solve.sh b/tasks/construct-ae-p38-factorial-factors-l3-s5/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..161f3d741dedba416f7ab28b0439c35449fc5aa8 --- /dev/null +++ b/tasks/construct-ae-p38-factorial-factors-l3-s5/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"factors": [930, 93, 93, 93, 93, 93, 93, 93, 93, 93, 94, 94, 94, 94, 94, 94, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 97, 97, 97, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 101, 101, 101, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 103, 103, 103, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 104, 106, 106, 106, 106, 106, 107, 107, 109, 109, 111, 111, 111, 111, 111, 111, 111, 111, 113, 113, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 118, 118, 118, 118, 118, 122, 122, 122, 122, 122, 123, 123, 123, 123, 123, 123, 123, 127, 127, 129, 129, 129, 129, 129, 129, 129, 131, 131, 134, 134, 134, 134, 137, 137, 139, 139, 142, 142, 142, 142, 146, 146, 146, 146, 149, 149, 151, 151, 157, 158, 158, 158, 163, 166, 166, 166, 167, 173, 178, 178, 178, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 307, 311, 313]} +RLMATH_EOF diff --git a/tasks/construct-ae-p38-factorial-factors-l3-s5/tests/check.py b/tasks/construct-ae-p38-factorial-factors-l3-s5/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..93ec67a19039afa8b4ce6e39811691b802132562 --- /dev/null +++ b/tasks/construct-ae-p38-factorial-factors-l3-s5/tests/check.py @@ -0,0 +1,12 @@ +"""Factor N! into N factors, each >= t (AlphaEvolve problem 38 / OEIS A034258). Exact big-integer check.""" +import math + +from run import Invalid, int_list + + +def check(inst, ans): + n, t = inst["N"], inst["t"] + f = int_list(ans.get("factors"), n, t, None, "factors") + if math.prod(f) != math.factorial(n): + raise Invalid(f"the product of the factors is not {n}!") + return None, {"min_factor": min(f)} diff --git a/tasks/construct-ae-p38-factorial-factors-l3-s5/tests/instance.json b/tasks/construct-ae-p38-factorial-factors-l3-s5/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..70cc3b36bad38ad7419493396b7782f815f1c465 --- /dev/null +++ b/tasks/construct-ae-p38-factorial-factors-l3-s5/tests/instance.json @@ -0,0 +1 @@ +{"N": 313, "t": 93, "family": "ae_p38_factorial_factors", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-ae-p38-factorial-factors-l3-s5/tests/run.py b/tasks/construct-ae-p38-factorial-factors-l3-s5/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-ae-p38-factorial-factors-l3-s5/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-ae-p38-factorial-factors-l3-s5/tests/test.sh b/tasks/construct-ae-p38-factorial-factors-l3-s5/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-ae-p38-factorial-factors-l3-s5/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-ae-p52-erdos-squarefree-l3-s0/environment/Dockerfile b/tasks/construct-ae-p52-erdos-squarefree-l3-s0/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-ae-p52-erdos-squarefree-l3-s0/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-ae-p52-erdos-squarefree-l3-s0/environment/instance.json b/tasks/construct-ae-p52-erdos-squarefree-l3-s0/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..180063f140abd209c75ed30e99e77b0626e44ffa --- /dev/null +++ b/tasks/construct-ae-p52-erdos-squarefree-l3-s0/environment/instance.json @@ -0,0 +1 @@ +{"N": 718, "t": 29, "family": "ae_p52_erdos_squarefree", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-ae-p52-erdos-squarefree-l3-s0/solution/solve.sh b/tasks/construct-ae-p52-erdos-squarefree-l3-s0/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..c64f443053c801f41704f871923975514f127a48 --- /dev/null +++ b/tasks/construct-ae-p52-erdos-squarefree-l3-s0/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"A": [7, 32, 57, 82, 107, 132, 157, 182, 207, 232, 257, 282, 307, 332, 357, 382, 407, 432, 457, 482, 507, 532, 557, 582, 607, 632, 657, 682, 707]} +RLMATH_EOF diff --git a/tasks/construct-ae-p52-erdos-squarefree-l3-s0/tests/check.py b/tasks/construct-ae-p52-erdos-squarefree-l3-s0/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..87e15b242f211059193ba122baecdee9add99130 --- /dev/null +++ b/tasks/construct-ae-p52-erdos-squarefree-l3-s0/tests/check.py @@ -0,0 +1,38 @@ +"""Erdos squarefree problem (AlphaEvolve problem 52): A in [1, N], |A| >= t, ab+1 NOT squarefree for all a, b in A +(a = b included). The repo's problem page says "square-free"; the notebook and the Erdos problem ask for +"never squarefree", which is what we check. Exact: for every pair we find a prime p with p^2 | ab+1.""" +import numpy as np + +from run import Invalid, int_list + + +def _primes(n): + s = np.ones(n + 1, dtype=bool) + s[:2] = False + for i in range(2, int(n ** .5) + 1): + if s[i]: + s[i * i::i] = False + return np.nonzero(s)[0] + + +def check(inst, ans): + n, t = inst["N"], inst["t"] + a = ans.get("A") + if not isinstance(a, list) or not (t <= len(a) <= 2 * t + 20): + raise Invalid(f"A must be a list of {t}..{2 * t + 20} integers") + int_list(a, None, 1, n, "A") + if len(set(a)) != len(a): + raise Invalid("A must consist of distinct integers") + x = np.array(sorted(a), dtype=np.int64) + iu, ju = np.triu_indices(len(x)) + va, vb = x[iu], x[ju] + left = np.ones(len(iu), dtype=bool) # pairs without a square divisor found yet + for p in _primes(int((n * n + 1) ** .5) + 1): + q = int(p) * int(p) + idx = np.nonzero(left)[0] + hit = ((va[idx] % q) * (vb[idx] % q) + 1) % q == 0 + left[idx[hit]] = False + if not left.any(): + return None, {"size": len(a)} + k = int(np.nonzero(left)[0][0]) + raise Invalid(f"{int(va[k])}*{int(vb[k])}+1 = {int(va[k]) * int(vb[k]) + 1} is squarefree") diff --git a/tasks/construct-ae-p52-erdos-squarefree-l3-s0/tests/instance.json b/tasks/construct-ae-p52-erdos-squarefree-l3-s0/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..180063f140abd209c75ed30e99e77b0626e44ffa --- /dev/null +++ b/tasks/construct-ae-p52-erdos-squarefree-l3-s0/tests/instance.json @@ -0,0 +1 @@ +{"N": 718, "t": 29, "family": "ae_p52_erdos_squarefree", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-ae-p52-erdos-squarefree-l3-s0/tests/run.py b/tasks/construct-ae-p52-erdos-squarefree-l3-s0/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-ae-p52-erdos-squarefree-l3-s0/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-ae-p52-erdos-squarefree-l3-s0/tests/test.sh b/tasks/construct-ae-p52-erdos-squarefree-l3-s0/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-ae-p52-erdos-squarefree-l3-s0/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-ae-p52-erdos-squarefree-l3-s7/environment/Dockerfile b/tasks/construct-ae-p52-erdos-squarefree-l3-s7/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-ae-p52-erdos-squarefree-l3-s7/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-ae-p52-erdos-squarefree-l3-s7/environment/instance.json b/tasks/construct-ae-p52-erdos-squarefree-l3-s7/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..f1b233ea4b1423b047a6bdb9d98b327d96bdf687 --- /dev/null +++ b/tasks/construct-ae-p52-erdos-squarefree-l3-s7/environment/instance.json @@ -0,0 +1 @@ +{"N": 1212, "t": 49, "family": "ae_p52_erdos_squarefree", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-ae-p52-erdos-squarefree-l3-s7/solution/solve.sh b/tasks/construct-ae-p52-erdos-squarefree-l3-s7/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..08dd662b27f2e463f866ae8102d9d7773351d82d --- /dev/null +++ b/tasks/construct-ae-p52-erdos-squarefree-l3-s7/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"A": [7, 32, 57, 82, 107, 132, 157, 182, 207, 232, 257, 282, 307, 332, 357, 382, 407, 432, 457, 482, 507, 532, 557, 582, 607, 632, 657, 682, 707, 732, 757, 782, 807, 832, 857, 882, 907, 932, 957, 982, 1007, 1032, 1057, 1082, 1107, 1132, 1157, 1182, 1207]} +RLMATH_EOF diff --git a/tasks/construct-ae-p52-erdos-squarefree-l3-s7/tests/check.py b/tasks/construct-ae-p52-erdos-squarefree-l3-s7/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..87e15b242f211059193ba122baecdee9add99130 --- /dev/null +++ b/tasks/construct-ae-p52-erdos-squarefree-l3-s7/tests/check.py @@ -0,0 +1,38 @@ +"""Erdos squarefree problem (AlphaEvolve problem 52): A in [1, N], |A| >= t, ab+1 NOT squarefree for all a, b in A +(a = b included). The repo's problem page says "square-free"; the notebook and the Erdos problem ask for +"never squarefree", which is what we check. Exact: for every pair we find a prime p with p^2 | ab+1.""" +import numpy as np + +from run import Invalid, int_list + + +def _primes(n): + s = np.ones(n + 1, dtype=bool) + s[:2] = False + for i in range(2, int(n ** .5) + 1): + if s[i]: + s[i * i::i] = False + return np.nonzero(s)[0] + + +def check(inst, ans): + n, t = inst["N"], inst["t"] + a = ans.get("A") + if not isinstance(a, list) or not (t <= len(a) <= 2 * t + 20): + raise Invalid(f"A must be a list of {t}..{2 * t + 20} integers") + int_list(a, None, 1, n, "A") + if len(set(a)) != len(a): + raise Invalid("A must consist of distinct integers") + x = np.array(sorted(a), dtype=np.int64) + iu, ju = np.triu_indices(len(x)) + va, vb = x[iu], x[ju] + left = np.ones(len(iu), dtype=bool) # pairs without a square divisor found yet + for p in _primes(int((n * n + 1) ** .5) + 1): + q = int(p) * int(p) + idx = np.nonzero(left)[0] + hit = ((va[idx] % q) * (vb[idx] % q) + 1) % q == 0 + left[idx[hit]] = False + if not left.any(): + return None, {"size": len(a)} + k = int(np.nonzero(left)[0][0]) + raise Invalid(f"{int(va[k])}*{int(vb[k])}+1 = {int(va[k]) * int(vb[k]) + 1} is squarefree") diff --git a/tasks/construct-ae-p52-erdos-squarefree-l3-s7/tests/instance.json b/tasks/construct-ae-p52-erdos-squarefree-l3-s7/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..f1b233ea4b1423b047a6bdb9d98b327d96bdf687 --- /dev/null +++ b/tasks/construct-ae-p52-erdos-squarefree-l3-s7/tests/instance.json @@ -0,0 +1 @@ +{"N": 1212, "t": 49, "family": "ae_p52_erdos_squarefree", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-ae-p52-erdos-squarefree-l3-s7/tests/run.py b/tasks/construct-ae-p52-erdos-squarefree-l3-s7/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-ae-p52-erdos-squarefree-l3-s7/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-ae-p52-erdos-squarefree-l3-s7/tests/test.sh b/tasks/construct-ae-p52-erdos-squarefree-l3-s7/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-ae-p52-erdos-squarefree-l3-s7/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-ae-p52-erdos-squarefree-l3-s9/environment/Dockerfile b/tasks/construct-ae-p52-erdos-squarefree-l3-s9/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-ae-p52-erdos-squarefree-l3-s9/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-ae-p52-erdos-squarefree-l3-s9/environment/instance.json b/tasks/construct-ae-p52-erdos-squarefree-l3-s9/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..6e6a55267f1e1b8b726c033aae6c58ec1f142bdc --- /dev/null +++ b/tasks/construct-ae-p52-erdos-squarefree-l3-s9/environment/instance.json @@ -0,0 +1 @@ +{"N": 694, "t": 28, "family": "ae_p52_erdos_squarefree", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-ae-p52-erdos-squarefree-l3-s9/solution/solve.sh b/tasks/construct-ae-p52-erdos-squarefree-l3-s9/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..d9271085014943e866413aedc362aa487f661c0d --- /dev/null +++ b/tasks/construct-ae-p52-erdos-squarefree-l3-s9/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"A": [7, 32, 57, 82, 107, 132, 157, 182, 207, 232, 257, 282, 307, 332, 357, 382, 407, 432, 457, 482, 507, 532, 557, 582, 607, 632, 657, 682]} +RLMATH_EOF diff --git a/tasks/construct-ae-p52-erdos-squarefree-l3-s9/tests/check.py b/tasks/construct-ae-p52-erdos-squarefree-l3-s9/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..87e15b242f211059193ba122baecdee9add99130 --- /dev/null +++ b/tasks/construct-ae-p52-erdos-squarefree-l3-s9/tests/check.py @@ -0,0 +1,38 @@ +"""Erdos squarefree problem (AlphaEvolve problem 52): A in [1, N], |A| >= t, ab+1 NOT squarefree for all a, b in A +(a = b included). The repo's problem page says "square-free"; the notebook and the Erdos problem ask for +"never squarefree", which is what we check. Exact: for every pair we find a prime p with p^2 | ab+1.""" +import numpy as np + +from run import Invalid, int_list + + +def _primes(n): + s = np.ones(n + 1, dtype=bool) + s[:2] = False + for i in range(2, int(n ** .5) + 1): + if s[i]: + s[i * i::i] = False + return np.nonzero(s)[0] + + +def check(inst, ans): + n, t = inst["N"], inst["t"] + a = ans.get("A") + if not isinstance(a, list) or not (t <= len(a) <= 2 * t + 20): + raise Invalid(f"A must be a list of {t}..{2 * t + 20} integers") + int_list(a, None, 1, n, "A") + if len(set(a)) != len(a): + raise Invalid("A must consist of distinct integers") + x = np.array(sorted(a), dtype=np.int64) + iu, ju = np.triu_indices(len(x)) + va, vb = x[iu], x[ju] + left = np.ones(len(iu), dtype=bool) # pairs without a square divisor found yet + for p in _primes(int((n * n + 1) ** .5) + 1): + q = int(p) * int(p) + idx = np.nonzero(left)[0] + hit = ((va[idx] % q) * (vb[idx] % q) + 1) % q == 0 + left[idx[hit]] = False + if not left.any(): + return None, {"size": len(a)} + k = int(np.nonzero(left)[0][0]) + raise Invalid(f"{int(va[k])}*{int(vb[k])}+1 = {int(va[k]) * int(vb[k]) + 1} is squarefree") diff --git a/tasks/construct-ae-p52-erdos-squarefree-l3-s9/tests/instance.json b/tasks/construct-ae-p52-erdos-squarefree-l3-s9/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..6e6a55267f1e1b8b726c033aae6c58ec1f142bdc --- /dev/null +++ b/tasks/construct-ae-p52-erdos-squarefree-l3-s9/tests/instance.json @@ -0,0 +1 @@ +{"N": 694, "t": 28, "family": "ae_p52_erdos_squarefree", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-ae-p52-erdos-squarefree-l3-s9/tests/run.py b/tasks/construct-ae-p52-erdos-squarefree-l3-s9/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-ae-p52-erdos-squarefree-l3-s9/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-ae-p52-erdos-squarefree-l3-s9/tests/test.sh b/tasks/construct-ae-p52-erdos-squarefree-l3-s9/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-ae-p52-erdos-squarefree-l3-s9/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-ae-p65-imo2025-p6-tiling-l4-s0/environment/Dockerfile b/tasks/construct-ae-p65-imo2025-p6-tiling-l4-s0/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-ae-p65-imo2025-p6-tiling-l4-s0/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-ae-p65-imo2025-p6-tiling-l4-s0/environment/instance.json b/tasks/construct-ae-p65-imo2025-p6-tiling-l4-s0/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..b18c1111e4cf23c31474bf2774382fdce29e0d0e --- /dev/null +++ b/tasks/construct-ae-p65-imo2025-p6-tiling-l4-s0/environment/instance.json @@ -0,0 +1 @@ +{"n": 225, "max_tiles": 252, "family": "ae_p65_imo2025_p6_tiling", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-ae-p65-imo2025-p6-tiling-l4-s0/solution/solve.sh b/tasks/construct-ae-p65-imo2025-p6-tiling-l4-s0/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..da2043470e3f417284d4ceb5c04d9b1b13d7451f --- /dev/null +++ b/tasks/construct-ae-p65-imo2025-p6-tiling-l4-s0/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"tiles": [[0, 0, 15, 14], [0, 15, 1, 210], [1, 14, 15, 15], [1, 30, 1, 195], [2, 29, 15, 15], [2, 45, 1, 180], [3, 44, 15, 15], [3, 60, 1, 165], [4, 59, 15, 15], [4, 75, 1, 150], [5, 74, 15, 15], [5, 90, 1, 135], [6, 89, 15, 15], [6, 105, 1, 120], [7, 104, 15, 15], [7, 120, 1, 105], [8, 119, 15, 15], [8, 135, 1, 90], [9, 134, 15, 15], [9, 150, 1, 75], [10, 149, 15, 15], [10, 165, 1, 60], [11, 164, 15, 15], [11, 180, 1, 45], [12, 179, 15, 15], [12, 195, 1, 30], [13, 194, 15, 15], [13, 210, 1, 15], [14, 209, 15, 15], [15, 0, 15, 13], [15, 224, 210, 1], [16, 13, 15, 15], [17, 28, 15, 15], [18, 43, 15, 15], [19, 58, 15, 15], [20, 73, 15, 15], [21, 88, 15, 15], [22, 103, 15, 15], [23, 118, 15, 15], [24, 133, 15, 15], [25, 148, 15, 15], [26, 163, 15, 15], [27, 178, 15, 15], [28, 193, 15, 15], [29, 208, 15, 15], [30, 0, 15, 12], [30, 223, 195, 1], [31, 12, 15, 15], [32, 27, 15, 15], [33, 42, 15, 15], [34, 57, 15, 15], [35, 72, 15, 15], [36, 87, 15, 15], [37, 102, 15, 15], [38, 117, 15, 15], [39, 132, 15, 15], [40, 147, 15, 15], [41, 162, 15, 15], [42, 177, 15, 15], [43, 192, 15, 15], [44, 207, 15, 15], [45, 0, 15, 11], [45, 222, 180, 1], [46, 11, 15, 15], [47, 26, 15, 15], [48, 41, 15, 15], [49, 56, 15, 15], [50, 71, 15, 15], [51, 86, 15, 15], [52, 101, 15, 15], [53, 116, 15, 15], [54, 131, 15, 15], [55, 146, 15, 15], [56, 161, 15, 15], [57, 176, 15, 15], [58, 191, 15, 15], [59, 206, 15, 15], [60, 0, 15, 10], [60, 221, 165, 1], [61, 10, 15, 15], [62, 25, 15, 15], [63, 40, 15, 15], [64, 55, 15, 15], [65, 70, 15, 15], [66, 85, 15, 15], [67, 100, 15, 15], [68, 115, 15, 15], [69, 130, 15, 15], [70, 145, 15, 15], [71, 160, 15, 15], [72, 175, 15, 15], [73, 190, 15, 15], [74, 205, 15, 15], [75, 0, 15, 9], [75, 220, 150, 1], [76, 9, 15, 15], [77, 24, 15, 15], [78, 39, 15, 15], [79, 54, 15, 15], [80, 69, 15, 15], [81, 84, 15, 15], [82, 99, 15, 15], [83, 114, 15, 15], [84, 129, 15, 15], [85, 144, 15, 15], [86, 159, 15, 15], [87, 174, 15, 15], [88, 189, 15, 15], [89, 204, 15, 15], [90, 0, 15, 8], [90, 219, 135, 1], [91, 8, 15, 15], [92, 23, 15, 15], [93, 38, 15, 15], [94, 53, 15, 15], [95, 68, 15, 15], [96, 83, 15, 15], [97, 98, 15, 15], [98, 113, 15, 15], [99, 128, 15, 15], [100, 143, 15, 15], [101, 158, 15, 15], [102, 173, 15, 15], [103, 188, 15, 15], [104, 203, 15, 15], [105, 0, 15, 7], [105, 218, 120, 1], [106, 7, 15, 15], [107, 22, 15, 15], [108, 37, 15, 15], [109, 52, 15, 15], [110, 67, 15, 15], [111, 82, 15, 15], [112, 97, 15, 15], [113, 112, 15, 15], [114, 127, 15, 15], [115, 142, 15, 15], [116, 157, 15, 15], [117, 172, 15, 15], [118, 187, 15, 15], [119, 202, 15, 15], [120, 0, 15, 6], [120, 217, 105, 1], [121, 6, 15, 15], [122, 21, 15, 15], [123, 36, 15, 15], [124, 51, 15, 15], [125, 66, 15, 15], [126, 81, 15, 15], [127, 96, 15, 15], [128, 111, 15, 15], [129, 126, 15, 15], [130, 141, 15, 15], [131, 156, 15, 15], [132, 171, 15, 15], [133, 186, 15, 15], [134, 201, 15, 15], [135, 0, 15, 5], [135, 216, 90, 1], [136, 5, 15, 15], [137, 20, 15, 15], [138, 35, 15, 15], [139, 50, 15, 15], [140, 65, 15, 15], [141, 80, 15, 15], [142, 95, 15, 15], [143, 110, 15, 15], [144, 125, 15, 15], [145, 140, 15, 15], [146, 155, 15, 15], [147, 170, 15, 15], [148, 185, 15, 15], [149, 200, 15, 15], [150, 0, 15, 4], [150, 215, 75, 1], [151, 4, 15, 15], [152, 19, 15, 15], [153, 34, 15, 15], [154, 49, 15, 15], [155, 64, 15, 15], [156, 79, 15, 15], [157, 94, 15, 15], [158, 109, 15, 15], [159, 124, 15, 15], [160, 139, 15, 15], [161, 154, 15, 15], [162, 169, 15, 15], [163, 184, 15, 15], [164, 199, 15, 15], [165, 0, 15, 3], [165, 214, 60, 1], [166, 3, 15, 15], [167, 18, 15, 15], [168, 33, 15, 15], [169, 48, 15, 15], [170, 63, 15, 15], [171, 78, 15, 15], [172, 93, 15, 15], [173, 108, 15, 15], [174, 123, 15, 15], [175, 138, 15, 15], [176, 153, 15, 15], [177, 168, 15, 15], [178, 183, 15, 15], [179, 198, 15, 15], [180, 0, 15, 2], [180, 213, 45, 1], [181, 2, 15, 15], [182, 17, 15, 15], [183, 32, 15, 15], [184, 47, 15, 15], [185, 62, 15, 15], [186, 77, 15, 15], [187, 92, 15, 15], [188, 107, 15, 15], [189, 122, 15, 15], [190, 137, 15, 15], [191, 152, 15, 15], [192, 167, 15, 15], [193, 182, 15, 15], [194, 197, 15, 15], [195, 0, 15, 1], [195, 212, 30, 1], [196, 1, 15, 15], [197, 16, 15, 15], [198, 31, 15, 15], [199, 46, 15, 15], [200, 61, 15, 15], [201, 76, 15, 15], [202, 91, 15, 15], [203, 106, 15, 15], [204, 121, 15, 15], [205, 136, 15, 15], [206, 151, 15, 15], [207, 166, 15, 15], [208, 181, 15, 15], [209, 196, 15, 15], [210, 211, 15, 1], [211, 0, 14, 15], [212, 15, 13, 15], [213, 30, 12, 15], [214, 45, 11, 15], [215, 60, 10, 15], [216, 75, 9, 15], [217, 90, 8, 15], [218, 105, 7, 15], [219, 120, 6, 15], [220, 135, 5, 15], [221, 150, 4, 15], [222, 165, 3, 15], [223, 180, 2, 15], [224, 195, 1, 15]]} +RLMATH_EOF diff --git a/tasks/construct-ae-p65-imo2025-p6-tiling-l4-s0/tests/check.py b/tasks/construct-ae-p65-imo2025-p6-tiling-l4-s0/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..401de49cfa895e6f1c47b996fa5e8bdc8fc609e4 --- /dev/null +++ b/tasks/construct-ae-p65-imo2025-p6-tiling-l4-s0/tests/check.py @@ -0,0 +1,24 @@ +"""IMO 2025 Problem 6 variant (AlphaEvolve problem 65): at most T rectangular tiles on an n x n grid, no overlaps, +every row and every column has exactly one uncovered unit square.""" +import numpy as np + +from run import Invalid, int_list + + +def check(inst, ans): + n, cap = inst["n"], inst["max_tiles"] + tiles = ans.get("tiles") + if not isinstance(tiles, list) or not (1 <= len(tiles) <= cap): + raise Invalid(f"tiles must be a list of 1..{cap} [row, col, height, width] entries") + cover = np.zeros((n, n), dtype=np.int32) + for t in tiles: + r, c, h, w = int_list(t, 4, 0, n, "tile") + if h < 1 or w < 1 or r + h > n or c + w > n: + raise Invalid(f"tile {t} is empty or leaves the grid") + cover[r:r + h, c:c + w] += 1 + if cover.max() > 1: + raise Invalid("tiles overlap") + free = cover == 0 + if not (free.sum(axis=1) == 1).all() or not (free.sum(axis=0) == 1).all(): + raise Invalid("some row or column does not have exactly one uncovered square") + return None, {"tiles": len(tiles)} diff --git a/tasks/construct-ae-p65-imo2025-p6-tiling-l4-s0/tests/instance.json b/tasks/construct-ae-p65-imo2025-p6-tiling-l4-s0/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..b18c1111e4cf23c31474bf2774382fdce29e0d0e --- /dev/null +++ b/tasks/construct-ae-p65-imo2025-p6-tiling-l4-s0/tests/instance.json @@ -0,0 +1 @@ +{"n": 225, "max_tiles": 252, "family": "ae_p65_imo2025_p6_tiling", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-ae-p65-imo2025-p6-tiling-l4-s0/tests/run.py b/tasks/construct-ae-p65-imo2025-p6-tiling-l4-s0/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-ae-p65-imo2025-p6-tiling-l4-s0/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-ae-p65-imo2025-p6-tiling-l4-s0/tests/test.sh b/tasks/construct-ae-p65-imo2025-p6-tiling-l4-s0/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-ae-p65-imo2025-p6-tiling-l4-s0/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-all-interval-l3-s2/environment/Dockerfile b/tasks/construct-mc-all-interval-l3-s2/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-all-interval-l3-s2/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-all-interval-l3-s2/environment/instance.json b/tasks/construct-mc-all-interval-l3-s2/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..532313d0f26f2931153ee0f4efbda9496e2a757f --- /dev/null +++ b/tasks/construct-mc-all-interval-l3-s2/environment/instance.json @@ -0,0 +1 @@ +{"n": 12, "fixed": [], "family": "mc_all_interval", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-all-interval-l3-s2/solution/solve.sh b/tasks/construct-mc-all-interval-l3-s2/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..afc6ed6a577373d92cedfc23fe92b33ce0ccdc11 --- /dev/null +++ b/tasks/construct-mc-all-interval-l3-s2/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"x": [0, 11, 1, 10, 2, 9, 3, 8, 4, 7, 5, 6]} +RLMATH_EOF diff --git a/tasks/construct-mc-all-interval-l3-s2/tests/check.py b/tasks/construct-mc-all-interval-l3-s2/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..2e39eec264b6422a47e35921b8cdbe1fa1748307 --- /dev/null +++ b/tasks/construct-mc-all-interval-l3-s2/tests/check.py @@ -0,0 +1,17 @@ +"""All-interval series of size n (MathConstraint all_interval, CC-BY-4.0). Accepts any valid series.""" +from run import Invalid, int_list + + +def check(inst, ans): + n = inst["n"] + x = int_list(ans.get("x"), n, 0, n - 1, "x") + if sorted(x) != list(range(n)): + raise Invalid("x is not a permutation of 0..n-1") + d = [abs(x[i + 1] - x[i]) for i in range(n - 1)] + if sorted(d) != list(range(1, n)): + raise Invalid("consecutive differences are not a permutation of 1..n-1") + seqs = {"x": x, "d": d} + for name, i, v in inst.get("fixed", []): + if seqs[name][i] != v: + raise Invalid(f"fixed value {name}[{i}] = {v} not respected") + return None, {} diff --git a/tasks/construct-mc-all-interval-l3-s2/tests/instance.json b/tasks/construct-mc-all-interval-l3-s2/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..532313d0f26f2931153ee0f4efbda9496e2a757f --- /dev/null +++ b/tasks/construct-mc-all-interval-l3-s2/tests/instance.json @@ -0,0 +1 @@ +{"n": 12, "fixed": [], "family": "mc_all_interval", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-all-interval-l3-s2/tests/run.py b/tasks/construct-mc-all-interval-l3-s2/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-all-interval-l3-s2/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-all-interval-l3-s2/tests/test.sh b/tasks/construct-mc-all-interval-l3-s2/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-all-interval-l3-s2/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-antimagic-square-l3-s0/environment/Dockerfile b/tasks/construct-mc-antimagic-square-l3-s0/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-antimagic-square-l3-s0/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-antimagic-square-l3-s0/environment/instance.json b/tasks/construct-mc-antimagic-square-l3-s0/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..36eed2e226c9e283d72ed49acc89056bf1d32368 --- /dev/null +++ b/tasks/construct-mc-antimagic-square-l3-s0/environment/instance.json @@ -0,0 +1 @@ +{"n": 6, "family": "mc_antimagic_square", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-antimagic-square-l3-s0/solution/solve.sh b/tasks/construct-mc-antimagic-square-l3-s0/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..87c2fd6623dd386e2ac91109327196def4ecae6e --- /dev/null +++ b/tasks/construct-mc-antimagic-square-l3-s0/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"grid": [[18, 27, 11, 32, 1, 26], [4, 19, 30, 13, 36, 12], [31, 5, 10, 3, 35, 23], [25, 22, 17, 21, 15, 16], [33, 20, 8, 28, 14, 6], [2, 24, 34, 9, 7, 29]]} +RLMATH_EOF diff --git a/tasks/construct-mc-antimagic-square-l3-s0/tests/check.py b/tasks/construct-mc-antimagic-square-l3-s0/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..9c86a40bef203632c61a8ba237cae03eb53251a6 --- /dev/null +++ b/tasks/construct-mc-antimagic-square-l3-s0/tests/check.py @@ -0,0 +1,20 @@ +"""Antimagic square of order n (MathConstraint antimagic_square, CC-BY-4.0): the numbers 1..n^2 in an +n x n grid whose 2n+2 line sums (rows, columns, both main diagonals) are 2n+2 consecutive integers.""" +from run import Invalid, int_list + + +def check(inst, ans): + n = inst["n"] + g = ans.get("grid") + if not isinstance(g, list) or len(g) != n: + raise Invalid(f"grid must be a list of {n} rows") + g = [int_list(r, n, 1, n * n, "grid row") for r in g] + flat = [v for r in g for v in r] + if sorted(flat) != list(range(1, n * n + 1)): + raise Invalid(f"grid must contain each of 1..{n * n} exactly once") + sums = [sum(r) for r in g] + [sum(g[i][j] for i in range(n)) for j in range(n)] + sums += [sum(g[i][i] for i in range(n)), sum(g[i][n - 1 - i] for i in range(n))] + s = sorted(sums) + if any(s[i + 1] != s[i] + 1 for i in range(len(s) - 1)): + raise Invalid(f"line sums {sums} are not {2 * n + 2} consecutive integers") + return None, {} diff --git a/tasks/construct-mc-antimagic-square-l3-s0/tests/instance.json b/tasks/construct-mc-antimagic-square-l3-s0/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..36eed2e226c9e283d72ed49acc89056bf1d32368 --- /dev/null +++ b/tasks/construct-mc-antimagic-square-l3-s0/tests/instance.json @@ -0,0 +1 @@ +{"n": 6, "family": "mc_antimagic_square", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-antimagic-square-l3-s0/tests/run.py b/tasks/construct-mc-antimagic-square-l3-s0/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-antimagic-square-l3-s0/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-antimagic-square-l3-s0/tests/test.sh b/tasks/construct-mc-antimagic-square-l3-s0/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-antimagic-square-l3-s0/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-costas-array-l1-s2/environment/Dockerfile b/tasks/construct-mc-costas-array-l1-s2/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-costas-array-l1-s2/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-costas-array-l1-s2/environment/instance.json b/tasks/construct-mc-costas-array-l1-s2/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..c4fbe84d1bb4514a6c591875ac925a34fb46e3aa --- /dev/null +++ b/tasks/construct-mc-costas-array-l1-s2/environment/instance.json @@ -0,0 +1 @@ +{"n": 6, "fixed": [], "family": "mc_costas_array", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-costas-array-l1-s2/solution/solve.sh b/tasks/construct-mc-costas-array-l1-s2/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..1378d08ef5e3bfb35cdadc52c019e5772759e075 --- /dev/null +++ b/tasks/construct-mc-costas-array-l1-s2/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"x": [0, 1, 4, 3, 5, 2]} +RLMATH_EOF diff --git a/tasks/construct-mc-costas-array-l1-s2/tests/check.py b/tasks/construct-mc-costas-array-l1-s2/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..c86323a5b639b23787ecd4d5f358b986bbd91b6c --- /dev/null +++ b/tasks/construct-mc-costas-array-l1-s2/tests/check.py @@ -0,0 +1,22 @@ +"""Costas array of order n (MathConstraint costas_array, CC-BY-4.0). Accepts any valid array. +Adapted from pilot/grader.py check_costas; adds the optional fixed entries (upstream partial assignment).""" +import itertools + +from run import Invalid, int_list + + +def check(inst, ans): + n = inst["n"] + x = int_list(ans.get("x"), n, 0, n - 1, "x") + if sorted(x) != list(range(n)): + raise Invalid("x is not a permutation of 0..n-1") + for name, i, v in inst.get("fixed", []): + if x[i] != v: + raise Invalid(f"fixed value {name}[{i}] = {v} not respected") + vecs = set() + for i, j in itertools.combinations(range(n), 2): + d = (j - i, x[j] - x[i]) + if d in vecs: + raise Invalid(f"repeated displacement vector {d}") + vecs.add(d) + return None, {} diff --git a/tasks/construct-mc-costas-array-l1-s2/tests/instance.json b/tasks/construct-mc-costas-array-l1-s2/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..c4fbe84d1bb4514a6c591875ac925a34fb46e3aa --- /dev/null +++ b/tasks/construct-mc-costas-array-l1-s2/tests/instance.json @@ -0,0 +1 @@ +{"n": 6, "fixed": [], "family": "mc_costas_array", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-costas-array-l1-s2/tests/run.py b/tasks/construct-mc-costas-array-l1-s2/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-costas-array-l1-s2/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-costas-array-l1-s2/tests/test.sh b/tasks/construct-mc-costas-array-l1-s2/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-costas-array-l1-s2/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-costas-array-l1-s5/environment/Dockerfile b/tasks/construct-mc-costas-array-l1-s5/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-costas-array-l1-s5/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-costas-array-l1-s5/environment/instance.json b/tasks/construct-mc-costas-array-l1-s5/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..432e01ed5cac129b260fb680702541b1ff9df93a --- /dev/null +++ b/tasks/construct-mc-costas-array-l1-s5/environment/instance.json @@ -0,0 +1 @@ +{"n": 7, "fixed": [], "family": "mc_costas_array", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-costas-array-l1-s5/solution/solve.sh b/tasks/construct-mc-costas-array-l1-s5/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..e914f80957917faeaaf1012ae77e306259ed9abb --- /dev/null +++ b/tasks/construct-mc-costas-array-l1-s5/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"x": [0, 1, 6, 4, 3, 5, 2]} +RLMATH_EOF diff --git a/tasks/construct-mc-costas-array-l1-s5/tests/check.py b/tasks/construct-mc-costas-array-l1-s5/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..c86323a5b639b23787ecd4d5f358b986bbd91b6c --- /dev/null +++ b/tasks/construct-mc-costas-array-l1-s5/tests/check.py @@ -0,0 +1,22 @@ +"""Costas array of order n (MathConstraint costas_array, CC-BY-4.0). Accepts any valid array. +Adapted from pilot/grader.py check_costas; adds the optional fixed entries (upstream partial assignment).""" +import itertools + +from run import Invalid, int_list + + +def check(inst, ans): + n = inst["n"] + x = int_list(ans.get("x"), n, 0, n - 1, "x") + if sorted(x) != list(range(n)): + raise Invalid("x is not a permutation of 0..n-1") + for name, i, v in inst.get("fixed", []): + if x[i] != v: + raise Invalid(f"fixed value {name}[{i}] = {v} not respected") + vecs = set() + for i, j in itertools.combinations(range(n), 2): + d = (j - i, x[j] - x[i]) + if d in vecs: + raise Invalid(f"repeated displacement vector {d}") + vecs.add(d) + return None, {} diff --git a/tasks/construct-mc-costas-array-l1-s5/tests/instance.json b/tasks/construct-mc-costas-array-l1-s5/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..432e01ed5cac129b260fb680702541b1ff9df93a --- /dev/null +++ b/tasks/construct-mc-costas-array-l1-s5/tests/instance.json @@ -0,0 +1 @@ +{"n": 7, "fixed": [], "family": "mc_costas_array", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-costas-array-l1-s5/tests/run.py b/tasks/construct-mc-costas-array-l1-s5/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-costas-array-l1-s5/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-costas-array-l1-s5/tests/test.sh b/tasks/construct-mc-costas-array-l1-s5/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-costas-array-l1-s5/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-debruijn-l4-s1/environment/Dockerfile b/tasks/construct-mc-debruijn-l4-s1/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-debruijn-l4-s1/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-debruijn-l4-s1/environment/instance.json b/tasks/construct-mc-debruijn-l4-s1/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..2a3ce1ddf06f6b7fcfac30af4e1087d4ec413b01 --- /dev/null +++ b/tasks/construct-mc-debruijn-l4-s1/environment/instance.json @@ -0,0 +1 @@ +{"b": 3, "n": 5, "family": "mc_debruijn", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-debruijn-l4-s1/solution/solve.sh b/tasks/construct-mc-debruijn-l4-s1/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..a18ad4abcf2522109e66d31739986d095ae3fc59 --- /dev/null +++ b/tasks/construct-mc-debruijn-l4-s1/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"seq": [0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 2, 0, 0, 0, 1, 1, 0, 0, 0, 1, 2, 0, 0, 0, 2, 1, 0, 0, 0, 2, 2, 0, 0, 1, 0, 1, 0, 0, 1, 0, 2, 0, 0, 1, 1, 1, 0, 0, 1, 1, 2, 0, 0, 1, 2, 1, 0, 0, 1, 2, 2, 0, 0, 2, 0, 1, 0, 0, 2, 0, 2, 0, 0, 2, 1, 1, 0, 0, 2, 1, 2, 0, 0, 2, 2, 1, 0, 0, 2, 2, 2, 0, 1, 0, 1, 1, 0, 1, 0, 1, 2, 0, 1, 0, 2, 1, 0, 1, 0, 2, 2, 0, 1, 1, 0, 2, 0, 1, 1, 1, 1, 0, 1, 1, 1, 2, 0, 1, 1, 2, 1, 0, 1, 1, 2, 2, 0, 1, 2, 0, 2, 0, 1, 2, 1, 1, 0, 1, 2, 1, 2, 0, 1, 2, 2, 1, 0, 1, 2, 2, 2, 0, 2, 0, 2, 1, 0, 2, 0, 2, 2, 0, 2, 1, 1, 1, 0, 2, 1, 1, 2, 0, 2, 1, 2, 1, 0, 2, 1, 2, 2, 0, 2, 2, 1, 1, 0, 2, 2, 1, 2, 0, 2, 2, 2, 1, 0, 2, 2, 2, 2, 1, 1, 1, 1, 1, 2, 1, 1, 1, 2, 2, 1, 1, 2, 1, 2, 1, 1, 2, 2, 2, 1, 2, 1, 2, 2, 1, 2, 2, 2, 2, 2]} +RLMATH_EOF diff --git a/tasks/construct-mc-debruijn-l4-s1/tests/check.py b/tasks/construct-mc-debruijn-l4-s1/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..c9d6f0177d2b3bde8306d74939ee9704c1501a23 --- /dev/null +++ b/tasks/construct-mc-debruijn-l4-s1/tests/check.py @@ -0,0 +1,15 @@ +"""De Bruijn sequence B(b, n) (MathConstraint debruijn, CC-BY-4.0). Accepts any valid cyclic sequence.""" +from run import Invalid, int_list + + +def check(inst, ans): + b, n = inst["b"], inst["n"] + m = b ** n + x = int_list(ans.get("seq"), m, 0, b - 1, "seq") + seen = set() + for i in range(m): + w = tuple(x[(i + k) % m] for k in range(n)) + if w in seen: + raise Invalid(f"window {w} occurs twice") + seen.add(w) + return None, {} diff --git a/tasks/construct-mc-debruijn-l4-s1/tests/instance.json b/tasks/construct-mc-debruijn-l4-s1/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..2a3ce1ddf06f6b7fcfac30af4e1087d4ec413b01 --- /dev/null +++ b/tasks/construct-mc-debruijn-l4-s1/tests/instance.json @@ -0,0 +1 @@ +{"b": 3, "n": 5, "family": "mc_debruijn", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-debruijn-l4-s1/tests/run.py b/tasks/construct-mc-debruijn-l4-s1/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-debruijn-l4-s1/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-debruijn-l4-s1/tests/test.sh b/tasks/construct-mc-debruijn-l4-s1/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-debruijn-l4-s1/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-golomb-l3-s1/environment/Dockerfile b/tasks/construct-mc-golomb-l3-s1/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-golomb-l3-s1/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-golomb-l3-s1/environment/instance.json b/tasks/construct-mc-golomb-l3-s1/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..e9109c4f7b66fb37d3cedf5a269b59abe5a1faf3 --- /dev/null +++ b/tasks/construct-mc-golomb-l3-s1/environment/instance.json @@ -0,0 +1 @@ +{"n": 11, "max_length": 72, "fixed": [], "family": "mc_golomb", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-golomb-l3-s1/solution/solve.sh b/tasks/construct-mc-golomb-l3-s1/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..7812b224e226550e74a2aaac30756e6eaa0450b3 --- /dev/null +++ b/tasks/construct-mc-golomb-l3-s1/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"marks": [0, 3, 14, 16, 20, 41, 48, 53, 63, 71, 72]} +RLMATH_EOF diff --git a/tasks/construct-mc-golomb-l3-s1/tests/check.py b/tasks/construct-mc-golomb-l3-s1/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..84aedd6e33fee7271543bfa49ab05128e23c31ee --- /dev/null +++ b/tasks/construct-mc-golomb-l3-s1/tests/check.py @@ -0,0 +1,27 @@ +"""Golomb ruler with n marks and length <= L (MathConstraint golomb, CC-BY-4.0, reframed as a decision +problem with the target length stated). Accepts any valid ruler. +Upstream note: the upstream prompt states no length bound and its verifier re-solves the optimisation +model with the marks fixed, which returns OPTIMUM for any Golomb ruler, so any ruler (e.g. 0,1,3,7,15,..) +was accepted. Here the length bound is part of the instance and enforced.""" +import itertools + +from run import Invalid, int_list + + +def check(inst, ans): + n, L = inst["n"], inst["max_length"] + a = int_list(ans.get("marks"), n, 0, L, "marks") + if a[0] != 0: + raise Invalid("first mark must be 0") + if any(a[i] >= a[i + 1] for i in range(n - 1)): + raise Invalid("marks must be strictly increasing") + for name, i, v in inst.get("fixed", []): + if a[i] != v: + raise Invalid(f"fixed value {name}[{i}] = {v} not respected") + seen = set() + for i, j in itertools.combinations(range(n), 2): + d = a[j] - a[i] + if d in seen: + raise Invalid(f"difference {d} occurs twice") + seen.add(d) + return None, {"length": a[-1]} diff --git a/tasks/construct-mc-golomb-l3-s1/tests/instance.json b/tasks/construct-mc-golomb-l3-s1/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..e9109c4f7b66fb37d3cedf5a269b59abe5a1faf3 --- /dev/null +++ b/tasks/construct-mc-golomb-l3-s1/tests/instance.json @@ -0,0 +1 @@ +{"n": 11, "max_length": 72, "fixed": [], "family": "mc_golomb", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-golomb-l3-s1/tests/run.py b/tasks/construct-mc-golomb-l3-s1/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-golomb-l3-s1/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-golomb-l3-s1/tests/test.sh b/tasks/construct-mc-golomb-l3-s1/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-golomb-l3-s1/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-golomb-l6-s0/environment/Dockerfile b/tasks/construct-mc-golomb-l6-s0/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-golomb-l6-s0/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-golomb-l6-s0/environment/instance.json b/tasks/construct-mc-golomb-l6-s0/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..8315af5ed82b69e73e7d5310235a6c9d5443810f --- /dev/null +++ b/tasks/construct-mc-golomb-l6-s0/environment/instance.json @@ -0,0 +1 @@ +{"n": 17, "max_length": 199, "fixed": [], "family": "mc_golomb", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-golomb-l6-s0/solution/solve.sh b/tasks/construct-mc-golomb-l6-s0/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..31c5591ca2b016bc7a2abf84b5ea12960a08d131 --- /dev/null +++ b/tasks/construct-mc-golomb-l6-s0/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"marks": [0, 5, 7, 17, 52, 56, 67, 80, 81, 100, 122, 138, 159, 165, 168, 191, 199]} +RLMATH_EOF diff --git a/tasks/construct-mc-golomb-l6-s0/tests/instance.json b/tasks/construct-mc-golomb-l6-s0/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..8315af5ed82b69e73e7d5310235a6c9d5443810f --- /dev/null +++ b/tasks/construct-mc-golomb-l6-s0/tests/instance.json @@ -0,0 +1 @@ +{"n": 17, "max_length": 199, "fixed": [], "family": "mc_golomb", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-golomb-l6-s0/tests/test.sh b/tasks/construct-mc-golomb-l6-s0/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-golomb-l6-s0/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-graceful-graph-l4-s2/environment/Dockerfile b/tasks/construct-mc-graceful-graph-l4-s2/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-graceful-graph-l4-s2/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-graceful-graph-l4-s2/environment/instance.json b/tasks/construct-mc-graceful-graph-l4-s2/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..af7d52dca7758029e07883d89bb2ef3d7b515f23 --- /dev/null +++ b/tasks/construct-mc-graceful-graph-l4-s2/environment/instance.json @@ -0,0 +1 @@ +{"k": 3, "p": 8, "num_vertices": 24, "edges": [[0, 1], [0, 2], [1, 2], [3, 4], [3, 5], [4, 5], [6, 7], [6, 8], [7, 8], [9, 10], [9, 11], [10, 11], [12, 13], [12, 14], [13, 14], [15, 16], [15, 17], [16, 17], [18, 19], [18, 20], [19, 20], [21, 22], [21, 23], [22, 23], [0, 3], [1, 4], [2, 5], [3, 6], [4, 7], [5, 8], [6, 9], [7, 10], [8, 11], [9, 12], [10, 13], [11, 14], [12, 15], [13, 16], [14, 17], [15, 18], [16, 19], [17, 20], [18, 21], [19, 22], [20, 23]], "fixed": [], "family": "mc_graceful_graph", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-graceful-graph-l4-s2/solution/solve.sh b/tasks/construct-mc-graceful-graph-l4-s2/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..9b605860892e57820cfb94d3bd048908754006cb --- /dev/null +++ b/tasks/construct-mc-graceful-graph-l4-s2/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"labels": [5, 21, 35, 42, 31, 9, 7, 43, 36, 38, 4, 17, 40, 12, 8, 45, 27, 2, 0, 3, 44, 1, 41, 24]} +RLMATH_EOF diff --git a/tasks/construct-mc-graceful-graph-l4-s2/tests/check.py b/tasks/construct-mc-graceful-graph-l4-s2/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..f4d33af1d63c0495c3b32d34db6ae10f0fb45923 --- /dev/null +++ b/tasks/construct-mc-graceful-graph-l4-s2/tests/check.py @@ -0,0 +1,19 @@ +"""Graceful labelling of K_k x P_p (MathConstraint graceful_graph, CC-BY-4.0): distinct vertex labels in +0..m (m = number of edges) whose edge differences |l(u) - l(v)| are all distinct.""" +from run import Invalid, int_list + + +def check(inst, ans): + nv, edges = inst["num_vertices"], inst["edges"] + m = len(edges) + x = int_list(ans.get("labels"), nv, 0, m, "labels") + if len(set(x)) != nv: + raise Invalid("vertex labels must be distinct") + d = [abs(x[u] - x[v]) for u, v in edges] + if len(set(d)) != m: + raise Invalid("edge labels are not distinct") + seqs = {"labels": x, "d": d} + for name, i, v in inst.get("fixed", []): + if seqs[name][i] != v: + raise Invalid(f"fixed value {name}[{i}] = {v} not respected") + return None, {} diff --git a/tasks/construct-mc-graceful-graph-l4-s2/tests/instance.json b/tasks/construct-mc-graceful-graph-l4-s2/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..af7d52dca7758029e07883d89bb2ef3d7b515f23 --- /dev/null +++ b/tasks/construct-mc-graceful-graph-l4-s2/tests/instance.json @@ -0,0 +1 @@ +{"k": 3, "p": 8, "num_vertices": 24, "edges": [[0, 1], [0, 2], [1, 2], [3, 4], [3, 5], [4, 5], [6, 7], [6, 8], [7, 8], [9, 10], [9, 11], [10, 11], [12, 13], [12, 14], [13, 14], [15, 16], [15, 17], [16, 17], [18, 19], [18, 20], [19, 20], [21, 22], [21, 23], [22, 23], [0, 3], [1, 4], [2, 5], [3, 6], [4, 7], [5, 8], [6, 9], [7, 10], [8, 11], [9, 12], [10, 13], [11, 14], [12, 15], [13, 16], [14, 17], [15, 18], [16, 19], [17, 20], [18, 21], [19, 22], [20, 23]], "fixed": [], "family": "mc_graceful_graph", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-graceful-graph-l4-s2/tests/run.py b/tasks/construct-mc-graceful-graph-l4-s2/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-graceful-graph-l4-s2/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-graceful-graph-l4-s2/tests/test.sh b/tasks/construct-mc-graceful-graph-l4-s2/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-graceful-graph-l4-s2/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-graph-k-coloring-l1-s5/environment/Dockerfile b/tasks/construct-mc-graph-k-coloring-l1-s5/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-graph-k-coloring-l1-s5/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-graph-k-coloring-l1-s5/environment/instance.json b/tasks/construct-mc-graph-k-coloring-l1-s5/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..c68a6668581753e49987a9ba9369ab797e78ef42 --- /dev/null +++ b/tasks/construct-mc-graph-k-coloring-l1-s5/environment/instance.json @@ -0,0 +1 @@ +{"n": 20, "k": 3, "edges": [[0, 1], [0, 14], [1, 11], [1, 13], [1, 19], [2, 11], [2, 16], [3, 5], [3, 18], [4, 7], [4, 14], [4, 18], [5, 6], [5, 8], [5, 15], [5, 17], [6, 7], [7, 9], [7, 16], [7, 17], [8, 17], [9, 10], [9, 11], [10, 17], [12, 13], [12, 14], [12, 16], [13, 17], [15, 18], [16, 17]], "family": "mc_graph_k_coloring", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-graph-k-coloring-l1-s5/solution/solve.sh b/tasks/construct-mc-graph-k-coloring-l1-s5/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..0f04adf528a7df221e4d3bed733ffc1f232c46f4 --- /dev/null +++ b/tasks/construct-mc-graph-k-coloring-l1-s5/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"coloring": [0, 1, 2, 1, 0, 0, 1, 2, 2, 1, 0, 0, 1, 2, 2, 1, 0, 1, 2, 0]} +RLMATH_EOF diff --git a/tasks/construct-mc-graph-k-coloring-l1-s5/tests/check.py b/tasks/construct-mc-graph-k-coloring-l1-s5/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..2b5f38cd0c22ac1b4ba37c0d3ff0a34635f08854 --- /dev/null +++ b/tasks/construct-mc-graph-k-coloring-l1-s5/tests/check.py @@ -0,0 +1,11 @@ +"""Proper k-colouring of a given graph (MathConstraint graph_k_coloring, CC-BY-4.0). Any valid colouring.""" +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["n"], inst["k"] + c = int_list(ans.get("coloring"), n, 0, k - 1, "coloring") + for u, v in inst["edges"]: + if c[u] == c[v]: + raise Invalid(f"edge ({u},{v}) is monochromatic") + return None, {} diff --git a/tasks/construct-mc-graph-k-coloring-l1-s5/tests/instance.json b/tasks/construct-mc-graph-k-coloring-l1-s5/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..c68a6668581753e49987a9ba9369ab797e78ef42 --- /dev/null +++ b/tasks/construct-mc-graph-k-coloring-l1-s5/tests/instance.json @@ -0,0 +1 @@ +{"n": 20, "k": 3, "edges": [[0, 1], [0, 14], [1, 11], [1, 13], [1, 19], [2, 11], [2, 16], [3, 5], [3, 18], [4, 7], [4, 14], [4, 18], [5, 6], [5, 8], [5, 15], [5, 17], [6, 7], [7, 9], [7, 16], [7, 17], [8, 17], [9, 10], [9, 11], [10, 17], [12, 13], [12, 14], [12, 16], [13, 17], [15, 18], [16, 17]], "family": "mc_graph_k_coloring", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-graph-k-coloring-l1-s5/tests/run.py b/tasks/construct-mc-graph-k-coloring-l1-s5/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-graph-k-coloring-l1-s5/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-graph-k-coloring-l1-s5/tests/test.sh b/tasks/construct-mc-graph-k-coloring-l1-s5/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-graph-k-coloring-l1-s5/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-hadamard-l4-s2/environment/Dockerfile b/tasks/construct-mc-hadamard-l4-s2/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-hadamard-l4-s2/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-hadamard-l4-s2/environment/instance.json b/tasks/construct-mc-hadamard-l4-s2/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..dc4182a088f9e791e4e36fdfb8e315ceaf6d82c8 --- /dev/null +++ b/tasks/construct-mc-hadamard-l4-s2/environment/instance.json @@ -0,0 +1 @@ +{"n": 31, "family": "mc_hadamard", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-hadamard-l4-s2/solution/solve.sh b/tasks/construct-mc-hadamard-l4-s2/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..87938cb79900dec6735d0e93b96e4b64b75ce941 --- /dev/null +++ b/tasks/construct-mc-hadamard-l4-s2/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"x": [1, 1, 1, -1, 1, 1, -1, 1, 1, 1, 1, -1, -1, -1, 1, -1, 1, -1, 1, 1, 1, -1, -1, -1, -1, 1, -1, -1, 1, -1, -1], "y": [1, 1, 1, -1, 1, 1, -1, 1, 1, 1, 1, -1, -1, -1, 1, -1, 1, -1, 1, 1, 1, -1, -1, -1, -1, 1, -1, -1, 1, -1, -1]} +RLMATH_EOF diff --git a/tasks/construct-mc-hadamard-l4-s2/tests/check.py b/tasks/construct-mc-hadamard-l4-s2/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..fc4b93160fd7473dd14935db9d712e52abdd00c2 --- /dev/null +++ b/tasks/construct-mc-hadamard-l4-s2/tests/check.py @@ -0,0 +1,18 @@ +"""Legendre pair of odd length n (MathConstraint hadamard, CC-BY-4.0): x, y in {-1,+1}^n with +sum(x) = sum(y) = 1 and PAF_x(k) + PAF_y(k) = -2 for k = 1..(n-1)/2 (periodic autocorrelation).""" +from run import Invalid, int_list + + +def check(inst, ans): + n = inst["n"] + x = int_list(ans.get("x"), n, -1, 1, "x") + y = int_list(ans.get("y"), n, -1, 1, "y") + if 0 in x or 0 in y: + raise Invalid("entries must be -1 or +1") + if sum(x) != 1 or sum(y) != 1: + raise Invalid("sum(x) and sum(y) must both equal 1") + for k in range(1, (n - 1) // 2 + 1): + p = sum(x[i] * x[(i + k) % n] for i in range(n)) + sum(y[i] * y[(i + k) % n] for i in range(n)) + if p != -2: + raise Invalid(f"PAF_x({k}) + PAF_y({k}) = {p}, need -2") + return None, {} diff --git a/tasks/construct-mc-hadamard-l4-s2/tests/instance.json b/tasks/construct-mc-hadamard-l4-s2/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..dc4182a088f9e791e4e36fdfb8e315ceaf6d82c8 --- /dev/null +++ b/tasks/construct-mc-hadamard-l4-s2/tests/instance.json @@ -0,0 +1 @@ +{"n": 31, "family": "mc_hadamard", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-hadamard-l4-s2/tests/run.py b/tasks/construct-mc-hadamard-l4-s2/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-hadamard-l4-s2/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-hadamard-l4-s2/tests/test.sh b/tasks/construct-mc-hadamard-l4-s2/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-hadamard-l4-s2/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-langford-l4-s3/environment/Dockerfile b/tasks/construct-mc-langford-l4-s3/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-langford-l4-s3/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-langford-l4-s3/environment/instance.json b/tasks/construct-mc-langford-l4-s3/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..5e612fea60fcdf231a0f9dd66ab07d2eec0ace1f --- /dev/null +++ b/tasks/construct-mc-langford-l4-s3/environment/instance.json @@ -0,0 +1 @@ +{"n": 23, "fixed": [], "family": "mc_langford", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-langford-l4-s3/solution/solve.sh b/tasks/construct-mc-langford-l4-s3/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..d0df8716aef6aa80b49cc80f52466b5976b3a701 --- /dev/null +++ b/tasks/construct-mc-langford-l4-s3/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"seq": [10, 1, 20, 1, 15, 2, 11, 6, 2, 3, 18, 10, 13, 3, 6, 21, 14, 23, 11, 22, 15, 16, 9, 20, 19, 8, 13, 17, 7, 18, 12, 14, 9, 5, 8, 4, 7, 21, 16, 5, 4, 23, 22, 12, 19, 17]} +RLMATH_EOF diff --git a/tasks/construct-mc-langford-l4-s3/tests/check.py b/tasks/construct-mc-langford-l4-s3/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..4672d7eacf321991933cb280d6c940f1c4a67935 --- /dev/null +++ b/tasks/construct-mc-langford-l4-s3/tests/check.py @@ -0,0 +1,17 @@ +"""Langford sequence L(2, n) (MathConstraint langford, CC-BY-4.0). Accepts any valid sequence.""" +from run import Invalid, int_list + + +def check(inst, ans): + n = inst["n"] + seq = int_list(ans.get("seq"), 2 * n, 1, n, "seq") + for v in range(1, n + 1): + pos = [i for i, s in enumerate(seq) if s == v] + if len(pos) != 2: + raise Invalid(f"value {v} occurs {len(pos)} times (need exactly 2)") + if pos[1] - pos[0] != v + 1: + raise Invalid(f"the two copies of {v} are {pos[1] - pos[0]} positions apart (need {v + 1})") + for name, i, v in inst.get("fixed", []): + if seq[i] != v: + raise Invalid(f"fixed value {name}[{i}] = {v} not respected") + return None, {} diff --git a/tasks/construct-mc-langford-l4-s3/tests/instance.json b/tasks/construct-mc-langford-l4-s3/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..5e612fea60fcdf231a0f9dd66ab07d2eec0ace1f --- /dev/null +++ b/tasks/construct-mc-langford-l4-s3/tests/instance.json @@ -0,0 +1 @@ +{"n": 23, "fixed": [], "family": "mc_langford", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-langford-l4-s3/tests/run.py b/tasks/construct-mc-langford-l4-s3/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-langford-l4-s3/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-langford-l4-s3/tests/test.sh b/tasks/construct-mc-langford-l4-s3/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-langford-l4-s3/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-low-autocorrelation-l3-s0/environment/Dockerfile b/tasks/construct-mc-low-autocorrelation-l3-s0/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-low-autocorrelation-l3-s0/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-low-autocorrelation-l3-s0/environment/instance.json b/tasks/construct-mc-low-autocorrelation-l3-s0/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..beb21872cc596700a7b4435dbdb330adf5dfa43b --- /dev/null +++ b/tasks/construct-mc-low-autocorrelation-l3-s0/environment/instance.json @@ -0,0 +1 @@ +{"n": 31, "bound": 96, "fixed": [], "family": "mc_low_autocorrelation", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-low-autocorrelation-l3-s0/solution/solve.sh b/tasks/construct-mc-low-autocorrelation-l3-s0/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..5c49d3f56087afa8a81583b3ad5d17ac5ae2c7f4 --- /dev/null +++ b/tasks/construct-mc-low-autocorrelation-l3-s0/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"seq": [1, -1, -1, 1, 1, -1, 1, -1, 1, 1, -1, -1, 1, 1, 1, -1, 1, -1, -1, 1, 1, 1, -1, 1, -1, -1, -1, -1, -1, -1, -1]} +RLMATH_EOF diff --git a/tasks/construct-mc-low-autocorrelation-l3-s0/tests/check.py b/tasks/construct-mc-low-autocorrelation-l3-s0/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..8456f7b1c0ff0c9fb4bc9ae5a49074c8afa7d1aa --- /dev/null +++ b/tasks/construct-mc-low-autocorrelation-l3-s0/tests/check.py @@ -0,0 +1,20 @@ +"""+-1 sequence of length n with aperiodic autocorrelation energy sum_k C_k^2 <= bound +(MathConstraint low_autocorrelation, CC-BY-4.0). Exact integer arithmetic.""" +from run import Invalid, int_list + + +def check(inst, ans): + n, bound = inst["n"], inst["bound"] + s = int_list(ans.get("seq"), n, -1, 1, "seq") + if any(v == 0 for v in s): + raise Invalid("entries must be -1 or +1") + c = [sum(s[i] * s[i + k] for i in range(n - k)) for k in range(1, n)] + e = sum(v * v for v in c) + # fixed values: seq[i] or c[k] (c[k] is the autocorrelation at shift k+1, as upstream) + seqs = {"seq": s, "c": c} + for name, i, v in inst.get("fixed", []): + if seqs[name][i] != v: + raise Invalid(f"fixed value {name}[{i}] = {v} not respected") + if e > bound: + raise Invalid(f"energy {e} exceeds the bound {bound}") + return None, {"energy": e} diff --git a/tasks/construct-mc-low-autocorrelation-l3-s0/tests/instance.json b/tasks/construct-mc-low-autocorrelation-l3-s0/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..beb21872cc596700a7b4435dbdb330adf5dfa43b --- /dev/null +++ b/tasks/construct-mc-low-autocorrelation-l3-s0/tests/instance.json @@ -0,0 +1 @@ +{"n": 31, "bound": 96, "fixed": [], "family": "mc_low_autocorrelation", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-low-autocorrelation-l3-s0/tests/run.py b/tasks/construct-mc-low-autocorrelation-l3-s0/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-low-autocorrelation-l3-s0/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-low-autocorrelation-l3-s0/tests/test.sh b/tasks/construct-mc-low-autocorrelation-l3-s0/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-low-autocorrelation-l3-s0/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-max-clique-l2-s0/environment/Dockerfile b/tasks/construct-mc-max-clique-l2-s0/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-max-clique-l2-s0/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-max-clique-l2-s0/environment/instance.json b/tasks/construct-mc-max-clique-l2-s0/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..e446bd3d0f669995a420d1ec0b6dc76cd49c489a --- /dev/null +++ b/tasks/construct-mc-max-clique-l2-s0/environment/instance.json @@ -0,0 +1 @@ +{"n": 40, "k": 8, "edges": [[0, 1], [0, 3], [0, 4], [0, 7], [0, 10], [0, 11], [0, 12], [0, 14], [0, 15], [0, 17], [0, 19], [0, 20], [0, 22], [0, 23], [0, 24], [0, 25], [0, 29], [0, 31], [0, 32], [0, 33], [0, 35], [0, 37], [1, 3], [1, 4], [1, 8], [1, 10], [1, 11], [1, 13], [1, 16], [1, 17], [1, 19], [1, 21], [1, 24], [1, 32], [1, 35], [1, 38], [1, 39], [2, 4], [2, 8], [2, 11], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 24], [2, 29], [2, 30], [2, 35], [2, 36], [2, 37], [2, 39], [3, 4], [3, 5], [3, 6], [3, 7], [3, 8], [3, 9], [3, 10], [3, 13], [3, 14], [3, 15], [3, 16], [3, 17], [3, 18], [3, 19], [3, 21], [3, 24], [3, 25], [3, 27], [3, 28], [3, 29], [3, 31], [3, 32], [3, 33], [3, 34], [3, 38], [4, 6], [4, 9], [4, 11], [4, 13], [4, 17], [4, 19], [4, 21], [4, 26], [4, 32], [4, 33], [4, 34], [4, 37], [4, 38], [5, 6], [5, 7], [5, 8], [5, 10], [5, 11], [5, 12], [5, 13], [5, 14], [5, 15], [5, 16], [5, 17], [5, 19], [5, 20], [5, 22], [5, 23], [5, 24], [5, 25], [5, 28], [5, 29], [5, 32], [5, 34], [5, 37], [5, 38], [5, 39], [6, 8], [6, 11], [6, 14], [6, 15], [6, 17], [6, 18], [6, 19], [6, 21], [6, 23], [6, 24], [6, 25], [6, 27], [6, 30], [6, 34], [6, 36], [6, 38], [7, 8], [7, 9], [7, 11], [7, 12], [7, 13], [7, 14], [7, 15], [7, 16], [7, 17], [7, 18], [7, 20], [7, 22], [7, 23], [7, 24], [7, 25], [7, 27], [7, 30], [7, 31], [7, 32], [7, 33], [7, 34], [7, 35], [7, 37], [7, 38], [8, 10], [8, 12], [8, 14], [8, 17], [8, 18], [8, 19], [8, 21], [8, 22], [8, 26], [8, 28], [8, 29], [8, 30], [8, 31], [8, 33], [8, 35], [8, 36], [8, 37], [8, 38], [8, 39], [9, 10], [9, 11], [9, 12], [9, 15], [9, 20], [9, 21], [9, 22], [9, 27], [9, 31], [9, 33], [9, 35], [9, 36], [10, 11], [10, 13], [10, 14], [10, 16], [10, 18], [10, 20], [10, 21], [10, 23], [10, 26], [10, 27], [10, 28], [10, 30], [10, 31], [10, 33], [10, 34], [10, 35], [10, 36], [10, 37], [10, 39], [11, 14], [11, 16], [11, 17], [11, 19], [11, 22], [11, 23], [11, 26], [11, 27], [11, 29], [11, 30], [11, 31], [11, 32], [12, 16], [12, 17], [12, 19], [12, 22], [12, 23], [12, 24], [12, 26], [12, 27], [12, 28], [12, 30], [12, 33], [12, 34], [12, 38], [13, 14], [13, 17], [13, 18], [13, 20], [13, 21], [13, 24], [13, 25], [13, 26], [13, 27], [13, 28], [13, 29], [13, 32], [13, 33], [13, 34], [13, 36], [13, 37], [14, 16], [14, 18], [14, 19], [14, 23], [14, 24], [14, 25], [14, 26], [14, 27], [14, 29], [14, 31], [14, 32], [14, 33], [14, 34], [14, 35], [14, 36], [14, 38], [15, 17], [15, 18], [15, 19], [15, 21], [15, 22], [15, 24], [15, 27], [15, 28], [15, 29], [15, 30], [15, 35], [15, 36], [15, 37], [15, 38], [16, 17], [16, 20], [16, 24], [16, 27], [16, 28], [16, 29], [16, 32], [16, 33], [16, 36], [16, 37], [16, 38], [17, 18], [17, 19], [17, 22], [17, 25], [17, 27], [17, 28], [17, 33], [17, 34], [17, 35], [17, 36], [17, 37], [17, 38], [18, 19], [18, 20], [18, 21], [18, 23], [18, 24], [18, 25], [18, 28], [18, 29], [18, 33], [18, 34], [18, 35], [18, 36], [18, 37], [18, 38], [19, 20], [19, 23], [19, 24], [19, 27], [19, 32], [19, 34], [19, 37], [20, 24], [20, 26], [20, 27], [20, 28], [20, 29], [20, 30], [20, 31], [20, 33], [20, 36], [20, 37], [20, 38], [21, 22], [21, 24], [21, 25], [21, 26], [21, 27], [21, 29], [21, 31], [21, 37], [21, 38], [22, 26], [22, 29], [22, 30], [22, 31], [22, 32], [22, 33], [22, 35], [23, 24], [23, 26], [23, 27], [23, 28], [23, 30], [23, 31], [23, 34], [23, 35], [23, 36], [23, 39], [24, 25], [24, 28], [24, 32], [24, 34], [24, 35], [24, 37], [24, 39], [25, 32], [25, 33], [25, 34], [25, 35], [25, 38], [26, 27], [26, 28], [26, 29], [26, 31], [26, 32], [26, 33], [26, 34], [26, 37], [26, 38], [26, 39], [27, 31], [27, 32], [27, 34], [27, 35], [27, 36], [27, 38], [27, 39], [28, 30], [28, 33], [28, 34], [28, 37], [28, 38], [29, 30], [29, 31], [29, 32], [29, 33], [29, 34], [29, 36], [29, 39], [30, 31], [30, 32], [30, 33], [30, 35], [30, 36], [30, 37], [30, 39], [31, 33], [31, 34], [31, 35], [31, 36], [31, 38], [31, 39], [32, 33], [32, 34], [32, 36], [32, 37], [32, 38], [32, 39], [33, 34], [33, 35], [33, 37], [34, 35], [34, 36], [34, 38], [35, 36], [35, 39], [36, 37], [36, 38], [37, 39], [38, 39]], "family": "mc_max_clique", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-max-clique-l2-s0/solution/solve.sh b/tasks/construct-mc-max-clique-l2-s0/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..22f279450e5b0f80d518f098e68f3839b4bf775e --- /dev/null +++ b/tasks/construct-mc-max-clique-l2-s0/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"clique": [3, 5, 7, 14, 25, 32, 34, 38]} +RLMATH_EOF diff --git a/tasks/construct-mc-max-clique-l2-s0/tests/check.py b/tasks/construct-mc-max-clique-l2-s0/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..e3f70dbd5b155a3514c2102aa4ad460201495210 --- /dev/null +++ b/tasks/construct-mc-max-clique-l2-s0/tests/check.py @@ -0,0 +1,18 @@ +"""Clique of size >= k in a given graph (MathConstraint max_clique decision version, CC-BY-4.0).""" +import itertools + +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["n"], inst["k"] + S = int_list(ans.get("clique"), None, 0, n - 1, "clique") + if len(set(S)) != len(S): + raise Invalid("repeated vertex") + if len(S) < k: + raise Invalid(f"clique has {len(S)} vertices, need at least {k}") + E = {(u, v) for u, v in inst["edges"]} + for u, v in itertools.combinations(sorted(S), 2): + if (u, v) not in E: + raise Invalid(f"vertices {u} and {v} are not adjacent") + return None, {"size": len(S)} diff --git a/tasks/construct-mc-max-clique-l2-s0/tests/instance.json b/tasks/construct-mc-max-clique-l2-s0/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..e446bd3d0f669995a420d1ec0b6dc76cd49c489a --- /dev/null +++ b/tasks/construct-mc-max-clique-l2-s0/tests/instance.json @@ -0,0 +1 @@ +{"n": 40, "k": 8, "edges": [[0, 1], [0, 3], [0, 4], [0, 7], [0, 10], [0, 11], [0, 12], [0, 14], [0, 15], [0, 17], [0, 19], [0, 20], [0, 22], [0, 23], [0, 24], [0, 25], [0, 29], [0, 31], [0, 32], [0, 33], [0, 35], [0, 37], [1, 3], [1, 4], [1, 8], [1, 10], [1, 11], [1, 13], [1, 16], [1, 17], [1, 19], [1, 21], [1, 24], [1, 32], [1, 35], [1, 38], [1, 39], [2, 4], [2, 8], [2, 11], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 24], [2, 29], [2, 30], [2, 35], [2, 36], [2, 37], [2, 39], [3, 4], [3, 5], [3, 6], [3, 7], [3, 8], [3, 9], [3, 10], [3, 13], [3, 14], [3, 15], [3, 16], [3, 17], [3, 18], [3, 19], [3, 21], [3, 24], [3, 25], [3, 27], [3, 28], [3, 29], [3, 31], [3, 32], [3, 33], [3, 34], [3, 38], [4, 6], [4, 9], [4, 11], [4, 13], [4, 17], [4, 19], [4, 21], [4, 26], [4, 32], [4, 33], [4, 34], [4, 37], [4, 38], [5, 6], [5, 7], [5, 8], [5, 10], [5, 11], [5, 12], [5, 13], [5, 14], [5, 15], [5, 16], [5, 17], [5, 19], [5, 20], [5, 22], [5, 23], [5, 24], [5, 25], [5, 28], [5, 29], [5, 32], [5, 34], [5, 37], [5, 38], [5, 39], [6, 8], [6, 11], [6, 14], [6, 15], [6, 17], [6, 18], [6, 19], [6, 21], [6, 23], [6, 24], [6, 25], [6, 27], [6, 30], [6, 34], [6, 36], [6, 38], [7, 8], [7, 9], [7, 11], [7, 12], [7, 13], [7, 14], [7, 15], [7, 16], [7, 17], [7, 18], [7, 20], [7, 22], [7, 23], [7, 24], [7, 25], [7, 27], [7, 30], [7, 31], [7, 32], [7, 33], [7, 34], [7, 35], [7, 37], [7, 38], [8, 10], [8, 12], [8, 14], [8, 17], [8, 18], [8, 19], [8, 21], [8, 22], [8, 26], [8, 28], [8, 29], [8, 30], [8, 31], [8, 33], [8, 35], [8, 36], [8, 37], [8, 38], [8, 39], [9, 10], [9, 11], [9, 12], [9, 15], [9, 20], [9, 21], [9, 22], [9, 27], [9, 31], [9, 33], [9, 35], [9, 36], [10, 11], [10, 13], [10, 14], [10, 16], [10, 18], [10, 20], [10, 21], [10, 23], [10, 26], [10, 27], [10, 28], [10, 30], [10, 31], [10, 33], [10, 34], [10, 35], [10, 36], [10, 37], [10, 39], [11, 14], [11, 16], [11, 17], [11, 19], [11, 22], [11, 23], [11, 26], [11, 27], [11, 29], [11, 30], [11, 31], [11, 32], [12, 16], [12, 17], [12, 19], [12, 22], [12, 23], [12, 24], [12, 26], [12, 27], [12, 28], [12, 30], [12, 33], [12, 34], [12, 38], [13, 14], [13, 17], [13, 18], [13, 20], [13, 21], [13, 24], [13, 25], [13, 26], [13, 27], [13, 28], [13, 29], [13, 32], [13, 33], [13, 34], [13, 36], [13, 37], [14, 16], [14, 18], [14, 19], [14, 23], [14, 24], [14, 25], [14, 26], [14, 27], [14, 29], [14, 31], [14, 32], [14, 33], [14, 34], [14, 35], [14, 36], [14, 38], [15, 17], [15, 18], [15, 19], [15, 21], [15, 22], [15, 24], [15, 27], [15, 28], [15, 29], [15, 30], [15, 35], [15, 36], [15, 37], [15, 38], [16, 17], [16, 20], [16, 24], [16, 27], [16, 28], [16, 29], [16, 32], [16, 33], [16, 36], [16, 37], [16, 38], [17, 18], [17, 19], [17, 22], [17, 25], [17, 27], [17, 28], [17, 33], [17, 34], [17, 35], [17, 36], [17, 37], [17, 38], [18, 19], [18, 20], [18, 21], [18, 23], [18, 24], [18, 25], [18, 28], [18, 29], [18, 33], [18, 34], [18, 35], [18, 36], [18, 37], [18, 38], [19, 20], [19, 23], [19, 24], [19, 27], [19, 32], [19, 34], [19, 37], [20, 24], [20, 26], [20, 27], [20, 28], [20, 29], [20, 30], [20, 31], [20, 33], [20, 36], [20, 37], [20, 38], [21, 22], [21, 24], [21, 25], [21, 26], [21, 27], [21, 29], [21, 31], [21, 37], [21, 38], [22, 26], [22, 29], [22, 30], [22, 31], [22, 32], [22, 33], [22, 35], [23, 24], [23, 26], [23, 27], [23, 28], [23, 30], [23, 31], [23, 34], [23, 35], [23, 36], [23, 39], [24, 25], [24, 28], [24, 32], [24, 34], [24, 35], [24, 37], [24, 39], [25, 32], [25, 33], [25, 34], [25, 35], [25, 38], [26, 27], [26, 28], [26, 29], [26, 31], [26, 32], [26, 33], [26, 34], [26, 37], [26, 38], [26, 39], [27, 31], [27, 32], [27, 34], [27, 35], [27, 36], [27, 38], [27, 39], [28, 30], [28, 33], [28, 34], [28, 37], [28, 38], [29, 30], [29, 31], [29, 32], [29, 33], [29, 34], [29, 36], [29, 39], [30, 31], [30, 32], [30, 33], [30, 35], [30, 36], [30, 37], [30, 39], [31, 33], [31, 34], [31, 35], [31, 36], [31, 38], [31, 39], [32, 33], [32, 34], [32, 36], [32, 37], [32, 38], [32, 39], [33, 34], [33, 35], [33, 37], [34, 35], [34, 36], [34, 38], [35, 36], [35, 39], [36, 37], [36, 38], [37, 39], [38, 39]], "family": "mc_max_clique", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-max-clique-l2-s0/tests/run.py b/tasks/construct-mc-max-clique-l2-s0/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-max-clique-l2-s0/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-max-clique-l2-s0/tests/test.sh b/tasks/construct-mc-max-clique-l2-s0/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-max-clique-l2-s0/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-max-clique-l2-s7/environment/Dockerfile b/tasks/construct-mc-max-clique-l2-s7/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-max-clique-l2-s7/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-max-clique-l2-s7/environment/instance.json b/tasks/construct-mc-max-clique-l2-s7/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..ec79a3c10dd98742e8487090f6140c6561bdb764 --- /dev/null +++ b/tasks/construct-mc-max-clique-l2-s7/environment/instance.json @@ -0,0 +1 @@ +{"n": 40, "k": 8, "edges": [[0, 1], [0, 4], [0, 6], [0, 7], [0, 9], [0, 11], [0, 12], [0, 13], [0, 14], [0, 17], [0, 18], [0, 20], [0, 21], [0, 22], [0, 29], [0, 30], [0, 31], [0, 35], [0, 36], [0, 37], [0, 38], [0, 39], [1, 2], [1, 3], [1, 4], [1, 7], [1, 11], [1, 12], [1, 13], [1, 15], [1, 17], [1, 18], [1, 20], [1, 21], [1, 22], [1, 27], [1, 30], [1, 31], [1, 33], [1, 34], [1, 39], [2, 6], [2, 7], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 19], [2, 21], [2, 23], [2, 25], [2, 29], [2, 30], [2, 31], [2, 33], [2, 36], [2, 37], [2, 39], [3, 5], [3, 6], [3, 7], [3, 8], [3, 13], [3, 15], [3, 17], [3, 23], [3, 24], [3, 25], [3, 26], [3, 27], [3, 28], [3, 31], [3, 35], [3, 36], [3, 37], [4, 5], [4, 6], [4, 7], [4, 9], [4, 13], [4, 16], [4, 17], [4, 18], [4, 19], [4, 20], [4, 21], [4, 24], [4, 25], [4, 29], [4, 30], [4, 31], [4, 32], [4, 33], [4, 35], [4, 36], [4, 38], [5, 7], [5, 10], [5, 11], [5, 14], [5, 18], [5, 20], [5, 24], [5, 26], [5, 27], [5, 28], [5, 34], [5, 35], [5, 36], [5, 38], [6, 8], [6, 11], [6, 12], [6, 13], [6, 14], [6, 15], [6, 19], [6, 22], [6, 24], [6, 25], [6, 28], [6, 30], [6, 31], [6, 32], [6, 33], [6, 34], [6, 37], [7, 8], [7, 12], [7, 14], [7, 15], [7, 16], [7, 18], [7, 20], [7, 21], [7, 22], [7, 23], [7, 24], [7, 25], [7, 26], [7, 27], [7, 28], [7, 29], [7, 32], [7, 33], [7, 34], [7, 35], [7, 38], [7, 39], [8, 12], [8, 13], [8, 14], [8, 15], [8, 16], [8, 17], [8, 18], [8, 19], [8, 22], [8, 23], [8, 24], [8, 26], [8, 27], [8, 28], [8, 29], [8, 31], [8, 32], [8, 33], [8, 34], [8, 35], [8, 37], [8, 38], [8, 39], [9, 11], [9, 12], [9, 13], [9, 15], [9, 18], [9, 22], [9, 26], [9, 27], [9, 28], [9, 29], [9, 30], [9, 31], [9, 33], [9, 34], [9, 35], [9, 36], [9, 37], [10, 13], [10, 14], [10, 17], [10, 19], [10, 20], [10, 23], [10, 25], [10, 27], [10, 29], [10, 30], [10, 33], [10, 36], [10, 38], [11, 12], [11, 13], [11, 17], [11, 18], [11, 20], [11, 21], [11, 23], [11, 25], [11, 30], [11, 32], [11, 33], [11, 34], [11, 36], [11, 37], [11, 38], [11, 39], [12, 13], [12, 14], [12, 16], [12, 17], [12, 18], [12, 20], [12, 21], [12, 22], [12, 24], [12, 26], [12, 29], [12, 30], [12, 31], [12, 32], [12, 38], [12, 39], [13, 14], [13, 16], [13, 19], [13, 20], [13, 21], [13, 24], [13, 25], [13, 26], [13, 27], [13, 28], [13, 30], [13, 32], [13, 34], [13, 36], [13, 38], [13, 39], [14, 15], [14, 17], [14, 20], [14, 21], [14, 23], [14, 24], [14, 26], [14, 28], [14, 32], [14, 33], [14, 36], [14, 38], [14, 39], [15, 16], [15, 18], [15, 19], [15, 20], [15, 21], [15, 23], [15, 24], [15, 25], [15, 27], [15, 28], [15, 31], [15, 32], [15, 33], [15, 35], [15, 36], [16, 19], [16, 20], [16, 21], [16, 22], [16, 24], [16, 25], [16, 27], [16, 28], [16, 30], [16, 33], [16, 34], [16, 39], [17, 19], [17, 22], [17, 23], [17, 24], [17, 27], [17, 29], [17, 30], [17, 32], [17, 33], [17, 36], [17, 38], [17, 39], [18, 19], [18, 21], [18, 22], [18, 23], [18, 25], [18, 26], [18, 29], [18, 33], [18, 34], [18, 37], [18, 38], [18, 39], [19, 20], [19, 22], [19, 23], [19, 24], [19, 25], [19, 26], [19, 27], [19, 29], [19, 32], [19, 36], [19, 37], [19, 39], [20, 21], [20, 26], [20, 28], [20, 29], [20, 30], [20, 31], [20, 32], [20, 35], [20, 36], [20, 37], [20, 39], [21, 22], [21, 24], [21, 29], [21, 30], [21, 32], [21, 33], [21, 34], [21, 37], [21, 38], [22, 24], [22, 25], [22, 26], [22, 27], [22, 28], [22, 30], [22, 32], [22, 33], [22, 39], [23, 24], [23, 25], [23, 26], [23, 27], [23, 28], [23, 33], [23, 36], [23, 37], [23, 39], [24, 25], [24, 26], [24, 27], [24, 28], [24, 29], [24, 30], [24, 33], [24, 34], [24, 38], [24, 39], [25, 29], [25, 30], [25, 32], [25, 33], [25, 39], [26, 27], [26, 28], [26, 29], [26, 30], [26, 34], [26, 35], [26, 36], [26, 38], [26, 39], [27, 28], [27, 32], [27, 33], [27, 34], [28, 30], [28, 35], [29, 32], [29, 34], [29, 35], [29, 36], [29, 37], [30, 32], [30, 34], [30, 36], [30, 38], [30, 39], [31, 33], [31, 35], [31, 37], [32, 34], [32, 36], [33, 34], [33, 35], [33, 36], [33, 38], [34, 35], [34, 37], [34, 39], [35, 36], [35, 38], [36, 38], [37, 38]], "family": "mc_max_clique", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-max-clique-l2-s7/solution/solve.sh b/tasks/construct-mc-max-clique-l2-s7/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..ebdb143939ad611846608efbb09943ef038c81fb --- /dev/null +++ b/tasks/construct-mc-max-clique-l2-s7/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"clique": [0, 1, 11, 12, 13, 20, 30, 39]} +RLMATH_EOF diff --git a/tasks/construct-mc-max-clique-l2-s7/tests/check.py b/tasks/construct-mc-max-clique-l2-s7/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..e3f70dbd5b155a3514c2102aa4ad460201495210 --- /dev/null +++ b/tasks/construct-mc-max-clique-l2-s7/tests/check.py @@ -0,0 +1,18 @@ +"""Clique of size >= k in a given graph (MathConstraint max_clique decision version, CC-BY-4.0).""" +import itertools + +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["n"], inst["k"] + S = int_list(ans.get("clique"), None, 0, n - 1, "clique") + if len(set(S)) != len(S): + raise Invalid("repeated vertex") + if len(S) < k: + raise Invalid(f"clique has {len(S)} vertices, need at least {k}") + E = {(u, v) for u, v in inst["edges"]} + for u, v in itertools.combinations(sorted(S), 2): + if (u, v) not in E: + raise Invalid(f"vertices {u} and {v} are not adjacent") + return None, {"size": len(S)} diff --git a/tasks/construct-mc-max-clique-l2-s7/tests/instance.json b/tasks/construct-mc-max-clique-l2-s7/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..ec79a3c10dd98742e8487090f6140c6561bdb764 --- /dev/null +++ b/tasks/construct-mc-max-clique-l2-s7/tests/instance.json @@ -0,0 +1 @@ +{"n": 40, "k": 8, "edges": [[0, 1], [0, 4], [0, 6], [0, 7], [0, 9], [0, 11], [0, 12], [0, 13], [0, 14], [0, 17], [0, 18], [0, 20], [0, 21], [0, 22], [0, 29], [0, 30], [0, 31], [0, 35], [0, 36], [0, 37], [0, 38], [0, 39], [1, 2], [1, 3], [1, 4], [1, 7], [1, 11], [1, 12], [1, 13], [1, 15], [1, 17], [1, 18], [1, 20], [1, 21], [1, 22], [1, 27], [1, 30], [1, 31], [1, 33], [1, 34], [1, 39], [2, 6], [2, 7], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 19], [2, 21], [2, 23], [2, 25], [2, 29], [2, 30], [2, 31], [2, 33], [2, 36], [2, 37], [2, 39], [3, 5], [3, 6], [3, 7], [3, 8], [3, 13], [3, 15], [3, 17], [3, 23], [3, 24], [3, 25], [3, 26], [3, 27], [3, 28], [3, 31], [3, 35], [3, 36], [3, 37], [4, 5], [4, 6], [4, 7], [4, 9], [4, 13], [4, 16], [4, 17], [4, 18], [4, 19], [4, 20], [4, 21], [4, 24], [4, 25], [4, 29], [4, 30], [4, 31], [4, 32], [4, 33], [4, 35], [4, 36], [4, 38], [5, 7], [5, 10], [5, 11], [5, 14], [5, 18], [5, 20], [5, 24], [5, 26], [5, 27], [5, 28], [5, 34], [5, 35], [5, 36], [5, 38], [6, 8], [6, 11], [6, 12], [6, 13], [6, 14], [6, 15], [6, 19], [6, 22], [6, 24], [6, 25], [6, 28], [6, 30], [6, 31], [6, 32], [6, 33], [6, 34], [6, 37], [7, 8], [7, 12], [7, 14], [7, 15], [7, 16], [7, 18], [7, 20], [7, 21], [7, 22], [7, 23], [7, 24], [7, 25], [7, 26], [7, 27], [7, 28], [7, 29], [7, 32], [7, 33], [7, 34], [7, 35], [7, 38], [7, 39], [8, 12], [8, 13], [8, 14], [8, 15], [8, 16], [8, 17], [8, 18], [8, 19], [8, 22], [8, 23], [8, 24], [8, 26], [8, 27], [8, 28], [8, 29], [8, 31], [8, 32], [8, 33], [8, 34], [8, 35], [8, 37], [8, 38], [8, 39], [9, 11], [9, 12], [9, 13], [9, 15], [9, 18], [9, 22], [9, 26], [9, 27], [9, 28], [9, 29], [9, 30], [9, 31], [9, 33], [9, 34], [9, 35], [9, 36], [9, 37], [10, 13], [10, 14], [10, 17], [10, 19], [10, 20], [10, 23], [10, 25], [10, 27], [10, 29], [10, 30], [10, 33], [10, 36], [10, 38], [11, 12], [11, 13], [11, 17], [11, 18], [11, 20], [11, 21], [11, 23], [11, 25], [11, 30], [11, 32], [11, 33], [11, 34], [11, 36], [11, 37], [11, 38], [11, 39], [12, 13], [12, 14], [12, 16], [12, 17], [12, 18], [12, 20], [12, 21], [12, 22], [12, 24], [12, 26], [12, 29], [12, 30], [12, 31], [12, 32], [12, 38], [12, 39], [13, 14], [13, 16], [13, 19], [13, 20], [13, 21], [13, 24], [13, 25], [13, 26], [13, 27], [13, 28], [13, 30], [13, 32], [13, 34], [13, 36], [13, 38], [13, 39], [14, 15], [14, 17], [14, 20], [14, 21], [14, 23], [14, 24], [14, 26], [14, 28], [14, 32], [14, 33], [14, 36], [14, 38], [14, 39], [15, 16], [15, 18], [15, 19], [15, 20], [15, 21], [15, 23], [15, 24], [15, 25], [15, 27], [15, 28], [15, 31], [15, 32], [15, 33], [15, 35], [15, 36], [16, 19], [16, 20], [16, 21], [16, 22], [16, 24], [16, 25], [16, 27], [16, 28], [16, 30], [16, 33], [16, 34], [16, 39], [17, 19], [17, 22], [17, 23], [17, 24], [17, 27], [17, 29], [17, 30], [17, 32], [17, 33], [17, 36], [17, 38], [17, 39], [18, 19], [18, 21], [18, 22], [18, 23], [18, 25], [18, 26], [18, 29], [18, 33], [18, 34], [18, 37], [18, 38], [18, 39], [19, 20], [19, 22], [19, 23], [19, 24], [19, 25], [19, 26], [19, 27], [19, 29], [19, 32], [19, 36], [19, 37], [19, 39], [20, 21], [20, 26], [20, 28], [20, 29], [20, 30], [20, 31], [20, 32], [20, 35], [20, 36], [20, 37], [20, 39], [21, 22], [21, 24], [21, 29], [21, 30], [21, 32], [21, 33], [21, 34], [21, 37], [21, 38], [22, 24], [22, 25], [22, 26], [22, 27], [22, 28], [22, 30], [22, 32], [22, 33], [22, 39], [23, 24], [23, 25], [23, 26], [23, 27], [23, 28], [23, 33], [23, 36], [23, 37], [23, 39], [24, 25], [24, 26], [24, 27], [24, 28], [24, 29], [24, 30], [24, 33], [24, 34], [24, 38], [24, 39], [25, 29], [25, 30], [25, 32], [25, 33], [25, 39], [26, 27], [26, 28], [26, 29], [26, 30], [26, 34], [26, 35], [26, 36], [26, 38], [26, 39], [27, 28], [27, 32], [27, 33], [27, 34], [28, 30], [28, 35], [29, 32], [29, 34], [29, 35], [29, 36], [29, 37], [30, 32], [30, 34], [30, 36], [30, 38], [30, 39], [31, 33], [31, 35], [31, 37], [32, 34], [32, 36], [33, 34], [33, 35], [33, 36], [33, 38], [34, 35], [34, 37], [34, 39], [35, 36], [35, 38], [36, 38], [37, 38]], "family": "mc_max_clique", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-max-clique-l2-s7/tests/run.py b/tasks/construct-mc-max-clique-l2-s7/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-max-clique-l2-s7/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-max-clique-l2-s7/tests/test.sh b/tasks/construct-mc-max-clique-l2-s7/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-max-clique-l2-s7/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-max-clique-l2-s9/environment/Dockerfile b/tasks/construct-mc-max-clique-l2-s9/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-max-clique-l2-s9/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-max-clique-l2-s9/environment/instance.json b/tasks/construct-mc-max-clique-l2-s9/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..0854dff843c6741806d6966aa6c51f3f00a48576 --- /dev/null +++ b/tasks/construct-mc-max-clique-l2-s9/environment/instance.json @@ -0,0 +1 @@ +{"n": 40, "k": 8, "edges": [[0, 1], [0, 2], [0, 3], [0, 6], [0, 8], [0, 10], [0, 13], [0, 15], [0, 16], [0, 19], [0, 20], [0, 21], [0, 24], [0, 25], [0, 26], [0, 27], [0, 29], [0, 31], [0, 33], [0, 35], [0, 36], [0, 37], [0, 38], [0, 39], [1, 2], [1, 4], [1, 6], [1, 9], [1, 10], [1, 12], [1, 13], [1, 15], [1, 16], [1, 17], [1, 18], [1, 22], [1, 24], [1, 25], [1, 26], [1, 27], [1, 29], [1, 31], [1, 32], [1, 33], [1, 34], [1, 38], [2, 4], [2, 5], [2, 7], [2, 8], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 17], [2, 19], [2, 20], [2, 21], [2, 23], [2, 32], [2, 33], [2, 37], [2, 39], [3, 4], [3, 5], [3, 7], [3, 8], [3, 12], [3, 18], [3, 19], [3, 20], [3, 21], [3, 22], [3, 23], [3, 24], [3, 25], [3, 26], [3, 29], [3, 30], [3, 34], [3, 35], [3, 38], [3, 39], [4, 5], [4, 6], [4, 7], [4, 8], [4, 9], [4, 15], [4, 16], [4, 18], [4, 23], [4, 26], [4, 29], [4, 37], [4, 39], [5, 7], [5, 8], [5, 10], [5, 13], [5, 14], [5, 16], [5, 17], [5, 18], [5, 19], [5, 22], [5, 23], [5, 24], [5, 25], [5, 27], [5, 32], [5, 34], [5, 39], [6, 8], [6, 9], [6, 10], [6, 11], [6, 12], [6, 13], [6, 17], [6, 18], [6, 19], [6, 20], [6, 22], [6, 23], [6, 24], [6, 25], [6, 26], [6, 27], [6, 31], [6, 35], [6, 36], [6, 39], [7, 9], [7, 11], [7, 14], [7, 18], [7, 21], [7, 23], [7, 27], [7, 29], [7, 31], [7, 33], [7, 35], [7, 36], [7, 39], [8, 9], [8, 10], [8, 14], [8, 15], [8, 17], [8, 18], [8, 19], [8, 20], [8, 21], [8, 23], [8, 24], [8, 26], [8, 27], [8, 29], [8, 30], [8, 31], [8, 32], [8, 33], [8, 36], [8, 39], [9, 10], [9, 12], [9, 14], [9, 17], [9, 22], [9, 23], [9, 28], [9, 29], [9, 30], [9, 34], [9, 35], [9, 36], [10, 11], [10, 12], [10, 13], [10, 19], [10, 23], [10, 24], [10, 27], [10, 29], [10, 30], [10, 33], [10, 34], [10, 35], [10, 36], [10, 37], [11, 13], [11, 14], [11, 15], [11, 16], [11, 19], [11, 21], [11, 25], [11, 26], [11, 33], [11, 37], [12, 13], [12, 14], [12, 15], [12, 18], [12, 19], [12, 21], [12, 23], [12, 25], [12, 26], [12, 27], [12, 28], [12, 36], [12, 39], [13, 14], [13, 15], [13, 17], [13, 19], [13, 20], [13, 21], [13, 22], [13, 24], [13, 26], [13, 27], [13, 28], [13, 29], [13, 30], [13, 33], [13, 34], [13, 36], [13, 37], [13, 38], [14, 16], [14, 18], [14, 19], [14, 20], [14, 21], [14, 22], [14, 24], [14, 25], [14, 26], [14, 31], [14, 32], [14, 33], [14, 34], [14, 35], [14, 39], [15, 16], [15, 17], [15, 18], [15, 20], [15, 23], [15, 24], [15, 25], [15, 28], [15, 29], [15, 32], [15, 34], [15, 35], [15, 38], [15, 39], [16, 18], [16, 21], [16, 22], [16, 23], [16, 25], [16, 26], [16, 27], [16, 28], [16, 30], [16, 33], [16, 35], [16, 36], [16, 38], [16, 39], [17, 19], [17, 20], [17, 23], [17, 25], [17, 26], [17, 30], [17, 31], [17, 33], [17, 35], [17, 36], [17, 37], [18, 20], [18, 21], [18, 25], [18, 26], [18, 29], [18, 31], [18, 34], [18, 36], [18, 38], [18, 39], [19, 20], [19, 21], [19, 24], [19, 27], [19, 29], [19, 31], [19, 32], [19, 33], [19, 35], [19, 36], [19, 38], [20, 21], [20, 23], [20, 26], [20, 27], [20, 30], [20, 31], [20, 32], [20, 34], [20, 35], [20, 36], [20, 37], [20, 38], [21, 22], [21, 24], [21, 25], [21, 26], [21, 28], [21, 30], [21, 32], [21, 34], [21, 36], [22, 25], [22, 28], [22, 29], [22, 30], [22, 33], [22, 35], [22, 36], [23, 25], [23, 29], [23, 30], [23, 32], [23, 34], [23, 35], [23, 36], [23, 37], [23, 38], [23, 39], [24, 25], [24, 26], [24, 27], [24, 28], [24, 29], [24, 31], [24, 35], [24, 36], [25, 26], [25, 27], [25, 30], [25, 32], [25, 33], [25, 36], [26, 30], [26, 31], [26, 34], [26, 35], [26, 37], [26, 38], [27, 28], [27, 29], [27, 31], [27, 35], [27, 36], [28, 30], [28, 33], [28, 34], [28, 37], [29, 31], [29, 32], [29, 35], [29, 38], [30, 32], [30, 34], [30, 36], [30, 37], [30, 38], [31, 32], [31, 36], [31, 39], [32, 34], [32, 35], [33, 35], [33, 37], [33, 38], [34, 36], [34, 38], [35, 36], [35, 39], [36, 39], [38, 39]], "family": "mc_max_clique", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-max-clique-l2-s9/solution/solve.sh b/tasks/construct-mc-max-clique-l2-s9/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..1de6f84d419d8d65ade3290f2285fdb0461bd555 --- /dev/null +++ b/tasks/construct-mc-max-clique-l2-s9/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"clique": [0, 6, 8, 19, 24, 27, 31, 36]} +RLMATH_EOF diff --git a/tasks/construct-mc-max-clique-l2-s9/tests/check.py b/tasks/construct-mc-max-clique-l2-s9/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..e3f70dbd5b155a3514c2102aa4ad460201495210 --- /dev/null +++ b/tasks/construct-mc-max-clique-l2-s9/tests/check.py @@ -0,0 +1,18 @@ +"""Clique of size >= k in a given graph (MathConstraint max_clique decision version, CC-BY-4.0).""" +import itertools + +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["n"], inst["k"] + S = int_list(ans.get("clique"), None, 0, n - 1, "clique") + if len(set(S)) != len(S): + raise Invalid("repeated vertex") + if len(S) < k: + raise Invalid(f"clique has {len(S)} vertices, need at least {k}") + E = {(u, v) for u, v in inst["edges"]} + for u, v in itertools.combinations(sorted(S), 2): + if (u, v) not in E: + raise Invalid(f"vertices {u} and {v} are not adjacent") + return None, {"size": len(S)} diff --git a/tasks/construct-mc-max-clique-l2-s9/tests/instance.json b/tasks/construct-mc-max-clique-l2-s9/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..0854dff843c6741806d6966aa6c51f3f00a48576 --- /dev/null +++ b/tasks/construct-mc-max-clique-l2-s9/tests/instance.json @@ -0,0 +1 @@ +{"n": 40, "k": 8, "edges": [[0, 1], [0, 2], [0, 3], [0, 6], [0, 8], [0, 10], [0, 13], [0, 15], [0, 16], [0, 19], [0, 20], [0, 21], [0, 24], [0, 25], [0, 26], [0, 27], [0, 29], [0, 31], [0, 33], [0, 35], [0, 36], [0, 37], [0, 38], [0, 39], [1, 2], [1, 4], [1, 6], [1, 9], [1, 10], [1, 12], [1, 13], [1, 15], [1, 16], [1, 17], [1, 18], [1, 22], [1, 24], [1, 25], [1, 26], [1, 27], [1, 29], [1, 31], [1, 32], [1, 33], [1, 34], [1, 38], [2, 4], [2, 5], [2, 7], [2, 8], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 17], [2, 19], [2, 20], [2, 21], [2, 23], [2, 32], [2, 33], [2, 37], [2, 39], [3, 4], [3, 5], [3, 7], [3, 8], [3, 12], [3, 18], [3, 19], [3, 20], [3, 21], [3, 22], [3, 23], [3, 24], [3, 25], [3, 26], [3, 29], [3, 30], [3, 34], [3, 35], [3, 38], [3, 39], [4, 5], [4, 6], [4, 7], [4, 8], [4, 9], [4, 15], [4, 16], [4, 18], [4, 23], [4, 26], [4, 29], [4, 37], [4, 39], [5, 7], [5, 8], [5, 10], [5, 13], [5, 14], [5, 16], [5, 17], [5, 18], [5, 19], [5, 22], [5, 23], [5, 24], [5, 25], [5, 27], [5, 32], [5, 34], [5, 39], [6, 8], [6, 9], [6, 10], [6, 11], [6, 12], [6, 13], [6, 17], [6, 18], [6, 19], [6, 20], [6, 22], [6, 23], [6, 24], [6, 25], [6, 26], [6, 27], [6, 31], [6, 35], [6, 36], [6, 39], [7, 9], [7, 11], [7, 14], [7, 18], [7, 21], [7, 23], [7, 27], [7, 29], [7, 31], [7, 33], [7, 35], [7, 36], [7, 39], [8, 9], [8, 10], [8, 14], [8, 15], [8, 17], [8, 18], [8, 19], [8, 20], [8, 21], [8, 23], [8, 24], [8, 26], [8, 27], [8, 29], [8, 30], [8, 31], [8, 32], [8, 33], [8, 36], [8, 39], [9, 10], [9, 12], [9, 14], [9, 17], [9, 22], [9, 23], [9, 28], [9, 29], [9, 30], [9, 34], [9, 35], [9, 36], [10, 11], [10, 12], [10, 13], [10, 19], [10, 23], [10, 24], [10, 27], [10, 29], [10, 30], [10, 33], [10, 34], [10, 35], [10, 36], [10, 37], [11, 13], [11, 14], [11, 15], [11, 16], [11, 19], [11, 21], [11, 25], [11, 26], [11, 33], [11, 37], [12, 13], [12, 14], [12, 15], [12, 18], [12, 19], [12, 21], [12, 23], [12, 25], [12, 26], [12, 27], [12, 28], [12, 36], [12, 39], [13, 14], [13, 15], [13, 17], [13, 19], [13, 20], [13, 21], [13, 22], [13, 24], [13, 26], [13, 27], [13, 28], [13, 29], [13, 30], [13, 33], [13, 34], [13, 36], [13, 37], [13, 38], [14, 16], [14, 18], [14, 19], [14, 20], [14, 21], [14, 22], [14, 24], [14, 25], [14, 26], [14, 31], [14, 32], [14, 33], [14, 34], [14, 35], [14, 39], [15, 16], [15, 17], [15, 18], [15, 20], [15, 23], [15, 24], [15, 25], [15, 28], [15, 29], [15, 32], [15, 34], [15, 35], [15, 38], [15, 39], [16, 18], [16, 21], [16, 22], [16, 23], [16, 25], [16, 26], [16, 27], [16, 28], [16, 30], [16, 33], [16, 35], [16, 36], [16, 38], [16, 39], [17, 19], [17, 20], [17, 23], [17, 25], [17, 26], [17, 30], [17, 31], [17, 33], [17, 35], [17, 36], [17, 37], [18, 20], [18, 21], [18, 25], [18, 26], [18, 29], [18, 31], [18, 34], [18, 36], [18, 38], [18, 39], [19, 20], [19, 21], [19, 24], [19, 27], [19, 29], [19, 31], [19, 32], [19, 33], [19, 35], [19, 36], [19, 38], [20, 21], [20, 23], [20, 26], [20, 27], [20, 30], [20, 31], [20, 32], [20, 34], [20, 35], [20, 36], [20, 37], [20, 38], [21, 22], [21, 24], [21, 25], [21, 26], [21, 28], [21, 30], [21, 32], [21, 34], [21, 36], [22, 25], [22, 28], [22, 29], [22, 30], [22, 33], [22, 35], [22, 36], [23, 25], [23, 29], [23, 30], [23, 32], [23, 34], [23, 35], [23, 36], [23, 37], [23, 38], [23, 39], [24, 25], [24, 26], [24, 27], [24, 28], [24, 29], [24, 31], [24, 35], [24, 36], [25, 26], [25, 27], [25, 30], [25, 32], [25, 33], [25, 36], [26, 30], [26, 31], [26, 34], [26, 35], [26, 37], [26, 38], [27, 28], [27, 29], [27, 31], [27, 35], [27, 36], [28, 30], [28, 33], [28, 34], [28, 37], [29, 31], [29, 32], [29, 35], [29, 38], [30, 32], [30, 34], [30, 36], [30, 37], [30, 38], [31, 32], [31, 36], [31, 39], [32, 34], [32, 35], [33, 35], [33, 37], [33, 38], [34, 36], [34, 38], [35, 36], [35, 39], [36, 39], [38, 39]], "family": "mc_max_clique", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-max-clique-l2-s9/tests/run.py b/tasks/construct-mc-max-clique-l2-s9/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-max-clique-l2-s9/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-max-clique-l2-s9/tests/test.sh b/tasks/construct-mc-max-clique-l2-s9/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-max-clique-l2-s9/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-max-clique-l6-s1/environment/Dockerfile b/tasks/construct-mc-max-clique-l6-s1/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-max-clique-l6-s1/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-max-clique-l6-s1/environment/instance.json b/tasks/construct-mc-max-clique-l6-s1/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..4f4ecbcede27140fdc592f24910a02cac86a83e7 --- /dev/null +++ b/tasks/construct-mc-max-clique-l6-s1/environment/instance.json @@ -0,0 +1 @@ +{"n": 120, "k": 13, "edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 8], [0, 9], [0, 10], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 20], [0, 21], [0, 22], [0, 24], [0, 25], [0, 26], [0, 38], [0, 41], [0, 42], [0, 44], [0, 46], [0, 48], [0, 49], [0, 50], [0, 51], [0, 53], [0, 54], [0, 57], [0, 58], [0, 59], [0, 60], [0, 62], [0, 64], [0, 68], [0, 71], [0, 72], [0, 73], [0, 76], [0, 77], [0, 78], [0, 82], [0, 85], [0, 87], [0, 89], [0, 90], [0, 92], [0, 97], [0, 98], [0, 102], [0, 104], [0, 105], [0, 108], [0, 109], [0, 113], [0, 115], [0, 116], [1, 5], [1, 6], [1, 7], [1, 8], [1, 13], [1, 15], [1, 19], [1, 21], [1, 23], [1, 24], [1, 25], [1, 27], [1, 29], [1, 36], [1, 37], [1, 38], [1, 42], [1, 44], [1, 45], [1, 47], [1, 51], [1, 54], [1, 58], [1, 59], [1, 62], [1, 65], [1, 66], [1, 67], [1, 69], [1, 71], [1, 73], [1, 75], [1, 76], [1, 77], [1, 79], [1, 81], [1, 82], [1, 84], [1, 86], [1, 89], [1, 90], [1, 91], [1, 93], [1, 95], [1, 97], [1, 98], [1, 101], [1, 105], [1, 106], [1, 108], [1, 111], [1, 112], [1, 114], [1, 116], [1, 119], [2, 3], [2, 5], [2, 6], [2, 7], [2, 8], [2, 11], [2, 12], [2, 16], [2, 21], [2, 25], [2, 29], [2, 33], [2, 34], [2, 35], [2, 38], [2, 39], [2, 42], [2, 43], [2, 44], [2, 45], [2, 46], [2, 47], [2, 51], [2, 52], [2, 59], [2, 60], [2, 61], [2, 62], [2, 65], [2, 70], [2, 71], [2, 72], [2, 73], [2, 74], [2, 75], [2, 81], [2, 82], [2, 83], [2, 84], [2, 85], [2, 87], [2, 88], [2, 90], [2, 92], [2, 94], [2, 96], [2, 97], [2, 98], [2, 101], [2, 104], [2, 105], [2, 106], [2, 115], [2, 117], [2, 118], [2, 119], [3, 7], [3, 8], [3, 9], [3, 13], [3, 15], [3, 16], [3, 18], [3, 19], [3, 20], [3, 21], [3, 27], [3, 28], [3, 30], [3, 34], [3, 35], [3, 39], [3, 40], [3, 42], [3, 46], [3, 47], [3, 49], [3, 50], [3, 51], [3, 54], [3, 57], [3, 59], [3, 64], [3, 67], [3, 68], [3, 69], [3, 70], [3, 71], [3, 72], [3, 74], [3, 75], [3, 76], [3, 79], [3, 80], [3, 82], [3, 83], [3, 84], [3, 86], [3, 87], [3, 90], [3, 91], [3, 98], [3, 101], [3, 102], [3, 105], [3, 113], [3, 114], [3, 115], [3, 116], [3, 117], [4, 7], [4, 10], [4, 11], [4, 13], [4, 15], [4, 16], [4, 17], [4, 19], [4, 20], [4, 21], [4, 22], [4, 24], [4, 25], [4, 27], [4, 29], [4, 30], [4, 31], [4, 32], [4, 33], [4, 35], [4, 41], [4, 42], [4, 43], [4, 45], [4, 46], [4, 49], [4, 52], [4, 58], [4, 62], [4, 66], [4, 67], [4, 68], [4, 73], [4, 74], [4, 75], [4, 77], [4, 78], [4, 79], [4, 82], [4, 86], [4, 87], [4, 90], [4, 91], [4, 94], [4, 96], [4, 97], [4, 98], [4, 101], [4, 103], [4, 106], [4, 111], [4, 113], [4, 114], [4, 119], [5, 6], [5, 9], [5, 11], [5, 12], [5, 13], [5, 17], [5, 20], [5, 22], [5, 25], [5, 26], [5, 28], [5, 31], [5, 32], [5, 33], [5, 35], [5, 38], [5, 39], [5, 41], [5, 42], [5, 43], [5, 44], [5, 47], [5, 48], [5, 50], [5, 54], [5, 56], [5, 57], [5, 58], [5, 59], [5, 62], [5, 63], [5, 64], [5, 65], [5, 66], [5, 68], [5, 70], [5, 72], [5, 78], [5, 79], [5, 80], [5, 83], [5, 84], [5, 92], [5, 93], [5, 94], [5, 95], [5, 96], [5, 97], [5, 100], [5, 101], [5, 104], [5, 105], [5, 107], [5, 108], [5, 111], [5, 112], [5, 113], [5, 114], [6, 8], [6, 12], [6, 15], [6, 18], [6, 19], [6, 21], [6, 23], [6, 24], [6, 25], [6, 26], [6, 28], [6, 30], [6, 32], [6, 33], [6, 34], [6, 37], [6, 38], [6, 39], [6, 40], [6, 41], [6, 43], [6, 44], [6, 45], [6, 46], [6, 47], [6, 48], [6, 49], [6, 51], [6, 52], [6, 56], [6, 58], [6, 60], [6, 62], [6, 63], [6, 65], [6, 66], [6, 68], [6, 69], [6, 70], [6, 73], [6, 75], [6, 76], [6, 77], [6, 79], [6, 81], [6, 85], [6, 86], [6, 87], [6, 88], [6, 90], [6, 93], [6, 96], [6, 101], [6, 104], [6, 109], [6, 110], [6, 114], [6, 116], [6, 117], [6, 118], [6, 119], [7, 11], [7, 14], [7, 15], [7, 17], [7, 19], [7, 22], [7, 23], [7, 24], [7, 25], [7, 26], [7, 28], [7, 29], [7, 30], [7, 31], [7, 32], [7, 35], [7, 36], [7, 39], [7, 42], [7, 43], [7, 47], [7, 48], [7, 50], [7, 51], [7, 52], [7, 53], [7, 55], [7, 62], [7, 63], [7, 66], [7, 67], [7, 70], [7, 72], [7, 73], [7, 74], [7, 75], [7, 76], [7, 77], [7, 78], [7, 81], [7, 82], [7, 84], [7, 85], [7, 88], [7, 89], [7, 90], [7, 91], [7, 96], [7, 97], [7, 98], [7, 100], [7, 104], [7, 105], [7, 106], [7, 108], [7, 109], [7, 117], [7, 119], [8, 13], [8, 14], [8, 16], [8, 19], [8, 20], [8, 22], [8, 27], [8, 29], [8, 30], [8, 32], [8, 33], [8, 36], [8, 37], [8, 40], [8, 41], [8, 42], [8, 44], [8, 45], [8, 46], [8, 49], [8, 51], [8, 54], [8, 55], [8, 57], [8, 59], [8, 60], [8, 69], [8, 70], [8, 71], [8, 72], [8, 76], [8, 77], [8, 78], [8, 79], [8, 82], [8, 84], [8, 85], [8, 89], [8, 90], [8, 91], [8, 94], [8, 95], [8, 100], [8, 101], [8, 103], [8, 104], [8, 106], [8, 108], [8, 109], [8, 111], [8, 112], [8, 115], [8, 116], [8, 117], [8, 119], [9, 10], [9, 12], [9, 16], [9, 19], [9, 21], [9, 22], [9, 23], [9, 24], [9, 26], [9, 27], [9, 28], [9, 29], [9, 31], [9, 35], [9, 36], [9, 38], [9, 39], [9, 41], [9, 42], [9, 46], [9, 49], [9, 50], [9, 56], [9, 60], [9, 64], [9, 65], [9, 68], [9, 69], [9, 71], [9, 72], [9, 73], [9, 75], [9, 76], [9, 79], [9, 88], [9, 89], [9, 94], [9, 98], [9, 99], [9, 100], [9, 101], [9, 102], [9, 103], [9, 106], [9, 108], [9, 109], [9, 117], [10, 11], [10, 16], [10, 19], [10, 20], [10, 21], [10, 22], [10, 25], [10, 28], [10, 31], [10, 32], [10, 34], [10, 35], [10, 36], [10, 37], [10, 38], [10, 39], [10, 40], [10, 42], [10, 46], [10, 48], [10, 50], [10, 51], [10, 52], [10, 54], [10, 59], [10, 60], [10, 61], [10, 62], [10, 65], [10, 66], [10, 67], [10, 68], [10, 69], [10, 70], [10, 71], [10, 72], [10, 74], [10, 78], [10, 79], [10, 83], [10, 85], [10, 87], [10, 90], [10, 91], [10, 92], [10, 93], [10, 94], [10, 99], [10, 102], [10, 103], [10, 105], [10, 106], [10, 108], [10, 111], [10, 112], [10, 113], [10, 114], [10, 119], [11, 12], [11, 14], [11, 17], [11, 20], [11, 21], [11, 23], [11, 24], [11, 26], [11, 27], [11, 30], [11, 32], [11, 33], [11, 34], [11, 36], [11, 37], [11, 38], [11, 39], [11, 40], [11, 41], [11, 43], [11, 45], [11, 46], [11, 47], [11, 50], [11, 53], [11, 54], [11, 55], [11, 58], [11, 59], [11, 62], [11, 63], [11, 64], [11, 65], [11, 66], [11, 67], [11, 72], [11, 73], [11, 74], [11, 76], [11, 79], [11, 83], [11, 87], [11, 88], [11, 89], [11, 91], [11, 93], [11, 95], [11, 97], [11, 99], [11, 101], [11, 103], [11, 106], [11, 109], [11, 110], [11, 115], [11, 116], [11, 117], [12, 13], [12, 14], [12, 15], [12, 19], [12, 20], [12, 27], [12, 30], [12, 32], [12, 33], [12, 34], [12, 35], [12, 43], [12, 45], [12, 49], [12, 51], [12, 52], [12, 54], [12, 55], [12, 57], [12, 58], [12, 59], [12, 61], [12, 62], [12, 63], [12, 64], [12, 66], [12, 68], [12, 74], [12, 78], [12, 80], [12, 81], [12, 86], [12, 87], [12, 88], [12, 90], [12, 91], [12, 92], [12, 94], [12, 95], [12, 96], [12, 99], [12, 101], [12, 102], [12, 103], [12, 104], [12, 107], [12, 114], [12, 115], [12, 116], [12, 119], [13, 14], [13, 15], [13, 16], [13, 18], [13, 20], [13, 22], [13, 23], [13, 24], [13, 25], [13, 26], [13, 28], [13, 30], [13, 31], [13, 32], [13, 33], [13, 34], [13, 35], [13, 36], [13, 41], [13, 42], [13, 46], [13, 49], [13, 51], [13, 52], [13, 55], [13, 56], [13, 58], [13, 59], [13, 60], [13, 61], [13, 62], [13, 64], [13, 65], [13, 67], [13, 68], [13, 70], [13, 71], [13, 72], [13, 73], [13, 79], [13, 80], [13, 84], [13, 85], [13, 89], [13, 93], [13, 95], [13, 96], [13, 97], [13, 100], [13, 103], [13, 104], [13, 105], [13, 106], [13, 107], [13, 108], [13, 110], [13, 111], [13, 112], [13, 114], [13, 115], [13, 117], [13, 119], [14, 15], [14, 17], [14, 19], [14, 20], [14, 24], [14, 25], [14, 27], [14, 30], [14, 31], [14, 33], [14, 36], [14, 37], [14, 38], [14, 40], [14, 41], [14, 43], [14, 45], [14, 46], [14, 47], [14, 49], [14, 51], [14, 52], [14, 53], [14, 54], [14, 55], [14, 57], [14, 58], [14, 61], [14, 62], [14, 64], [14, 65], [14, 69], [14, 71], [14, 78], [14, 79], [14, 80], [14, 81], [14, 82], [14, 84], [14, 85], [14, 86], [14, 89], [14, 91], [14, 92], [14, 93], [14, 95], [14, 101], [14, 102], [14, 104], [14, 105], [14, 106], [14, 107], [14, 111], [14, 113], [14, 114], [15, 16], [15, 18], [15, 19], [15, 20], [15, 21], [15, 22], [15, 23], [15, 26], [15, 28], [15, 29], [15, 30], [15, 31], [15, 33], [15, 34], [15, 36], [15, 38], [15, 39], [15, 40], [15, 43], [15, 45], [15, 48], [15, 51], [15, 54], [15, 55], [15, 57], [15, 59], [15, 61], [15, 62], [15, 63], [15, 64], [15, 66], [15, 67], [15, 68], [15, 70], [15, 71], [15, 74], [15, 75], [15, 79], [15, 80], [15, 82], [15, 85], [15, 86], [15, 89], [15, 92], [15, 93], [15, 95], [15, 97], [15, 98], [15, 103], [15, 104], [15, 105], [15, 107], [15, 108], [15, 109], [15, 110], [15, 111], [15, 113], [15, 115], [15, 116], [15, 119], [16, 17], [16, 18], [16, 19], [16, 20], [16, 24], [16, 25], [16, 28], [16, 29], [16, 30], [16, 31], [16, 33], [16, 38], [16, 39], [16, 42], [16, 43], [16, 47], [16, 51], [16, 53], [16, 55], [16, 57], [16, 63], [16, 64], [16, 67], [16, 69], [16, 71], [16, 72], [16, 73], [16, 74], [16, 76], [16, 77], [16, 78], [16, 79], [16, 81], [16, 84], [16, 85], [16, 89], [16, 90], [16, 91], [16, 93], [16, 94], [16, 95], [16, 96], [16, 97], [16, 98], [16, 99], [16, 100], [16, 102], [16, 103], [16, 105], [16, 106], [16, 108], [16, 109], [16, 110], [16, 111], [16, 112], [16, 113], [16, 115], [16, 116], [16, 117], [17, 25], [17, 27], [17, 29], [17, 30], [17, 34], [17, 35], [17, 40], [17, 41], [17, 43], [17, 45], [17, 47], [17, 51], [17, 52], [17, 53], [17, 54], [17, 55], [17, 57], [17, 59], [17, 60], [17, 63], [17, 64], [17, 67], [17, 69], [17, 70], [17, 71], [17, 74], [17, 75], [17, 77], [17, 79], [17, 81], [17, 82], [17, 83], [17, 84], [17, 87], [17, 92], [17, 95], [17, 96], [17, 100], [17, 101], [17, 102], [17, 105], [17, 106], [17, 107], [17, 110], [17, 111], [17, 113], [17, 115], [17, 116], [17, 118], [18, 19], [18, 20], [18, 22], [18, 23], [18, 24], [18, 25], [18, 31], [18, 32], [18, 38], [18, 39], [18, 40], [18, 41], [18, 42], [18, 44], [18, 47], [18, 51], [18, 53], [18, 54], [18, 55], [18, 56], [18, 57], [18, 58], [18, 61], [18, 65], [18, 68], [18, 70], [18, 73], [18, 74], [18, 77], [18, 78], [18, 81], [18, 85], [18, 87], [18, 88], [18, 92], [18, 94], [18, 96], [18, 99], [18, 100], [18, 101], [18, 103], [18, 104], [18, 105], [18, 106], [18, 107], [18, 108], [18, 109], [18, 110], [18, 111], [18, 116], [19, 23], [19, 27], [19, 30], [19, 32], [19, 33], [19, 34], [19, 36], [19, 37], [19, 38], [19, 40], [19, 42], [19, 43], [19, 44], [19, 45], [19, 46], [19, 49], [19, 50], [19, 53], [19, 54], [19, 55], [19, 56], [19, 59], [19, 61], [19, 66], [19, 74], [19, 80], [19, 81], [19, 82], [19, 85], [19, 86], [19, 89], [19, 90], [19, 91], [19, 94], [19, 95], [19, 96], [19, 97], [19, 98], [19, 101], [19, 102], [19, 103], [19, 105], [19, 108], [19, 111], [19, 118], [19, 119], [20, 21], [20, 23], [20, 24], [20, 27], [20, 28], [20, 31], [20, 32], [20, 33], [20, 36], [20, 37], [20, 38], [20, 43], [20, 44], [20, 46], [20, 48], [20, 49], [20, 54], [20, 55], [20, 56], [20, 58], [20, 59], [20, 63], [20, 64], [20, 65], [20, 69], [20, 70], [20, 71], [20, 77], [20, 78], [20, 80], [20, 81], [20, 82], [20, 83], [20, 86], [20, 90], [20, 91], [20, 92], [20, 93], [20, 94], [20, 95], [20, 96], [20, 99], [20, 101], [20, 103], [20, 105], [20, 107], [20, 109], [20, 113], [20, 114], [21, 26], [21, 29], [21, 31], [21, 32], [21, 33], [21, 34], [21, 37], [21, 40], [21, 43], [21, 44], [21, 46], [21, 47], [21, 48], [21, 50], [21, 52], [21, 53], [21, 55], [21, 56], [21, 58], [21, 60], [21, 61], [21, 62], [21, 64], [21, 65], [21, 67], [21, 69], [21, 70], [21, 71], [21, 73], [21, 74], [21, 76], [21, 77], [21, 80], [21, 81], [21, 84], [21, 85], [21, 88], [21, 89], [21, 90], [21, 91], [21, 92], [21, 93], [21, 95], [21, 97], [21, 106], [21, 107], [21, 109], [21, 110], [21, 111], [21, 112], [21, 114], [21, 119], [22, 23], [22, 26], [22, 29], [22, 31], [22, 33], [22, 34], [22, 35], [22, 37], [22, 38], [22, 39], [22, 43], [22, 45], [22, 48], [22, 50], [22, 52], [22, 54], [22, 58], [22, 60], [22, 61], [22, 62], [22, 63], [22, 64], [22, 65], [22, 69], [22, 71], [22, 72], [22, 75], [22, 76], [22, 78], [22, 79], [22, 80], [22, 83], [22, 84], [22, 88], [22, 91], [22, 92], [22, 96], [22, 99], [22, 103], [22, 105], [22, 106], [22, 108], [22, 110], [22, 111], [22, 112], [22, 116], [22, 117], [22, 118], [22, 119], [23, 24], [23, 25], [23, 26], [23, 27], [23, 28], [23, 30], [23, 31], [23, 32], [23, 34], [23, 37], [23, 38], [23, 40], [23, 42], [23, 43], [23, 45], [23, 48], [23, 50], [23, 53], [23, 54], [23, 59], [23, 61], [23, 62], [23, 64], [23, 65], [23, 66], [23, 67], [23, 70], [23, 72], [23, 73], [23, 75], [23, 76], [23, 77], [23, 79], [23, 81], [23, 82], [23, 83], [23, 88], [23, 92], [23, 96], [23, 99], [23, 100], [23, 101], [23, 103], [23, 109], [23, 110], [23, 111], [23, 115], [23, 117], [24, 25], [24, 29], [24, 34], [24, 40], [24, 42], [24, 44], [24, 45], [24, 49], [24, 51], [24, 53], [24, 56], [24, 60], [24, 64], [24, 66], [24, 67], [24, 69], [24, 70], [24, 71], [24, 72], [24, 77], [24, 78], [24, 80], [24, 82], [24, 83], [24, 84], [24, 85], [24, 86], [24, 87], [24, 89], [24, 90], [24, 91], [24, 93], [24, 96], [24, 98], [24, 100], [24, 102], [24, 105], [24, 108], [24, 110], [24, 112], [24, 113], [24, 114], [24, 116], [24, 117], [24, 119], [25, 26], [25, 28], [25, 29], [25, 30], [25, 31], [25, 32], [25, 35], [25, 36], [25, 38], [25, 40], [25, 41], [25, 43], [25, 45], [25, 46], [25, 47], [25, 49], [25, 51], [25, 52], [25, 53], [25, 55], [25, 61], [25, 62], [25, 63], [25, 64], [25, 65], [25, 66], [25, 72], [25, 75], [25, 76], [25, 77], [25, 78], [25, 79], [25, 80], [25, 81], [25, 83], [25, 84], [25, 85], [25, 89], [25, 90], [25, 91], [25, 93], [25, 96], [25, 98], [25, 103], [25, 108], [25, 109], [25, 111], [25, 112], [25, 113], [25, 114], [25, 116], [25, 119], [26, 27], [26, 29], [26, 30], [26, 31], [26, 34], [26, 35], [26, 37], [26, 39], [26, 41], [26, 44], [26, 46], [26, 48], [26, 49], [26, 52], [26, 55], [26, 56], [26, 58], [26, 60], [26, 62], [26, 63], [26, 67], [26, 68], [26, 70], [26, 72], [26, 73], [26, 74], [26, 75], [26, 76], [26, 77], [26, 80], [26, 85], [26, 86], [26, 88], [26, 89], [26, 92], [26, 96], [26, 97], [26, 98], [26, 100], [26, 101], [26, 104], [26, 105], [26, 106], [26, 108], [26, 109], [26, 110], [26, 114], [26, 116], [26, 119], [27, 28], [27, 31], [27, 33], [27, 34], [27, 37], [27, 38], [27, 39], [27, 41], [27, 42], [27, 50], [27, 58], [27, 61], [27, 66], [27, 70], [27, 73], [27, 74], [27, 76], [27, 77], [27, 80], [27, 82], [27, 86], [27, 87], [27, 89], [27, 91], [27, 92], [27, 95], [27, 100], [27, 101], [27, 103], [27, 104], [27, 107], [27, 111], [27, 112], [27, 113], [27, 117], [27, 118], [28, 30], [28, 33], [28, 34], [28, 35], [28, 36], [28, 39], [28, 41], [28, 42], [28, 47], [28, 50], [28, 51], [28, 55], [28, 56], [28, 58], [28, 59], [28, 60], [28, 62], [28, 64], [28, 65], [28, 69], [28, 70], [28, 74], [28, 75], [28, 76], [28, 78], [28, 79], [28, 80], [28, 81], [28, 82], [28, 83], [28, 85], [28, 88], [28, 91], [28, 92], [28, 96], [28, 101], [28, 102], [28, 104], [28, 108], [28, 111], [28, 113], [28, 117], [29, 31], [29, 36], [29, 38], [29, 39], [29, 40], [29, 43], [29, 44], [29, 45], [29, 46], [29, 47], [29, 48], [29, 50], [29, 51], [29, 52], [29, 56], [29, 57], [29, 60], [29, 61], [29, 63], [29, 64], [29, 69], [29, 70], [29, 71], [29, 72], [29, 74], [29, 75], [29, 76], [29, 77], [29, 79], [29, 80], [29, 83], [29, 85], [29, 86], [29, 87], [29, 89], [29, 92], [29, 93], [29, 94], [29, 95], [29, 96], [29, 98], [29, 100], [29, 105], [29, 106], [29, 111], [29, 113], [29, 118], [30, 31], [30, 35], [30, 36], [30, 37], [30, 39], [30, 41], [30, 42], [30, 43], [30, 45], [30, 47], [30, 48], [30, 50], [30, 51], [30, 52], [30, 56], [30, 60], [30, 61], [30, 62], [30, 63], [30, 67], [30, 68], [30, 72], [30, 73], [30, 74], [30, 75], [30, 76], [30, 78], [30, 79], [30, 80], [30, 82], [30, 84], [30, 85], [30, 87], [30, 90], [30, 91], [30, 92], [30, 94], [30, 96], [30, 97], [30, 98], [30, 99], [30, 100], [30, 101], [30, 102], [30, 104], [30, 105], [30, 106], [30, 108], [30, 109], [30, 110], [30, 111], [30, 112], [30, 114], [30, 115], [30, 116], [30, 118], [30, 119], [31, 34], [31, 36], [31, 37], [31, 38], [31, 39], [31, 40], [31, 44], [31, 45], [31, 48], [31, 49], [31, 50], [31, 53], [31, 54], [31, 56], [31, 58], [31, 65], [31, 66], [31, 67], [31, 69], [31, 71], [31, 73], [31, 74], [31, 75], [31, 77], [31, 82], [31, 86], [31, 88], [31, 89], [31, 91], [31, 93], [31, 95], [31, 97], [31, 98], [31, 99], [31, 100], [31, 102], [31, 103], [31, 104], [31, 107], [31, 108], [31, 109], [31, 110], [31, 111], [31, 112], [31, 113], [31, 114], [32, 33], [32, 36], [32, 38], [32, 39], [32, 42], [32, 43], [32, 50], [32, 52], [32, 55], [32, 58], [32, 60], [32, 63], [32, 64], [32, 65], [32, 66], [32, 69], [32, 73], [32, 75], [32, 76], [32, 77], [32, 79], [32, 80], [32, 82], [32, 84], [32, 85], [32, 88], [32, 89], [32, 90], [32, 95], [32, 97], [32, 101], [32, 103], [32, 104], [32, 107], [32, 110], [32, 111], [32, 113], [32, 117], [32, 119], [33, 34], [33, 35], [33, 38], [33, 39], [33, 40], [33, 43], [33, 44], [33, 45], [33, 48], [33, 49], [33, 50], [33, 55], [33, 57], [33, 60], [33, 62], [33, 66], [33, 67], [33, 70], [33, 71], [33, 75], [33, 78], [33, 80], [33, 82], [33, 84], [33, 85], [33, 86], [33, 88], [33, 91], [33, 92], [33, 97], [33, 98], [33, 100], [33, 102], [33, 107], [33, 109], [33, 112], [33, 114], [33, 118], [34, 36], [34, 39], [34, 40], [34, 42], [34, 43], [34, 45], [34, 50], [34, 52], [34, 54], [34, 59], [34, 62], [34, 67], [34, 68], [34, 72], [34, 73], [34, 74], [34, 79], [34, 80], [34, 81], [34, 85], [34, 90], [34, 91], [34, 92], [34, 96], [34, 98], [34, 101], [34, 106], [34, 107], [34, 108], [34, 111], [34, 112], [34, 113], [34, 114], [34, 115], [34, 117], [34, 118], [34, 119], [35, 36], [35, 38], [35, 39], [35, 42], [35, 43], [35, 45], [35, 46], [35, 50], [35, 51], [35, 52], [35, 53], [35, 55], [35, 57], [35, 58], [35, 60], [35, 61], [35, 62], [35, 63], [35, 65], [35, 67], [35, 69], [35, 72], [35, 73], [35, 75], [35, 76], [35, 77], [35, 78], [35, 82], [35, 85], [35, 89], [35, 90], [35, 91], [35, 93], [35, 95], [35, 96], [35, 97], [35, 98], [35, 99], [35, 101], [35, 102], [35, 103], [35, 104], [35, 105], [35, 106], [35, 108], [35, 109], [35, 110], [35, 111], [35, 112], [35, 114], [35, 115], [35, 117], [35, 119], [36, 38], [36, 41], [36, 44], [36, 45], [36, 47], [36, 51], [36, 52], [36, 53], [36, 55], [36, 58], [36, 59], [36, 63], [36, 66], [36, 74], [36, 75], [36, 77], [36, 80], [36, 84], [36, 86], [36, 87], [36, 91], [36, 94], [36, 97], [36, 100], [36, 101], [36, 102], [36, 103], [36, 104], [36, 106], [36, 107], [36, 108], [36, 110], [36, 116], [36, 117], [36, 118], [36, 119], [37, 39], [37, 40], [37, 41], [37, 42], [37, 44], [37, 46], [37, 50], [37, 51], [37, 52], [37, 57], [37, 58], [37, 61], [37, 62], [37, 63], [37, 64], [37, 68], [37, 70], [37, 78], [37, 82], [37, 83], [37, 84], [37, 85], [37, 87], [37, 91], [37, 92], [37, 95], [37, 97], [37, 102], [37, 103], [37, 105], [37, 107], [37, 108], [37, 115], [37, 116], [37, 118], [37, 119], [38, 39], [38, 42], [38, 43], [38, 44], [38, 45], [38, 48], [38, 50], [38, 51], [38, 53], [38, 54], [38, 55], [38, 57], [38, 59], [38, 62], [38, 63], [38, 64], [38, 66], [38, 68], [38, 69], [38, 70], [38, 73], [38, 75], [38, 76], [38, 77], [38, 81], [38, 82], [38, 83], [38, 85], [38, 88], [38, 93], [38, 94], [38, 95], [38, 97], [38, 100], [38, 101], [38, 105], [38, 107], [38, 108], [38, 111], [38, 112], [38, 114], [38, 115], [38, 116], [38, 117], [38, 118], [39, 41], [39, 44], [39, 45], [39, 46], [39, 51], [39, 53], [39, 54], [39, 55], [39, 57], [39, 58], [39, 59], [39, 60], [39, 61], [39, 63], [39, 64], [39, 65], [39, 68], [39, 74], [39, 75], [39, 76], [39, 78], [39, 81], [39, 83], [39, 88], [39, 92], [39, 93], [39, 95], [39, 96], [39, 99], [39, 100], [39, 102], [39, 103], [39, 109], [39, 112], [39, 113], [39, 114], [39, 115], [39, 117], [39, 118], [40, 41], [40, 42], [40, 44], [40, 48], [40, 49], [40, 51], [40, 53], [40, 54], [40, 56], [40, 61], [40, 64], [40, 66], [40, 67], [40, 68], [40, 69], [40, 72], [40, 73], [40, 74], [40, 75], [40, 78], [40, 79], [40, 80], [40, 82], [40, 83], [40, 84], [40, 87], [40, 88], [40, 89], [40, 91], [40, 92], [40, 94], [40, 95], [40, 97], [40, 98], [40, 100], [40, 101], [40, 102], [40, 103], [40, 105], [40, 106], [40, 107], [40, 110], [40, 111], [40, 112], [40, 113], [40, 116], [40, 117], [40, 119], [41, 42], [41, 44], [41, 45], [41, 47], [41, 48], [41, 50], [41, 53], [41, 57], [41, 59], [41, 60], [41, 63], [41, 64], [41, 71], [41, 72], [41, 73], [41, 74], [41, 75], [41, 76], [41, 77], [41, 79], [41, 80], [41, 81], [41, 82], [41, 84], [41, 85], [41, 87], [41, 88], [41, 89], [41, 91], [41, 96], [41, 98], [41, 99], [41, 101], [41, 102], [41, 103], [41, 105], [41, 111], [41, 112], [41, 113], [41, 119], [42, 45], [42, 50], [42, 57], [42, 59], [42, 65], [42, 66], [42, 67], [42, 68], [42, 69], [42, 70], [42, 71], [42, 72], [42, 73], [42, 74], [42, 76], [42, 83], [42, 88], [42, 89], [42, 90], [42, 91], [42, 92], [42, 96], [42, 97], [42, 100], [42, 103], [42, 105], [42, 106], [42, 108], [42, 111], [42, 112], [42, 114], [42, 116], [42, 117], [42, 118], [42, 119], [43, 44], [43, 45], [43, 46], [43, 49], [43, 53], [43, 57], [43, 59], [43, 61], [43, 62], [43, 64], [43, 65], [43, 66], [43, 68], [43, 70], [43, 72], [43, 75], [43, 76], [43, 79], [43, 80], [43, 81], [43, 82], [43, 84], [43, 86], [43, 91], [43, 92], [43, 94], [43, 95], [43, 96], [43, 97], [43, 98], [43, 100], [43, 102], [43, 103], [43, 104], [43, 108], [43, 110], [43, 111], [43, 116], [43, 118], [43, 119], [44, 46], [44, 51], [44, 52], [44, 53], [44, 55], [44, 56], [44, 57], [44, 58], [44, 59], [44, 64], [44, 65], [44, 67], [44, 68], [44, 70], [44, 71], [44, 72], [44, 74], [44, 75], [44, 77], [44, 80], [44, 82], [44, 83], [44, 84], [44, 88], [44, 89], [44, 90], [44, 91], [44, 100], [44, 102], [44, 106], [44, 107], [44, 111], [44, 113], [44, 115], [44, 117], [45, 49], [45, 50], [45, 51], [45, 53], [45, 56], [45, 58], [45, 59], [45, 60], [45, 67], [45, 69], [45, 70], [45, 72], [45, 73], [45, 77], [45, 78], [45, 79], [45, 81], [45, 83], [45, 84], [45, 85], [45, 86], [45, 88], [45, 89], [45, 91], [45, 93], [45, 94], [45, 95], [45, 97], [45, 100], [45, 101], [45, 102], [45, 108], [45, 110], [45, 111], [45, 112], [45, 113], [45, 114], [45, 115], [45, 117], [46, 47], [46, 48], [46, 49], [46, 50], [46, 52], [46, 55], [46, 58], [46, 59], [46, 60], [46, 64], [46, 66], [46, 73], [46, 74], [46, 77], [46, 78], [46, 79], [46, 80], [46, 84], [46, 85], [46, 87], [46, 88], [46, 89], [46, 91], [46, 92], [46, 97], [46, 99], [46, 100], [46, 101], [46, 102], [46, 103], [46, 105], [46, 108], [46, 110], [46, 114], [46, 115], [46, 119], [47, 48], [47, 50], [47, 51], [47, 52], [47, 54], [47, 56], [47, 59], [47, 61], [47, 62], [47, 64], [47, 65], [47, 73], [47, 74], [47, 76], [47, 80], [47, 82], [47, 84], [47, 87], [47, 88], [47, 91], [47, 92], [47, 94], [47, 95], [47, 96], [47, 99], [47, 100], [47, 110], [47, 114], [47, 116], [48, 51], [48, 54], [48, 55], [48, 59], [48, 62], [48, 70], [48, 73], [48, 74], [48, 76], [48, 77], [48, 79], [48, 80], [48, 81], [48, 84], [48, 85], [48, 89], [48, 93], [48, 94], [48, 95], [48, 99], [48, 100], [48, 101], [48, 102], [48, 104], [48, 105], [48, 106], [48, 115], [48, 117], [48, 118], [49, 51], [49, 56], [49, 59], [49, 60], [49, 61], [49, 62], [49, 63], [49, 65], [49, 66], [49, 68], [49, 70], [49, 73], [49, 75], [49, 76], [49, 78], [49, 80], [49, 81], [49, 82], [49, 83], [49, 84], [49, 85], [49, 86], [49, 88], [49, 89], [49, 91], [49, 92], [49, 95], [49, 96], [49, 98], [49, 101], [49, 109], [49, 110], [49, 114], [49, 116], [49, 117], [49, 119], [50, 51], [50, 52], [50, 56], [50, 58], [50, 59], [50, 60], [50, 61], [50, 63], [50, 64], [50, 65], [50, 69], [50, 72], [50, 73], [50, 74], [50, 75], [50, 78], [50, 79], [50, 80], [50, 82], [50, 84], [50, 85], [50, 89], [50, 90], [50, 91], [50, 97], [50, 98], [50, 100], [50, 102], [50, 106], [50, 109], [50, 110], [50, 111], [50, 112], [50, 114], [51, 52], [51, 53], [51, 58], [51, 59], [51, 60], [51, 62], [51, 63], [51, 65], [51, 66], [51, 70], [51, 71], [51, 72], [51, 73], [51, 75], [51, 78], [51, 82], [51, 84], [51, 86], [51, 87], [51, 88], [51, 89], [51, 90], [51, 92], [51, 96], [51, 97], [51, 98], [51, 100], [51, 102], [51, 106], [51, 107], [51, 113], [51, 117], [51, 119], [52, 53], [52, 54], [52, 56], [52, 57], [52, 58], [52, 59], [52, 60], [52, 62], [52, 63], [52, 65], [52, 68], [52, 74], [52, 76], [52, 78], [52, 81], [52, 85], [52, 86], [52, 87], [52, 89], [52, 90], [52, 92], [52, 95], [52, 96], [52, 97], [52, 104], [52, 105], [52, 106], [52, 107], [52, 110], [52, 112], [52, 113], [52, 114], [52, 115], [52, 116], [52, 117], [52, 118], [53, 54], [53, 59], [53, 61], [53, 62], [53, 63], [53, 67], [53, 68], [53, 72], [53, 73], [53, 75], [53, 77], [53, 79], [53, 80], [53, 81], [53, 82], [53, 86], [53, 88], [53, 89], [53, 90], [53, 91], [53, 92], [53, 93], [53, 98], [53, 100], [53, 103], [53, 104], [53, 107], [53, 108], [53, 109], [53, 110], [53, 111], [53, 112], [53, 113], [53, 114], [53, 115], [53, 117], [53, 119], [54, 55], [54, 56], [54, 58], [54, 59], [54, 60], [54, 61], [54, 62], [54, 65], [54, 69], [54, 70], [54, 71], [54, 72], [54, 75], [54, 78], [54, 79], [54, 84], [54, 86], [54, 87], [54, 88], [54, 90], [54, 94], [54, 95], [54, 96], [54, 97], [54, 98], [54, 99], [54, 100], [54, 105], [54, 106], [54, 111], [54, 112], [54, 115], [54, 116], [54, 117], [54, 118], [54, 119], [55, 60], [55, 62], [55, 68], [55, 70], [55, 73], [55, 75], [55, 81], [55, 82], [55, 84], [55, 86], [55, 88], [55, 89], [55, 90], [55, 91], [55, 94], [55, 95], [55, 96], [55, 97], [55, 99], [55, 101], [55, 102], [55, 103], [55, 104], [55, 109], [55, 110], [55, 112], [55, 113], [55, 116], [55, 117], [55, 119], [56, 57], [56, 62], [56, 63], [56, 67], [56, 68], [56, 71], [56, 76], [56, 77], [56, 78], [56, 84], [56, 86], [56, 87], [56, 89], [56, 90], [56, 91], [56, 93], [56, 94], [56, 95], [56, 101], [56, 102], [56, 104], [56, 105], [56, 108], [56, 109], [56, 112], [56, 114], [56, 115], [56, 116], [57, 58], [57, 59], [57, 61], [57, 63], [57, 64], [57, 65], [57, 67], [57, 68], [57, 70], [57, 71], [57, 73], [57, 80], [57, 81], [57, 82], [57, 83], [57, 85], [57, 86], [57, 88], [57, 92], [57, 98], [57, 99], [57, 101], [57, 104], [57, 107], [57, 109], [57, 111], [57, 112], [57, 113], [57, 118], [58, 60], [58, 62], [58, 63], [58, 64], [58, 67], [58, 69], [58, 70], [58, 71], [58, 75], [58, 77], [58, 78], [58, 80], [58, 82], [58, 84], [58, 86], [58, 87], [58, 88], [58, 89], [58, 93], [58, 94], [58, 95], [58, 97], [58, 100], [58, 101], [58, 102], [58, 104], [58, 105], [58, 107], [58, 108], [58, 111], [58, 112], [58, 119], [59, 61], [59, 63], [59, 65], [59, 67], [59, 69], [59, 71], [59, 72], [59, 74], [59, 76], [59, 78], [59, 80], [59, 82], [59, 85], [59, 86], [59, 91], [59, 92], [59, 95], [59, 96], [59, 97], [59, 99], [59, 101], [59, 102], [59, 103], [59, 104], [59, 105], [59, 106], [59, 107], [59, 110], [59, 112], [59, 114], [59, 115], [59, 116], [59, 117], [59, 119], [60, 61], [60, 62], [60, 63], [60, 64], [60, 68], [60, 69], [60, 77], [60, 78], [60, 80], [60, 83], [60, 84], [60, 87], [60, 88], [60, 89], [60, 90], [60, 91], [60, 95], [60, 97], [60, 98], [60, 99], [60, 101], [60, 103], [60, 104], [60, 108], [60, 115], [60, 117], [60, 119], [61, 62], [61, 63], [61, 64], [61, 65], [61, 69], [61, 70], [61, 72], [61, 74], [61, 76], [61, 85], [61, 88], [61, 89], [61, 90], [61, 94], [61, 95], [61, 96], [61, 97], [61, 98], [61, 99], [61, 102], [61, 105], [61, 110], [61, 111], [61, 113], [61, 114], [61, 115], [61, 116], [61, 118], [62, 63], [62, 64], [62, 66], [62, 67], [62, 68], [62, 71], [62, 73], [62, 76], [62, 77], [62, 82], [62, 83], [62, 85], [62, 86], [62, 89], [62, 92], [62, 96], [62, 97], [62, 102], [62, 103], [62, 104], [62, 106], [62, 107], [62, 111], [62, 113], [62, 115], [62, 116], [62, 118], [62, 119], [63, 65], [63, 66], [63, 69], [63, 70], [63, 71], [63, 72], [63, 76], [63, 77], [63, 78], [63, 79], [63, 80], [63, 81], [63, 83], [63, 85], [63, 86], [63, 88], [63, 90], [63, 93], [63, 94], [63, 96], [63, 97], [63, 98], [63, 100], [63, 106], [63, 108], [63, 109], [63, 110], [63, 111], [63, 118], [63, 119], [64, 65], [64, 69], [64, 70], [64, 72], [64, 76], [64, 80], [64, 87], [64, 88], [64, 89], [64, 91], [64, 92], [64, 95], [64, 96], [64, 97], [64, 98], [64, 99], [64, 111], [64, 112], [64, 114], [64, 115], [64, 116], [64, 119], [65, 66], [65, 69], [65, 70], [65, 71], [65, 72], [65, 74], [65, 75], [65, 79], [65, 81], [65, 83], [65, 87], [65, 88], [65, 89], [65, 91], [65, 92], [65, 95], [65, 99], [65, 101], [65, 102], [65, 104], [65, 110], [65, 111], [65, 113], [65, 117], [65, 118], [66, 67], [66, 68], [66, 70], [66, 71], [66, 73], [66, 76], [66, 77], [66, 79], [66, 80], [66, 81], [66, 82], [66, 84], [66, 85], [66, 89], [66, 91], [66, 94], [66, 95], [66, 97], [66, 98], [66, 102], [66, 103], [66, 104], [66, 106], [66, 107], [66, 109], [66, 114], [66, 115], [66, 116], [66, 117], [66, 119], [67, 68], [67, 74], [67, 76], [67, 77], [67, 78], [67, 80], [67, 81], [67, 82], [67, 86], [67, 87], [67, 92], [67, 93], [67, 94], [67, 95], [67, 98], [67, 99], [67, 103], [67, 104], [67, 106], [67, 107], [67, 110], [67, 112], [67, 114], [67, 115], [67, 117], [67, 118], [67, 119], [68, 69], [68, 70], [68, 71], [68, 72], [68, 75], [68, 76], [68, 77], [68, 78], [68, 80], [68, 82], [68, 83], [68, 84], [68, 88], [68, 89], [68, 91], [68, 92], [68, 94], [68, 95], [68, 96], [68, 99], [68, 101], [68, 102], [68, 107], [68, 108], [68, 114], [68, 116], [68, 117], [68, 118], [69, 70], [69, 71], [69, 73], [69, 74], [69, 75], [69, 78], [69, 80], [69, 81], [69, 83], [69, 89], [69, 90], [69, 93], [69, 96], [69, 99], [69, 100], [69, 101], [69, 103], [69, 104], [69, 105], [69, 108], [69, 110], [69, 111], [69, 113], [69, 114], [69, 116], [70, 72], [70, 76], [70, 78], [70, 79], [70, 80], [70, 81], [70, 82], [70, 84], [70, 88], [70, 90], [70, 98], [70, 99], [70, 100], [70, 101], [70, 102], [70, 103], [70, 104], [70, 105], [70, 108], [70, 109], [70, 113], [70, 116], [70, 117], [70, 119], [71, 72], [71, 73], [71, 74], [71, 75], [71, 78], [71, 79], [71, 84], [71, 86], [71, 87], [71, 88], [71, 90], [71, 92], [71, 93], [71, 94], [71, 97], [71, 98], [71, 99], [71, 101], [71, 102], [71, 105], [71, 107], [71, 108], [71, 111], [71, 112], [71, 114], [71, 115], [71, 116], [71, 118], [71, 119], [72, 73], [72, 74], [72, 75], [72, 77], [72, 78], [72, 79], [72, 81], [72, 83], [72, 84], [72, 85], [72, 87], [72, 88], [72, 92], [72, 94], [72, 96], [72, 97], [72, 98], [72, 99], [72, 101], [72, 104], [72, 105], [72, 108], [72, 109], [72, 114], [72, 119], [73, 76], [73, 77], [73, 81], [73, 82], [73, 83], [73, 89], [73, 90], [73, 91], [73, 93], [73, 96], [73, 98], [73, 100], [73, 102], [73, 105], [73, 107], [73, 110], [73, 118], [74, 77], [74, 78], [74, 79], [74, 80], [74, 85], [74, 86], [74, 88], [74, 90], [74, 91], [74, 92], [74, 93], [74, 95], [74, 96], [74, 97], [74, 99], [74, 100], [74, 102], [74, 108], [74, 110], [74, 113], [74, 114], [74, 118], [74, 119], [75, 76], [75, 77], [75, 78], [75, 81], [75, 82], [75, 85], [75, 89], [75, 91], [75, 92], [75, 93], [75, 94], [75, 96], [75, 99], [75, 100], [75, 101], [75, 102], [75, 104], [75, 107], [75, 108], [75, 109], [75, 114], [75, 115], [75, 117], [76, 80], [76, 81], [76, 84], [76, 85], [76, 87], [76, 90], [76, 91], [76, 93], [76, 95], [76, 96], [76, 97], [76, 99], [76, 100], [76, 101], [76, 102], [76, 110], [76, 115], [76, 116], [76, 118], [76, 119], [77, 79], [77, 82], [77, 83], [77, 84], [77, 85], [77, 87], [77, 88], [77, 89], [77, 90], [77, 91], [77, 93], [77, 95], [77, 96], [77, 98], [77, 99], [77, 103], [77, 104], [77, 108], [77, 109], [77, 110], [77, 111], [77, 113], [77, 114], [77, 119], [78, 81], [78, 84], [78, 87], [78, 89], [78, 90], [78, 91], [78, 92], [78, 93], [78, 95], [78, 97], [78, 98], [78, 99], [78, 101], [78, 103], [78, 106], [78, 109], [78, 112], [78, 114], [78, 116], [79, 80], [79, 85], [79, 86], [79, 89], [79, 93], [79, 96], [79, 97], [79, 98], [79, 100], [79, 102], [79, 103], [79, 104], [79, 107], [79, 108], [79, 109], [79, 110], [79, 112], [79, 114], [79, 116], [79, 117], [79, 118], [79, 119], [80, 83], [80, 85], [80, 88], [80, 91], [80, 93], [80, 99], [80, 102], [80, 106], [80, 109], [80, 119], [81, 83], [81, 85], [81, 86], [81, 87], [81, 89], [81, 92], [81, 93], [81, 95], [81, 96], [81, 97], [81, 98], [81, 99], [81, 102], [81, 105], [81, 107], [81, 108], [81, 109], [81, 111], [81, 115], [81, 116], [82, 83], [82, 84], [82, 85], [82, 86], [82, 89], [82, 91], [82, 95], [82, 96], [82, 98], [82, 104], [82, 105], [82, 109], [82, 110], [82, 111], [82, 112], [82, 114], [82, 116], [82, 117], [82, 118], [82, 119], [83, 84], [83, 88], [83, 89], [83, 97], [83, 100], [83, 101], [83, 102], [83, 111], [83, 112], [83, 114], [83, 115], [83, 116], [83, 119], [84, 85], [84, 87], [84, 88], [84, 89], [84, 92], [84, 94], [84, 95], [84, 96], [84, 98], [84, 102], [84, 103], [84, 107], [84, 109], [84, 110], [84, 113], [84, 114], [84, 115], [84, 117], [84, 119], [85, 86], [85, 87], [85, 88], [85, 89], [85, 90], [85, 92], [85, 93], [85, 94], [85, 96], [85, 98], [85, 99], [85, 100], [85, 105], [85, 107], [85, 108], [85, 109], [85, 113], [85, 114], [85, 115], [85, 116], [85, 118], [85, 119], [86, 87], [86, 88], [86, 92], [86, 93], [86, 94], [86, 95], [86, 96], [86, 97], [86, 99], [86, 101], [86, 102], [86, 103], [86, 104], [86, 106], [86, 107], [86, 108], [86, 110], [86, 111], [86, 112], [86, 113], [86, 114], [86, 115], [86, 118], [86, 119], [87, 88], [87, 89], [87, 92], [87, 93], [87, 95], [87, 97], [87, 98], [87, 99], [87, 101], [87, 104], [87, 106], [87, 107], [87, 110], [87, 111], [87, 115], [87, 118], [87, 119], [88, 89], [88, 91], [88, 95], [88, 96], [88, 98], [88, 100], [88, 102], [88, 107], [88, 108], [88, 110], [88, 111], [88, 112], [88, 113], [88, 114], [88, 116], [88, 117], [88, 118], [89, 90], [89, 92], [89, 94], [89, 97], [89, 99], [89, 101], [89, 103], [89, 109], [89, 110], [89, 111], [89, 112], [89, 113], [89, 115], [89, 116], [89, 119], [90, 91], [90, 92], [90, 93], [90, 95], [90, 97], [90, 101], [90, 105], [90, 107], [90, 108], [90, 110], [90, 111], [90, 112], [90, 113], [90, 118], [90, 119], [91, 92], [91, 93], [91, 97], [91, 98], [91, 99], [91, 103], [91, 104], [91, 105], [91, 107], [91, 109], [91, 110], [91, 112], [91, 114], [91, 116], [91, 119], [92, 95], [92, 96], [92, 97], [92, 99], [92, 101], [92, 102], [92, 104], [92, 105], [92, 109], [92, 116], [92, 117], [93, 94], [93, 95], [93, 97], [93, 99], [93, 100], [93, 101], [93, 105], [93, 107], [93, 110], [93, 111], [93, 114], [93, 115], [93, 117], [93, 118], [94, 104], [94, 107], [94, 109], [94, 113], [94, 115], [94, 117], [95, 96], [95, 98], [95, 103], [95, 104], [95, 105], [95, 106], [95, 107], [95, 108], [95, 111], [95, 112], [95, 114], [95, 118], [95, 119], [96, 97], [96, 98], [96, 99], [96, 100], [96, 102], [96, 103], [96, 105], [96, 107], [96, 108], [96, 109], [96, 111], [96, 112], [96, 115], [96, 116], [96, 119], [97, 99], [97, 100], [97, 101], [97, 103], [97, 104], [97, 105], [97, 109], [97, 113], [97, 114], [97, 117], [97, 119], [98, 102], [98, 104], [98, 105], [98, 107], [98, 108], [98, 109], [98, 110], [98, 112], [98, 114], [98, 117], [98, 119], [99, 100], [99, 103], [99, 104], [99, 105], [99, 106], [99, 107], [99, 111], [99, 113], [99, 114], [99, 115], [99, 116], [99, 117], [99, 119], [100, 101], [100, 106], [100, 109], [100, 111], [100, 114], [100, 116], [100, 117], [100, 118], [100, 119], [101, 102], [101, 104], [101, 105], [101, 107], [101, 111], [101, 113], [101, 116], [101, 119], [102, 103], [102, 104], [102, 105], [102, 108], [102, 109], [102, 111], [102, 113], [102, 114], [102, 115], [102, 116], [103, 106], [103, 108], [103, 111], [103, 116], [103, 117], [103, 118], [103, 119], [104, 105], [104, 106], [104, 107], [104, 109], [104, 110], [104, 112], [104, 116], [104, 117], [104, 119], [105, 106], [105, 107], [105, 113], [105, 114], [105, 115], [105, 116], [105, 117], [105, 119], [106, 107], [106, 108], [106, 109], [106, 111], [106, 113], [106, 117], [106, 118], [106, 119], [107, 108], [107, 111], [107, 112], [107, 114], [107, 115], [107, 117], [107, 118], [108, 109], [108, 112], [108, 113], [108, 114], [108, 115], [108, 119], [109, 110], [109, 111], [109, 117], [109, 119], [110, 112], [110, 113], [110, 118], [110, 119], [111, 112], [111, 117], [111, 118], [112, 113], [112, 115], [112, 116], [113, 115], [113, 118], [113, 119], [114, 115], [114, 116], [114, 118], [115, 117], [115, 118], [115, 119], [116, 118], [116, 119], [118, 119]], "family": "mc_max_clique", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-max-clique-l6-s1/solution/solve.sh b/tasks/construct-mc-max-clique-l6-s1/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..7e769fcb2caa32c194ec47dffabda0ec4ac2f29e --- /dev/null +++ b/tasks/construct-mc-max-clique-l6-s1/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"clique": [7, 25, 26, 30, 35, 63, 72, 85, 96, 98, 108, 109, 119]} +RLMATH_EOF diff --git a/tasks/construct-mc-max-clique-l6-s1/tests/check.py b/tasks/construct-mc-max-clique-l6-s1/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..e3f70dbd5b155a3514c2102aa4ad460201495210 --- /dev/null +++ b/tasks/construct-mc-max-clique-l6-s1/tests/check.py @@ -0,0 +1,18 @@ +"""Clique of size >= k in a given graph (MathConstraint max_clique decision version, CC-BY-4.0).""" +import itertools + +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["n"], inst["k"] + S = int_list(ans.get("clique"), None, 0, n - 1, "clique") + if len(set(S)) != len(S): + raise Invalid("repeated vertex") + if len(S) < k: + raise Invalid(f"clique has {len(S)} vertices, need at least {k}") + E = {(u, v) for u, v in inst["edges"]} + for u, v in itertools.combinations(sorted(S), 2): + if (u, v) not in E: + raise Invalid(f"vertices {u} and {v} are not adjacent") + return None, {"size": len(S)} diff --git a/tasks/construct-mc-max-clique-l6-s1/tests/instance.json b/tasks/construct-mc-max-clique-l6-s1/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..4f4ecbcede27140fdc592f24910a02cac86a83e7 --- /dev/null +++ b/tasks/construct-mc-max-clique-l6-s1/tests/instance.json @@ -0,0 +1 @@ +{"n": 120, "k": 13, "edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 8], [0, 9], [0, 10], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 20], [0, 21], [0, 22], [0, 24], [0, 25], [0, 26], [0, 38], [0, 41], [0, 42], [0, 44], [0, 46], [0, 48], [0, 49], [0, 50], [0, 51], [0, 53], [0, 54], [0, 57], [0, 58], [0, 59], [0, 60], [0, 62], [0, 64], [0, 68], [0, 71], [0, 72], [0, 73], [0, 76], [0, 77], [0, 78], [0, 82], [0, 85], [0, 87], [0, 89], [0, 90], [0, 92], [0, 97], [0, 98], [0, 102], [0, 104], [0, 105], [0, 108], [0, 109], [0, 113], [0, 115], [0, 116], [1, 5], [1, 6], [1, 7], [1, 8], [1, 13], [1, 15], [1, 19], [1, 21], [1, 23], [1, 24], [1, 25], [1, 27], [1, 29], [1, 36], [1, 37], [1, 38], [1, 42], [1, 44], [1, 45], [1, 47], [1, 51], [1, 54], [1, 58], [1, 59], [1, 62], [1, 65], [1, 66], [1, 67], [1, 69], [1, 71], [1, 73], [1, 75], [1, 76], [1, 77], [1, 79], [1, 81], [1, 82], [1, 84], [1, 86], [1, 89], [1, 90], [1, 91], [1, 93], [1, 95], [1, 97], [1, 98], [1, 101], [1, 105], [1, 106], [1, 108], [1, 111], [1, 112], [1, 114], [1, 116], [1, 119], [2, 3], [2, 5], [2, 6], [2, 7], [2, 8], [2, 11], [2, 12], [2, 16], [2, 21], [2, 25], [2, 29], [2, 33], [2, 34], [2, 35], [2, 38], [2, 39], [2, 42], [2, 43], [2, 44], [2, 45], [2, 46], [2, 47], [2, 51], [2, 52], [2, 59], [2, 60], [2, 61], [2, 62], [2, 65], [2, 70], [2, 71], [2, 72], [2, 73], [2, 74], [2, 75], [2, 81], [2, 82], [2, 83], [2, 84], [2, 85], [2, 87], [2, 88], [2, 90], [2, 92], [2, 94], [2, 96], [2, 97], [2, 98], [2, 101], [2, 104], [2, 105], [2, 106], [2, 115], [2, 117], [2, 118], [2, 119], [3, 7], [3, 8], [3, 9], [3, 13], [3, 15], [3, 16], [3, 18], [3, 19], [3, 20], [3, 21], [3, 27], [3, 28], [3, 30], [3, 34], [3, 35], [3, 39], [3, 40], [3, 42], [3, 46], [3, 47], [3, 49], [3, 50], [3, 51], [3, 54], [3, 57], [3, 59], [3, 64], [3, 67], [3, 68], [3, 69], [3, 70], [3, 71], [3, 72], [3, 74], [3, 75], [3, 76], [3, 79], [3, 80], [3, 82], [3, 83], [3, 84], [3, 86], [3, 87], [3, 90], [3, 91], [3, 98], [3, 101], [3, 102], [3, 105], [3, 113], [3, 114], [3, 115], [3, 116], [3, 117], [4, 7], [4, 10], [4, 11], [4, 13], [4, 15], [4, 16], [4, 17], [4, 19], [4, 20], [4, 21], [4, 22], [4, 24], [4, 25], [4, 27], [4, 29], [4, 30], [4, 31], [4, 32], [4, 33], [4, 35], [4, 41], [4, 42], [4, 43], [4, 45], [4, 46], [4, 49], [4, 52], [4, 58], [4, 62], [4, 66], [4, 67], [4, 68], [4, 73], [4, 74], [4, 75], [4, 77], [4, 78], [4, 79], [4, 82], [4, 86], [4, 87], [4, 90], [4, 91], [4, 94], [4, 96], [4, 97], [4, 98], [4, 101], [4, 103], [4, 106], [4, 111], [4, 113], [4, 114], [4, 119], [5, 6], [5, 9], [5, 11], [5, 12], [5, 13], [5, 17], [5, 20], [5, 22], [5, 25], [5, 26], [5, 28], [5, 31], [5, 32], [5, 33], [5, 35], [5, 38], [5, 39], [5, 41], [5, 42], [5, 43], [5, 44], [5, 47], [5, 48], [5, 50], [5, 54], [5, 56], [5, 57], [5, 58], [5, 59], [5, 62], [5, 63], [5, 64], [5, 65], [5, 66], [5, 68], [5, 70], [5, 72], [5, 78], [5, 79], [5, 80], [5, 83], [5, 84], [5, 92], [5, 93], [5, 94], [5, 95], [5, 96], [5, 97], [5, 100], [5, 101], [5, 104], [5, 105], [5, 107], [5, 108], [5, 111], [5, 112], [5, 113], [5, 114], [6, 8], [6, 12], [6, 15], [6, 18], [6, 19], [6, 21], [6, 23], [6, 24], [6, 25], [6, 26], [6, 28], [6, 30], [6, 32], [6, 33], [6, 34], [6, 37], [6, 38], [6, 39], [6, 40], [6, 41], [6, 43], [6, 44], [6, 45], [6, 46], [6, 47], [6, 48], [6, 49], [6, 51], [6, 52], [6, 56], [6, 58], [6, 60], [6, 62], [6, 63], [6, 65], [6, 66], [6, 68], [6, 69], [6, 70], [6, 73], [6, 75], [6, 76], [6, 77], [6, 79], [6, 81], [6, 85], [6, 86], [6, 87], [6, 88], [6, 90], [6, 93], [6, 96], [6, 101], [6, 104], [6, 109], [6, 110], [6, 114], [6, 116], [6, 117], [6, 118], [6, 119], [7, 11], [7, 14], [7, 15], [7, 17], [7, 19], [7, 22], [7, 23], [7, 24], [7, 25], [7, 26], [7, 28], [7, 29], [7, 30], [7, 31], [7, 32], [7, 35], [7, 36], [7, 39], [7, 42], [7, 43], [7, 47], [7, 48], [7, 50], [7, 51], [7, 52], [7, 53], [7, 55], [7, 62], [7, 63], [7, 66], [7, 67], [7, 70], [7, 72], [7, 73], [7, 74], [7, 75], [7, 76], [7, 77], [7, 78], [7, 81], [7, 82], [7, 84], [7, 85], [7, 88], [7, 89], [7, 90], [7, 91], [7, 96], [7, 97], [7, 98], [7, 100], [7, 104], [7, 105], [7, 106], [7, 108], [7, 109], [7, 117], [7, 119], [8, 13], [8, 14], [8, 16], [8, 19], [8, 20], [8, 22], [8, 27], [8, 29], [8, 30], [8, 32], [8, 33], [8, 36], [8, 37], [8, 40], [8, 41], [8, 42], [8, 44], [8, 45], [8, 46], [8, 49], [8, 51], [8, 54], [8, 55], [8, 57], [8, 59], [8, 60], [8, 69], [8, 70], [8, 71], [8, 72], [8, 76], [8, 77], [8, 78], [8, 79], [8, 82], [8, 84], [8, 85], [8, 89], [8, 90], [8, 91], [8, 94], [8, 95], [8, 100], [8, 101], [8, 103], [8, 104], [8, 106], [8, 108], [8, 109], [8, 111], [8, 112], [8, 115], [8, 116], [8, 117], [8, 119], [9, 10], [9, 12], [9, 16], [9, 19], [9, 21], [9, 22], [9, 23], [9, 24], [9, 26], [9, 27], [9, 28], [9, 29], [9, 31], [9, 35], [9, 36], [9, 38], [9, 39], [9, 41], [9, 42], [9, 46], [9, 49], [9, 50], [9, 56], [9, 60], [9, 64], [9, 65], [9, 68], [9, 69], [9, 71], [9, 72], [9, 73], [9, 75], [9, 76], [9, 79], [9, 88], [9, 89], [9, 94], [9, 98], [9, 99], [9, 100], [9, 101], [9, 102], [9, 103], [9, 106], [9, 108], [9, 109], [9, 117], [10, 11], [10, 16], [10, 19], [10, 20], [10, 21], [10, 22], [10, 25], [10, 28], [10, 31], [10, 32], [10, 34], [10, 35], [10, 36], [10, 37], [10, 38], [10, 39], [10, 40], [10, 42], [10, 46], [10, 48], [10, 50], [10, 51], [10, 52], [10, 54], [10, 59], [10, 60], [10, 61], [10, 62], [10, 65], [10, 66], [10, 67], [10, 68], [10, 69], [10, 70], [10, 71], [10, 72], [10, 74], [10, 78], [10, 79], [10, 83], [10, 85], [10, 87], [10, 90], [10, 91], [10, 92], [10, 93], [10, 94], [10, 99], [10, 102], [10, 103], [10, 105], [10, 106], [10, 108], [10, 111], [10, 112], [10, 113], [10, 114], [10, 119], [11, 12], [11, 14], [11, 17], [11, 20], [11, 21], [11, 23], [11, 24], [11, 26], [11, 27], [11, 30], [11, 32], [11, 33], [11, 34], [11, 36], [11, 37], [11, 38], [11, 39], [11, 40], [11, 41], [11, 43], [11, 45], [11, 46], [11, 47], [11, 50], [11, 53], [11, 54], [11, 55], [11, 58], [11, 59], [11, 62], [11, 63], [11, 64], [11, 65], [11, 66], [11, 67], [11, 72], [11, 73], [11, 74], [11, 76], [11, 79], [11, 83], [11, 87], [11, 88], [11, 89], [11, 91], [11, 93], [11, 95], [11, 97], [11, 99], [11, 101], [11, 103], [11, 106], [11, 109], [11, 110], [11, 115], [11, 116], [11, 117], [12, 13], [12, 14], [12, 15], [12, 19], [12, 20], [12, 27], [12, 30], [12, 32], [12, 33], [12, 34], [12, 35], [12, 43], [12, 45], [12, 49], [12, 51], [12, 52], [12, 54], [12, 55], [12, 57], [12, 58], [12, 59], [12, 61], [12, 62], [12, 63], [12, 64], [12, 66], [12, 68], [12, 74], [12, 78], [12, 80], [12, 81], [12, 86], [12, 87], [12, 88], [12, 90], [12, 91], [12, 92], [12, 94], [12, 95], [12, 96], [12, 99], [12, 101], [12, 102], [12, 103], [12, 104], [12, 107], [12, 114], [12, 115], [12, 116], [12, 119], [13, 14], [13, 15], [13, 16], [13, 18], [13, 20], [13, 22], [13, 23], [13, 24], [13, 25], [13, 26], [13, 28], [13, 30], [13, 31], [13, 32], [13, 33], [13, 34], [13, 35], [13, 36], [13, 41], [13, 42], [13, 46], [13, 49], [13, 51], [13, 52], [13, 55], [13, 56], [13, 58], [13, 59], [13, 60], [13, 61], [13, 62], [13, 64], [13, 65], [13, 67], [13, 68], [13, 70], [13, 71], [13, 72], [13, 73], [13, 79], [13, 80], [13, 84], [13, 85], [13, 89], [13, 93], [13, 95], [13, 96], [13, 97], [13, 100], [13, 103], [13, 104], [13, 105], [13, 106], [13, 107], [13, 108], [13, 110], [13, 111], [13, 112], [13, 114], [13, 115], [13, 117], [13, 119], [14, 15], [14, 17], [14, 19], [14, 20], [14, 24], [14, 25], [14, 27], [14, 30], [14, 31], [14, 33], [14, 36], [14, 37], [14, 38], [14, 40], [14, 41], [14, 43], [14, 45], [14, 46], [14, 47], [14, 49], [14, 51], [14, 52], [14, 53], [14, 54], [14, 55], [14, 57], [14, 58], [14, 61], [14, 62], [14, 64], [14, 65], [14, 69], [14, 71], [14, 78], [14, 79], [14, 80], [14, 81], [14, 82], [14, 84], [14, 85], [14, 86], [14, 89], [14, 91], [14, 92], [14, 93], [14, 95], [14, 101], [14, 102], [14, 104], [14, 105], [14, 106], [14, 107], [14, 111], [14, 113], [14, 114], [15, 16], [15, 18], [15, 19], [15, 20], [15, 21], [15, 22], [15, 23], [15, 26], [15, 28], [15, 29], [15, 30], [15, 31], [15, 33], [15, 34], [15, 36], [15, 38], [15, 39], [15, 40], [15, 43], [15, 45], [15, 48], [15, 51], [15, 54], [15, 55], [15, 57], [15, 59], [15, 61], [15, 62], [15, 63], [15, 64], [15, 66], [15, 67], [15, 68], [15, 70], [15, 71], [15, 74], [15, 75], [15, 79], [15, 80], [15, 82], [15, 85], [15, 86], [15, 89], [15, 92], [15, 93], [15, 95], [15, 97], [15, 98], [15, 103], [15, 104], [15, 105], [15, 107], [15, 108], [15, 109], [15, 110], [15, 111], [15, 113], [15, 115], [15, 116], [15, 119], [16, 17], [16, 18], [16, 19], [16, 20], [16, 24], [16, 25], [16, 28], [16, 29], [16, 30], [16, 31], [16, 33], [16, 38], [16, 39], [16, 42], [16, 43], [16, 47], [16, 51], [16, 53], [16, 55], [16, 57], [16, 63], [16, 64], [16, 67], [16, 69], [16, 71], [16, 72], [16, 73], [16, 74], [16, 76], [16, 77], [16, 78], [16, 79], [16, 81], [16, 84], [16, 85], [16, 89], [16, 90], [16, 91], [16, 93], [16, 94], [16, 95], [16, 96], [16, 97], [16, 98], [16, 99], [16, 100], [16, 102], [16, 103], [16, 105], [16, 106], [16, 108], [16, 109], [16, 110], [16, 111], [16, 112], [16, 113], [16, 115], [16, 116], [16, 117], [17, 25], [17, 27], [17, 29], [17, 30], [17, 34], [17, 35], [17, 40], [17, 41], [17, 43], [17, 45], [17, 47], [17, 51], [17, 52], [17, 53], [17, 54], [17, 55], [17, 57], [17, 59], [17, 60], [17, 63], [17, 64], [17, 67], [17, 69], [17, 70], [17, 71], [17, 74], [17, 75], [17, 77], [17, 79], [17, 81], [17, 82], [17, 83], [17, 84], [17, 87], [17, 92], [17, 95], [17, 96], [17, 100], [17, 101], [17, 102], [17, 105], [17, 106], [17, 107], [17, 110], [17, 111], [17, 113], [17, 115], [17, 116], [17, 118], [18, 19], [18, 20], [18, 22], [18, 23], [18, 24], [18, 25], [18, 31], [18, 32], [18, 38], [18, 39], [18, 40], [18, 41], [18, 42], [18, 44], [18, 47], [18, 51], [18, 53], [18, 54], [18, 55], [18, 56], [18, 57], [18, 58], [18, 61], [18, 65], [18, 68], [18, 70], [18, 73], [18, 74], [18, 77], [18, 78], [18, 81], [18, 85], [18, 87], [18, 88], [18, 92], [18, 94], [18, 96], [18, 99], [18, 100], [18, 101], [18, 103], [18, 104], [18, 105], [18, 106], [18, 107], [18, 108], [18, 109], [18, 110], [18, 111], [18, 116], [19, 23], [19, 27], [19, 30], [19, 32], [19, 33], [19, 34], [19, 36], [19, 37], [19, 38], [19, 40], [19, 42], [19, 43], [19, 44], [19, 45], [19, 46], [19, 49], [19, 50], [19, 53], [19, 54], [19, 55], [19, 56], [19, 59], [19, 61], [19, 66], [19, 74], [19, 80], [19, 81], [19, 82], [19, 85], [19, 86], [19, 89], [19, 90], [19, 91], [19, 94], [19, 95], [19, 96], [19, 97], [19, 98], [19, 101], [19, 102], [19, 103], [19, 105], [19, 108], [19, 111], [19, 118], [19, 119], [20, 21], [20, 23], [20, 24], [20, 27], [20, 28], [20, 31], [20, 32], [20, 33], [20, 36], [20, 37], [20, 38], [20, 43], [20, 44], [20, 46], [20, 48], [20, 49], [20, 54], [20, 55], [20, 56], [20, 58], [20, 59], [20, 63], [20, 64], [20, 65], [20, 69], [20, 70], [20, 71], [20, 77], [20, 78], [20, 80], [20, 81], [20, 82], [20, 83], [20, 86], [20, 90], [20, 91], [20, 92], [20, 93], [20, 94], [20, 95], [20, 96], [20, 99], [20, 101], [20, 103], [20, 105], [20, 107], [20, 109], [20, 113], [20, 114], [21, 26], [21, 29], [21, 31], [21, 32], [21, 33], [21, 34], [21, 37], [21, 40], [21, 43], [21, 44], [21, 46], [21, 47], [21, 48], [21, 50], [21, 52], [21, 53], [21, 55], [21, 56], [21, 58], [21, 60], [21, 61], [21, 62], [21, 64], [21, 65], [21, 67], [21, 69], [21, 70], [21, 71], [21, 73], [21, 74], [21, 76], [21, 77], [21, 80], [21, 81], [21, 84], [21, 85], [21, 88], [21, 89], [21, 90], [21, 91], [21, 92], [21, 93], [21, 95], [21, 97], [21, 106], [21, 107], [21, 109], [21, 110], [21, 111], [21, 112], [21, 114], [21, 119], [22, 23], [22, 26], [22, 29], [22, 31], [22, 33], [22, 34], [22, 35], [22, 37], [22, 38], [22, 39], [22, 43], [22, 45], [22, 48], [22, 50], [22, 52], [22, 54], [22, 58], [22, 60], [22, 61], [22, 62], [22, 63], [22, 64], [22, 65], [22, 69], [22, 71], [22, 72], [22, 75], [22, 76], [22, 78], [22, 79], [22, 80], [22, 83], [22, 84], [22, 88], [22, 91], [22, 92], [22, 96], [22, 99], [22, 103], [22, 105], [22, 106], [22, 108], [22, 110], [22, 111], [22, 112], [22, 116], [22, 117], [22, 118], [22, 119], [23, 24], [23, 25], [23, 26], [23, 27], [23, 28], [23, 30], [23, 31], [23, 32], [23, 34], [23, 37], [23, 38], [23, 40], [23, 42], [23, 43], [23, 45], [23, 48], [23, 50], [23, 53], [23, 54], [23, 59], [23, 61], [23, 62], [23, 64], [23, 65], [23, 66], [23, 67], [23, 70], [23, 72], [23, 73], [23, 75], [23, 76], [23, 77], [23, 79], [23, 81], [23, 82], [23, 83], [23, 88], [23, 92], [23, 96], [23, 99], [23, 100], [23, 101], [23, 103], [23, 109], [23, 110], [23, 111], [23, 115], [23, 117], [24, 25], [24, 29], [24, 34], [24, 40], [24, 42], [24, 44], [24, 45], [24, 49], [24, 51], [24, 53], [24, 56], [24, 60], [24, 64], [24, 66], [24, 67], [24, 69], [24, 70], [24, 71], [24, 72], [24, 77], [24, 78], [24, 80], [24, 82], [24, 83], [24, 84], [24, 85], [24, 86], [24, 87], [24, 89], [24, 90], [24, 91], [24, 93], [24, 96], [24, 98], [24, 100], [24, 102], [24, 105], [24, 108], [24, 110], [24, 112], [24, 113], [24, 114], [24, 116], [24, 117], [24, 119], [25, 26], [25, 28], [25, 29], [25, 30], [25, 31], [25, 32], [25, 35], [25, 36], [25, 38], [25, 40], [25, 41], [25, 43], [25, 45], [25, 46], [25, 47], [25, 49], [25, 51], [25, 52], [25, 53], [25, 55], [25, 61], [25, 62], [25, 63], [25, 64], [25, 65], [25, 66], [25, 72], [25, 75], [25, 76], [25, 77], [25, 78], [25, 79], [25, 80], [25, 81], [25, 83], [25, 84], [25, 85], [25, 89], [25, 90], [25, 91], [25, 93], [25, 96], [25, 98], [25, 103], [25, 108], [25, 109], [25, 111], [25, 112], [25, 113], [25, 114], [25, 116], [25, 119], [26, 27], [26, 29], [26, 30], [26, 31], [26, 34], [26, 35], [26, 37], [26, 39], [26, 41], [26, 44], [26, 46], [26, 48], [26, 49], [26, 52], [26, 55], [26, 56], [26, 58], [26, 60], [26, 62], [26, 63], [26, 67], [26, 68], [26, 70], [26, 72], [26, 73], [26, 74], [26, 75], [26, 76], [26, 77], [26, 80], [26, 85], [26, 86], [26, 88], [26, 89], [26, 92], [26, 96], [26, 97], [26, 98], [26, 100], [26, 101], [26, 104], [26, 105], [26, 106], [26, 108], [26, 109], [26, 110], [26, 114], [26, 116], [26, 119], [27, 28], [27, 31], [27, 33], [27, 34], [27, 37], [27, 38], [27, 39], [27, 41], [27, 42], [27, 50], [27, 58], [27, 61], [27, 66], [27, 70], [27, 73], [27, 74], [27, 76], [27, 77], [27, 80], [27, 82], [27, 86], [27, 87], [27, 89], [27, 91], [27, 92], [27, 95], [27, 100], [27, 101], [27, 103], [27, 104], [27, 107], [27, 111], [27, 112], [27, 113], [27, 117], [27, 118], [28, 30], [28, 33], [28, 34], [28, 35], [28, 36], [28, 39], [28, 41], [28, 42], [28, 47], [28, 50], [28, 51], [28, 55], [28, 56], [28, 58], [28, 59], [28, 60], [28, 62], [28, 64], [28, 65], [28, 69], [28, 70], [28, 74], [28, 75], [28, 76], [28, 78], [28, 79], [28, 80], [28, 81], [28, 82], [28, 83], [28, 85], [28, 88], [28, 91], [28, 92], [28, 96], [28, 101], [28, 102], [28, 104], [28, 108], [28, 111], [28, 113], [28, 117], [29, 31], [29, 36], [29, 38], [29, 39], [29, 40], [29, 43], [29, 44], [29, 45], [29, 46], [29, 47], [29, 48], [29, 50], [29, 51], [29, 52], [29, 56], [29, 57], [29, 60], [29, 61], [29, 63], [29, 64], [29, 69], [29, 70], [29, 71], [29, 72], [29, 74], [29, 75], [29, 76], [29, 77], [29, 79], [29, 80], [29, 83], [29, 85], [29, 86], [29, 87], [29, 89], [29, 92], [29, 93], [29, 94], [29, 95], [29, 96], [29, 98], [29, 100], [29, 105], [29, 106], [29, 111], [29, 113], [29, 118], [30, 31], [30, 35], [30, 36], [30, 37], [30, 39], [30, 41], [30, 42], [30, 43], [30, 45], [30, 47], [30, 48], [30, 50], [30, 51], [30, 52], [30, 56], [30, 60], [30, 61], [30, 62], [30, 63], [30, 67], [30, 68], [30, 72], [30, 73], [30, 74], [30, 75], [30, 76], [30, 78], [30, 79], [30, 80], [30, 82], [30, 84], [30, 85], [30, 87], [30, 90], [30, 91], [30, 92], [30, 94], [30, 96], [30, 97], [30, 98], [30, 99], [30, 100], [30, 101], [30, 102], [30, 104], [30, 105], [30, 106], [30, 108], [30, 109], [30, 110], [30, 111], [30, 112], [30, 114], [30, 115], [30, 116], [30, 118], [30, 119], [31, 34], [31, 36], [31, 37], [31, 38], [31, 39], [31, 40], [31, 44], [31, 45], [31, 48], [31, 49], [31, 50], [31, 53], [31, 54], [31, 56], [31, 58], [31, 65], [31, 66], [31, 67], [31, 69], [31, 71], [31, 73], [31, 74], [31, 75], [31, 77], [31, 82], [31, 86], [31, 88], [31, 89], [31, 91], [31, 93], [31, 95], [31, 97], [31, 98], [31, 99], [31, 100], [31, 102], [31, 103], [31, 104], [31, 107], [31, 108], [31, 109], [31, 110], [31, 111], [31, 112], [31, 113], [31, 114], [32, 33], [32, 36], [32, 38], [32, 39], [32, 42], [32, 43], [32, 50], [32, 52], [32, 55], [32, 58], [32, 60], [32, 63], [32, 64], [32, 65], [32, 66], [32, 69], [32, 73], [32, 75], [32, 76], [32, 77], [32, 79], [32, 80], [32, 82], [32, 84], [32, 85], [32, 88], [32, 89], [32, 90], [32, 95], [32, 97], [32, 101], [32, 103], [32, 104], [32, 107], [32, 110], [32, 111], [32, 113], [32, 117], [32, 119], [33, 34], [33, 35], [33, 38], [33, 39], [33, 40], [33, 43], [33, 44], [33, 45], [33, 48], [33, 49], [33, 50], [33, 55], [33, 57], [33, 60], [33, 62], [33, 66], [33, 67], [33, 70], [33, 71], [33, 75], [33, 78], [33, 80], [33, 82], [33, 84], [33, 85], [33, 86], [33, 88], [33, 91], [33, 92], [33, 97], [33, 98], [33, 100], [33, 102], [33, 107], [33, 109], [33, 112], [33, 114], [33, 118], [34, 36], [34, 39], [34, 40], [34, 42], [34, 43], [34, 45], [34, 50], [34, 52], [34, 54], [34, 59], [34, 62], [34, 67], [34, 68], [34, 72], [34, 73], [34, 74], [34, 79], [34, 80], [34, 81], [34, 85], [34, 90], [34, 91], [34, 92], [34, 96], [34, 98], [34, 101], [34, 106], [34, 107], [34, 108], [34, 111], [34, 112], [34, 113], [34, 114], [34, 115], [34, 117], [34, 118], [34, 119], [35, 36], [35, 38], [35, 39], [35, 42], [35, 43], [35, 45], [35, 46], [35, 50], [35, 51], [35, 52], [35, 53], [35, 55], [35, 57], [35, 58], [35, 60], [35, 61], [35, 62], [35, 63], [35, 65], [35, 67], [35, 69], [35, 72], [35, 73], [35, 75], [35, 76], [35, 77], [35, 78], [35, 82], [35, 85], [35, 89], [35, 90], [35, 91], [35, 93], [35, 95], [35, 96], [35, 97], [35, 98], [35, 99], [35, 101], [35, 102], [35, 103], [35, 104], [35, 105], [35, 106], [35, 108], [35, 109], [35, 110], [35, 111], [35, 112], [35, 114], [35, 115], [35, 117], [35, 119], [36, 38], [36, 41], [36, 44], [36, 45], [36, 47], [36, 51], [36, 52], [36, 53], [36, 55], [36, 58], [36, 59], [36, 63], [36, 66], [36, 74], [36, 75], [36, 77], [36, 80], [36, 84], [36, 86], [36, 87], [36, 91], [36, 94], [36, 97], [36, 100], [36, 101], [36, 102], [36, 103], [36, 104], [36, 106], [36, 107], [36, 108], [36, 110], [36, 116], [36, 117], [36, 118], [36, 119], [37, 39], [37, 40], [37, 41], [37, 42], [37, 44], [37, 46], [37, 50], [37, 51], [37, 52], [37, 57], [37, 58], [37, 61], [37, 62], [37, 63], [37, 64], [37, 68], [37, 70], [37, 78], [37, 82], [37, 83], [37, 84], [37, 85], [37, 87], [37, 91], [37, 92], [37, 95], [37, 97], [37, 102], [37, 103], [37, 105], [37, 107], [37, 108], [37, 115], [37, 116], [37, 118], [37, 119], [38, 39], [38, 42], [38, 43], [38, 44], [38, 45], [38, 48], [38, 50], [38, 51], [38, 53], [38, 54], [38, 55], [38, 57], [38, 59], [38, 62], [38, 63], [38, 64], [38, 66], [38, 68], [38, 69], [38, 70], [38, 73], [38, 75], [38, 76], [38, 77], [38, 81], [38, 82], [38, 83], [38, 85], [38, 88], [38, 93], [38, 94], [38, 95], [38, 97], [38, 100], [38, 101], [38, 105], [38, 107], [38, 108], [38, 111], [38, 112], [38, 114], [38, 115], [38, 116], [38, 117], [38, 118], [39, 41], [39, 44], [39, 45], [39, 46], [39, 51], [39, 53], [39, 54], [39, 55], [39, 57], [39, 58], [39, 59], [39, 60], [39, 61], [39, 63], [39, 64], [39, 65], [39, 68], [39, 74], [39, 75], [39, 76], [39, 78], [39, 81], [39, 83], [39, 88], [39, 92], [39, 93], [39, 95], [39, 96], [39, 99], [39, 100], [39, 102], [39, 103], [39, 109], [39, 112], [39, 113], [39, 114], [39, 115], [39, 117], [39, 118], [40, 41], [40, 42], [40, 44], [40, 48], [40, 49], [40, 51], [40, 53], [40, 54], [40, 56], [40, 61], [40, 64], [40, 66], [40, 67], [40, 68], [40, 69], [40, 72], [40, 73], [40, 74], [40, 75], [40, 78], [40, 79], [40, 80], [40, 82], [40, 83], [40, 84], [40, 87], [40, 88], [40, 89], [40, 91], [40, 92], [40, 94], [40, 95], [40, 97], [40, 98], [40, 100], [40, 101], [40, 102], [40, 103], [40, 105], [40, 106], [40, 107], [40, 110], [40, 111], [40, 112], [40, 113], [40, 116], [40, 117], [40, 119], [41, 42], [41, 44], [41, 45], [41, 47], [41, 48], [41, 50], [41, 53], [41, 57], [41, 59], [41, 60], [41, 63], [41, 64], [41, 71], [41, 72], [41, 73], [41, 74], [41, 75], [41, 76], [41, 77], [41, 79], [41, 80], [41, 81], [41, 82], [41, 84], [41, 85], [41, 87], [41, 88], [41, 89], [41, 91], [41, 96], [41, 98], [41, 99], [41, 101], [41, 102], [41, 103], [41, 105], [41, 111], [41, 112], [41, 113], [41, 119], [42, 45], [42, 50], [42, 57], [42, 59], [42, 65], [42, 66], [42, 67], [42, 68], [42, 69], [42, 70], [42, 71], [42, 72], [42, 73], [42, 74], [42, 76], [42, 83], [42, 88], [42, 89], [42, 90], [42, 91], [42, 92], [42, 96], [42, 97], [42, 100], [42, 103], [42, 105], [42, 106], [42, 108], [42, 111], [42, 112], [42, 114], [42, 116], [42, 117], [42, 118], [42, 119], [43, 44], [43, 45], [43, 46], [43, 49], [43, 53], [43, 57], [43, 59], [43, 61], [43, 62], [43, 64], [43, 65], [43, 66], [43, 68], [43, 70], [43, 72], [43, 75], [43, 76], [43, 79], [43, 80], [43, 81], [43, 82], [43, 84], [43, 86], [43, 91], [43, 92], [43, 94], [43, 95], [43, 96], [43, 97], [43, 98], [43, 100], [43, 102], [43, 103], [43, 104], [43, 108], [43, 110], [43, 111], [43, 116], [43, 118], [43, 119], [44, 46], [44, 51], [44, 52], [44, 53], [44, 55], [44, 56], [44, 57], [44, 58], [44, 59], [44, 64], [44, 65], [44, 67], [44, 68], [44, 70], [44, 71], [44, 72], [44, 74], [44, 75], [44, 77], [44, 80], [44, 82], [44, 83], [44, 84], [44, 88], [44, 89], [44, 90], [44, 91], [44, 100], [44, 102], [44, 106], [44, 107], [44, 111], [44, 113], [44, 115], [44, 117], [45, 49], [45, 50], [45, 51], [45, 53], [45, 56], [45, 58], [45, 59], [45, 60], [45, 67], [45, 69], [45, 70], [45, 72], [45, 73], [45, 77], [45, 78], [45, 79], [45, 81], [45, 83], [45, 84], [45, 85], [45, 86], [45, 88], [45, 89], [45, 91], [45, 93], [45, 94], [45, 95], [45, 97], [45, 100], [45, 101], [45, 102], [45, 108], [45, 110], [45, 111], [45, 112], [45, 113], [45, 114], [45, 115], [45, 117], [46, 47], [46, 48], [46, 49], [46, 50], [46, 52], [46, 55], [46, 58], [46, 59], [46, 60], [46, 64], [46, 66], [46, 73], [46, 74], [46, 77], [46, 78], [46, 79], [46, 80], [46, 84], [46, 85], [46, 87], [46, 88], [46, 89], [46, 91], [46, 92], [46, 97], [46, 99], [46, 100], [46, 101], [46, 102], [46, 103], [46, 105], [46, 108], [46, 110], [46, 114], [46, 115], [46, 119], [47, 48], [47, 50], [47, 51], [47, 52], [47, 54], [47, 56], [47, 59], [47, 61], [47, 62], [47, 64], [47, 65], [47, 73], [47, 74], [47, 76], [47, 80], [47, 82], [47, 84], [47, 87], [47, 88], [47, 91], [47, 92], [47, 94], [47, 95], [47, 96], [47, 99], [47, 100], [47, 110], [47, 114], [47, 116], [48, 51], [48, 54], [48, 55], [48, 59], [48, 62], [48, 70], [48, 73], [48, 74], [48, 76], [48, 77], [48, 79], [48, 80], [48, 81], [48, 84], [48, 85], [48, 89], [48, 93], [48, 94], [48, 95], [48, 99], [48, 100], [48, 101], [48, 102], [48, 104], [48, 105], [48, 106], [48, 115], [48, 117], [48, 118], [49, 51], [49, 56], [49, 59], [49, 60], [49, 61], [49, 62], [49, 63], [49, 65], [49, 66], [49, 68], [49, 70], [49, 73], [49, 75], [49, 76], [49, 78], [49, 80], [49, 81], [49, 82], [49, 83], [49, 84], [49, 85], [49, 86], [49, 88], [49, 89], [49, 91], [49, 92], [49, 95], [49, 96], [49, 98], [49, 101], [49, 109], [49, 110], [49, 114], [49, 116], [49, 117], [49, 119], [50, 51], [50, 52], [50, 56], [50, 58], [50, 59], [50, 60], [50, 61], [50, 63], [50, 64], [50, 65], [50, 69], [50, 72], [50, 73], [50, 74], [50, 75], [50, 78], [50, 79], [50, 80], [50, 82], [50, 84], [50, 85], [50, 89], [50, 90], [50, 91], [50, 97], [50, 98], [50, 100], [50, 102], [50, 106], [50, 109], [50, 110], [50, 111], [50, 112], [50, 114], [51, 52], [51, 53], [51, 58], [51, 59], [51, 60], [51, 62], [51, 63], [51, 65], [51, 66], [51, 70], [51, 71], [51, 72], [51, 73], [51, 75], [51, 78], [51, 82], [51, 84], [51, 86], [51, 87], [51, 88], [51, 89], [51, 90], [51, 92], [51, 96], [51, 97], [51, 98], [51, 100], [51, 102], [51, 106], [51, 107], [51, 113], [51, 117], [51, 119], [52, 53], [52, 54], [52, 56], [52, 57], [52, 58], [52, 59], [52, 60], [52, 62], [52, 63], [52, 65], [52, 68], [52, 74], [52, 76], [52, 78], [52, 81], [52, 85], [52, 86], [52, 87], [52, 89], [52, 90], [52, 92], [52, 95], [52, 96], [52, 97], [52, 104], [52, 105], [52, 106], [52, 107], [52, 110], [52, 112], [52, 113], [52, 114], [52, 115], [52, 116], [52, 117], [52, 118], [53, 54], [53, 59], [53, 61], [53, 62], [53, 63], [53, 67], [53, 68], [53, 72], [53, 73], [53, 75], [53, 77], [53, 79], [53, 80], [53, 81], [53, 82], [53, 86], [53, 88], [53, 89], [53, 90], [53, 91], [53, 92], [53, 93], [53, 98], [53, 100], [53, 103], [53, 104], [53, 107], [53, 108], [53, 109], [53, 110], [53, 111], [53, 112], [53, 113], [53, 114], [53, 115], [53, 117], [53, 119], [54, 55], [54, 56], [54, 58], [54, 59], [54, 60], [54, 61], [54, 62], [54, 65], [54, 69], [54, 70], [54, 71], [54, 72], [54, 75], [54, 78], [54, 79], [54, 84], [54, 86], [54, 87], [54, 88], [54, 90], [54, 94], [54, 95], [54, 96], [54, 97], [54, 98], [54, 99], [54, 100], [54, 105], [54, 106], [54, 111], [54, 112], [54, 115], [54, 116], [54, 117], [54, 118], [54, 119], [55, 60], [55, 62], [55, 68], [55, 70], [55, 73], [55, 75], [55, 81], [55, 82], [55, 84], [55, 86], [55, 88], [55, 89], [55, 90], [55, 91], [55, 94], [55, 95], [55, 96], [55, 97], [55, 99], [55, 101], [55, 102], [55, 103], [55, 104], [55, 109], [55, 110], [55, 112], [55, 113], [55, 116], [55, 117], [55, 119], [56, 57], [56, 62], [56, 63], [56, 67], [56, 68], [56, 71], [56, 76], [56, 77], [56, 78], [56, 84], [56, 86], [56, 87], [56, 89], [56, 90], [56, 91], [56, 93], [56, 94], [56, 95], [56, 101], [56, 102], [56, 104], [56, 105], [56, 108], [56, 109], [56, 112], [56, 114], [56, 115], [56, 116], [57, 58], [57, 59], [57, 61], [57, 63], [57, 64], [57, 65], [57, 67], [57, 68], [57, 70], [57, 71], [57, 73], [57, 80], [57, 81], [57, 82], [57, 83], [57, 85], [57, 86], [57, 88], [57, 92], [57, 98], [57, 99], [57, 101], [57, 104], [57, 107], [57, 109], [57, 111], [57, 112], [57, 113], [57, 118], [58, 60], [58, 62], [58, 63], [58, 64], [58, 67], [58, 69], [58, 70], [58, 71], [58, 75], [58, 77], [58, 78], [58, 80], [58, 82], [58, 84], [58, 86], [58, 87], [58, 88], [58, 89], [58, 93], [58, 94], [58, 95], [58, 97], [58, 100], [58, 101], [58, 102], [58, 104], [58, 105], [58, 107], [58, 108], [58, 111], [58, 112], [58, 119], [59, 61], [59, 63], [59, 65], [59, 67], [59, 69], [59, 71], [59, 72], [59, 74], [59, 76], [59, 78], [59, 80], [59, 82], [59, 85], [59, 86], [59, 91], [59, 92], [59, 95], [59, 96], [59, 97], [59, 99], [59, 101], [59, 102], [59, 103], [59, 104], [59, 105], [59, 106], [59, 107], [59, 110], [59, 112], [59, 114], [59, 115], [59, 116], [59, 117], [59, 119], [60, 61], [60, 62], [60, 63], [60, 64], [60, 68], [60, 69], [60, 77], [60, 78], [60, 80], [60, 83], [60, 84], [60, 87], [60, 88], [60, 89], [60, 90], [60, 91], [60, 95], [60, 97], [60, 98], [60, 99], [60, 101], [60, 103], [60, 104], [60, 108], [60, 115], [60, 117], [60, 119], [61, 62], [61, 63], [61, 64], [61, 65], [61, 69], [61, 70], [61, 72], [61, 74], [61, 76], [61, 85], [61, 88], [61, 89], [61, 90], [61, 94], [61, 95], [61, 96], [61, 97], [61, 98], [61, 99], [61, 102], [61, 105], [61, 110], [61, 111], [61, 113], [61, 114], [61, 115], [61, 116], [61, 118], [62, 63], [62, 64], [62, 66], [62, 67], [62, 68], [62, 71], [62, 73], [62, 76], [62, 77], [62, 82], [62, 83], [62, 85], [62, 86], [62, 89], [62, 92], [62, 96], [62, 97], [62, 102], [62, 103], [62, 104], [62, 106], [62, 107], [62, 111], [62, 113], [62, 115], [62, 116], [62, 118], [62, 119], [63, 65], [63, 66], [63, 69], [63, 70], [63, 71], [63, 72], [63, 76], [63, 77], [63, 78], [63, 79], [63, 80], [63, 81], [63, 83], [63, 85], [63, 86], [63, 88], [63, 90], [63, 93], [63, 94], [63, 96], [63, 97], [63, 98], [63, 100], [63, 106], [63, 108], [63, 109], [63, 110], [63, 111], [63, 118], [63, 119], [64, 65], [64, 69], [64, 70], [64, 72], [64, 76], [64, 80], [64, 87], [64, 88], [64, 89], [64, 91], [64, 92], [64, 95], [64, 96], [64, 97], [64, 98], [64, 99], [64, 111], [64, 112], [64, 114], [64, 115], [64, 116], [64, 119], [65, 66], [65, 69], [65, 70], [65, 71], [65, 72], [65, 74], [65, 75], [65, 79], [65, 81], [65, 83], [65, 87], [65, 88], [65, 89], [65, 91], [65, 92], [65, 95], [65, 99], [65, 101], [65, 102], [65, 104], [65, 110], [65, 111], [65, 113], [65, 117], [65, 118], [66, 67], [66, 68], [66, 70], [66, 71], [66, 73], [66, 76], [66, 77], [66, 79], [66, 80], [66, 81], [66, 82], [66, 84], [66, 85], [66, 89], [66, 91], [66, 94], [66, 95], [66, 97], [66, 98], [66, 102], [66, 103], [66, 104], [66, 106], [66, 107], [66, 109], [66, 114], [66, 115], [66, 116], [66, 117], [66, 119], [67, 68], [67, 74], [67, 76], [67, 77], [67, 78], [67, 80], [67, 81], [67, 82], [67, 86], [67, 87], [67, 92], [67, 93], [67, 94], [67, 95], [67, 98], [67, 99], [67, 103], [67, 104], [67, 106], [67, 107], [67, 110], [67, 112], [67, 114], [67, 115], [67, 117], [67, 118], [67, 119], [68, 69], [68, 70], [68, 71], [68, 72], [68, 75], [68, 76], [68, 77], [68, 78], [68, 80], [68, 82], [68, 83], [68, 84], [68, 88], [68, 89], [68, 91], [68, 92], [68, 94], [68, 95], [68, 96], [68, 99], [68, 101], [68, 102], [68, 107], [68, 108], [68, 114], [68, 116], [68, 117], [68, 118], [69, 70], [69, 71], [69, 73], [69, 74], [69, 75], [69, 78], [69, 80], [69, 81], [69, 83], [69, 89], [69, 90], [69, 93], [69, 96], [69, 99], [69, 100], [69, 101], [69, 103], [69, 104], [69, 105], [69, 108], [69, 110], [69, 111], [69, 113], [69, 114], [69, 116], [70, 72], [70, 76], [70, 78], [70, 79], [70, 80], [70, 81], [70, 82], [70, 84], [70, 88], [70, 90], [70, 98], [70, 99], [70, 100], [70, 101], [70, 102], [70, 103], [70, 104], [70, 105], [70, 108], [70, 109], [70, 113], [70, 116], [70, 117], [70, 119], [71, 72], [71, 73], [71, 74], [71, 75], [71, 78], [71, 79], [71, 84], [71, 86], [71, 87], [71, 88], [71, 90], [71, 92], [71, 93], [71, 94], [71, 97], [71, 98], [71, 99], [71, 101], [71, 102], [71, 105], [71, 107], [71, 108], [71, 111], [71, 112], [71, 114], [71, 115], [71, 116], [71, 118], [71, 119], [72, 73], [72, 74], [72, 75], [72, 77], [72, 78], [72, 79], [72, 81], [72, 83], [72, 84], [72, 85], [72, 87], [72, 88], [72, 92], [72, 94], [72, 96], [72, 97], [72, 98], [72, 99], [72, 101], [72, 104], [72, 105], [72, 108], [72, 109], [72, 114], [72, 119], [73, 76], [73, 77], [73, 81], [73, 82], [73, 83], [73, 89], [73, 90], [73, 91], [73, 93], [73, 96], [73, 98], [73, 100], [73, 102], [73, 105], [73, 107], [73, 110], [73, 118], [74, 77], [74, 78], [74, 79], [74, 80], [74, 85], [74, 86], [74, 88], [74, 90], [74, 91], [74, 92], [74, 93], [74, 95], [74, 96], [74, 97], [74, 99], [74, 100], [74, 102], [74, 108], [74, 110], [74, 113], [74, 114], [74, 118], [74, 119], [75, 76], [75, 77], [75, 78], [75, 81], [75, 82], [75, 85], [75, 89], [75, 91], [75, 92], [75, 93], [75, 94], [75, 96], [75, 99], [75, 100], [75, 101], [75, 102], [75, 104], [75, 107], [75, 108], [75, 109], [75, 114], [75, 115], [75, 117], [76, 80], [76, 81], [76, 84], [76, 85], [76, 87], [76, 90], [76, 91], [76, 93], [76, 95], [76, 96], [76, 97], [76, 99], [76, 100], [76, 101], [76, 102], [76, 110], [76, 115], [76, 116], [76, 118], [76, 119], [77, 79], [77, 82], [77, 83], [77, 84], [77, 85], [77, 87], [77, 88], [77, 89], [77, 90], [77, 91], [77, 93], [77, 95], [77, 96], [77, 98], [77, 99], [77, 103], [77, 104], [77, 108], [77, 109], [77, 110], [77, 111], [77, 113], [77, 114], [77, 119], [78, 81], [78, 84], [78, 87], [78, 89], [78, 90], [78, 91], [78, 92], [78, 93], [78, 95], [78, 97], [78, 98], [78, 99], [78, 101], [78, 103], [78, 106], [78, 109], [78, 112], [78, 114], [78, 116], [79, 80], [79, 85], [79, 86], [79, 89], [79, 93], [79, 96], [79, 97], [79, 98], [79, 100], [79, 102], [79, 103], [79, 104], [79, 107], [79, 108], [79, 109], [79, 110], [79, 112], [79, 114], [79, 116], [79, 117], [79, 118], [79, 119], [80, 83], [80, 85], [80, 88], [80, 91], [80, 93], [80, 99], [80, 102], [80, 106], [80, 109], [80, 119], [81, 83], [81, 85], [81, 86], [81, 87], [81, 89], [81, 92], [81, 93], [81, 95], [81, 96], [81, 97], [81, 98], [81, 99], [81, 102], [81, 105], [81, 107], [81, 108], [81, 109], [81, 111], [81, 115], [81, 116], [82, 83], [82, 84], [82, 85], [82, 86], [82, 89], [82, 91], [82, 95], [82, 96], [82, 98], [82, 104], [82, 105], [82, 109], [82, 110], [82, 111], [82, 112], [82, 114], [82, 116], [82, 117], [82, 118], [82, 119], [83, 84], [83, 88], [83, 89], [83, 97], [83, 100], [83, 101], [83, 102], [83, 111], [83, 112], [83, 114], [83, 115], [83, 116], [83, 119], [84, 85], [84, 87], [84, 88], [84, 89], [84, 92], [84, 94], [84, 95], [84, 96], [84, 98], [84, 102], [84, 103], [84, 107], [84, 109], [84, 110], [84, 113], [84, 114], [84, 115], [84, 117], [84, 119], [85, 86], [85, 87], [85, 88], [85, 89], [85, 90], [85, 92], [85, 93], [85, 94], [85, 96], [85, 98], [85, 99], [85, 100], [85, 105], [85, 107], [85, 108], [85, 109], [85, 113], [85, 114], [85, 115], [85, 116], [85, 118], [85, 119], [86, 87], [86, 88], [86, 92], [86, 93], [86, 94], [86, 95], [86, 96], [86, 97], [86, 99], [86, 101], [86, 102], [86, 103], [86, 104], [86, 106], [86, 107], [86, 108], [86, 110], [86, 111], [86, 112], [86, 113], [86, 114], [86, 115], [86, 118], [86, 119], [87, 88], [87, 89], [87, 92], [87, 93], [87, 95], [87, 97], [87, 98], [87, 99], [87, 101], [87, 104], [87, 106], [87, 107], [87, 110], [87, 111], [87, 115], [87, 118], [87, 119], [88, 89], [88, 91], [88, 95], [88, 96], [88, 98], [88, 100], [88, 102], [88, 107], [88, 108], [88, 110], [88, 111], [88, 112], [88, 113], [88, 114], [88, 116], [88, 117], [88, 118], [89, 90], [89, 92], [89, 94], [89, 97], [89, 99], [89, 101], [89, 103], [89, 109], [89, 110], [89, 111], [89, 112], [89, 113], [89, 115], [89, 116], [89, 119], [90, 91], [90, 92], [90, 93], [90, 95], [90, 97], [90, 101], [90, 105], [90, 107], [90, 108], [90, 110], [90, 111], [90, 112], [90, 113], [90, 118], [90, 119], [91, 92], [91, 93], [91, 97], [91, 98], [91, 99], [91, 103], [91, 104], [91, 105], [91, 107], [91, 109], [91, 110], [91, 112], [91, 114], [91, 116], [91, 119], [92, 95], [92, 96], [92, 97], [92, 99], [92, 101], [92, 102], [92, 104], [92, 105], [92, 109], [92, 116], [92, 117], [93, 94], [93, 95], [93, 97], [93, 99], [93, 100], [93, 101], [93, 105], [93, 107], [93, 110], [93, 111], [93, 114], [93, 115], [93, 117], [93, 118], [94, 104], [94, 107], [94, 109], [94, 113], [94, 115], [94, 117], [95, 96], [95, 98], [95, 103], [95, 104], [95, 105], [95, 106], [95, 107], [95, 108], [95, 111], [95, 112], [95, 114], [95, 118], [95, 119], [96, 97], [96, 98], [96, 99], [96, 100], [96, 102], [96, 103], [96, 105], [96, 107], [96, 108], [96, 109], [96, 111], [96, 112], [96, 115], [96, 116], [96, 119], [97, 99], [97, 100], [97, 101], [97, 103], [97, 104], [97, 105], [97, 109], [97, 113], [97, 114], [97, 117], [97, 119], [98, 102], [98, 104], [98, 105], [98, 107], [98, 108], [98, 109], [98, 110], [98, 112], [98, 114], [98, 117], [98, 119], [99, 100], [99, 103], [99, 104], [99, 105], [99, 106], [99, 107], [99, 111], [99, 113], [99, 114], [99, 115], [99, 116], [99, 117], [99, 119], [100, 101], [100, 106], [100, 109], [100, 111], [100, 114], [100, 116], [100, 117], [100, 118], [100, 119], [101, 102], [101, 104], [101, 105], [101, 107], [101, 111], [101, 113], [101, 116], [101, 119], [102, 103], [102, 104], [102, 105], [102, 108], [102, 109], [102, 111], [102, 113], [102, 114], [102, 115], [102, 116], [103, 106], [103, 108], [103, 111], [103, 116], [103, 117], [103, 118], [103, 119], [104, 105], [104, 106], [104, 107], [104, 109], [104, 110], [104, 112], [104, 116], [104, 117], [104, 119], [105, 106], [105, 107], [105, 113], [105, 114], [105, 115], [105, 116], [105, 117], [105, 119], [106, 107], [106, 108], [106, 109], [106, 111], [106, 113], [106, 117], [106, 118], [106, 119], [107, 108], [107, 111], [107, 112], [107, 114], [107, 115], [107, 117], [107, 118], [108, 109], [108, 112], [108, 113], [108, 114], [108, 115], [108, 119], [109, 110], [109, 111], [109, 117], [109, 119], [110, 112], [110, 113], [110, 118], [110, 119], [111, 112], [111, 117], [111, 118], [112, 113], [112, 115], [112, 116], [113, 115], [113, 118], [113, 119], [114, 115], [114, 116], [114, 118], [115, 117], [115, 118], [115, 119], [116, 118], [116, 119], [118, 119]], "family": "mc_max_clique", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-max-clique-l6-s1/tests/run.py b/tasks/construct-mc-max-clique-l6-s1/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-max-clique-l6-s1/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-max-clique-l6-s1/tests/test.sh b/tasks/construct-mc-max-clique-l6-s1/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-max-clique-l6-s1/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-max-clique-l6-s6/environment/Dockerfile b/tasks/construct-mc-max-clique-l6-s6/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-max-clique-l6-s6/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-max-clique-l6-s6/environment/instance.json b/tasks/construct-mc-max-clique-l6-s6/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..37b4220b62fd6a0b5b1e3f8ad0879e72a474d2df --- /dev/null +++ b/tasks/construct-mc-max-clique-l6-s6/environment/instance.json @@ -0,0 +1 @@ +{"n": 120, "k": 13, "edges": [[0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 8], [0, 10], [0, 11], [0, 12], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 21], [0, 22], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 34], [0, 36], [0, 37], [0, 42], [0, 45], [0, 47], [0, 50], [0, 53], [0, 54], [0, 55], [0, 58], [0, 59], [0, 60], [0, 61], [0, 62], [0, 63], [0, 66], [0, 67], [0, 68], [0, 71], [0, 73], [0, 74], [0, 78], [0, 79], [0, 80], [0, 81], [0, 87], [0, 91], [0, 92], [0, 97], [0, 99], [0, 102], [0, 103], [0, 108], [0, 109], [0, 111], [0, 113], [0, 114], [1, 3], [1, 5], [1, 7], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 17], [1, 18], [1, 20], [1, 21], [1, 23], [1, 26], [1, 27], [1, 29], [1, 31], [1, 36], [1, 37], [1, 38], [1, 39], [1, 41], [1, 42], [1, 43], [1, 45], [1, 47], [1, 48], [1, 49], [1, 50], [1, 51], [1, 52], [1, 53], [1, 55], [1, 56], [1, 57], [1, 58], [1, 61], [1, 63], [1, 64], [1, 67], [1, 68], [1, 69], [1, 70], [1, 71], [1, 72], [1, 73], [1, 76], [1, 77], [1, 79], [1, 80], [1, 84], [1, 85], [1, 87], [1, 88], [1, 89], [1, 92], [1, 93], [1, 94], [1, 96], [1, 98], [1, 99], [1, 100], [1, 103], [1, 104], [1, 105], [1, 107], [1, 108], [1, 109], [1, 111], [1, 114], [1, 118], [2, 3], [2, 5], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 17], [2, 19], [2, 24], [2, 25], [2, 28], [2, 32], [2, 33], [2, 34], [2, 35], [2, 36], [2, 37], [2, 38], [2, 39], [2, 40], [2, 44], [2, 48], [2, 50], [2, 51], [2, 56], [2, 57], [2, 58], [2, 65], [2, 66], [2, 68], [2, 69], [2, 70], [2, 71], [2, 72], [2, 73], [2, 74], [2, 75], [2, 76], [2, 81], [2, 83], [2, 84], [2, 85], [2, 89], [2, 90], [2, 91], [2, 93], [2, 94], [2, 95], [2, 96], [2, 97], [2, 100], [2, 101], [2, 103], [2, 104], [2, 105], [2, 112], [2, 113], [2, 117], [2, 119], [3, 4], [3, 6], [3, 8], [3, 9], [3, 11], [3, 14], [3, 15], [3, 16], [3, 17], [3, 18], [3, 19], [3, 20], [3, 21], [3, 24], [3, 26], [3, 27], [3, 28], [3, 29], [3, 31], [3, 34], [3, 37], [3, 38], [3, 39], [3, 41], [3, 42], [3, 43], [3, 45], [3, 46], [3, 47], [3, 51], [3, 52], [3, 55], [3, 58], [3, 61], [3, 62], [3, 63], [3, 64], [3, 67], [3, 68], [3, 69], [3, 70], [3, 71], [3, 73], [3, 77], [3, 79], [3, 82], [3, 83], [3, 84], [3, 85], [3, 86], [3, 88], [3, 89], [3, 91], [3, 93], [3, 96], [3, 97], [3, 99], [3, 100], [3, 102], [3, 103], [3, 105], [3, 110], [3, 111], [3, 112], [3, 114], [3, 115], [3, 118], [4, 5], [4, 6], [4, 7], [4, 10], [4, 12], [4, 15], [4, 19], [4, 20], [4, 22], [4, 24], [4, 29], [4, 32], [4, 33], [4, 34], [4, 38], [4, 42], [4, 43], [4, 46], [4, 47], [4, 48], [4, 49], [4, 50], [4, 52], [4, 55], [4, 57], [4, 58], [4, 60], [4, 61], [4, 62], [4, 63], [4, 64], [4, 65], [4, 67], [4, 69], [4, 70], [4, 73], [4, 75], [4, 76], [4, 78], [4, 82], [4, 83], [4, 86], [4, 88], [4, 90], [4, 91], [4, 92], [4, 97], [4, 98], [4, 99], [4, 100], [4, 102], [4, 108], [4, 111], [4, 113], [4, 114], [4, 115], [4, 118], [5, 6], [5, 7], [5, 8], [5, 10], [5, 11], [5, 12], [5, 13], [5, 16], [5, 17], [5, 18], [5, 23], [5, 24], [5, 26], [5, 27], [5, 28], [5, 29], [5, 31], [5, 35], [5, 37], [5, 39], [5, 40], [5, 41], [5, 42], [5, 45], [5, 47], [5, 51], [5, 53], [5, 57], [5, 59], [5, 60], [5, 64], [5, 65], [5, 67], [5, 68], [5, 69], [5, 70], [5, 73], [5, 75], [5, 77], [5, 78], [5, 79], [5, 81], [5, 82], [5, 83], [5, 84], [5, 85], [5, 86], [5, 87], [5, 89], [5, 90], [5, 91], [5, 92], [5, 93], [5, 94], [5, 96], [5, 97], [5, 102], [5, 104], [5, 107], [5, 108], [5, 109], [5, 110], [5, 114], [5, 116], [5, 119], [6, 10], [6, 12], [6, 13], [6, 16], [6, 18], [6, 24], [6, 25], [6, 26], [6, 28], [6, 29], [6, 30], [6, 32], [6, 36], [6, 37], [6, 38], [6, 39], [6, 44], [6, 46], [6, 47], [6, 48], [6, 49], [6, 55], [6, 59], [6, 63], [6, 64], [6, 67], [6, 69], [6, 71], [6, 72], [6, 74], [6, 75], [6, 76], [6, 78], [6, 80], [6, 84], [6, 90], [6, 91], [6, 93], [6, 96], [6, 100], [6, 101], [6, 102], [6, 103], [6, 105], [6, 107], [6, 110], [6, 111], [6, 112], [6, 113], [6, 114], [6, 115], [6, 117], [7, 8], [7, 9], [7, 10], [7, 12], [7, 13], [7, 15], [7, 16], [7, 17], [7, 18], [7, 22], [7, 23], [7, 27], [7, 28], [7, 29], [7, 31], [7, 38], [7, 39], [7, 41], [7, 45], [7, 47], [7, 48], [7, 49], [7, 50], [7, 51], [7, 55], [7, 56], [7, 57], [7, 60], [7, 64], [7, 65], [7, 68], [7, 71], [7, 76], [7, 77], [7, 78], [7, 79], [7, 80], [7, 82], [7, 83], [7, 85], [7, 87], [7, 88], [7, 89], [7, 94], [7, 95], [7, 97], [7, 100], [7, 104], [7, 105], [7, 106], [7, 107], [7, 108], [7, 109], [7, 112], [7, 113], [7, 115], [8, 10], [8, 11], [8, 15], [8, 16], [8, 19], [8, 20], [8, 22], [8, 23], [8, 25], [8, 26], [8, 29], [8, 32], [8, 34], [8, 35], [8, 41], [8, 42], [8, 44], [8, 46], [8, 47], [8, 52], [8, 53], [8, 55], [8, 57], [8, 60], [8, 61], [8, 63], [8, 66], [8, 68], [8, 69], [8, 70], [8, 72], [8, 79], [8, 80], [8, 87], [8, 89], [8, 90], [8, 95], [8, 96], [8, 98], [8, 99], [8, 102], [8, 107], [8, 108], [8, 111], [8, 112], [8, 113], [8, 114], [8, 115], [8, 118], [8, 119], [9, 11], [9, 18], [9, 19], [9, 21], [9, 22], [9, 23], [9, 25], [9, 26], [9, 27], [9, 30], [9, 32], [9, 33], [9, 35], [9, 38], [9, 39], [9, 42], [9, 43], [9, 46], [9, 48], [9, 49], [9, 51], [9, 52], [9, 53], [9, 56], [9, 57], [9, 61], [9, 63], [9, 64], [9, 70], [9, 71], [9, 72], [9, 74], [9, 77], [9, 78], [9, 79], [9, 80], [9, 82], [9, 83], [9, 84], [9, 85], [9, 86], [9, 89], [9, 93], [9, 96], [9, 97], [9, 98], [9, 100], [9, 103], [9, 104], [9, 106], [9, 107], [9, 108], [9, 111], [9, 112], [9, 113], [9, 114], [9, 115], [9, 117], [9, 118], [10, 13], [10, 14], [10, 15], [10, 16], [10, 17], [10, 19], [10, 20], [10, 24], [10, 26], [10, 27], [10, 28], [10, 29], [10, 34], [10, 35], [10, 38], [10, 39], [10, 40], [10, 41], [10, 42], [10, 43], [10, 46], [10, 47], [10, 48], [10, 49], [10, 50], [10, 53], [10, 55], [10, 56], [10, 57], [10, 58], [10, 59], [10, 61], [10, 62], [10, 66], [10, 68], [10, 71], [10, 73], [10, 75], [10, 76], [10, 79], [10, 80], [10, 82], [10, 84], [10, 85], [10, 86], [10, 88], [10, 90], [10, 94], [10, 96], [10, 98], [10, 100], [10, 103], [10, 104], [10, 106], [10, 109], [10, 112], [10, 113], [10, 114], [10, 115], [10, 116], [10, 117], [10, 118], [11, 12], [11, 16], [11, 18], [11, 21], [11, 23], [11, 25], [11, 26], [11, 29], [11, 34], [11, 36], [11, 44], [11, 48], [11, 53], [11, 54], [11, 57], [11, 60], [11, 61], [11, 64], [11, 66], [11, 67], [11, 75], [11, 77], [11, 80], [11, 82], [11, 86], [11, 87], [11, 88], [11, 89], [11, 90], [11, 91], [11, 92], [11, 94], [11, 95], [11, 96], [11, 97], [11, 98], [11, 101], [11, 103], [11, 105], [11, 106], [11, 107], [11, 108], [11, 110], [11, 113], [11, 118], [11, 119], [12, 14], [12, 15], [12, 16], [12, 17], [12, 18], [12, 19], [12, 21], [12, 24], [12, 26], [12, 27], [12, 28], [12, 29], [12, 30], [12, 31], [12, 33], [12, 34], [12, 36], [12, 40], [12, 41], [12, 42], [12, 43], [12, 46], [12, 47], [12, 48], [12, 51], [12, 54], [12, 56], [12, 58], [12, 60], [12, 61], [12, 62], [12, 64], [12, 65], [12, 66], [12, 67], [12, 68], [12, 69], [12, 70], [12, 75], [12, 76], [12, 77], [12, 80], [12, 83], [12, 84], [12, 88], [12, 91], [12, 92], [12, 94], [12, 95], [12, 96], [12, 97], [12, 100], [12, 101], [12, 102], [12, 103], [12, 104], [12, 105], [12, 108], [12, 109], [12, 110], [12, 112], [12, 115], [12, 116], [12, 117], [12, 119], [13, 16], [13, 18], [13, 20], [13, 22], [13, 23], [13, 24], [13, 26], [13, 31], [13, 33], [13, 35], [13, 37], [13, 38], [13, 41], [13, 42], [13, 43], [13, 45], [13, 46], [13, 48], [13, 49], [13, 51], [13, 52], [13, 54], [13, 55], [13, 57], [13, 60], [13, 61], [13, 63], [13, 64], [13, 65], [13, 68], [13, 70], [13, 71], [13, 72], [13, 74], [13, 76], [13, 77], [13, 78], [13, 79], [13, 80], [13, 83], [13, 84], [13, 86], [13, 87], [13, 89], [13, 90], [13, 92], [13, 94], [13, 95], [13, 96], [13, 97], [13, 98], [13, 99], [13, 101], [13, 102], [13, 103], [13, 106], [13, 107], [13, 108], [13, 109], [13, 111], [13, 113], [13, 115], [13, 117], [13, 118], [14, 15], [14, 16], [14, 19], [14, 21], [14, 22], [14, 23], [14, 24], [14, 26], [14, 27], [14, 29], [14, 30], [14, 31], [14, 32], [14, 34], [14, 39], [14, 40], [14, 41], [14, 44], [14, 47], [14, 51], [14, 53], [14, 58], [14, 59], [14, 60], [14, 61], [14, 62], [14, 63], [14, 64], [14, 65], [14, 66], [14, 69], [14, 72], [14, 73], [14, 74], [14, 76], [14, 79], [14, 81], [14, 82], [14, 86], [14, 93], [14, 94], [14, 98], [14, 101], [14, 103], [14, 104], [14, 107], [14, 109], [14, 110], [14, 115], [14, 118], [14, 119], [15, 19], [15, 21], [15, 22], [15, 23], [15, 24], [15, 26], [15, 31], [15, 32], [15, 35], [15, 37], [15, 38], [15, 42], [15, 44], [15, 46], [15, 47], [15, 48], [15, 49], [15, 52], [15, 53], [15, 54], [15, 56], [15, 59], [15, 60], [15, 61], [15, 63], [15, 64], [15, 65], [15, 66], [15, 67], [15, 68], [15, 69], [15, 70], [15, 75], [15, 79], [15, 81], [15, 83], [15, 85], [15, 87], [15, 88], [15, 89], [15, 91], [15, 100], [15, 103], [15, 105], [15, 107], [15, 108], [15, 109], [15, 110], [15, 112], [15, 114], [15, 116], [16, 18], [16, 20], [16, 22], [16, 24], [16, 28], [16, 30], [16, 31], [16, 32], [16, 34], [16, 38], [16, 43], [16, 46], [16, 47], [16, 48], [16, 49], [16, 51], [16, 53], [16, 55], [16, 56], [16, 58], [16, 60], [16, 61], [16, 62], [16, 63], [16, 66], [16, 69], [16, 71], [16, 73], [16, 74], [16, 75], [16, 76], [16, 78], [16, 79], [16, 80], [16, 81], [16, 83], [16, 84], [16, 86], [16, 88], [16, 89], [16, 94], [16, 95], [16, 96], [16, 98], [16, 101], [16, 104], [16, 105], [16, 108], [16, 110], [16, 111], [16, 114], [16, 115], [16, 116], [17, 18], [17, 19], [17, 21], [17, 24], [17, 25], [17, 28], [17, 31], [17, 35], [17, 38], [17, 40], [17, 41], [17, 42], [17, 46], [17, 47], [17, 48], [17, 51], [17, 53], [17, 54], [17, 55], [17, 57], [17, 59], [17, 61], [17, 62], [17, 63], [17, 64], [17, 65], [17, 66], [17, 67], [17, 68], [17, 72], [17, 75], [17, 79], [17, 81], [17, 83], [17, 84], [17, 87], [17, 94], [17, 95], [17, 96], [17, 97], [17, 99], [17, 100], [17, 103], [17, 104], [17, 105], [17, 107], [17, 108], [17, 109], [17, 110], [17, 112], [17, 113], [17, 116], [17, 119], [18, 21], [18, 22], [18, 24], [18, 26], [18, 28], [18, 29], [18, 30], [18, 31], [18, 36], [18, 37], [18, 38], [18, 39], [18, 41], [18, 46], [18, 48], [18, 49], [18, 50], [18, 52], [18, 53], [18, 55], [18, 58], [18, 59], [18, 60], [18, 61], [18, 62], [18, 65], [18, 66], [18, 68], [18, 70], [18, 71], [18, 73], [18, 74], [18, 76], [18, 77], [18, 78], [18, 79], [18, 80], [18, 83], [18, 84], [18, 85], [18, 86], [18, 87], [18, 89], [18, 92], [18, 93], [18, 94], [18, 95], [18, 96], [18, 101], [18, 102], [18, 103], [18, 108], [18, 110], [18, 111], [18, 113], [18, 115], [18, 116], [18, 117], [18, 118], [18, 119], [19, 22], [19, 23], [19, 24], [19, 28], [19, 29], [19, 33], [19, 36], [19, 38], [19, 40], [19, 43], [19, 44], [19, 47], [19, 49], [19, 50], [19, 55], [19, 56], [19, 57], [19, 58], [19, 60], [19, 61], [19, 62], [19, 65], [19, 67], [19, 70], [19, 73], [19, 74], [19, 75], [19, 76], [19, 77], [19, 78], [19, 81], [19, 82], [19, 85], [19, 87], [19, 94], [19, 95], [19, 97], [19, 99], [19, 101], [19, 102], [19, 103], [19, 105], [19, 107], [19, 108], [19, 109], [19, 111], [19, 112], [19, 114], [19, 115], [19, 116], [19, 117], [19, 119], [20, 22], [20, 24], [20, 25], [20, 26], [20, 27], [20, 28], [20, 29], [20, 32], [20, 36], [20, 37], [20, 38], [20, 39], [20, 40], [20, 42], [20, 44], [20, 49], [20, 50], [20, 54], [20, 55], [20, 61], [20, 62], [20, 63], [20, 64], [20, 66], [20, 67], [20, 69], [20, 70], [20, 71], [20, 72], [20, 73], [20, 75], [20, 76], [20, 79], [20, 80], [20, 82], [20, 87], [20, 89], [20, 94], [20, 95], [20, 96], [20, 97], [20, 99], [20, 100], [20, 101], [20, 104], [20, 108], [20, 110], [20, 111], [20, 112], [20, 117], [21, 24], [21, 26], [21, 27], [21, 28], [21, 31], [21, 34], [21, 36], [21, 39], [21, 41], [21, 42], [21, 48], [21, 52], [21, 55], [21, 59], [21, 61], [21, 62], [21, 63], [21, 68], [21, 72], [21, 74], [21, 75], [21, 77], [21, 78], [21, 81], [21, 82], [21, 84], [21, 85], [21, 89], [21, 91], [21, 93], [21, 94], [21, 98], [21, 99], [21, 100], [21, 103], [21, 106], [21, 109], [21, 110], [21, 115], [21, 116], [21, 117], [22, 23], [22, 26], [22, 28], [22, 29], [22, 32], [22, 33], [22, 37], [22, 38], [22, 42], [22, 43], [22, 44], [22, 47], [22, 50], [22, 52], [22, 53], [22, 55], [22, 56], [22, 58], [22, 60], [22, 62], [22, 66], [22, 67], [22, 68], [22, 70], [22, 74], [22, 76], [22, 78], [22, 80], [22, 82], [22, 83], [22, 84], [22, 85], [22, 86], [22, 91], [22, 92], [22, 93], [22, 95], [22, 96], [22, 97], [22, 98], [22, 99], [22, 100], [22, 101], [22, 103], [22, 104], [22, 106], [22, 108], [22, 109], [22, 112], [22, 113], [22, 114], [22, 115], [22, 118], [23, 24], [23, 25], [23, 26], [23, 27], [23, 29], [23, 31], [23, 32], [23, 33], [23, 37], [23, 38], [23, 39], [23, 40], [23, 42], [23, 43], [23, 51], [23, 53], [23, 54], [23, 63], [23, 65], [23, 70], [23, 72], [23, 73], [23, 75], [23, 77], [23, 78], [23, 82], [23, 84], [23, 86], [23, 88], [23, 89], [23, 90], [23, 91], [23, 93], [23, 95], [23, 96], [23, 97], [23, 99], [23, 101], [23, 102], [23, 103], [23, 109], [23, 110], [23, 111], [23, 112], [23, 113], [23, 116], [23, 117], [24, 25], [24, 28], [24, 30], [24, 31], [24, 32], [24, 33], [24, 36], [24, 39], [24, 41], [24, 42], [24, 48], [24, 54], [24, 55], [24, 58], [24, 63], [24, 64], [24, 65], [24, 67], [24, 68], [24, 69], [24, 70], [24, 71], [24, 76], [24, 81], [24, 82], [24, 83], [24, 84], [24, 86], [24, 87], [24, 89], [24, 91], [24, 92], [24, 93], [24, 94], [24, 95], [24, 99], [24, 100], [24, 102], [24, 105], [24, 106], [24, 108], [24, 110], [24, 113], [24, 114], [24, 116], [24, 117], [24, 119], [25, 26], [25, 27], [25, 30], [25, 31], [25, 33], [25, 35], [25, 36], [25, 38], [25, 40], [25, 41], [25, 43], [25, 44], [25, 45], [25, 46], [25, 49], [25, 50], [25, 52], [25, 53], [25, 54], [25, 57], [25, 58], [25, 59], [25, 61], [25, 64], [25, 65], [25, 67], [25, 69], [25, 70], [25, 71], [25, 72], [25, 75], [25, 80], [25, 81], [25, 83], [25, 84], [25, 86], [25, 88], [25, 89], [25, 90], [25, 91], [25, 92], [25, 93], [25, 96], [25, 98], [25, 99], [25, 101], [25, 103], [25, 104], [25, 106], [25, 107], [25, 114], [25, 117], [25, 118], [26, 29], [26, 30], [26, 31], [26, 32], [26, 34], [26, 35], [26, 36], [26, 37], [26, 38], [26, 39], [26, 43], [26, 45], [26, 48], [26, 49], [26, 50], [26, 52], [26, 53], [26, 54], [26, 55], [26, 56], [26, 58], [26, 59], [26, 60], [26, 62], [26, 64], [26, 65], [26, 67], [26, 68], [26, 71], [26, 72], [26, 73], [26, 74], [26, 75], [26, 76], [26, 79], [26, 80], [26, 82], [26, 83], [26, 84], [26, 85], [26, 86], [26, 87], [26, 94], [26, 95], [26, 96], [26, 97], [26, 98], [26, 100], [26, 102], [26, 103], [26, 104], [26, 106], [26, 107], [26, 109], [26, 110], [26, 111], [26, 112], [26, 113], [26, 114], [26, 117], [27, 28], [27, 35], [27, 43], [27, 45], [27, 47], [27, 48], [27, 49], [27, 52], [27, 55], [27, 57], [27, 58], [27, 60], [27, 61], [27, 64], [27, 65], [27, 66], [27, 67], [27, 69], [27, 71], [27, 72], [27, 77], [27, 80], [27, 84], [27, 86], [27, 87], [27, 89], [27, 93], [27, 94], [27, 96], [27, 98], [27, 99], [27, 100], [27, 102], [27, 103], [27, 104], [27, 105], [27, 106], [27, 110], [27, 111], [27, 112], [27, 113], [27, 115], [27, 116], [28, 29], [28, 31], [28, 32], [28, 33], [28, 34], [28, 36], [28, 38], [28, 39], [28, 40], [28, 41], [28, 42], [28, 43], [28, 44], [28, 45], [28, 47], [28, 48], [28, 50], [28, 51], [28, 55], [28, 56], [28, 57], [28, 60], [28, 62], [28, 63], [28, 64], [28, 65], [28, 67], [28, 68], [28, 70], [28, 73], [28, 75], [28, 86], [28, 87], [28, 88], [28, 90], [28, 93], [28, 94], [28, 96], [28, 97], [28, 99], [28, 102], [28, 103], [28, 104], [28, 105], [28, 108], [28, 110], [28, 111], [28, 113], [28, 117], [28, 119], [29, 30], [29, 31], [29, 32], [29, 34], [29, 36], [29, 38], [29, 39], [29, 41], [29, 42], [29, 43], [29, 46], [29, 47], [29, 51], [29, 52], [29, 53], [29, 54], [29, 55], [29, 57], [29, 59], [29, 61], [29, 63], [29, 65], [29, 67], [29, 68], [29, 69], [29, 70], [29, 71], [29, 72], [29, 74], [29, 75], [29, 77], [29, 78], [29, 79], [29, 81], [29, 82], [29, 83], [29, 87], [29, 88], [29, 90], [29, 95], [29, 96], [29, 99], [29, 101], [29, 102], [29, 104], [29, 106], [29, 107], [29, 108], [29, 113], [29, 115], [29, 116], [30, 31], [30, 33], [30, 35], [30, 36], [30, 39], [30, 41], [30, 48], [30, 49], [30, 55], [30, 56], [30, 57], [30, 59], [30, 60], [30, 61], [30, 62], [30, 63], [30, 64], [30, 65], [30, 66], [30, 71], [30, 73], [30, 75], [30, 76], [30, 77], [30, 82], [30, 85], [30, 88], [30, 92], [30, 98], [30, 99], [30, 104], [30, 108], [30, 109], [30, 110], [30, 112], [30, 113], [30, 114], [30, 115], [30, 116], [30, 117], [30, 118], [30, 119], [31, 34], [31, 36], [31, 37], [31, 40], [31, 41], [31, 42], [31, 45], [31, 46], [31, 48], [31, 51], [31, 52], [31, 53], [31, 55], [31, 58], [31, 63], [31, 65], [31, 66], [31, 68], [31, 69], [31, 70], [31, 71], [31, 73], [31, 75], [31, 77], [31, 80], [31, 83], [31, 89], [31, 91], [31, 92], [31, 94], [31, 95], [31, 96], [31, 97], [31, 100], [31, 102], [31, 104], [31, 108], [31, 110], [31, 111], [31, 112], [31, 113], [31, 114], [31, 115], [31, 116], [31, 118], [31, 119], [32, 35], [32, 36], [32, 38], [32, 40], [32, 41], [32, 42], [32, 44], [32, 45], [32, 46], [32, 49], [32, 50], [32, 52], [32, 54], [32, 55], [32, 56], [32, 57], [32, 61], [32, 62], [32, 63], [32, 64], [32, 66], [32, 68], [32, 69], [32, 70], [32, 71], [32, 73], [32, 75], [32, 78], [32, 80], [32, 83], [32, 84], [32, 85], [32, 86], [32, 87], [32, 88], [32, 92], [32, 94], [32, 95], [32, 96], [32, 98], [32, 99], [32, 101], [32, 105], [32, 107], [32, 108], [32, 110], [32, 113], [33, 35], [33, 36], [33, 37], [33, 38], [33, 39], [33, 40], [33, 41], [33, 43], [33, 46], [33, 48], [33, 49], [33, 50], [33, 51], [33, 52], [33, 53], [33, 55], [33, 56], [33, 57], [33, 60], [33, 62], [33, 64], [33, 66], [33, 68], [33, 69], [33, 72], [33, 73], [33, 76], [33, 78], [33, 79], [33, 82], [33, 83], [33, 85], [33, 86], [33, 87], [33, 88], [33, 89], [33, 91], [33, 93], [33, 99], [33, 100], [33, 103], [33, 104], [33, 107], [33, 108], [33, 109], [33, 114], [33, 118], [34, 36], [34, 37], [34, 38], [34, 39], [34, 40], [34, 41], [34, 42], [34, 45], [34, 53], [34, 54], [34, 55], [34, 56], [34, 57], [34, 58], [34, 60], [34, 62], [34, 63], [34, 64], [34, 65], [34, 66], [34, 71], [34, 72], [34, 76], [34, 77], [34, 79], [34, 82], [34, 83], [34, 84], [34, 86], [34, 89], [34, 93], [34, 94], [34, 95], [34, 102], [34, 104], [34, 113], [34, 114], [34, 116], [34, 117], [34, 118], [34, 119], [35, 37], [35, 39], [35, 41], [35, 42], [35, 45], [35, 48], [35, 50], [35, 51], [35, 53], [35, 54], [35, 56], [35, 59], [35, 62], [35, 63], [35, 65], [35, 66], [35, 67], [35, 70], [35, 73], [35, 76], [35, 79], [35, 83], [35, 85], [35, 86], [35, 89], [35, 91], [35, 93], [35, 94], [35, 95], [35, 96], [35, 98], [35, 100], [35, 101], [35, 102], [35, 103], [35, 108], [35, 112], [35, 113], [35, 114], [35, 115], [35, 117], [35, 118], [36, 38], [36, 40], [36, 41], [36, 42], [36, 43], [36, 46], [36, 48], [36, 55], [36, 57], [36, 63], [36, 64], [36, 69], [36, 70], [36, 71], [36, 73], [36, 75], [36, 76], [36, 79], [36, 80], [36, 81], [36, 82], [36, 83], [36, 85], [36, 86], [36, 88], [36, 90], [36, 94], [36, 95], [36, 98], [36, 99], [36, 105], [36, 107], [36, 111], [36, 114], [36, 119], [37, 41], [37, 42], [37, 43], [37, 44], [37, 45], [37, 46], [37, 47], [37, 48], [37, 49], [37, 50], [37, 51], [37, 52], [37, 54], [37, 55], [37, 58], [37, 59], [37, 62], [37, 68], [37, 69], [37, 71], [37, 74], [37, 77], [37, 79], [37, 80], [37, 81], [37, 82], [37, 87], [37, 90], [37, 92], [37, 93], [37, 96], [37, 97], [37, 100], [37, 101], [37, 103], [37, 104], [37, 105], [37, 108], [37, 110], [37, 112], [37, 115], [38, 41], [38, 44], [38, 45], [38, 47], [38, 48], [38, 50], [38, 52], [38, 59], [38, 60], [38, 61], [38, 63], [38, 66], [38, 67], [38, 69], [38, 73], [38, 75], [38, 80], [38, 81], [38, 82], [38, 83], [38, 86], [38, 89], [38, 94], [38, 95], [38, 97], [38, 98], [38, 104], [38, 105], [38, 106], [38, 107], [38, 108], [38, 109], [38, 111], [38, 112], [38, 115], [38, 117], [39, 40], [39, 41], [39, 43], [39, 45], [39, 46], [39, 47], [39, 51], [39, 53], [39, 56], [39, 57], [39, 59], [39, 60], [39, 63], [39, 67], [39, 72], [39, 73], [39, 74], [39, 75], [39, 76], [39, 77], [39, 79], [39, 80], [39, 82], [39, 85], [39, 92], [39, 97], [39, 99], [39, 101], [39, 103], [39, 106], [39, 107], [39, 108], [39, 110], [39, 113], [39, 114], [39, 115], [39, 116], [39, 119], [40, 43], [40, 45], [40, 51], [40, 53], [40, 54], [40, 56], [40, 57], [40, 59], [40, 60], [40, 61], [40, 62], [40, 63], [40, 65], [40, 67], [40, 69], [40, 70], [40, 74], [40, 75], [40, 77], [40, 79], [40, 80], [40, 82], [40, 83], [40, 84], [40, 85], [40, 87], [40, 92], [40, 97], [40, 99], [40, 100], [40, 101], [40, 105], [40, 106], [40, 110], [40, 111], [40, 113], [40, 116], [40, 117], [41, 44], [41, 46], [41, 47], [41, 48], [41, 49], [41, 50], [41, 56], [41, 58], [41, 59], [41, 60], [41, 61], [41, 65], [41, 66], [41, 67], [41, 68], [41, 69], [41, 70], [41, 72], [41, 75], [41, 76], [41, 77], [41, 78], [41, 81], [41, 83], [41, 84], [41, 85], [41, 86], [41, 91], [41, 93], [41, 94], [41, 95], [41, 97], [41, 98], [41, 99], [41, 100], [41, 103], [41, 108], [41, 111], [41, 112], [41, 117], [41, 118], [42, 45], [42, 48], [42, 49], [42, 50], [42, 51], [42, 52], [42, 53], [42, 55], [42, 56], [42, 59], [42, 62], [42, 63], [42, 64], [42, 71], [42, 72], [42, 73], [42, 74], [42, 75], [42, 76], [42, 79], [42, 82], [42, 87], [42, 89], [42, 91], [42, 92], [42, 94], [42, 95], [42, 99], [42, 100], [42, 102], [42, 103], [42, 107], [42, 108], [42, 109], [42, 111], [42, 112], [42, 114], [42, 116], [42, 117], [42, 119], [43, 44], [43, 47], [43, 49], [43, 57], [43, 58], [43, 61], [43, 62], [43, 65], [43, 68], [43, 69], [43, 70], [43, 71], [43, 77], [43, 82], [43, 83], [43, 85], [43, 88], [43, 89], [43, 90], [43, 92], [43, 94], [43, 96], [43, 100], [43, 103], [43, 105], [43, 107], [43, 108], [43, 111], [43, 115], [43, 117], [43, 118], [43, 119], [44, 47], [44, 49], [44, 50], [44, 52], [44, 53], [44, 56], [44, 58], [44, 60], [44, 66], [44, 67], [44, 68], [44, 69], [44, 72], [44, 73], [44, 74], [44, 75], [44, 77], [44, 81], [44, 82], [44, 83], [44, 84], [44, 87], [44, 90], [44, 91], [44, 92], [44, 93], [44, 95], [44, 97], [44, 98], [44, 99], [44, 101], [44, 102], [44, 104], [44, 105], [44, 106], [44, 107], [44, 108], [44, 110], [44, 111], [44, 112], [44, 113], [44, 115], [44, 116], [44, 119], [45, 47], [45, 48], [45, 49], [45, 51], [45, 52], [45, 54], [45, 55], [45, 58], [45, 59], [45, 60], [45, 61], [45, 62], [45, 63], [45, 65], [45, 67], [45, 68], [45, 69], [45, 73], [45, 75], [45, 76], [45, 77], [45, 80], [45, 81], [45, 82], [45, 84], [45, 87], [45, 89], [45, 90], [45, 91], [45, 92], [45, 93], [45, 94], [45, 95], [45, 100], [45, 103], [45, 104], [45, 105], [45, 106], [45, 107], [45, 110], [45, 112], [45, 116], [45, 119], [46, 47], [46, 49], [46, 50], [46, 52], [46, 53], [46, 56], [46, 57], [46, 58], [46, 60], [46, 61], [46, 63], [46, 66], [46, 67], [46, 70], [46, 71], [46, 72], [46, 74], [46, 76], [46, 78], [46, 83], [46, 84], [46, 85], [46, 90], [46, 91], [46, 92], [46, 93], [46, 94], [46, 95], [46, 96], [46, 97], [46, 98], [46, 100], [46, 102], [46, 103], [46, 108], [46, 114], [46, 115], [46, 117], [47, 48], [47, 50], [47, 51], [47, 52], [47, 54], [47, 56], [47, 57], [47, 58], [47, 61], [47, 62], [47, 64], [47, 65], [47, 66], [47, 67], [47, 69], [47, 72], [47, 73], [47, 74], [47, 76], [47, 77], [47, 79], [47, 80], [47, 82], [47, 84], [47, 88], [47, 96], [47, 97], [47, 98], [47, 103], [47, 105], [47, 107], [47, 108], [47, 110], [47, 112], [47, 113], [47, 114], [47, 115], [47, 119], [48, 49], [48, 50], [48, 51], [48, 55], [48, 57], [48, 58], [48, 59], [48, 60], [48, 62], [48, 65], [48, 67], [48, 68], [48, 70], [48, 72], [48, 73], [48, 77], [48, 79], [48, 80], [48, 81], [48, 82], [48, 83], [48, 84], [48, 87], [48, 88], [48, 89], [48, 92], [48, 94], [48, 95], [48, 96], [48, 97], [48, 98], [48, 101], [48, 102], [48, 106], [48, 108], [48, 112], [48, 113], [48, 114], [48, 116], [48, 117], [48, 118], [48, 119], [49, 51], [49, 52], [49, 55], [49, 56], [49, 58], [49, 59], [49, 60], [49, 66], [49, 67], [49, 71], [49, 75], [49, 76], [49, 78], [49, 79], [49, 81], [49, 83], [49, 85], [49, 86], [49, 87], [49, 88], [49, 89], [49, 93], [49, 94], [49, 95], [49, 96], [49, 103], [49, 104], [49, 107], [49, 108], [49, 109], [49, 111], [49, 112], [49, 114], [49, 115], [49, 116], [49, 118], [49, 119], [50, 52], [50, 54], [50, 55], [50, 56], [50, 57], [50, 58], [50, 59], [50, 60], [50, 61], [50, 62], [50, 64], [50, 65], [50, 70], [50, 73], [50, 75], [50, 76], [50, 77], [50, 80], [50, 82], [50, 86], [50, 88], [50, 89], [50, 90], [50, 91], [50, 92], [50, 93], [50, 96], [50, 97], [50, 99], [50, 103], [50, 104], [50, 105], [50, 106], [50, 109], [50, 110], [50, 111], [50, 112], [50, 116], [50, 117], [50, 118], [51, 53], [51, 54], [51, 58], [51, 61], [51, 62], [51, 63], [51, 64], [51, 67], [51, 68], [51, 69], [51, 72], [51, 73], [51, 74], [51, 75], [51, 78], [51, 80], [51, 81], [51, 84], [51, 85], [51, 87], [51, 88], [51, 89], [51, 90], [51, 91], [51, 95], [51, 97], [51, 103], [51, 104], [51, 105], [51, 106], [51, 107], [51, 108], [51, 109], [51, 115], [51, 119], [52, 54], [52, 57], [52, 59], [52, 61], [52, 62], [52, 65], [52, 66], [52, 69], [52, 70], [52, 71], [52, 77], [52, 78], [52, 80], [52, 83], [52, 86], [52, 90], [52, 95], [52, 97], [52, 98], [52, 101], [52, 102], [52, 103], [52, 106], [52, 107], [52, 108], [52, 109], [52, 110], [52, 111], [52, 113], [52, 114], [52, 117], [52, 118], [52, 119], [53, 57], [53, 59], [53, 61], [53, 62], [53, 63], [53, 65], [53, 66], [53, 67], [53, 68], [53, 74], [53, 75], [53, 77], [53, 78], [53, 79], [53, 80], [53, 81], [53, 82], [53, 83], [53, 88], [53, 90], [53, 91], [53, 95], [53, 99], [53, 101], [53, 102], [53, 105], [53, 106], [53, 109], [53, 114], [53, 115], [53, 116], [53, 118], [53, 119], [54, 55], [54, 57], [54, 60], [54, 61], [54, 64], [54, 66], [54, 68], [54, 69], [54, 71], [54, 72], [54, 73], [54, 74], [54, 75], [54, 76], [54, 80], [54, 81], [54, 82], [54, 83], [54, 85], [54, 86], [54, 87], [54, 88], [54, 89], [54, 90], [54, 93], [54, 95], [54, 97], [54, 101], [54, 102], [54, 103], [54, 106], [54, 108], [54, 110], [54, 113], [54, 115], [54, 116], [54, 117], [54, 118], [55, 58], [55, 61], [55, 65], [55, 66], [55, 67], [55, 68], [55, 69], [55, 71], [55, 73], [55, 74], [55, 77], [55, 78], [55, 79], [55, 80], [55, 81], [55, 83], [55, 84], [55, 86], [55, 88], [55, 89], [55, 94], [55, 95], [55, 98], [55, 102], [55, 103], [55, 104], [55, 107], [55, 109], [55, 110], [55, 111], [55, 116], [55, 117], [55, 118], [55, 119], [56, 59], [56, 60], [56, 62], [56, 64], [56, 65], [56, 66], [56, 67], [56, 71], [56, 73], [56, 75], [56, 80], [56, 82], [56, 83], [56, 86], [56, 87], [56, 88], [56, 89], [56, 90], [56, 92], [56, 93], [56, 94], [56, 96], [56, 99], [56, 102], [56, 106], [56, 107], [56, 108], [56, 109], [56, 111], [56, 115], [56, 116], [57, 64], [57, 66], [57, 67], [57, 68], [57, 72], [57, 73], [57, 74], [57, 75], [57, 77], [57, 78], [57, 81], [57, 85], [57, 86], [57, 88], [57, 91], [57, 98], [57, 102], [57, 104], [57, 105], [57, 106], [57, 110], [57, 111], [57, 115], [57, 116], [57, 118], [57, 119], [58, 61], [58, 62], [58, 66], [58, 67], [58, 68], [58, 70], [58, 75], [58, 78], [58, 79], [58, 81], [58, 82], [58, 88], [58, 89], [58, 90], [58, 91], [58, 93], [58, 94], [58, 95], [58, 98], [58, 99], [58, 100], [58, 104], [58, 105], [58, 108], [58, 111], [58, 112], [58, 113], [58, 115], [58, 116], [58, 117], [59, 60], [59, 61], [59, 63], [59, 64], [59, 67], [59, 68], [59, 71], [59, 72], [59, 74], [59, 78], [59, 79], [59, 80], [59, 81], [59, 82], [59, 83], [59, 85], [59, 86], [59, 89], [59, 90], [59, 91], [59, 93], [59, 95], [59, 96], [59, 98], [59, 104], [59, 105], [59, 106], [59, 109], [59, 111], [59, 114], [59, 115], [59, 117], [59, 118], [59, 119], [60, 62], [60, 63], [60, 64], [60, 65], [60, 66], [60, 69], [60, 70], [60, 71], [60, 72], [60, 79], [60, 80], [60, 83], [60, 84], [60, 85], [60, 86], [60, 90], [60, 94], [60, 97], [60, 98], [60, 100], [60, 101], [60, 103], [60, 104], [60, 106], [60, 107], [60, 109], [60, 116], [60, 118], [60, 119], [61, 64], [61, 66], [61, 70], [61, 71], [61, 72], [61, 79], [61, 80], [61, 81], [61, 82], [61, 84], [61, 86], [61, 87], [61, 88], [61, 95], [61, 97], [61, 98], [61, 99], [61, 103], [61, 104], [61, 106], [61, 107], [61, 110], [61, 113], [61, 117], [61, 119], [62, 63], [62, 65], [62, 66], [62, 67], [62, 69], [62, 74], [62, 76], [62, 77], [62, 79], [62, 82], [62, 86], [62, 87], [62, 92], [62, 93], [62, 96], [62, 97], [62, 99], [62, 101], [62, 103], [62, 104], [62, 105], [62, 106], [62, 107], [62, 110], [62, 111], [63, 65], [63, 71], [63, 75], [63, 76], [63, 77], [63, 78], [63, 79], [63, 80], [63, 81], [63, 82], [63, 83], [63, 85], [63, 86], [63, 88], [63, 92], [63, 93], [63, 98], [63, 99], [63, 100], [63, 105], [63, 108], [63, 110], [63, 111], [63, 112], [63, 113], [63, 114], [63, 115], [63, 117], [63, 118], [63, 119], [64, 65], [64, 67], [64, 68], [64, 69], [64, 73], [64, 75], [64, 76], [64, 77], [64, 81], [64, 82], [64, 83], [64, 85], [64, 87], [64, 89], [64, 90], [64, 94], [64, 96], [64, 97], [64, 98], [64, 99], [64, 100], [64, 104], [64, 108], [64, 110], [64, 111], [64, 112], [64, 113], [64, 119], [65, 66], [65, 68], [65, 69], [65, 70], [65, 73], [65, 78], [65, 79], [65, 83], [65, 89], [65, 93], [65, 94], [65, 95], [65, 96], [65, 97], [65, 98], [65, 99], [65, 100], [65, 102], [65, 103], [65, 105], [65, 107], [65, 108], [65, 112], [65, 114], [65, 115], [65, 116], [65, 117], [65, 118], [65, 119], [66, 67], [66, 68], [66, 70], [66, 73], [66, 74], [66, 75], [66, 77], [66, 79], [66, 80], [66, 81], [66, 82], [66, 84], [66, 87], [66, 88], [66, 91], [66, 92], [66, 94], [66, 96], [66, 97], [66, 98], [66, 100], [66, 101], [66, 102], [66, 103], [66, 105], [66, 106], [66, 109], [66, 111], [66, 112], [66, 113], [66, 116], [66, 118], [66, 119], [67, 68], [67, 69], [67, 71], [67, 72], [67, 73], [67, 76], [67, 77], [67, 78], [67, 80], [67, 84], [67, 87], [67, 88], [67, 91], [67, 93], [67, 95], [67, 96], [67, 97], [67, 99], [67, 102], [67, 103], [67, 105], [67, 106], [67, 107], [67, 108], [67, 109], [67, 114], [67, 116], [68, 69], [68, 70], [68, 71], [68, 72], [68, 75], [68, 76], [68, 79], [68, 83], [68, 86], [68, 89], [68, 94], [68, 95], [68, 97], [68, 99], [68, 100], [68, 103], [68, 106], [68, 108], [68, 109], [68, 111], [68, 112], [68, 114], [68, 116], [68, 117], [68, 118], [69, 70], [69, 72], [69, 73], [69, 74], [69, 75], [69, 76], [69, 78], [69, 79], [69, 83], [69, 85], [69, 87], [69, 89], [69, 90], [69, 92], [69, 94], [69, 95], [69, 97], [69, 100], [69, 101], [69, 105], [69, 106], [69, 107], [69, 109], [69, 113], [69, 116], [69, 118], [70, 73], [70, 74], [70, 75], [70, 76], [70, 77], [70, 82], [70, 83], [70, 84], [70, 85], [70, 89], [70, 90], [70, 92], [70, 93], [70, 94], [70, 96], [70, 98], [70, 100], [70, 103], [70, 107], [70, 109], [70, 111], [70, 113], [70, 119], [71, 72], [71, 73], [71, 74], [71, 82], [71, 83], [71, 86], [71, 87], [71, 88], [71, 89], [71, 91], [71, 92], [71, 95], [71, 99], [71, 102], [71, 103], [71, 104], [71, 108], [71, 109], [71, 110], [71, 113], [71, 114], [71, 115], [71, 116], [71, 117], [71, 118], [71, 119], [72, 73], [72, 74], [72, 75], [72, 76], [72, 78], [72, 80], [72, 86], [72, 90], [72, 91], [72, 93], [72, 94], [72, 96], [72, 97], [72, 99], [72, 103], [72, 104], [72, 106], [72, 109], [72, 110], [72, 111], [72, 114], [72, 118], [72, 119], [73, 75], [73, 76], [73, 78], [73, 80], [73, 81], [73, 83], [73, 86], [73, 87], [73, 88], [73, 89], [73, 90], [73, 91], [73, 96], [73, 98], [73, 99], [73, 100], [73, 101], [73, 102], [73, 103], [73, 104], [73, 105], [73, 107], [73, 108], [73, 110], [73, 112], [73, 115], [74, 75], [74, 76], [74, 77], [74, 78], [74, 79], [74, 80], [74, 81], [74, 82], [74, 83], [74, 85], [74, 86], [74, 88], [74, 91], [74, 92], [74, 93], [74, 94], [74, 97], [74, 101], [74, 103], [74, 105], [74, 106], [74, 108], [74, 109], [74, 110], [74, 111], [74, 112], [74, 115], [74, 117], [74, 118], [75, 76], [75, 79], [75, 80], [75, 82], [75, 83], [75, 84], [75, 85], [75, 86], [75, 88], [75, 89], [75, 90], [75, 91], [75, 94], [75, 96], [75, 98], [75, 99], [75, 103], [75, 107], [75, 108], [75, 109], [75, 112], [75, 113], [75, 114], [75, 115], [75, 116], [75, 117], [76, 77], [76, 78], [76, 80], [76, 84], [76, 88], [76, 89], [76, 95], [76, 97], [76, 98], [76, 99], [76, 100], [76, 104], [76, 105], [76, 108], [76, 109], [76, 111], [76, 113], [76, 115], [76, 116], [76, 117], [76, 119], [77, 78], [77, 80], [77, 82], [77, 84], [77, 86], [77, 87], [77, 88], [77, 89], [77, 92], [77, 94], [77, 95], [77, 96], [77, 100], [77, 102], [77, 103], [77, 105], [77, 106], [77, 108], [77, 111], [77, 114], [77, 115], [77, 116], [78, 79], [78, 81], [78, 82], [78, 83], [78, 84], [78, 86], [78, 87], [78, 88], [78, 90], [78, 92], [78, 95], [78, 100], [78, 101], [78, 102], [78, 103], [78, 105], [78, 107], [78, 108], [78, 109], [78, 111], [78, 112], [78, 113], [78, 114], [78, 115], [78, 116], [78, 118], [78, 119], [79, 82], [79, 88], [79, 89], [79, 93], [79, 94], [79, 95], [79, 98], [79, 99], [79, 102], [79, 103], [79, 107], [79, 109], [79, 110], [79, 111], [79, 112], [79, 116], [79, 117], [79, 118], [80, 81], [80, 82], [80, 85], [80, 86], [80, 87], [80, 92], [80, 96], [80, 97], [80, 98], [80, 101], [80, 104], [80, 106], [80, 107], [80, 113], [80, 115], [80, 116], [80, 119], [81, 85], [81, 86], [81, 88], [81, 90], [81, 91], [81, 92], [81, 94], [81, 95], [81, 96], [81, 97], [81, 100], [81, 102], [81, 104], [81, 106], [81, 107], [81, 108], [81, 110], [81, 111], [81, 112], [81, 113], [81, 114], [81, 116], [81, 117], [81, 118], [82, 84], [82, 85], [82, 87], [82, 88], [82, 91], [82, 93], [82, 94], [82, 96], [82, 97], [82, 99], [82, 100], [82, 101], [82, 104], [82, 107], [82, 109], [82, 110], [82, 113], [82, 114], [82, 115], [82, 118], [82, 119], [83, 84], [83, 85], [83, 88], [83, 89], [83, 90], [83, 91], [83, 94], [83, 95], [83, 96], [83, 104], [83, 106], [83, 107], [83, 108], [83, 110], [83, 113], [83, 115], [83, 118], [83, 119], [84, 86], [84, 90], [84, 94], [84, 96], [84, 98], [84, 100], [84, 101], [84, 103], [84, 104], [84, 105], [84, 106], [84, 108], [84, 112], [84, 113], [84, 115], [84, 116], [84, 119], [85, 86], [85, 87], [85, 88], [85, 91], [85, 93], [85, 94], [85, 95], [85, 96], [85, 97], [85, 98], [85, 99], [85, 106], [85, 107], [85, 109], [85, 110], [85, 111], [85, 112], [85, 113], [85, 115], [85, 116], [86, 89], [86, 91], [86, 92], [86, 93], [86, 95], [86, 96], [86, 99], [86, 101], [86, 103], [86, 104], [86, 106], [86, 108], [86, 113], [86, 114], [86, 115], [86, 116], [86, 118], [86, 119], [87, 88], [87, 89], [87, 90], [87, 93], [87, 94], [87, 96], [87, 97], [87, 98], [87, 99], [87, 100], [87, 103], [87, 104], [87, 105], [87, 106], [87, 108], [87, 111], [87, 113], [87, 114], [87, 116], [87, 118], [87, 119], [88, 91], [88, 92], [88, 98], [88, 100], [88, 101], [88, 103], [88, 104], [88, 106], [88, 113], [88, 114], [88, 115], [88, 116], [88, 119], [89, 90], [89, 91], [89, 92], [89, 93], [89, 94], [89, 96], [89, 98], [89, 99], [89, 100], [89, 101], [89, 105], [89, 111], [89, 112], [89, 113], [89, 114], [89, 115], [89, 117], [89, 118], [90, 91], [90, 93], [90, 96], [90, 98], [90, 99], [90, 100], [90, 102], [90, 103], [90, 105], [90, 108], [90, 110], [91, 93], [91, 94], [91, 95], [91, 96], [91, 98], [91, 102], [91, 103], [91, 105], [91, 106], [91, 107], [91, 108], [91, 109], [91, 110], [91, 111], [91, 113], [91, 117], [92, 93], [92, 96], [92, 99], [92, 102], [92, 104], [92, 106], [92, 108], [92, 113], [92, 115], [92, 116], [92, 119], [93, 97], [93, 98], [93, 99], [93, 103], [93, 113], [93, 114], [93, 116], [93, 118], [93, 119], [94, 95], [94, 99], [94, 101], [94, 102], [94, 105], [94, 108], [94, 112], [94, 116], [95, 98], [95, 99], [95, 102], [95, 107], [95, 108], [95, 109], [95, 110], [95, 111], [95, 112], [95, 117], [95, 118], [96, 97], [96, 98], [96, 100], [96, 101], [96, 104], [96, 105], [96, 106], [96, 107], [96, 108], [96, 112], [96, 117], [96, 118], [96, 119], [97, 99], [97, 102], [97, 104], [97, 105], [97, 106], [97, 107], [97, 108], [97, 110], [97, 111], [97, 112], [97, 114], [97, 115], [97, 116], [98, 100], [98, 104], [98, 106], [98, 108], [98, 109], [98, 112], [98, 114], [98, 116], [98, 117], [98, 119], [99, 100], [99, 105], [99, 106], [99, 107], [99, 108], [99, 109], [99, 110], [99, 111], [99, 112], [99, 113], [99, 115], [99, 116], [99, 118], [99, 119], [100, 101], [100, 105], [100, 107], [100, 108], [100, 113], [100, 117], [100, 118], [100, 119], [101, 103], [101, 106], [101, 109], [101, 110], [101, 112], [101, 114], [101, 119], [102, 104], [102, 106], [102, 107], [102, 108], [102, 112], [102, 113], [102, 115], [102, 116], [102, 117], [102, 119], [103, 105], [103, 106], [103, 109], [103, 111], [103, 113], [103, 116], [103, 117], [103, 119], [104, 105], [104, 106], [104, 112], [104, 114], [104, 115], [104, 116], [104, 117], [104, 118], [104, 119], [105, 107], [105, 109], [105, 110], [105, 112], [105, 116], [105, 119], [106, 107], [106, 108], [106, 111], [106, 112], [106, 114], [106, 115], [106, 117], [106, 118], [107, 108], [107, 110], [107, 112], [107, 114], [107, 117], [107, 118], [107, 119], [108, 111], [108, 113], [108, 114], [108, 117], [108, 119], [109, 110], [109, 112], [109, 113], [109, 115], [109, 116], [110, 111], [110, 112], [110, 114], [110, 116], [110, 118], [110, 119], [111, 112], [111, 113], [111, 114], [111, 115], [111, 116], [111, 118], [112, 113], [112, 114], [112, 115], [112, 116], [112, 118], [113, 115], [113, 116], [113, 118], [113, 119], [114, 115], [114, 116], [114, 117], [114, 119], [115, 117], [115, 119], [117, 119]], "family": "mc_max_clique", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-max-clique-l6-s6/solution/solve.sh b/tasks/construct-mc-max-clique-l6-s6/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..d25be1e84938380c689f0efb0823f9636f240717 --- /dev/null +++ b/tasks/construct-mc-max-clique-l6-s6/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"clique": [7, 12, 17, 18, 31, 41, 48, 65, 68, 83, 94, 95, 108]} +RLMATH_EOF diff --git a/tasks/construct-mc-max-clique-l6-s6/tests/check.py b/tasks/construct-mc-max-clique-l6-s6/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..e3f70dbd5b155a3514c2102aa4ad460201495210 --- /dev/null +++ b/tasks/construct-mc-max-clique-l6-s6/tests/check.py @@ -0,0 +1,18 @@ +"""Clique of size >= k in a given graph (MathConstraint max_clique decision version, CC-BY-4.0).""" +import itertools + +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["n"], inst["k"] + S = int_list(ans.get("clique"), None, 0, n - 1, "clique") + if len(set(S)) != len(S): + raise Invalid("repeated vertex") + if len(S) < k: + raise Invalid(f"clique has {len(S)} vertices, need at least {k}") + E = {(u, v) for u, v in inst["edges"]} + for u, v in itertools.combinations(sorted(S), 2): + if (u, v) not in E: + raise Invalid(f"vertices {u} and {v} are not adjacent") + return None, {"size": len(S)} diff --git a/tasks/construct-mc-max-clique-l6-s6/tests/instance.json b/tasks/construct-mc-max-clique-l6-s6/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..37b4220b62fd6a0b5b1e3f8ad0879e72a474d2df --- /dev/null +++ b/tasks/construct-mc-max-clique-l6-s6/tests/instance.json @@ -0,0 +1 @@ +{"n": 120, "k": 13, "edges": [[0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 8], [0, 10], [0, 11], [0, 12], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 21], [0, 22], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 34], [0, 36], [0, 37], [0, 42], [0, 45], [0, 47], [0, 50], [0, 53], [0, 54], [0, 55], [0, 58], [0, 59], [0, 60], [0, 61], [0, 62], [0, 63], [0, 66], [0, 67], [0, 68], [0, 71], [0, 73], [0, 74], [0, 78], [0, 79], [0, 80], [0, 81], [0, 87], [0, 91], [0, 92], [0, 97], [0, 99], [0, 102], [0, 103], [0, 108], [0, 109], [0, 111], [0, 113], [0, 114], [1, 3], [1, 5], [1, 7], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 17], [1, 18], [1, 20], [1, 21], [1, 23], [1, 26], [1, 27], [1, 29], [1, 31], [1, 36], [1, 37], [1, 38], [1, 39], [1, 41], [1, 42], [1, 43], [1, 45], [1, 47], [1, 48], [1, 49], [1, 50], [1, 51], [1, 52], [1, 53], [1, 55], [1, 56], [1, 57], [1, 58], [1, 61], [1, 63], [1, 64], [1, 67], [1, 68], [1, 69], [1, 70], [1, 71], [1, 72], [1, 73], [1, 76], [1, 77], [1, 79], [1, 80], [1, 84], [1, 85], [1, 87], [1, 88], [1, 89], [1, 92], [1, 93], [1, 94], [1, 96], [1, 98], [1, 99], [1, 100], [1, 103], [1, 104], [1, 105], [1, 107], [1, 108], [1, 109], [1, 111], [1, 114], [1, 118], [2, 3], [2, 5], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 17], [2, 19], [2, 24], [2, 25], [2, 28], [2, 32], [2, 33], [2, 34], [2, 35], [2, 36], [2, 37], [2, 38], [2, 39], [2, 40], [2, 44], [2, 48], [2, 50], [2, 51], [2, 56], [2, 57], [2, 58], [2, 65], [2, 66], [2, 68], [2, 69], [2, 70], [2, 71], [2, 72], [2, 73], [2, 74], [2, 75], [2, 76], [2, 81], [2, 83], [2, 84], [2, 85], [2, 89], [2, 90], [2, 91], [2, 93], [2, 94], [2, 95], [2, 96], [2, 97], [2, 100], [2, 101], [2, 103], [2, 104], [2, 105], [2, 112], [2, 113], [2, 117], [2, 119], [3, 4], [3, 6], [3, 8], [3, 9], [3, 11], [3, 14], [3, 15], [3, 16], [3, 17], [3, 18], [3, 19], [3, 20], [3, 21], [3, 24], [3, 26], [3, 27], [3, 28], [3, 29], [3, 31], [3, 34], [3, 37], [3, 38], [3, 39], [3, 41], [3, 42], [3, 43], [3, 45], [3, 46], [3, 47], [3, 51], [3, 52], [3, 55], [3, 58], [3, 61], [3, 62], [3, 63], [3, 64], [3, 67], [3, 68], [3, 69], [3, 70], [3, 71], [3, 73], [3, 77], [3, 79], [3, 82], [3, 83], [3, 84], [3, 85], [3, 86], [3, 88], [3, 89], [3, 91], [3, 93], [3, 96], [3, 97], [3, 99], [3, 100], [3, 102], [3, 103], [3, 105], [3, 110], [3, 111], [3, 112], [3, 114], [3, 115], [3, 118], [4, 5], [4, 6], [4, 7], [4, 10], [4, 12], [4, 15], [4, 19], [4, 20], [4, 22], [4, 24], [4, 29], [4, 32], [4, 33], [4, 34], [4, 38], [4, 42], [4, 43], [4, 46], [4, 47], [4, 48], [4, 49], [4, 50], [4, 52], [4, 55], [4, 57], [4, 58], [4, 60], [4, 61], [4, 62], [4, 63], [4, 64], [4, 65], [4, 67], [4, 69], [4, 70], [4, 73], [4, 75], [4, 76], [4, 78], [4, 82], [4, 83], [4, 86], [4, 88], [4, 90], [4, 91], [4, 92], [4, 97], [4, 98], [4, 99], [4, 100], [4, 102], [4, 108], [4, 111], [4, 113], [4, 114], [4, 115], [4, 118], [5, 6], [5, 7], [5, 8], [5, 10], [5, 11], [5, 12], [5, 13], [5, 16], [5, 17], [5, 18], [5, 23], [5, 24], [5, 26], [5, 27], [5, 28], [5, 29], [5, 31], [5, 35], [5, 37], [5, 39], [5, 40], [5, 41], [5, 42], [5, 45], [5, 47], [5, 51], [5, 53], [5, 57], [5, 59], [5, 60], [5, 64], [5, 65], [5, 67], [5, 68], [5, 69], [5, 70], [5, 73], [5, 75], [5, 77], [5, 78], [5, 79], [5, 81], [5, 82], [5, 83], [5, 84], [5, 85], [5, 86], [5, 87], [5, 89], [5, 90], [5, 91], [5, 92], [5, 93], [5, 94], [5, 96], [5, 97], [5, 102], [5, 104], [5, 107], [5, 108], [5, 109], [5, 110], [5, 114], [5, 116], [5, 119], [6, 10], [6, 12], [6, 13], [6, 16], [6, 18], [6, 24], [6, 25], [6, 26], [6, 28], [6, 29], [6, 30], [6, 32], [6, 36], [6, 37], [6, 38], [6, 39], [6, 44], [6, 46], [6, 47], [6, 48], [6, 49], [6, 55], [6, 59], [6, 63], [6, 64], [6, 67], [6, 69], [6, 71], [6, 72], [6, 74], [6, 75], [6, 76], [6, 78], [6, 80], [6, 84], [6, 90], [6, 91], [6, 93], [6, 96], [6, 100], [6, 101], [6, 102], [6, 103], [6, 105], [6, 107], [6, 110], [6, 111], [6, 112], [6, 113], [6, 114], [6, 115], [6, 117], [7, 8], [7, 9], [7, 10], [7, 12], [7, 13], [7, 15], [7, 16], [7, 17], [7, 18], [7, 22], [7, 23], [7, 27], [7, 28], [7, 29], [7, 31], [7, 38], [7, 39], [7, 41], [7, 45], [7, 47], [7, 48], [7, 49], [7, 50], [7, 51], [7, 55], [7, 56], [7, 57], [7, 60], [7, 64], [7, 65], [7, 68], [7, 71], [7, 76], [7, 77], [7, 78], [7, 79], [7, 80], [7, 82], [7, 83], [7, 85], [7, 87], [7, 88], [7, 89], [7, 94], [7, 95], [7, 97], [7, 100], [7, 104], [7, 105], [7, 106], [7, 107], [7, 108], [7, 109], [7, 112], [7, 113], [7, 115], [8, 10], [8, 11], [8, 15], [8, 16], [8, 19], [8, 20], [8, 22], [8, 23], [8, 25], [8, 26], [8, 29], [8, 32], [8, 34], [8, 35], [8, 41], [8, 42], [8, 44], [8, 46], [8, 47], [8, 52], [8, 53], [8, 55], [8, 57], [8, 60], [8, 61], [8, 63], [8, 66], [8, 68], [8, 69], [8, 70], [8, 72], [8, 79], [8, 80], [8, 87], [8, 89], [8, 90], [8, 95], [8, 96], [8, 98], [8, 99], [8, 102], [8, 107], [8, 108], [8, 111], [8, 112], [8, 113], [8, 114], [8, 115], [8, 118], [8, 119], [9, 11], [9, 18], [9, 19], [9, 21], [9, 22], [9, 23], [9, 25], [9, 26], [9, 27], [9, 30], [9, 32], [9, 33], [9, 35], [9, 38], [9, 39], [9, 42], [9, 43], [9, 46], [9, 48], [9, 49], [9, 51], [9, 52], [9, 53], [9, 56], [9, 57], [9, 61], [9, 63], [9, 64], [9, 70], [9, 71], [9, 72], [9, 74], [9, 77], [9, 78], [9, 79], [9, 80], [9, 82], [9, 83], [9, 84], [9, 85], [9, 86], [9, 89], [9, 93], [9, 96], [9, 97], [9, 98], [9, 100], [9, 103], [9, 104], [9, 106], [9, 107], [9, 108], [9, 111], [9, 112], [9, 113], [9, 114], [9, 115], [9, 117], [9, 118], [10, 13], [10, 14], [10, 15], [10, 16], [10, 17], [10, 19], [10, 20], [10, 24], [10, 26], [10, 27], [10, 28], [10, 29], [10, 34], [10, 35], [10, 38], [10, 39], [10, 40], [10, 41], [10, 42], [10, 43], [10, 46], [10, 47], [10, 48], [10, 49], [10, 50], [10, 53], [10, 55], [10, 56], [10, 57], [10, 58], [10, 59], [10, 61], [10, 62], [10, 66], [10, 68], [10, 71], [10, 73], [10, 75], [10, 76], [10, 79], [10, 80], [10, 82], [10, 84], [10, 85], [10, 86], [10, 88], [10, 90], [10, 94], [10, 96], [10, 98], [10, 100], [10, 103], [10, 104], [10, 106], [10, 109], [10, 112], [10, 113], [10, 114], [10, 115], [10, 116], [10, 117], [10, 118], [11, 12], [11, 16], [11, 18], [11, 21], [11, 23], [11, 25], [11, 26], [11, 29], [11, 34], [11, 36], [11, 44], [11, 48], [11, 53], [11, 54], [11, 57], [11, 60], [11, 61], [11, 64], [11, 66], [11, 67], [11, 75], [11, 77], [11, 80], [11, 82], [11, 86], [11, 87], [11, 88], [11, 89], [11, 90], [11, 91], [11, 92], [11, 94], [11, 95], [11, 96], [11, 97], [11, 98], [11, 101], [11, 103], [11, 105], [11, 106], [11, 107], [11, 108], [11, 110], [11, 113], [11, 118], [11, 119], [12, 14], [12, 15], [12, 16], [12, 17], [12, 18], [12, 19], [12, 21], [12, 24], [12, 26], [12, 27], [12, 28], [12, 29], [12, 30], [12, 31], [12, 33], [12, 34], [12, 36], [12, 40], [12, 41], [12, 42], [12, 43], [12, 46], [12, 47], [12, 48], [12, 51], [12, 54], [12, 56], [12, 58], [12, 60], [12, 61], [12, 62], [12, 64], [12, 65], [12, 66], [12, 67], [12, 68], [12, 69], [12, 70], [12, 75], [12, 76], [12, 77], [12, 80], [12, 83], [12, 84], [12, 88], [12, 91], [12, 92], [12, 94], [12, 95], [12, 96], [12, 97], [12, 100], [12, 101], [12, 102], [12, 103], [12, 104], [12, 105], [12, 108], [12, 109], [12, 110], [12, 112], [12, 115], [12, 116], [12, 117], [12, 119], [13, 16], [13, 18], [13, 20], [13, 22], [13, 23], [13, 24], [13, 26], [13, 31], [13, 33], [13, 35], [13, 37], [13, 38], [13, 41], [13, 42], [13, 43], [13, 45], [13, 46], [13, 48], [13, 49], [13, 51], [13, 52], [13, 54], [13, 55], [13, 57], [13, 60], [13, 61], [13, 63], [13, 64], [13, 65], [13, 68], [13, 70], [13, 71], [13, 72], [13, 74], [13, 76], [13, 77], [13, 78], [13, 79], [13, 80], [13, 83], [13, 84], [13, 86], [13, 87], [13, 89], [13, 90], [13, 92], [13, 94], [13, 95], [13, 96], [13, 97], [13, 98], [13, 99], [13, 101], [13, 102], [13, 103], [13, 106], [13, 107], [13, 108], [13, 109], [13, 111], [13, 113], [13, 115], [13, 117], [13, 118], [14, 15], [14, 16], [14, 19], [14, 21], [14, 22], [14, 23], [14, 24], [14, 26], [14, 27], [14, 29], [14, 30], [14, 31], [14, 32], [14, 34], [14, 39], [14, 40], [14, 41], [14, 44], [14, 47], [14, 51], [14, 53], [14, 58], [14, 59], [14, 60], [14, 61], [14, 62], [14, 63], [14, 64], [14, 65], [14, 66], [14, 69], [14, 72], [14, 73], [14, 74], [14, 76], [14, 79], [14, 81], [14, 82], [14, 86], [14, 93], [14, 94], [14, 98], [14, 101], [14, 103], [14, 104], [14, 107], [14, 109], [14, 110], [14, 115], [14, 118], [14, 119], [15, 19], [15, 21], [15, 22], [15, 23], [15, 24], [15, 26], [15, 31], [15, 32], [15, 35], [15, 37], [15, 38], [15, 42], [15, 44], [15, 46], [15, 47], [15, 48], [15, 49], [15, 52], [15, 53], [15, 54], [15, 56], [15, 59], [15, 60], [15, 61], [15, 63], [15, 64], [15, 65], [15, 66], [15, 67], [15, 68], [15, 69], [15, 70], [15, 75], [15, 79], [15, 81], [15, 83], [15, 85], [15, 87], [15, 88], [15, 89], [15, 91], [15, 100], [15, 103], [15, 105], [15, 107], [15, 108], [15, 109], [15, 110], [15, 112], [15, 114], [15, 116], [16, 18], [16, 20], [16, 22], [16, 24], [16, 28], [16, 30], [16, 31], [16, 32], [16, 34], [16, 38], [16, 43], [16, 46], [16, 47], [16, 48], [16, 49], [16, 51], [16, 53], [16, 55], [16, 56], [16, 58], [16, 60], [16, 61], [16, 62], [16, 63], [16, 66], [16, 69], [16, 71], [16, 73], [16, 74], [16, 75], [16, 76], [16, 78], [16, 79], [16, 80], [16, 81], [16, 83], [16, 84], [16, 86], [16, 88], [16, 89], [16, 94], [16, 95], [16, 96], [16, 98], [16, 101], [16, 104], [16, 105], [16, 108], [16, 110], [16, 111], [16, 114], [16, 115], [16, 116], [17, 18], [17, 19], [17, 21], [17, 24], [17, 25], [17, 28], [17, 31], [17, 35], [17, 38], [17, 40], [17, 41], [17, 42], [17, 46], [17, 47], [17, 48], [17, 51], [17, 53], [17, 54], [17, 55], [17, 57], [17, 59], [17, 61], [17, 62], [17, 63], [17, 64], [17, 65], [17, 66], [17, 67], [17, 68], [17, 72], [17, 75], [17, 79], [17, 81], [17, 83], [17, 84], [17, 87], [17, 94], [17, 95], [17, 96], [17, 97], [17, 99], [17, 100], [17, 103], [17, 104], [17, 105], [17, 107], [17, 108], [17, 109], [17, 110], [17, 112], [17, 113], [17, 116], [17, 119], [18, 21], [18, 22], [18, 24], [18, 26], [18, 28], [18, 29], [18, 30], [18, 31], [18, 36], [18, 37], [18, 38], [18, 39], [18, 41], [18, 46], [18, 48], [18, 49], [18, 50], [18, 52], [18, 53], [18, 55], [18, 58], [18, 59], [18, 60], [18, 61], [18, 62], [18, 65], [18, 66], [18, 68], [18, 70], [18, 71], [18, 73], [18, 74], [18, 76], [18, 77], [18, 78], [18, 79], [18, 80], [18, 83], [18, 84], [18, 85], [18, 86], [18, 87], [18, 89], [18, 92], [18, 93], [18, 94], [18, 95], [18, 96], [18, 101], [18, 102], [18, 103], [18, 108], [18, 110], [18, 111], [18, 113], [18, 115], [18, 116], [18, 117], [18, 118], [18, 119], [19, 22], [19, 23], [19, 24], [19, 28], [19, 29], [19, 33], [19, 36], [19, 38], [19, 40], [19, 43], [19, 44], [19, 47], [19, 49], [19, 50], [19, 55], [19, 56], [19, 57], [19, 58], [19, 60], [19, 61], [19, 62], [19, 65], [19, 67], [19, 70], [19, 73], [19, 74], [19, 75], [19, 76], [19, 77], [19, 78], [19, 81], [19, 82], [19, 85], [19, 87], [19, 94], [19, 95], [19, 97], [19, 99], [19, 101], [19, 102], [19, 103], [19, 105], [19, 107], [19, 108], [19, 109], [19, 111], [19, 112], [19, 114], [19, 115], [19, 116], [19, 117], [19, 119], [20, 22], [20, 24], [20, 25], [20, 26], [20, 27], [20, 28], [20, 29], [20, 32], [20, 36], [20, 37], [20, 38], [20, 39], [20, 40], [20, 42], [20, 44], [20, 49], [20, 50], [20, 54], [20, 55], [20, 61], [20, 62], [20, 63], [20, 64], [20, 66], [20, 67], [20, 69], [20, 70], [20, 71], [20, 72], [20, 73], [20, 75], [20, 76], [20, 79], [20, 80], [20, 82], [20, 87], [20, 89], [20, 94], [20, 95], [20, 96], [20, 97], [20, 99], [20, 100], [20, 101], [20, 104], [20, 108], [20, 110], [20, 111], [20, 112], [20, 117], [21, 24], [21, 26], [21, 27], [21, 28], [21, 31], [21, 34], [21, 36], [21, 39], [21, 41], [21, 42], [21, 48], [21, 52], [21, 55], [21, 59], [21, 61], [21, 62], [21, 63], [21, 68], [21, 72], [21, 74], [21, 75], [21, 77], [21, 78], [21, 81], [21, 82], [21, 84], [21, 85], [21, 89], [21, 91], [21, 93], [21, 94], [21, 98], [21, 99], [21, 100], [21, 103], [21, 106], [21, 109], [21, 110], [21, 115], [21, 116], [21, 117], [22, 23], [22, 26], [22, 28], [22, 29], [22, 32], [22, 33], [22, 37], [22, 38], [22, 42], [22, 43], [22, 44], [22, 47], [22, 50], [22, 52], [22, 53], [22, 55], [22, 56], [22, 58], [22, 60], [22, 62], [22, 66], [22, 67], [22, 68], [22, 70], [22, 74], [22, 76], [22, 78], [22, 80], [22, 82], [22, 83], [22, 84], [22, 85], [22, 86], [22, 91], [22, 92], [22, 93], [22, 95], [22, 96], [22, 97], [22, 98], [22, 99], [22, 100], [22, 101], [22, 103], [22, 104], [22, 106], [22, 108], [22, 109], [22, 112], [22, 113], [22, 114], [22, 115], [22, 118], [23, 24], [23, 25], [23, 26], [23, 27], [23, 29], [23, 31], [23, 32], [23, 33], [23, 37], [23, 38], [23, 39], [23, 40], [23, 42], [23, 43], [23, 51], [23, 53], [23, 54], [23, 63], [23, 65], [23, 70], [23, 72], [23, 73], [23, 75], [23, 77], [23, 78], [23, 82], [23, 84], [23, 86], [23, 88], [23, 89], [23, 90], [23, 91], [23, 93], [23, 95], [23, 96], [23, 97], [23, 99], [23, 101], [23, 102], [23, 103], [23, 109], [23, 110], [23, 111], [23, 112], [23, 113], [23, 116], [23, 117], [24, 25], [24, 28], [24, 30], [24, 31], [24, 32], [24, 33], [24, 36], [24, 39], [24, 41], [24, 42], [24, 48], [24, 54], [24, 55], [24, 58], [24, 63], [24, 64], [24, 65], [24, 67], [24, 68], [24, 69], [24, 70], [24, 71], [24, 76], [24, 81], [24, 82], [24, 83], [24, 84], [24, 86], [24, 87], [24, 89], [24, 91], [24, 92], [24, 93], [24, 94], [24, 95], [24, 99], [24, 100], [24, 102], [24, 105], [24, 106], [24, 108], [24, 110], [24, 113], [24, 114], [24, 116], [24, 117], [24, 119], [25, 26], [25, 27], [25, 30], [25, 31], [25, 33], [25, 35], [25, 36], [25, 38], [25, 40], [25, 41], [25, 43], [25, 44], [25, 45], [25, 46], [25, 49], [25, 50], [25, 52], [25, 53], [25, 54], [25, 57], [25, 58], [25, 59], [25, 61], [25, 64], [25, 65], [25, 67], [25, 69], [25, 70], [25, 71], [25, 72], [25, 75], [25, 80], [25, 81], [25, 83], [25, 84], [25, 86], [25, 88], [25, 89], [25, 90], [25, 91], [25, 92], [25, 93], [25, 96], [25, 98], [25, 99], [25, 101], [25, 103], [25, 104], [25, 106], [25, 107], [25, 114], [25, 117], [25, 118], [26, 29], [26, 30], [26, 31], [26, 32], [26, 34], [26, 35], [26, 36], [26, 37], [26, 38], [26, 39], [26, 43], [26, 45], [26, 48], [26, 49], [26, 50], [26, 52], [26, 53], [26, 54], [26, 55], [26, 56], [26, 58], [26, 59], [26, 60], [26, 62], [26, 64], [26, 65], [26, 67], [26, 68], [26, 71], [26, 72], [26, 73], [26, 74], [26, 75], [26, 76], [26, 79], [26, 80], [26, 82], [26, 83], [26, 84], [26, 85], [26, 86], [26, 87], [26, 94], [26, 95], [26, 96], [26, 97], [26, 98], [26, 100], [26, 102], [26, 103], [26, 104], [26, 106], [26, 107], [26, 109], [26, 110], [26, 111], [26, 112], [26, 113], [26, 114], [26, 117], [27, 28], [27, 35], [27, 43], [27, 45], [27, 47], [27, 48], [27, 49], [27, 52], [27, 55], [27, 57], [27, 58], [27, 60], [27, 61], [27, 64], [27, 65], [27, 66], [27, 67], [27, 69], [27, 71], [27, 72], [27, 77], [27, 80], [27, 84], [27, 86], [27, 87], [27, 89], [27, 93], [27, 94], [27, 96], [27, 98], [27, 99], [27, 100], [27, 102], [27, 103], [27, 104], [27, 105], [27, 106], [27, 110], [27, 111], [27, 112], [27, 113], [27, 115], [27, 116], [28, 29], [28, 31], [28, 32], [28, 33], [28, 34], [28, 36], [28, 38], [28, 39], [28, 40], [28, 41], [28, 42], [28, 43], [28, 44], [28, 45], [28, 47], [28, 48], [28, 50], [28, 51], [28, 55], [28, 56], [28, 57], [28, 60], [28, 62], [28, 63], [28, 64], [28, 65], [28, 67], [28, 68], [28, 70], [28, 73], [28, 75], [28, 86], [28, 87], [28, 88], [28, 90], [28, 93], [28, 94], [28, 96], [28, 97], [28, 99], [28, 102], [28, 103], [28, 104], [28, 105], [28, 108], [28, 110], [28, 111], [28, 113], [28, 117], [28, 119], [29, 30], [29, 31], [29, 32], [29, 34], [29, 36], [29, 38], [29, 39], [29, 41], [29, 42], [29, 43], [29, 46], [29, 47], [29, 51], [29, 52], [29, 53], [29, 54], [29, 55], [29, 57], [29, 59], [29, 61], [29, 63], [29, 65], [29, 67], [29, 68], [29, 69], [29, 70], [29, 71], [29, 72], [29, 74], [29, 75], [29, 77], [29, 78], [29, 79], [29, 81], [29, 82], [29, 83], [29, 87], [29, 88], [29, 90], [29, 95], [29, 96], [29, 99], [29, 101], [29, 102], [29, 104], [29, 106], [29, 107], [29, 108], [29, 113], [29, 115], [29, 116], [30, 31], [30, 33], [30, 35], [30, 36], [30, 39], [30, 41], [30, 48], [30, 49], [30, 55], [30, 56], [30, 57], [30, 59], [30, 60], [30, 61], [30, 62], [30, 63], [30, 64], [30, 65], [30, 66], [30, 71], [30, 73], [30, 75], [30, 76], [30, 77], [30, 82], [30, 85], [30, 88], [30, 92], [30, 98], [30, 99], [30, 104], [30, 108], [30, 109], [30, 110], [30, 112], [30, 113], [30, 114], [30, 115], [30, 116], [30, 117], [30, 118], [30, 119], [31, 34], [31, 36], [31, 37], [31, 40], [31, 41], [31, 42], [31, 45], [31, 46], [31, 48], [31, 51], [31, 52], [31, 53], [31, 55], [31, 58], [31, 63], [31, 65], [31, 66], [31, 68], [31, 69], [31, 70], [31, 71], [31, 73], [31, 75], [31, 77], [31, 80], [31, 83], [31, 89], [31, 91], [31, 92], [31, 94], [31, 95], [31, 96], [31, 97], [31, 100], [31, 102], [31, 104], [31, 108], [31, 110], [31, 111], [31, 112], [31, 113], [31, 114], [31, 115], [31, 116], [31, 118], [31, 119], [32, 35], [32, 36], [32, 38], [32, 40], [32, 41], [32, 42], [32, 44], [32, 45], [32, 46], [32, 49], [32, 50], [32, 52], [32, 54], [32, 55], [32, 56], [32, 57], [32, 61], [32, 62], [32, 63], [32, 64], [32, 66], [32, 68], [32, 69], [32, 70], [32, 71], [32, 73], [32, 75], [32, 78], [32, 80], [32, 83], [32, 84], [32, 85], [32, 86], [32, 87], [32, 88], [32, 92], [32, 94], [32, 95], [32, 96], [32, 98], [32, 99], [32, 101], [32, 105], [32, 107], [32, 108], [32, 110], [32, 113], [33, 35], [33, 36], [33, 37], [33, 38], [33, 39], [33, 40], [33, 41], [33, 43], [33, 46], [33, 48], [33, 49], [33, 50], [33, 51], [33, 52], [33, 53], [33, 55], [33, 56], [33, 57], [33, 60], [33, 62], [33, 64], [33, 66], [33, 68], [33, 69], [33, 72], [33, 73], [33, 76], [33, 78], [33, 79], [33, 82], [33, 83], [33, 85], [33, 86], [33, 87], [33, 88], [33, 89], [33, 91], [33, 93], [33, 99], [33, 100], [33, 103], [33, 104], [33, 107], [33, 108], [33, 109], [33, 114], [33, 118], [34, 36], [34, 37], [34, 38], [34, 39], [34, 40], [34, 41], [34, 42], [34, 45], [34, 53], [34, 54], [34, 55], [34, 56], [34, 57], [34, 58], [34, 60], [34, 62], [34, 63], [34, 64], [34, 65], [34, 66], [34, 71], [34, 72], [34, 76], [34, 77], [34, 79], [34, 82], [34, 83], [34, 84], [34, 86], [34, 89], [34, 93], [34, 94], [34, 95], [34, 102], [34, 104], [34, 113], [34, 114], [34, 116], [34, 117], [34, 118], [34, 119], [35, 37], [35, 39], [35, 41], [35, 42], [35, 45], [35, 48], [35, 50], [35, 51], [35, 53], [35, 54], [35, 56], [35, 59], [35, 62], [35, 63], [35, 65], [35, 66], [35, 67], [35, 70], [35, 73], [35, 76], [35, 79], [35, 83], [35, 85], [35, 86], [35, 89], [35, 91], [35, 93], [35, 94], [35, 95], [35, 96], [35, 98], [35, 100], [35, 101], [35, 102], [35, 103], [35, 108], [35, 112], [35, 113], [35, 114], [35, 115], [35, 117], [35, 118], [36, 38], [36, 40], [36, 41], [36, 42], [36, 43], [36, 46], [36, 48], [36, 55], [36, 57], [36, 63], [36, 64], [36, 69], [36, 70], [36, 71], [36, 73], [36, 75], [36, 76], [36, 79], [36, 80], [36, 81], [36, 82], [36, 83], [36, 85], [36, 86], [36, 88], [36, 90], [36, 94], [36, 95], [36, 98], [36, 99], [36, 105], [36, 107], [36, 111], [36, 114], [36, 119], [37, 41], [37, 42], [37, 43], [37, 44], [37, 45], [37, 46], [37, 47], [37, 48], [37, 49], [37, 50], [37, 51], [37, 52], [37, 54], [37, 55], [37, 58], [37, 59], [37, 62], [37, 68], [37, 69], [37, 71], [37, 74], [37, 77], [37, 79], [37, 80], [37, 81], [37, 82], [37, 87], [37, 90], [37, 92], [37, 93], [37, 96], [37, 97], [37, 100], [37, 101], [37, 103], [37, 104], [37, 105], [37, 108], [37, 110], [37, 112], [37, 115], [38, 41], [38, 44], [38, 45], [38, 47], [38, 48], [38, 50], [38, 52], [38, 59], [38, 60], [38, 61], [38, 63], [38, 66], [38, 67], [38, 69], [38, 73], [38, 75], [38, 80], [38, 81], [38, 82], [38, 83], [38, 86], [38, 89], [38, 94], [38, 95], [38, 97], [38, 98], [38, 104], [38, 105], [38, 106], [38, 107], [38, 108], [38, 109], [38, 111], [38, 112], [38, 115], [38, 117], [39, 40], [39, 41], [39, 43], [39, 45], [39, 46], [39, 47], [39, 51], [39, 53], [39, 56], [39, 57], [39, 59], [39, 60], [39, 63], [39, 67], [39, 72], [39, 73], [39, 74], [39, 75], [39, 76], [39, 77], [39, 79], [39, 80], [39, 82], [39, 85], [39, 92], [39, 97], [39, 99], [39, 101], [39, 103], [39, 106], [39, 107], [39, 108], [39, 110], [39, 113], [39, 114], [39, 115], [39, 116], [39, 119], [40, 43], [40, 45], [40, 51], [40, 53], [40, 54], [40, 56], [40, 57], [40, 59], [40, 60], [40, 61], [40, 62], [40, 63], [40, 65], [40, 67], [40, 69], [40, 70], [40, 74], [40, 75], [40, 77], [40, 79], [40, 80], [40, 82], [40, 83], [40, 84], [40, 85], [40, 87], [40, 92], [40, 97], [40, 99], [40, 100], [40, 101], [40, 105], [40, 106], [40, 110], [40, 111], [40, 113], [40, 116], [40, 117], [41, 44], [41, 46], [41, 47], [41, 48], [41, 49], [41, 50], [41, 56], [41, 58], [41, 59], [41, 60], [41, 61], [41, 65], [41, 66], [41, 67], [41, 68], [41, 69], [41, 70], [41, 72], [41, 75], [41, 76], [41, 77], [41, 78], [41, 81], [41, 83], [41, 84], [41, 85], [41, 86], [41, 91], [41, 93], [41, 94], [41, 95], [41, 97], [41, 98], [41, 99], [41, 100], [41, 103], [41, 108], [41, 111], [41, 112], [41, 117], [41, 118], [42, 45], [42, 48], [42, 49], [42, 50], [42, 51], [42, 52], [42, 53], [42, 55], [42, 56], [42, 59], [42, 62], [42, 63], [42, 64], [42, 71], [42, 72], [42, 73], [42, 74], [42, 75], [42, 76], [42, 79], [42, 82], [42, 87], [42, 89], [42, 91], [42, 92], [42, 94], [42, 95], [42, 99], [42, 100], [42, 102], [42, 103], [42, 107], [42, 108], [42, 109], [42, 111], [42, 112], [42, 114], [42, 116], [42, 117], [42, 119], [43, 44], [43, 47], [43, 49], [43, 57], [43, 58], [43, 61], [43, 62], [43, 65], [43, 68], [43, 69], [43, 70], [43, 71], [43, 77], [43, 82], [43, 83], [43, 85], [43, 88], [43, 89], [43, 90], [43, 92], [43, 94], [43, 96], [43, 100], [43, 103], [43, 105], [43, 107], [43, 108], [43, 111], [43, 115], [43, 117], [43, 118], [43, 119], [44, 47], [44, 49], [44, 50], [44, 52], [44, 53], [44, 56], [44, 58], [44, 60], [44, 66], [44, 67], [44, 68], [44, 69], [44, 72], [44, 73], [44, 74], [44, 75], [44, 77], [44, 81], [44, 82], [44, 83], [44, 84], [44, 87], [44, 90], [44, 91], [44, 92], [44, 93], [44, 95], [44, 97], [44, 98], [44, 99], [44, 101], [44, 102], [44, 104], [44, 105], [44, 106], [44, 107], [44, 108], [44, 110], [44, 111], [44, 112], [44, 113], [44, 115], [44, 116], [44, 119], [45, 47], [45, 48], [45, 49], [45, 51], [45, 52], [45, 54], [45, 55], [45, 58], [45, 59], [45, 60], [45, 61], [45, 62], [45, 63], [45, 65], [45, 67], [45, 68], [45, 69], [45, 73], [45, 75], [45, 76], [45, 77], [45, 80], [45, 81], [45, 82], [45, 84], [45, 87], [45, 89], [45, 90], [45, 91], [45, 92], [45, 93], [45, 94], [45, 95], [45, 100], [45, 103], [45, 104], [45, 105], [45, 106], [45, 107], [45, 110], [45, 112], [45, 116], [45, 119], [46, 47], [46, 49], [46, 50], [46, 52], [46, 53], [46, 56], [46, 57], [46, 58], [46, 60], [46, 61], [46, 63], [46, 66], [46, 67], [46, 70], [46, 71], [46, 72], [46, 74], [46, 76], [46, 78], [46, 83], [46, 84], [46, 85], [46, 90], [46, 91], [46, 92], [46, 93], [46, 94], [46, 95], [46, 96], [46, 97], [46, 98], [46, 100], [46, 102], [46, 103], [46, 108], [46, 114], [46, 115], [46, 117], [47, 48], [47, 50], [47, 51], [47, 52], [47, 54], [47, 56], [47, 57], [47, 58], [47, 61], [47, 62], [47, 64], [47, 65], [47, 66], [47, 67], [47, 69], [47, 72], [47, 73], [47, 74], [47, 76], [47, 77], [47, 79], [47, 80], [47, 82], [47, 84], [47, 88], [47, 96], [47, 97], [47, 98], [47, 103], [47, 105], [47, 107], [47, 108], [47, 110], [47, 112], [47, 113], [47, 114], [47, 115], [47, 119], [48, 49], [48, 50], [48, 51], [48, 55], [48, 57], [48, 58], [48, 59], [48, 60], [48, 62], [48, 65], [48, 67], [48, 68], [48, 70], [48, 72], [48, 73], [48, 77], [48, 79], [48, 80], [48, 81], [48, 82], [48, 83], [48, 84], [48, 87], [48, 88], [48, 89], [48, 92], [48, 94], [48, 95], [48, 96], [48, 97], [48, 98], [48, 101], [48, 102], [48, 106], [48, 108], [48, 112], [48, 113], [48, 114], [48, 116], [48, 117], [48, 118], [48, 119], [49, 51], [49, 52], [49, 55], [49, 56], [49, 58], [49, 59], [49, 60], [49, 66], [49, 67], [49, 71], [49, 75], [49, 76], [49, 78], [49, 79], [49, 81], [49, 83], [49, 85], [49, 86], [49, 87], [49, 88], [49, 89], [49, 93], [49, 94], [49, 95], [49, 96], [49, 103], [49, 104], [49, 107], [49, 108], [49, 109], [49, 111], [49, 112], [49, 114], [49, 115], [49, 116], [49, 118], [49, 119], [50, 52], [50, 54], [50, 55], [50, 56], [50, 57], [50, 58], [50, 59], [50, 60], [50, 61], [50, 62], [50, 64], [50, 65], [50, 70], [50, 73], [50, 75], [50, 76], [50, 77], [50, 80], [50, 82], [50, 86], [50, 88], [50, 89], [50, 90], [50, 91], [50, 92], [50, 93], [50, 96], [50, 97], [50, 99], [50, 103], [50, 104], [50, 105], [50, 106], [50, 109], [50, 110], [50, 111], [50, 112], [50, 116], [50, 117], [50, 118], [51, 53], [51, 54], [51, 58], [51, 61], [51, 62], [51, 63], [51, 64], [51, 67], [51, 68], [51, 69], [51, 72], [51, 73], [51, 74], [51, 75], [51, 78], [51, 80], [51, 81], [51, 84], [51, 85], [51, 87], [51, 88], [51, 89], [51, 90], [51, 91], [51, 95], [51, 97], [51, 103], [51, 104], [51, 105], [51, 106], [51, 107], [51, 108], [51, 109], [51, 115], [51, 119], [52, 54], [52, 57], [52, 59], [52, 61], [52, 62], [52, 65], [52, 66], [52, 69], [52, 70], [52, 71], [52, 77], [52, 78], [52, 80], [52, 83], [52, 86], [52, 90], [52, 95], [52, 97], [52, 98], [52, 101], [52, 102], [52, 103], [52, 106], [52, 107], [52, 108], [52, 109], [52, 110], [52, 111], [52, 113], [52, 114], [52, 117], [52, 118], [52, 119], [53, 57], [53, 59], [53, 61], [53, 62], [53, 63], [53, 65], [53, 66], [53, 67], [53, 68], [53, 74], [53, 75], [53, 77], [53, 78], [53, 79], [53, 80], [53, 81], [53, 82], [53, 83], [53, 88], [53, 90], [53, 91], [53, 95], [53, 99], [53, 101], [53, 102], [53, 105], [53, 106], [53, 109], [53, 114], [53, 115], [53, 116], [53, 118], [53, 119], [54, 55], [54, 57], [54, 60], [54, 61], [54, 64], [54, 66], [54, 68], [54, 69], [54, 71], [54, 72], [54, 73], [54, 74], [54, 75], [54, 76], [54, 80], [54, 81], [54, 82], [54, 83], [54, 85], [54, 86], [54, 87], [54, 88], [54, 89], [54, 90], [54, 93], [54, 95], [54, 97], [54, 101], [54, 102], [54, 103], [54, 106], [54, 108], [54, 110], [54, 113], [54, 115], [54, 116], [54, 117], [54, 118], [55, 58], [55, 61], [55, 65], [55, 66], [55, 67], [55, 68], [55, 69], [55, 71], [55, 73], [55, 74], [55, 77], [55, 78], [55, 79], [55, 80], [55, 81], [55, 83], [55, 84], [55, 86], [55, 88], [55, 89], [55, 94], [55, 95], [55, 98], [55, 102], [55, 103], [55, 104], [55, 107], [55, 109], [55, 110], [55, 111], [55, 116], [55, 117], [55, 118], [55, 119], [56, 59], [56, 60], [56, 62], [56, 64], [56, 65], [56, 66], [56, 67], [56, 71], [56, 73], [56, 75], [56, 80], [56, 82], [56, 83], [56, 86], [56, 87], [56, 88], [56, 89], [56, 90], [56, 92], [56, 93], [56, 94], [56, 96], [56, 99], [56, 102], [56, 106], [56, 107], [56, 108], [56, 109], [56, 111], [56, 115], [56, 116], [57, 64], [57, 66], [57, 67], [57, 68], [57, 72], [57, 73], [57, 74], [57, 75], [57, 77], [57, 78], [57, 81], [57, 85], [57, 86], [57, 88], [57, 91], [57, 98], [57, 102], [57, 104], [57, 105], [57, 106], [57, 110], [57, 111], [57, 115], [57, 116], [57, 118], [57, 119], [58, 61], [58, 62], [58, 66], [58, 67], [58, 68], [58, 70], [58, 75], [58, 78], [58, 79], [58, 81], [58, 82], [58, 88], [58, 89], [58, 90], [58, 91], [58, 93], [58, 94], [58, 95], [58, 98], [58, 99], [58, 100], [58, 104], [58, 105], [58, 108], [58, 111], [58, 112], [58, 113], [58, 115], [58, 116], [58, 117], [59, 60], [59, 61], [59, 63], [59, 64], [59, 67], [59, 68], [59, 71], [59, 72], [59, 74], [59, 78], [59, 79], [59, 80], [59, 81], [59, 82], [59, 83], [59, 85], [59, 86], [59, 89], [59, 90], [59, 91], [59, 93], [59, 95], [59, 96], [59, 98], [59, 104], [59, 105], [59, 106], [59, 109], [59, 111], [59, 114], [59, 115], [59, 117], [59, 118], [59, 119], [60, 62], [60, 63], [60, 64], [60, 65], [60, 66], [60, 69], [60, 70], [60, 71], [60, 72], [60, 79], [60, 80], [60, 83], [60, 84], [60, 85], [60, 86], [60, 90], [60, 94], [60, 97], [60, 98], [60, 100], [60, 101], [60, 103], [60, 104], [60, 106], [60, 107], [60, 109], [60, 116], [60, 118], [60, 119], [61, 64], [61, 66], [61, 70], [61, 71], [61, 72], [61, 79], [61, 80], [61, 81], [61, 82], [61, 84], [61, 86], [61, 87], [61, 88], [61, 95], [61, 97], [61, 98], [61, 99], [61, 103], [61, 104], [61, 106], [61, 107], [61, 110], [61, 113], [61, 117], [61, 119], [62, 63], [62, 65], [62, 66], [62, 67], [62, 69], [62, 74], [62, 76], [62, 77], [62, 79], [62, 82], [62, 86], [62, 87], [62, 92], [62, 93], [62, 96], [62, 97], [62, 99], [62, 101], [62, 103], [62, 104], [62, 105], [62, 106], [62, 107], [62, 110], [62, 111], [63, 65], [63, 71], [63, 75], [63, 76], [63, 77], [63, 78], [63, 79], [63, 80], [63, 81], [63, 82], [63, 83], [63, 85], [63, 86], [63, 88], [63, 92], [63, 93], [63, 98], [63, 99], [63, 100], [63, 105], [63, 108], [63, 110], [63, 111], [63, 112], [63, 113], [63, 114], [63, 115], [63, 117], [63, 118], [63, 119], [64, 65], [64, 67], [64, 68], [64, 69], [64, 73], [64, 75], [64, 76], [64, 77], [64, 81], [64, 82], [64, 83], [64, 85], [64, 87], [64, 89], [64, 90], [64, 94], [64, 96], [64, 97], [64, 98], [64, 99], [64, 100], [64, 104], [64, 108], [64, 110], [64, 111], [64, 112], [64, 113], [64, 119], [65, 66], [65, 68], [65, 69], [65, 70], [65, 73], [65, 78], [65, 79], [65, 83], [65, 89], [65, 93], [65, 94], [65, 95], [65, 96], [65, 97], [65, 98], [65, 99], [65, 100], [65, 102], [65, 103], [65, 105], [65, 107], [65, 108], [65, 112], [65, 114], [65, 115], [65, 116], [65, 117], [65, 118], [65, 119], [66, 67], [66, 68], [66, 70], [66, 73], [66, 74], [66, 75], [66, 77], [66, 79], [66, 80], [66, 81], [66, 82], [66, 84], [66, 87], [66, 88], [66, 91], [66, 92], [66, 94], [66, 96], [66, 97], [66, 98], [66, 100], [66, 101], [66, 102], [66, 103], [66, 105], [66, 106], [66, 109], [66, 111], [66, 112], [66, 113], [66, 116], [66, 118], [66, 119], [67, 68], [67, 69], [67, 71], [67, 72], [67, 73], [67, 76], [67, 77], [67, 78], [67, 80], [67, 84], [67, 87], [67, 88], [67, 91], [67, 93], [67, 95], [67, 96], [67, 97], [67, 99], [67, 102], [67, 103], [67, 105], [67, 106], [67, 107], [67, 108], [67, 109], [67, 114], [67, 116], [68, 69], [68, 70], [68, 71], [68, 72], [68, 75], [68, 76], [68, 79], [68, 83], [68, 86], [68, 89], [68, 94], [68, 95], [68, 97], [68, 99], [68, 100], [68, 103], [68, 106], [68, 108], [68, 109], [68, 111], [68, 112], [68, 114], [68, 116], [68, 117], [68, 118], [69, 70], [69, 72], [69, 73], [69, 74], [69, 75], [69, 76], [69, 78], [69, 79], [69, 83], [69, 85], [69, 87], [69, 89], [69, 90], [69, 92], [69, 94], [69, 95], [69, 97], [69, 100], [69, 101], [69, 105], [69, 106], [69, 107], [69, 109], [69, 113], [69, 116], [69, 118], [70, 73], [70, 74], [70, 75], [70, 76], [70, 77], [70, 82], [70, 83], [70, 84], [70, 85], [70, 89], [70, 90], [70, 92], [70, 93], [70, 94], [70, 96], [70, 98], [70, 100], [70, 103], [70, 107], [70, 109], [70, 111], [70, 113], [70, 119], [71, 72], [71, 73], [71, 74], [71, 82], [71, 83], [71, 86], [71, 87], [71, 88], [71, 89], [71, 91], [71, 92], [71, 95], [71, 99], [71, 102], [71, 103], [71, 104], [71, 108], [71, 109], [71, 110], [71, 113], [71, 114], [71, 115], [71, 116], [71, 117], [71, 118], [71, 119], [72, 73], [72, 74], [72, 75], [72, 76], [72, 78], [72, 80], [72, 86], [72, 90], [72, 91], [72, 93], [72, 94], [72, 96], [72, 97], [72, 99], [72, 103], [72, 104], [72, 106], [72, 109], [72, 110], [72, 111], [72, 114], [72, 118], [72, 119], [73, 75], [73, 76], [73, 78], [73, 80], [73, 81], [73, 83], [73, 86], [73, 87], [73, 88], [73, 89], [73, 90], [73, 91], [73, 96], [73, 98], [73, 99], [73, 100], [73, 101], [73, 102], [73, 103], [73, 104], [73, 105], [73, 107], [73, 108], [73, 110], [73, 112], [73, 115], [74, 75], [74, 76], [74, 77], [74, 78], [74, 79], [74, 80], [74, 81], [74, 82], [74, 83], [74, 85], [74, 86], [74, 88], [74, 91], [74, 92], [74, 93], [74, 94], [74, 97], [74, 101], [74, 103], [74, 105], [74, 106], [74, 108], [74, 109], [74, 110], [74, 111], [74, 112], [74, 115], [74, 117], [74, 118], [75, 76], [75, 79], [75, 80], [75, 82], [75, 83], [75, 84], [75, 85], [75, 86], [75, 88], [75, 89], [75, 90], [75, 91], [75, 94], [75, 96], [75, 98], [75, 99], [75, 103], [75, 107], [75, 108], [75, 109], [75, 112], [75, 113], [75, 114], [75, 115], [75, 116], [75, 117], [76, 77], [76, 78], [76, 80], [76, 84], [76, 88], [76, 89], [76, 95], [76, 97], [76, 98], [76, 99], [76, 100], [76, 104], [76, 105], [76, 108], [76, 109], [76, 111], [76, 113], [76, 115], [76, 116], [76, 117], [76, 119], [77, 78], [77, 80], [77, 82], [77, 84], [77, 86], [77, 87], [77, 88], [77, 89], [77, 92], [77, 94], [77, 95], [77, 96], [77, 100], [77, 102], [77, 103], [77, 105], [77, 106], [77, 108], [77, 111], [77, 114], [77, 115], [77, 116], [78, 79], [78, 81], [78, 82], [78, 83], [78, 84], [78, 86], [78, 87], [78, 88], [78, 90], [78, 92], [78, 95], [78, 100], [78, 101], [78, 102], [78, 103], [78, 105], [78, 107], [78, 108], [78, 109], [78, 111], [78, 112], [78, 113], [78, 114], [78, 115], [78, 116], [78, 118], [78, 119], [79, 82], [79, 88], [79, 89], [79, 93], [79, 94], [79, 95], [79, 98], [79, 99], [79, 102], [79, 103], [79, 107], [79, 109], [79, 110], [79, 111], [79, 112], [79, 116], [79, 117], [79, 118], [80, 81], [80, 82], [80, 85], [80, 86], [80, 87], [80, 92], [80, 96], [80, 97], [80, 98], [80, 101], [80, 104], [80, 106], [80, 107], [80, 113], [80, 115], [80, 116], [80, 119], [81, 85], [81, 86], [81, 88], [81, 90], [81, 91], [81, 92], [81, 94], [81, 95], [81, 96], [81, 97], [81, 100], [81, 102], [81, 104], [81, 106], [81, 107], [81, 108], [81, 110], [81, 111], [81, 112], [81, 113], [81, 114], [81, 116], [81, 117], [81, 118], [82, 84], [82, 85], [82, 87], [82, 88], [82, 91], [82, 93], [82, 94], [82, 96], [82, 97], [82, 99], [82, 100], [82, 101], [82, 104], [82, 107], [82, 109], [82, 110], [82, 113], [82, 114], [82, 115], [82, 118], [82, 119], [83, 84], [83, 85], [83, 88], [83, 89], [83, 90], [83, 91], [83, 94], [83, 95], [83, 96], [83, 104], [83, 106], [83, 107], [83, 108], [83, 110], [83, 113], [83, 115], [83, 118], [83, 119], [84, 86], [84, 90], [84, 94], [84, 96], [84, 98], [84, 100], [84, 101], [84, 103], [84, 104], [84, 105], [84, 106], [84, 108], [84, 112], [84, 113], [84, 115], [84, 116], [84, 119], [85, 86], [85, 87], [85, 88], [85, 91], [85, 93], [85, 94], [85, 95], [85, 96], [85, 97], [85, 98], [85, 99], [85, 106], [85, 107], [85, 109], [85, 110], [85, 111], [85, 112], [85, 113], [85, 115], [85, 116], [86, 89], [86, 91], [86, 92], [86, 93], [86, 95], [86, 96], [86, 99], [86, 101], [86, 103], [86, 104], [86, 106], [86, 108], [86, 113], [86, 114], [86, 115], [86, 116], [86, 118], [86, 119], [87, 88], [87, 89], [87, 90], [87, 93], [87, 94], [87, 96], [87, 97], [87, 98], [87, 99], [87, 100], [87, 103], [87, 104], [87, 105], [87, 106], [87, 108], [87, 111], [87, 113], [87, 114], [87, 116], [87, 118], [87, 119], [88, 91], [88, 92], [88, 98], [88, 100], [88, 101], [88, 103], [88, 104], [88, 106], [88, 113], [88, 114], [88, 115], [88, 116], [88, 119], [89, 90], [89, 91], [89, 92], [89, 93], [89, 94], [89, 96], [89, 98], [89, 99], [89, 100], [89, 101], [89, 105], [89, 111], [89, 112], [89, 113], [89, 114], [89, 115], [89, 117], [89, 118], [90, 91], [90, 93], [90, 96], [90, 98], [90, 99], [90, 100], [90, 102], [90, 103], [90, 105], [90, 108], [90, 110], [91, 93], [91, 94], [91, 95], [91, 96], [91, 98], [91, 102], [91, 103], [91, 105], [91, 106], [91, 107], [91, 108], [91, 109], [91, 110], [91, 111], [91, 113], [91, 117], [92, 93], [92, 96], [92, 99], [92, 102], [92, 104], [92, 106], [92, 108], [92, 113], [92, 115], [92, 116], [92, 119], [93, 97], [93, 98], [93, 99], [93, 103], [93, 113], [93, 114], [93, 116], [93, 118], [93, 119], [94, 95], [94, 99], [94, 101], [94, 102], [94, 105], [94, 108], [94, 112], [94, 116], [95, 98], [95, 99], [95, 102], [95, 107], [95, 108], [95, 109], [95, 110], [95, 111], [95, 112], [95, 117], [95, 118], [96, 97], [96, 98], [96, 100], [96, 101], [96, 104], [96, 105], [96, 106], [96, 107], [96, 108], [96, 112], [96, 117], [96, 118], [96, 119], [97, 99], [97, 102], [97, 104], [97, 105], [97, 106], [97, 107], [97, 108], [97, 110], [97, 111], [97, 112], [97, 114], [97, 115], [97, 116], [98, 100], [98, 104], [98, 106], [98, 108], [98, 109], [98, 112], [98, 114], [98, 116], [98, 117], [98, 119], [99, 100], [99, 105], [99, 106], [99, 107], [99, 108], [99, 109], [99, 110], [99, 111], [99, 112], [99, 113], [99, 115], [99, 116], [99, 118], [99, 119], [100, 101], [100, 105], [100, 107], [100, 108], [100, 113], [100, 117], [100, 118], [100, 119], [101, 103], [101, 106], [101, 109], [101, 110], [101, 112], [101, 114], [101, 119], [102, 104], [102, 106], [102, 107], [102, 108], [102, 112], [102, 113], [102, 115], [102, 116], [102, 117], [102, 119], [103, 105], [103, 106], [103, 109], [103, 111], [103, 113], [103, 116], [103, 117], [103, 119], [104, 105], [104, 106], [104, 112], [104, 114], [104, 115], [104, 116], [104, 117], [104, 118], [104, 119], [105, 107], [105, 109], [105, 110], [105, 112], [105, 116], [105, 119], [106, 107], [106, 108], [106, 111], [106, 112], [106, 114], [106, 115], [106, 117], [106, 118], [107, 108], [107, 110], [107, 112], [107, 114], [107, 117], [107, 118], [107, 119], [108, 111], [108, 113], [108, 114], [108, 117], [108, 119], [109, 110], [109, 112], [109, 113], [109, 115], [109, 116], [110, 111], [110, 112], [110, 114], [110, 116], [110, 118], [110, 119], [111, 112], [111, 113], [111, 114], [111, 115], [111, 116], [111, 118], [112, 113], [112, 114], [112, 115], [112, 116], [112, 118], [113, 115], [113, 116], [113, 118], [113, 119], [114, 115], [114, 116], [114, 117], [114, 119], [115, 117], [115, 119], [117, 119]], "family": "mc_max_clique", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-max-clique-l6-s6/tests/run.py b/tasks/construct-mc-max-clique-l6-s6/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-max-clique-l6-s6/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-max-clique-l6-s6/tests/test.sh b/tasks/construct-mc-max-clique-l6-s6/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-max-clique-l6-s6/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-max-clique-l6-s8/environment/Dockerfile b/tasks/construct-mc-max-clique-l6-s8/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-max-clique-l6-s8/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-max-clique-l6-s8/environment/instance.json b/tasks/construct-mc-max-clique-l6-s8/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..0a7585897f473fa5d36661ee2803314525145544 --- /dev/null +++ b/tasks/construct-mc-max-clique-l6-s8/environment/instance.json @@ -0,0 +1 @@ +{"n": 120, "k": 13, "edges": [[0, 2], [0, 4], [0, 6], [0, 9], [0, 11], [0, 12], [0, 19], [0, 21], [0, 23], [0, 24], [0, 26], [0, 28], [0, 30], [0, 31], [0, 32], [0, 33], [0, 36], [0, 37], [0, 38], [0, 39], [0, 40], [0, 41], [0, 43], [0, 48], [0, 50], [0, 51], [0, 52], [0, 53], [0, 56], [0, 58], [0, 60], [0, 61], [0, 62], [0, 64], [0, 65], [0, 66], [0, 68], [0, 70], [0, 71], [0, 72], [0, 73], [0, 76], [0, 78], [0, 81], [0, 82], [0, 84], [0, 86], [0, 87], [0, 94], [0, 95], [0, 97], [0, 98], [0, 100], [0, 104], [0, 105], [0, 108], [0, 109], [0, 111], [0, 113], [0, 115], [0, 117], [0, 118], [0, 119], [1, 2], [1, 3], [1, 5], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 18], [1, 20], [1, 22], [1, 24], [1, 25], [1, 26], [1, 27], [1, 28], [1, 29], [1, 32], [1, 34], [1, 35], [1, 36], [1, 37], [1, 38], [1, 40], [1, 45], [1, 50], [1, 51], [1, 52], [1, 57], [1, 58], [1, 59], [1, 61], [1, 64], [1, 65], [1, 66], [1, 67], [1, 70], [1, 71], [1, 74], [1, 83], [1, 84], [1, 86], [1, 89], [1, 90], [1, 91], [1, 92], [1, 94], [1, 97], [1, 100], [1, 101], [1, 102], [1, 105], [1, 106], [1, 109], [1, 110], [1, 111], [1, 112], [1, 115], [1, 116], [1, 117], [2, 3], [2, 7], [2, 8], [2, 9], [2, 10], [2, 12], [2, 14], [2, 16], [2, 18], [2, 20], [2, 21], [2, 22], [2, 24], [2, 28], [2, 31], [2, 33], [2, 35], [2, 36], [2, 39], [2, 41], [2, 42], [2, 44], [2, 48], [2, 51], [2, 54], [2, 56], [2, 57], [2, 58], [2, 59], [2, 62], [2, 63], [2, 67], [2, 68], [2, 70], [2, 71], [2, 73], [2, 77], [2, 81], [2, 82], [2, 83], [2, 84], [2, 88], [2, 89], [2, 91], [2, 94], [2, 95], [2, 96], [2, 97], [2, 99], [2, 100], [2, 101], [2, 103], [2, 104], [2, 108], [2, 109], [2, 110], [2, 111], [2, 112], [2, 113], [2, 115], [2, 116], [2, 118], [2, 119], [3, 5], [3, 7], [3, 8], [3, 9], [3, 11], [3, 12], [3, 13], [3, 14], [3, 16], [3, 21], [3, 22], [3, 23], [3, 24], [3, 26], [3, 29], [3, 31], [3, 32], [3, 33], [3, 34], [3, 38], [3, 39], [3, 40], [3, 45], [3, 46], [3, 52], [3, 53], [3, 54], [3, 56], [3, 59], [3, 60], [3, 65], [3, 67], [3, 68], [3, 69], [3, 71], [3, 74], [3, 75], [3, 77], [3, 79], [3, 80], [3, 83], [3, 85], [3, 86], [3, 88], [3, 90], [3, 91], [3, 92], [3, 94], [3, 95], [3, 97], [3, 98], [3, 99], [3, 102], [3, 103], [3, 104], [3, 107], [3, 108], [3, 110], [3, 112], [3, 115], [4, 5], [4, 7], [4, 11], [4, 12], [4, 16], [4, 17], [4, 18], [4, 21], [4, 25], [4, 26], [4, 27], [4, 32], [4, 35], [4, 36], [4, 37], [4, 39], [4, 41], [4, 42], [4, 43], [4, 44], [4, 45], [4, 47], [4, 48], [4, 49], [4, 50], [4, 52], [4, 53], [4, 56], [4, 57], [4, 59], [4, 60], [4, 62], [4, 64], [4, 67], [4, 69], [4, 70], [4, 71], [4, 72], [4, 74], [4, 75], [4, 81], [4, 83], [4, 85], [4, 86], [4, 87], [4, 88], [4, 90], [4, 91], [4, 92], [4, 94], [4, 96], [4, 98], [4, 99], [4, 100], [4, 101], [4, 102], [4, 103], [4, 104], [4, 106], [4, 107], [4, 108], [4, 109], [4, 110], [4, 111], [4, 112], [4, 113], [4, 115], [4, 116], [4, 117], [4, 119], [5, 9], [5, 10], [5, 16], [5, 18], [5, 19], [5, 20], [5, 24], [5, 25], [5, 27], [5, 34], [5, 35], [5, 36], [5, 37], [5, 38], [5, 41], [5, 43], [5, 45], [5, 46], [5, 47], [5, 48], [5, 50], [5, 51], [5, 54], [5, 55], [5, 56], [5, 57], [5, 58], [5, 64], [5, 65], [5, 66], [5, 68], [5, 69], [5, 70], [5, 71], [5, 73], [5, 74], [5, 75], [5, 77], [5, 78], [5, 81], [5, 82], [5, 84], [5, 85], [5, 88], [5, 89], [5, 90], [5, 96], [5, 97], [5, 98], [5, 102], [5, 106], [5, 107], [5, 108], [5, 109], [5, 112], [5, 114], [6, 7], [6, 10], [6, 11], [6, 13], [6, 16], [6, 17], [6, 21], [6, 22], [6, 26], [6, 27], [6, 29], [6, 30], [6, 34], [6, 37], [6, 40], [6, 44], [6, 47], [6, 48], [6, 49], [6, 50], [6, 51], [6, 52], [6, 53], [6, 54], [6, 56], [6, 58], [6, 59], [6, 60], [6, 61], [6, 62], [6, 63], [6, 64], [6, 65], [6, 68], [6, 69], [6, 70], [6, 74], [6, 76], [6, 79], [6, 81], [6, 86], [6, 89], [6, 91], [6, 94], [6, 95], [6, 97], [6, 99], [6, 100], [6, 102], [6, 103], [6, 106], [6, 109], [6, 110], [6, 111], [6, 113], [6, 115], [6, 116], [6, 119], [7, 12], [7, 14], [7, 16], [7, 17], [7, 18], [7, 20], [7, 21], [7, 22], [7, 24], [7, 28], [7, 29], [7, 30], [7, 37], [7, 38], [7, 39], [7, 44], [7, 45], [7, 48], [7, 53], [7, 55], [7, 56], [7, 58], [7, 60], [7, 62], [7, 64], [7, 65], [7, 66], [7, 67], [7, 68], [7, 69], [7, 72], [7, 73], [7, 76], [7, 78], [7, 80], [7, 81], [7, 83], [7, 85], [7, 86], [7, 88], [7, 90], [7, 92], [7, 94], [7, 96], [7, 98], [7, 99], [7, 104], [7, 108], [7, 111], [7, 117], [7, 118], [8, 9], [8, 10], [8, 11], [8, 12], [8, 13], [8, 14], [8, 20], [8, 24], [8, 26], [8, 27], [8, 28], [8, 29], [8, 31], [8, 34], [8, 35], [8, 37], [8, 39], [8, 40], [8, 41], [8, 42], [8, 44], [8, 45], [8, 46], [8, 47], [8, 48], [8, 49], [8, 51], [8, 55], [8, 57], [8, 60], [8, 62], [8, 63], [8, 64], [8, 65], [8, 67], [8, 68], [8, 69], [8, 71], [8, 72], [8, 73], [8, 76], [8, 77], [8, 78], [8, 79], [8, 82], [8, 87], [8, 88], [8, 91], [8, 93], [8, 95], [8, 96], [8, 97], [8, 99], [8, 100], [8, 102], [8, 103], [8, 104], [8, 105], [8, 106], [8, 108], [8, 110], [8, 111], [8, 116], [8, 117], [8, 118], [9, 10], [9, 12], [9, 13], [9, 15], [9, 16], [9, 21], [9, 22], [9, 24], [9, 26], [9, 27], [9, 30], [9, 32], [9, 33], [9, 36], [9, 39], [9, 41], [9, 42], [9, 46], [9, 49], [9, 50], [9, 51], [9, 52], [9, 53], [9, 54], [9, 55], [9, 57], [9, 58], [9, 59], [9, 60], [9, 61], [9, 64], [9, 65], [9, 67], [9, 75], [9, 77], [9, 79], [9, 80], [9, 82], [9, 83], [9, 85], [9, 87], [9, 89], [9, 91], [9, 94], [9, 97], [9, 98], [9, 99], [9, 101], [9, 102], [9, 103], [9, 105], [9, 107], [9, 108], [9, 109], [9, 118], [10, 11], [10, 12], [10, 13], [10, 15], [10, 16], [10, 18], [10, 23], [10, 24], [10, 25], [10, 28], [10, 31], [10, 32], [10, 37], [10, 40], [10, 43], [10, 45], [10, 46], [10, 48], [10, 49], [10, 50], [10, 52], [10, 54], [10, 55], [10, 56], [10, 57], [10, 59], [10, 60], [10, 61], [10, 63], [10, 65], [10, 66], [10, 69], [10, 73], [10, 74], [10, 75], [10, 76], [10, 77], [10, 82], [10, 83], [10, 84], [10, 85], [10, 88], [10, 91], [10, 94], [10, 95], [10, 96], [10, 97], [10, 99], [10, 100], [10, 102], [10, 103], [10, 104], [10, 105], [10, 106], [10, 109], [10, 111], [10, 114], [10, 116], [10, 118], [10, 119], [11, 14], [11, 15], [11, 16], [11, 17], [11, 18], [11, 21], [11, 23], [11, 24], [11, 25], [11, 26], [11, 28], [11, 29], [11, 30], [11, 31], [11, 34], [11, 35], [11, 36], [11, 37], [11, 45], [11, 47], [11, 48], [11, 50], [11, 54], [11, 55], [11, 57], [11, 58], [11, 60], [11, 62], [11, 64], [11, 69], [11, 70], [11, 71], [11, 77], [11, 80], [11, 81], [11, 82], [11, 84], [11, 85], [11, 86], [11, 88], [11, 89], [11, 91], [11, 92], [11, 93], [11, 94], [11, 97], [11, 98], [11, 99], [11, 100], [11, 101], [11, 102], [11, 113], [11, 114], [11, 115], [11, 116], [11, 117], [12, 14], [12, 15], [12, 16], [12, 18], [12, 20], [12, 21], [12, 26], [12, 30], [12, 34], [12, 36], [12, 37], [12, 38], [12, 40], [12, 41], [12, 43], [12, 45], [12, 46], [12, 51], [12, 52], [12, 54], [12, 55], [12, 58], [12, 59], [12, 61], [12, 63], [12, 65], [12, 67], [12, 68], [12, 70], [12, 71], [12, 73], [12, 76], [12, 77], [12, 82], [12, 84], [12, 85], [12, 87], [12, 90], [12, 91], [12, 94], [12, 96], [12, 97], [12, 98], [12, 100], [12, 101], [12, 104], [12, 106], [12, 108], [12, 109], [12, 112], [12, 114], [12, 119], [13, 14], [13, 16], [13, 18], [13, 23], [13, 24], [13, 25], [13, 26], [13, 27], [13, 28], [13, 32], [13, 35], [13, 38], [13, 40], [13, 42], [13, 44], [13, 45], [13, 49], [13, 50], [13, 51], [13, 53], [13, 59], [13, 60], [13, 70], [13, 73], [13, 74], [13, 75], [13, 77], [13, 78], [13, 80], [13, 82], [13, 83], [13, 84], [13, 85], [13, 87], [13, 90], [13, 92], [13, 93], [13, 94], [13, 95], [13, 97], [13, 99], [13, 100], [13, 101], [13, 107], [13, 109], [13, 111], [13, 113], [13, 114], [13, 115], [14, 16], [14, 19], [14, 21], [14, 22], [14, 23], [14, 24], [14, 26], [14, 29], [14, 31], [14, 32], [14, 33], [14, 37], [14, 38], [14, 40], [14, 42], [14, 46], [14, 47], [14, 48], [14, 49], [14, 55], [14, 56], [14, 59], [14, 60], [14, 61], [14, 63], [14, 64], [14, 66], [14, 75], [14, 76], [14, 77], [14, 78], [14, 79], [14, 80], [14, 81], [14, 83], [14, 84], [14, 87], [14, 88], [14, 90], [14, 94], [14, 97], [14, 99], [14, 102], [14, 105], [14, 107], [14, 110], [14, 111], [14, 112], [14, 113], [14, 114], [14, 115], [14, 119], [15, 17], [15, 21], [15, 22], [15, 23], [15, 27], [15, 28], [15, 31], [15, 32], [15, 33], [15, 34], [15, 36], [15, 38], [15, 40], [15, 43], [15, 45], [15, 46], [15, 48], [15, 50], [15, 51], [15, 52], [15, 53], [15, 59], [15, 62], [15, 63], [15, 64], [15, 67], [15, 69], [15, 70], [15, 72], [15, 78], [15, 82], [15, 84], [15, 88], [15, 90], [15, 93], [15, 95], [15, 96], [15, 102], [15, 103], [15, 105], [15, 108], [15, 109], [15, 112], [15, 114], [15, 115], [15, 117], [16, 17], [16, 18], [16, 19], [16, 20], [16, 21], [16, 22], [16, 27], [16, 28], [16, 30], [16, 34], [16, 37], [16, 38], [16, 40], [16, 41], [16, 48], [16, 49], [16, 50], [16, 52], [16, 54], [16, 56], [16, 59], [16, 61], [16, 63], [16, 64], [16, 65], [16, 66], [16, 67], [16, 68], [16, 69], [16, 70], [16, 71], [16, 74], [16, 75], [16, 76], [16, 80], [16, 81], [16, 82], [16, 84], [16, 88], [16, 92], [16, 94], [16, 95], [16, 96], [16, 98], [16, 100], [16, 103], [16, 107], [16, 108], [16, 110], [16, 112], [16, 113], [16, 115], [16, 117], [16, 119], [17, 18], [17, 20], [17, 25], [17, 27], [17, 29], [17, 30], [17, 39], [17, 41], [17, 44], [17, 47], [17, 48], [17, 49], [17, 50], [17, 55], [17, 56], [17, 62], [17, 66], [17, 67], [17, 72], [17, 73], [17, 84], [17, 86], [17, 87], [17, 88], [17, 90], [17, 92], [17, 94], [17, 96], [17, 97], [17, 98], [17, 99], [17, 102], [17, 103], [17, 109], [17, 111], [17, 114], [17, 116], [17, 117], [17, 118], [17, 119], [18, 20], [18, 21], [18, 23], [18, 24], [18, 25], [18, 26], [18, 28], [18, 29], [18, 32], [18, 33], [18, 37], [18, 40], [18, 41], [18, 42], [18, 43], [18, 44], [18, 47], [18, 48], [18, 49], [18, 50], [18, 51], [18, 52], [18, 53], [18, 54], [18, 55], [18, 56], [18, 58], [18, 60], [18, 61], [18, 62], [18, 63], [18, 66], [18, 68], [18, 69], [18, 71], [18, 73], [18, 75], [18, 78], [18, 80], [18, 81], [18, 84], [18, 85], [18, 86], [18, 87], [18, 90], [18, 91], [18, 92], [18, 94], [18, 95], [18, 98], [18, 100], [18, 103], [18, 105], [18, 106], [18, 107], [18, 108], [18, 109], [18, 112], [18, 113], [18, 115], [18, 116], [18, 117], [18, 118], [19, 22], [19, 24], [19, 26], [19, 27], [19, 30], [19, 31], [19, 32], [19, 34], [19, 36], [19, 37], [19, 38], [19, 43], [19, 44], [19, 45], [19, 50], [19, 51], [19, 53], [19, 54], [19, 56], [19, 57], [19, 59], [19, 60], [19, 61], [19, 62], [19, 64], [19, 72], [19, 73], [19, 75], [19, 76], [19, 78], [19, 79], [19, 80], [19, 81], [19, 86], [19, 87], [19, 89], [19, 90], [19, 91], [19, 92], [19, 93], [19, 98], [19, 99], [19, 100], [19, 101], [19, 103], [19, 105], [19, 107], [19, 108], [19, 109], [19, 115], [19, 116], [20, 21], [20, 25], [20, 28], [20, 29], [20, 32], [20, 33], [20, 35], [20, 36], [20, 37], [20, 38], [20, 40], [20, 41], [20, 43], [20, 45], [20, 49], [20, 52], [20, 53], [20, 55], [20, 57], [20, 59], [20, 61], [20, 65], [20, 66], [20, 67], [20, 68], [20, 69], [20, 76], [20, 77], [20, 79], [20, 86], [20, 87], [20, 89], [20, 90], [20, 91], [20, 92], [20, 93], [20, 94], [20, 97], [20, 99], [20, 100], [20, 107], [20, 108], [20, 111], [20, 114], [20, 116], [20, 118], [21, 24], [21, 25], [21, 26], [21, 35], [21, 37], [21, 39], [21, 40], [21, 42], [21, 43], [21, 48], [21, 49], [21, 50], [21, 51], [21, 57], [21, 60], [21, 62], [21, 66], [21, 68], [21, 71], [21, 73], [21, 74], [21, 76], [21, 84], [21, 85], [21, 86], [21, 87], [21, 93], [21, 94], [21, 95], [21, 99], [21, 102], [21, 104], [21, 105], [21, 106], [21, 107], [21, 109], [21, 111], [21, 112], [21, 113], [21, 114], [21, 116], [21, 119], [22, 25], [22, 26], [22, 28], [22, 31], [22, 34], [22, 35], [22, 36], [22, 40], [22, 41], [22, 42], [22, 45], [22, 46], [22, 47], [22, 49], [22, 51], [22, 52], [22, 56], [22, 58], [22, 63], [22, 64], [22, 66], [22, 67], [22, 68], [22, 69], [22, 70], [22, 71], [22, 74], [22, 76], [22, 77], [22, 80], [22, 81], [22, 82], [22, 84], [22, 88], [22, 90], [22, 91], [22, 93], [22, 97], [22, 99], [22, 100], [22, 106], [22, 107], [22, 110], [22, 113], [22, 116], [22, 117], [23, 24], [23, 26], [23, 27], [23, 30], [23, 31], [23, 34], [23, 35], [23, 36], [23, 37], [23, 39], [23, 42], [23, 45], [23, 48], [23, 49], [23, 50], [23, 51], [23, 52], [23, 55], [23, 57], [23, 58], [23, 63], [23, 64], [23, 69], [23, 73], [23, 75], [23, 76], [23, 77], [23, 79], [23, 81], [23, 84], [23, 85], [23, 86], [23, 88], [23, 91], [23, 92], [23, 93], [23, 94], [23, 95], [23, 97], [23, 98], [23, 100], [23, 102], [23, 103], [23, 112], [23, 113], [23, 116], [23, 117], [24, 26], [24, 28], [24, 29], [24, 35], [24, 37], [24, 38], [24, 40], [24, 42], [24, 43], [24, 45], [24, 46], [24, 47], [24, 49], [24, 50], [24, 51], [24, 53], [24, 58], [24, 59], [24, 60], [24, 61], [24, 63], [24, 64], [24, 65], [24, 67], [24, 69], [24, 70], [24, 72], [24, 74], [24, 80], [24, 83], [24, 84], [24, 89], [24, 92], [24, 93], [24, 94], [24, 95], [24, 98], [24, 102], [24, 104], [24, 107], [24, 108], [24, 110], [24, 113], [24, 114], [24, 115], [24, 117], [25, 27], [25, 29], [25, 30], [25, 31], [25, 32], [25, 33], [25, 34], [25, 37], [25, 40], [25, 41], [25, 46], [25, 47], [25, 48], [25, 49], [25, 51], [25, 52], [25, 54], [25, 55], [25, 57], [25, 60], [25, 66], [25, 69], [25, 72], [25, 74], [25, 77], [25, 78], [25, 80], [25, 81], [25, 83], [25, 84], [25, 85], [25, 87], [25, 90], [25, 91], [25, 92], [25, 94], [25, 95], [25, 98], [25, 103], [25, 105], [25, 108], [25, 109], [25, 110], [25, 111], [25, 112], [25, 115], [25, 116], [25, 117], [26, 30], [26, 31], [26, 34], [26, 35], [26, 37], [26, 38], [26, 42], [26, 43], [26, 44], [26, 46], [26, 48], [26, 49], [26, 50], [26, 52], [26, 53], [26, 55], [26, 57], [26, 60], [26, 61], [26, 62], [26, 65], [26, 67], [26, 73], [26, 75], [26, 78], [26, 81], [26, 84], [26, 87], [26, 88], [26, 89], [26, 90], [26, 93], [26, 95], [26, 96], [26, 97], [26, 98], [26, 101], [26, 102], [26, 103], [26, 104], [26, 105], [26, 106], [26, 107], [26, 108], [26, 111], [26, 113], [26, 115], [26, 117], [27, 29], [27, 30], [27, 31], [27, 34], [27, 36], [27, 40], [27, 42], [27, 46], [27, 50], [27, 54], [27, 56], [27, 62], [27, 63], [27, 66], [27, 70], [27, 71], [27, 73], [27, 74], [27, 75], [27, 76], [27, 77], [27, 81], [27, 82], [27, 88], [27, 91], [27, 96], [27, 97], [27, 98], [27, 99], [27, 100], [27, 101], [27, 102], [27, 104], [27, 105], [27, 107], [27, 109], [27, 110], [27, 111], [27, 112], [27, 113], [27, 114], [27, 115], [27, 117], [27, 118], [27, 119], [28, 30], [28, 31], [28, 32], [28, 33], [28, 35], [28, 37], [28, 38], [28, 41], [28, 43], [28, 44], [28, 45], [28, 46], [28, 47], [28, 50], [28, 51], [28, 53], [28, 55], [28, 58], [28, 59], [28, 60], [28, 61], [28, 65], [28, 66], [28, 67], [28, 71], [28, 74], [28, 75], [28, 76], [28, 77], [28, 78], [28, 80], [28, 85], [28, 90], [28, 93], [28, 95], [28, 99], [28, 100], [28, 107], [28, 108], [28, 109], [28, 112], [28, 117], [28, 119], [29, 30], [29, 31], [29, 35], [29, 42], [29, 43], [29, 44], [29, 47], [29, 49], [29, 51], [29, 53], [29, 54], [29, 55], [29, 56], [29, 61], [29, 63], [29, 68], [29, 71], [29, 72], [29, 73], [29, 75], [29, 76], [29, 77], [29, 79], [29, 83], [29, 84], [29, 88], [29, 89], [29, 90], [29, 91], [29, 93], [29, 94], [29, 96], [29, 97], [29, 99], [29, 100], [29, 101], [29, 105], [29, 107], [29, 112], [29, 114], [29, 116], [29, 117], [30, 31], [30, 32], [30, 35], [30, 36], [30, 40], [30, 41], [30, 44], [30, 48], [30, 52], [30, 54], [30, 56], [30, 57], [30, 61], [30, 64], [30, 65], [30, 66], [30, 67], [30, 70], [30, 71], [30, 74], [30, 75], [30, 76], [30, 80], [30, 82], [30, 84], [30, 85], [30, 87], [30, 88], [30, 89], [30, 91], [30, 94], [30, 95], [30, 100], [30, 101], [30, 102], [30, 103], [30, 106], [30, 107], [30, 109], [30, 112], [30, 114], [30, 115], [30, 119], [31, 32], [31, 34], [31, 38], [31, 40], [31, 41], [31, 43], [31, 48], [31, 49], [31, 50], [31, 51], [31, 52], [31, 54], [31, 55], [31, 57], [31, 59], [31, 63], [31, 67], [31, 69], [31, 71], [31, 73], [31, 76], [31, 78], [31, 79], [31, 80], [31, 81], [31, 84], [31, 87], [31, 89], [31, 90], [31, 94], [31, 97], [31, 98], [31, 107], [31, 108], [31, 110], [31, 112], [31, 113], [31, 117], [31, 119], [32, 33], [32, 35], [32, 36], [32, 37], [32, 38], [32, 40], [32, 41], [32, 44], [32, 45], [32, 46], [32, 47], [32, 50], [32, 52], [32, 53], [32, 54], [32, 55], [32, 59], [32, 62], [32, 64], [32, 69], [32, 70], [32, 73], [32, 74], [32, 75], [32, 77], [32, 78], [32, 79], [32, 80], [32, 83], [32, 90], [32, 91], [32, 92], [32, 99], [32, 100], [32, 101], [32, 102], [32, 103], [32, 106], [32, 108], [32, 109], [32, 111], [32, 112], [32, 117], [32, 119], [33, 35], [33, 36], [33, 37], [33, 40], [33, 41], [33, 43], [33, 47], [33, 50], [33, 52], [33, 53], [33, 56], [33, 58], [33, 61], [33, 64], [33, 66], [33, 67], [33, 68], [33, 69], [33, 71], [33, 73], [33, 74], [33, 75], [33, 76], [33, 77], [33, 78], [33, 79], [33, 80], [33, 81], [33, 83], [33, 85], [33, 86], [33, 89], [33, 91], [33, 93], [33, 94], [33, 96], [33, 98], [33, 100], [33, 101], [33, 102], [33, 108], [33, 109], [33, 110], [33, 114], [33, 115], [33, 118], [34, 35], [34, 37], [34, 38], [34, 44], [34, 47], [34, 49], [34, 53], [34, 54], [34, 57], [34, 58], [34, 59], [34, 63], [34, 64], [34, 65], [34, 69], [34, 70], [34, 71], [34, 72], [34, 75], [34, 78], [34, 80], [34, 81], [34, 85], [34, 86], [34, 87], [34, 92], [34, 93], [34, 94], [34, 95], [34, 96], [34, 97], [34, 99], [34, 103], [34, 104], [34, 105], [34, 106], [34, 107], [34, 108], [34, 112], [34, 116], [34, 117], [34, 118], [34, 119], [35, 37], [35, 38], [35, 39], [35, 43], [35, 46], [35, 47], [35, 50], [35, 57], [35, 58], [35, 59], [35, 61], [35, 62], [35, 64], [35, 65], [35, 66], [35, 67], [35, 68], [35, 69], [35, 70], [35, 71], [35, 72], [35, 75], [35, 76], [35, 78], [35, 83], [35, 88], [35, 89], [35, 91], [35, 92], [35, 94], [35, 96], [35, 99], [35, 100], [35, 101], [35, 104], [35, 105], [35, 107], [35, 109], [35, 111], [35, 112], [35, 113], [35, 114], [35, 116], [35, 117], [35, 119], [36, 37], [36, 38], [36, 40], [36, 41], [36, 43], [36, 44], [36, 48], [36, 49], [36, 53], [36, 55], [36, 56], [36, 58], [36, 59], [36, 60], [36, 61], [36, 63], [36, 65], [36, 66], [36, 67], [36, 71], [36, 72], [36, 73], [36, 75], [36, 77], [36, 79], [36, 83], [36, 84], [36, 85], [36, 89], [36, 91], [36, 92], [36, 95], [36, 99], [36, 100], [36, 104], [36, 105], [36, 106], [36, 109], [36, 110], [36, 111], [36, 112], [36, 114], [36, 115], [36, 116], [37, 39], [37, 40], [37, 42], [37, 43], [37, 44], [37, 47], [37, 48], [37, 52], [37, 53], [37, 56], [37, 59], [37, 60], [37, 61], [37, 63], [37, 64], [37, 65], [37, 66], [37, 67], [37, 69], [37, 71], [37, 72], [37, 75], [37, 78], [37, 79], [37, 81], [37, 82], [37, 83], [37, 85], [37, 86], [37, 87], [37, 89], [37, 92], [37, 93], [37, 94], [37, 95], [37, 98], [37, 99], [37, 101], [37, 104], [37, 105], [37, 106], [37, 107], [37, 109], [37, 111], [37, 112], [37, 113], [37, 115], [37, 119], [38, 40], [38, 41], [38, 45], [38, 46], [38, 50], [38, 51], [38, 54], [38, 55], [38, 58], [38, 59], [38, 61], [38, 63], [38, 66], [38, 68], [38, 69], [38, 70], [38, 71], [38, 72], [38, 73], [38, 74], [38, 76], [38, 80], [38, 83], [38, 84], [38, 86], [38, 87], [38, 88], [38, 90], [38, 92], [38, 93], [38, 96], [38, 98], [38, 99], [38, 100], [38, 103], [38, 104], [38, 106], [38, 108], [38, 110], [38, 111], [38, 112], [38, 113], [38, 114], [38, 115], [38, 116], [38, 117], [38, 118], [39, 40], [39, 42], [39, 47], [39, 56], [39, 57], [39, 58], [39, 60], [39, 61], [39, 62], [39, 63], [39, 65], [39, 68], [39, 69], [39, 70], [39, 71], [39, 72], [39, 73], [39, 74], [39, 76], [39, 77], [39, 78], [39, 81], [39, 82], [39, 84], [39, 86], [39, 88], [39, 91], [39, 92], [39, 93], [39, 94], [39, 95], [39, 98], [39, 101], [39, 102], [39, 104], [39, 105], [39, 106], [39, 109], [39, 110], [39, 111], [39, 113], [39, 114], [39, 115], [39, 116], [39, 118], [39, 119], [40, 41], [40, 42], [40, 46], [40, 48], [40, 49], [40, 50], [40, 51], [40, 53], [40, 56], [40, 57], [40, 58], [40, 62], [40, 63], [40, 64], [40, 65], [40, 66], [40, 67], [40, 68], [40, 70], [40, 74], [40, 75], [40, 78], [40, 79], [40, 82], [40, 85], [40, 86], [40, 87], [40, 90], [40, 92], [40, 93], [40, 94], [40, 95], [40, 96], [40, 97], [40, 99], [40, 101], [40, 102], [40, 103], [40, 105], [40, 108], [40, 109], [40, 110], [40, 111], [40, 113], [40, 114], [40, 117], [40, 119], [41, 42], [41, 44], [41, 46], [41, 49], [41, 50], [41, 51], [41, 54], [41, 55], [41, 61], [41, 64], [41, 65], [41, 67], [41, 68], [41, 72], [41, 73], [41, 74], [41, 77], [41, 78], [41, 80], [41, 81], [41, 82], [41, 83], [41, 84], [41, 88], [41, 89], [41, 95], [41, 97], [41, 99], [41, 102], [41, 103], [41, 104], [41, 109], [41, 113], [41, 116], [41, 118], [41, 119], [42, 43], [42, 44], [42, 47], [42, 48], [42, 49], [42, 50], [42, 51], [42, 52], [42, 54], [42, 58], [42, 59], [42, 60], [42, 61], [42, 65], [42, 69], [42, 75], [42, 76], [42, 77], [42, 78], [42, 79], [42, 80], [42, 81], [42, 82], [42, 83], [42, 85], [42, 86], [42, 87], [42, 89], [42, 90], [42, 94], [42, 95], [42, 97], [42, 98], [42, 100], [42, 103], [42, 104], [42, 105], [42, 106], [42, 107], [42, 109], [42, 112], [42, 115], [43, 44], [43, 46], [43, 47], [43, 49], [43, 50], [43, 51], [43, 52], [43, 57], [43, 58], [43, 60], [43, 61], [43, 63], [43, 64], [43, 65], [43, 66], [43, 68], [43, 70], [43, 71], [43, 72], [43, 75], [43, 78], [43, 79], [43, 81], [43, 83], [43, 84], [43, 85], [43, 87], [43, 89], [43, 93], [43, 94], [43, 95], [43, 98], [43, 101], [43, 102], [43, 106], [43, 107], [43, 110], [43, 111], [43, 113], [43, 114], [43, 115], [43, 117], [43, 118], [44, 45], [44, 47], [44, 48], [44, 49], [44, 52], [44, 54], [44, 59], [44, 61], [44, 67], [44, 70], [44, 75], [44, 77], [44, 78], [44, 79], [44, 80], [44, 81], [44, 84], [44, 85], [44, 86], [44, 87], [44, 91], [44, 93], [44, 94], [44, 95], [44, 97], [44, 98], [44, 106], [44, 108], [44, 109], [44, 110], [44, 111], [44, 112], [44, 114], [44, 116], [44, 118], [44, 119], [45, 46], [45, 51], [45, 52], [45, 53], [45, 57], [45, 58], [45, 59], [45, 63], [45, 64], [45, 66], [45, 67], [45, 69], [45, 72], [45, 74], [45, 77], [45, 79], [45, 81], [45, 82], [45, 85], [45, 86], [45, 87], [45, 89], [45, 90], [45, 91], [45, 94], [45, 95], [45, 96], [45, 97], [45, 99], [45, 103], [45, 106], [45, 107], [45, 113], [45, 114], [45, 116], [45, 118], [46, 47], [46, 53], [46, 54], [46, 55], [46, 56], [46, 58], [46, 59], [46, 66], [46, 67], [46, 68], [46, 69], [46, 71], [46, 72], [46, 73], [46, 79], [46, 80], [46, 81], [46, 82], [46, 83], [46, 85], [46, 86], [46, 88], [46, 90], [46, 92], [46, 94], [46, 95], [46, 103], [46, 104], [46, 106], [46, 109], [46, 113], [46, 115], [46, 116], [46, 117], [46, 118], [46, 119], [47, 49], [47, 51], [47, 52], [47, 53], [47, 54], [47, 55], [47, 56], [47, 57], [47, 58], [47, 60], [47, 61], [47, 62], [47, 65], [47, 71], [47, 72], [47, 75], [47, 76], [47, 77], [47, 81], [47, 84], [47, 85], [47, 87], [47, 88], [47, 89], [47, 90], [47, 93], [47, 94], [47, 96], [47, 98], [47, 99], [47, 101], [47, 104], [47, 105], [47, 114], [47, 117], [47, 118], [48, 50], [48, 51], [48, 52], [48, 53], [48, 55], [48, 57], [48, 59], [48, 63], [48, 65], [48, 68], [48, 70], [48, 72], [48, 74], [48, 77], [48, 80], [48, 81], [48, 86], [48, 87], [48, 88], [48, 91], [48, 94], [48, 97], [48, 101], [48, 103], [48, 104], [48, 110], [48, 111], [48, 112], [48, 114], [48, 115], [48, 117], [48, 118], [48, 119], [49, 50], [49, 52], [49, 54], [49, 57], [49, 58], [49, 60], [49, 61], [49, 62], [49, 63], [49, 64], [49, 66], [49, 67], [49, 69], [49, 71], [49, 72], [49, 77], [49, 81], [49, 82], [49, 86], [49, 89], [49, 91], [49, 97], [49, 99], [49, 100], [49, 101], [49, 103], [49, 104], [49, 106], [49, 108], [49, 109], [49, 110], [49, 113], [49, 114], [49, 116], [49, 117], [49, 119], [50, 52], [50, 53], [50, 55], [50, 56], [50, 57], [50, 58], [50, 59], [50, 60], [50, 63], [50, 64], [50, 67], [50, 68], [50, 69], [50, 76], [50, 78], [50, 81], [50, 83], [50, 84], [50, 89], [50, 90], [50, 93], [50, 94], [50, 99], [50, 100], [50, 105], [50, 106], [50, 110], [50, 111], [50, 112], [50, 114], [50, 116], [50, 117], [50, 118], [50, 119], [51, 52], [51, 58], [51, 59], [51, 64], [51, 67], [51, 68], [51, 70], [51, 71], [51, 74], [51, 75], [51, 76], [51, 77], [51, 81], [51, 87], [51, 93], [51, 101], [51, 102], [51, 104], [51, 108], [51, 110], [51, 113], [51, 114], [51, 115], [51, 117], [51, 118], [51, 119], [52, 54], [52, 55], [52, 56], [52, 57], [52, 58], [52, 61], [52, 65], [52, 68], [52, 70], [52, 71], [52, 72], [52, 75], [52, 78], [52, 79], [52, 80], [52, 81], [52, 82], [52, 85], [52, 86], [52, 87], [52, 88], [52, 91], [52, 94], [52, 96], [52, 97], [52, 98], [52, 101], [52, 102], [52, 104], [52, 105], [52, 106], [52, 110], [52, 111], [52, 113], [52, 114], [52, 115], [52, 118], [53, 56], [53, 58], [53, 60], [53, 65], [53, 68], [53, 72], [53, 73], [53, 74], [53, 75], [53, 76], [53, 80], [53, 82], [53, 83], [53, 84], [53, 85], [53, 88], [53, 92], [53, 95], [53, 96], [53, 97], [53, 98], [53, 99], [53, 100], [53, 102], [53, 103], [53, 104], [53, 105], [53, 106], [53, 107], [53, 108], [53, 109], [53, 111], [53, 114], [53, 116], [53, 117], [53, 118], [53, 119], [54, 58], [54, 61], [54, 62], [54, 64], [54, 65], [54, 68], [54, 69], [54, 74], [54, 75], [54, 77], [54, 78], [54, 79], [54, 80], [54, 81], [54, 83], [54, 84], [54, 85], [54, 89], [54, 90], [54, 91], [54, 95], [54, 96], [54, 97], [54, 98], [54, 99], [54, 100], [54, 101], [54, 104], [54, 108], [54, 110], [54, 113], [54, 116], [54, 117], [54, 119], [55, 56], [55, 57], [55, 59], [55, 63], [55, 64], [55, 68], [55, 69], [55, 71], [55, 73], [55, 75], [55, 77], [55, 78], [55, 80], [55, 82], [55, 84], [55, 86], [55, 89], [55, 90], [55, 93], [55, 96], [55, 97], [55, 99], [55, 101], [55, 102], [55, 103], [55, 105], [55, 107], [55, 108], [55, 109], [55, 110], [55, 112], [55, 113], [55, 115], [55, 117], [55, 118], [55, 119], [56, 59], [56, 60], [56, 62], [56, 64], [56, 65], [56, 70], [56, 71], [56, 72], [56, 74], [56, 76], [56, 79], [56, 81], [56, 84], [56, 85], [56, 88], [56, 90], [56, 93], [56, 98], [56, 99], [56, 103], [56, 105], [56, 107], [56, 108], [56, 109], [56, 110], [56, 111], [56, 113], [56, 117], [56, 118], [57, 58], [57, 59], [57, 60], [57, 61], [57, 62], [57, 63], [57, 65], [57, 66], [57, 69], [57, 72], [57, 73], [57, 77], [57, 78], [57, 80], [57, 81], [57, 83], [57, 86], [57, 88], [57, 91], [57, 93], [57, 95], [57, 98], [57, 99], [57, 100], [57, 102], [57, 103], [57, 104], [57, 107], [57, 109], [57, 110], [57, 114], [57, 115], [57, 116], [57, 117], [57, 118], [57, 119], [58, 59], [58, 61], [58, 62], [58, 63], [58, 64], [58, 73], [58, 75], [58, 76], [58, 77], [58, 79], [58, 80], [58, 81], [58, 84], [58, 85], [58, 86], [58, 89], [58, 90], [58, 91], [58, 92], [58, 96], [58, 97], [58, 99], [58, 102], [58, 103], [58, 104], [58, 110], [58, 117], [58, 118], [59, 60], [59, 63], [59, 64], [59, 65], [59, 67], [59, 68], [59, 69], [59, 70], [59, 71], [59, 72], [59, 74], [59, 79], [59, 82], [59, 83], [59, 84], [59, 86], [59, 87], [59, 89], [59, 91], [59, 93], [59, 96], [59, 97], [59, 101], [59, 102], [59, 107], [59, 108], [59, 109], [59, 112], [59, 113], [59, 114], [59, 118], [59, 119], [60, 61], [60, 62], [60, 65], [60, 66], [60, 68], [60, 73], [60, 74], [60, 75], [60, 77], [60, 78], [60, 80], [60, 81], [60, 82], [60, 83], [60, 84], [60, 85], [60, 88], [60, 90], [60, 91], [60, 92], [60, 93], [60, 94], [60, 95], [60, 96], [60, 97], [60, 98], [60, 99], [60, 102], [60, 105], [60, 107], [60, 109], [60, 111], [60, 113], [60, 114], [60, 115], [60, 117], [61, 64], [61, 66], [61, 68], [61, 70], [61, 72], [61, 75], [61, 77], [61, 79], [61, 83], [61, 84], [61, 86], [61, 87], [61, 89], [61, 90], [61, 91], [61, 94], [61, 95], [61, 96], [61, 99], [61, 100], [61, 101], [61, 104], [61, 105], [61, 108], [61, 111], [61, 112], [61, 113], [61, 116], [61, 117], [61, 119], [62, 63], [62, 66], [62, 67], [62, 68], [62, 69], [62, 71], [62, 72], [62, 74], [62, 75], [62, 77], [62, 78], [62, 80], [62, 83], [62, 88], [62, 89], [62, 90], [62, 91], [62, 93], [62, 94], [62, 95], [62, 99], [62, 100], [62, 101], [62, 102], [62, 104], [62, 105], [62, 107], [62, 114], [62, 115], [62, 117], [62, 118], [62, 119], [63, 66], [63, 67], [63, 69], [63, 73], [63, 75], [63, 79], [63, 82], [63, 83], [63, 84], [63, 86], [63, 87], [63, 89], [63, 93], [63, 94], [63, 96], [63, 100], [63, 101], [63, 102], [63, 103], [63, 104], [63, 108], [63, 112], [63, 113], [63, 115], [63, 116], [63, 118], [64, 65], [64, 66], [64, 68], [64, 69], [64, 70], [64, 71], [64, 72], [64, 73], [64, 74], [64, 75], [64, 77], [64, 82], [64, 85], [64, 87], [64, 91], [64, 93], [64, 96], [64, 97], [64, 101], [64, 103], [64, 104], [64, 107], [64, 111], [64, 115], [64, 116], [64, 119], [65, 66], [65, 68], [65, 69], [65, 70], [65, 72], [65, 75], [65, 79], [65, 86], [65, 87], [65, 88], [65, 89], [65, 92], [65, 93], [65, 94], [65, 96], [65, 104], [65, 105], [65, 106], [65, 107], [65, 110], [65, 112], [65, 113], [65, 115], [65, 116], [65, 119], [66, 67], [66, 69], [66, 71], [66, 72], [66, 73], [66, 76], [66, 80], [66, 82], [66, 83], [66, 84], [66, 85], [66, 87], [66, 88], [66, 91], [66, 93], [66, 95], [66, 98], [66, 99], [66, 103], [66, 106], [66, 111], [66, 113], [66, 115], [66, 116], [66, 117], [66, 119], [67, 68], [67, 70], [67, 71], [67, 75], [67, 76], [67, 77], [67, 78], [67, 79], [67, 88], [67, 98], [67, 99], [67, 102], [67, 104], [67, 108], [67, 109], [67, 110], [67, 112], [67, 116], [67, 117], [67, 118], [67, 119], [68, 69], [68, 71], [68, 72], [68, 77], [68, 78], [68, 80], [68, 81], [68, 83], [68, 86], [68, 87], [68, 88], [68, 89], [68, 92], [68, 93], [68, 99], [68, 100], [68, 102], [68, 103], [68, 105], [68, 106], [68, 107], [68, 109], [68, 110], [68, 115], [68, 117], [68, 119], [69, 71], [69, 72], [69, 75], [69, 78], [69, 79], [69, 81], [69, 85], [69, 86], [69, 88], [69, 89], [69, 95], [69, 96], [69, 97], [69, 98], [69, 100], [69, 102], [69, 103], [69, 104], [69, 105], [69, 107], [69, 109], [69, 111], [69, 113], [69, 116], [69, 117], [69, 118], [70, 71], [70, 72], [70, 74], [70, 76], [70, 77], [70, 79], [70, 81], [70, 82], [70, 84], [70, 85], [70, 86], [70, 89], [70, 90], [70, 93], [70, 94], [70, 95], [70, 96], [70, 97], [70, 99], [70, 103], [70, 104], [70, 106], [70, 107], [70, 109], [70, 110], [70, 112], [70, 114], [70, 115], [70, 116], [70, 119], [71, 73], [71, 74], [71, 76], [71, 78], [71, 79], [71, 80], [71, 81], [71, 85], [71, 88], [71, 89], [71, 91], [71, 93], [71, 95], [71, 96], [71, 98], [71, 99], [71, 100], [71, 101], [71, 106], [71, 111], [71, 116], [71, 117], [71, 118], [72, 75], [72, 76], [72, 77], [72, 78], [72, 79], [72, 81], [72, 83], [72, 84], [72, 85], [72, 86], [72, 87], [72, 88], [72, 93], [72, 94], [72, 95], [72, 96], [72, 98], [72, 99], [72, 107], [72, 108], [72, 115], [72, 116], [72, 117], [72, 118], [73, 74], [73, 75], [73, 77], [73, 81], [73, 82], [73, 87], [73, 88], [73, 89], [73, 90], [73, 95], [73, 96], [73, 98], [73, 99], [73, 101], [73, 106], [73, 107], [73, 110], [73, 111], [73, 114], [74, 78], [74, 79], [74, 82], [74, 83], [74, 89], [74, 91], [74, 93], [74, 95], [74, 98], [74, 101], [74, 104], [74, 105], [74, 106], [74, 108], [74, 110], [74, 111], [74, 115], [74, 117], [74, 118], [74, 119], [75, 76], [75, 79], [75, 81], [75, 83], [75, 85], [75, 86], [75, 87], [75, 90], [75, 91], [75, 92], [75, 94], [75, 95], [75, 98], [75, 99], [75, 102], [75, 104], [75, 105], [75, 106], [75, 108], [75, 111], [75, 112], [75, 117], [75, 119], [76, 78], [76, 83], [76, 87], [76, 88], [76, 89], [76, 92], [76, 93], [76, 97], [76, 102], [76, 103], [76, 104], [76, 106], [76, 108], [76, 109], [76, 112], [76, 115], [76, 116], [76, 117], [77, 78], [77, 79], [77, 80], [77, 84], [77, 85], [77, 87], [77, 88], [77, 89], [77, 92], [77, 94], [77, 95], [77, 98], [77, 100], [77, 102], [77, 104], [77, 105], [77, 111], [77, 114], [77, 115], [77, 116], [77, 117], [77, 118], [78, 79], [78, 82], [78, 84], [78, 85], [78, 86], [78, 87], [78, 88], [78, 92], [78, 94], [78, 95], [78, 97], [78, 99], [78, 103], [78, 108], [78, 109], [78, 110], [78, 111], [78, 114], [78, 116], [78, 117], [79, 80], [79, 81], [79, 82], [79, 83], [79, 84], [79, 85], [79, 88], [79, 89], [79, 91], [79, 92], [79, 94], [79, 95], [79, 96], [79, 99], [79, 105], [79, 106], [79, 109], [79, 110], [79, 111], [79, 112], [79, 113], [79, 115], [79, 118], [80, 81], [80, 85], [80, 87], [80, 88], [80, 91], [80, 92], [80, 93], [80, 94], [80, 95], [80, 97], [80, 100], [80, 101], [80, 103], [80, 106], [80, 112], [81, 82], [81, 83], [81, 84], [81, 85], [81, 86], [81, 87], [81, 92], [81, 93], [81, 94], [81, 95], [81, 97], [81, 98], [81, 99], [81, 102], [81, 104], [81, 105], [81, 109], [81, 110], [81, 111], [81, 113], [81, 114], [81, 115], [81, 116], [82, 85], [82, 87], [82, 89], [82, 92], [82, 93], [82, 95], [82, 96], [82, 103], [82, 105], [82, 106], [82, 107], [82, 110], [82, 114], [82, 117], [83, 88], [83, 89], [83, 90], [83, 91], [83, 93], [83, 94], [83, 95], [83, 96], [83, 99], [83, 101], [83, 102], [83, 103], [83, 104], [83, 105], [83, 108], [83, 109], [83, 110], [83, 111], [83, 112], [83, 113], [83, 115], [83, 117], [83, 118], [84, 86], [84, 87], [84, 88], [84, 90], [84, 91], [84, 92], [84, 96], [84, 97], [84, 98], [84, 110], [84, 111], [84, 114], [84, 115], [84, 118], [84, 119], [85, 87], [85, 88], [85, 90], [85, 91], [85, 92], [85, 93], [85, 94], [85, 98], [85, 103], [85, 104], [85, 105], [85, 106], [85, 108], [85, 111], [85, 113], [85, 115], [85, 116], [85, 117], [85, 118], [85, 119], [86, 89], [86, 91], [86, 92], [86, 93], [86, 94], [86, 98], [86, 100], [86, 101], [86, 102], [86, 107], [86, 108], [86, 113], [86, 115], [86, 117], [87, 88], [87, 89], [87, 90], [87, 92], [87, 93], [87, 94], [87, 95], [87, 97], [87, 100], [87, 104], [87, 105], [87, 107], [87, 108], [87, 109], [87, 110], [87, 111], [87, 112], [87, 114], [87, 117], [87, 119], [88, 90], [88, 91], [88, 96], [88, 97], [88, 98], [88, 99], [88, 100], [88, 106], [88, 107], [88, 108], [88, 109], [88, 111], [88, 114], [88, 115], [88, 117], [88, 118], [88, 119], [89, 90], [89, 94], [89, 95], [89, 99], [89, 100], [89, 103], [89, 104], [89, 108], [89, 111], [89, 112], [89, 117], [89, 119], [90, 91], [90, 95], [90, 98], [90, 99], [90, 100], [90, 101], [90, 102], [90, 107], [90, 112], [90, 113], [90, 114], [90, 115], [90, 117], [90, 118], [91, 92], [91, 94], [91, 99], [91, 102], [91, 103], [91, 106], [91, 110], [91, 111], [91, 112], [91, 115], [91, 116], [91, 117], [91, 118], [91, 119], [92, 95], [92, 99], [92, 101], [92, 102], [92, 104], [92, 109], [92, 111], [92, 114], [92, 115], [92, 116], [92, 118], [92, 119], [93, 94], [93, 95], [93, 99], [93, 101], [93, 103], [93, 104], [93, 109], [93, 110], [93, 111], [93, 113], [93, 115], [93, 116], [93, 117], [93, 118], [93, 119], [94, 95], [94, 99], [94, 100], [94, 105], [94, 106], [94, 109], [94, 111], [94, 113], [94, 114], [94, 115], [94, 117], [94, 118], [95, 99], [95, 100], [95, 102], [95, 104], [95, 105], [95, 106], [95, 107], [95, 109], [95, 110], [95, 111], [95, 112], [95, 113], [95, 115], [95, 116], [95, 117], [95, 119], [96, 98], [96, 99], [96, 105], [96, 106], [96, 110], [96, 111], [96, 112], [96, 113], [96, 116], [96, 118], [97, 98], [97, 100], [97, 102], [97, 103], [97, 105], [97, 106], [97, 109], [97, 110], [97, 111], [97, 117], [97, 118], [97, 119], [98, 101], [98, 103], [98, 104], [98, 105], [98, 106], [98, 107], [98, 109], [98, 110], [98, 112], [98, 113], [98, 114], [98, 115], [98, 116], [98, 119], [99, 100], [99, 103], [99, 105], [99, 108], [99, 109], [99, 110], [99, 111], [99, 112], [99, 115], [99, 116], [99, 117], [100, 101], [100, 102], [100, 104], [100, 105], [100, 109], [100, 111], [100, 112], [100, 113], [100, 117], [101, 102], [101, 103], [101, 105], [101, 107], [101, 109], [101, 110], [101, 111], [101, 112], [101, 113], [101, 115], [101, 117], [102, 103], [102, 105], [102, 107], [102, 109], [102, 110], [102, 118], [102, 119], [103, 105], [103, 106], [103, 107], [103, 109], [103, 110], [103, 111], [103, 112], [103, 118], [104, 105], [104, 106], [104, 107], [104, 110], [104, 112], [104, 114], [104, 115], [104, 116], [104, 117], [104, 118], [105, 106], [105, 110], [105, 112], [105, 113], [105, 118], [106, 107], [106, 108], [106, 111], [106, 112], [106, 114], [106, 116], [106, 119], [107, 108], [107, 110], [107, 111], [107, 112], [107, 113], [107, 114], [107, 119], [108, 111], [108, 112], [108, 113], [108, 114], [108, 115], [108, 116], [108, 117], [108, 118], [109, 110], [109, 111], [109, 112], [109, 114], [109, 115], [109, 116], [109, 117], [110, 112], [110, 114], [110, 117], [110, 119], [111, 112], [111, 114], [111, 115], [111, 118], [112, 115], [112, 118], [112, 119], [113, 118], [113, 119], [114, 115], [114, 116], [114, 117], [114, 118], [115, 117], [115, 118], [117, 118], [117, 119]], "family": "mc_max_clique", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-max-clique-l6-s8/solution/solve.sh b/tasks/construct-mc-max-clique-l6-s8/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..1ac015ad36e9d1e71e4b190f78eca6fe3a63bcfb --- /dev/null +++ b/tasks/construct-mc-max-clique-l6-s8/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"clique": [4, 18, 37, 42, 43, 44, 47, 52, 75, 81, 85, 87, 94]} +RLMATH_EOF diff --git a/tasks/construct-mc-max-clique-l6-s8/tests/check.py b/tasks/construct-mc-max-clique-l6-s8/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..e3f70dbd5b155a3514c2102aa4ad460201495210 --- /dev/null +++ b/tasks/construct-mc-max-clique-l6-s8/tests/check.py @@ -0,0 +1,18 @@ +"""Clique of size >= k in a given graph (MathConstraint max_clique decision version, CC-BY-4.0).""" +import itertools + +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["n"], inst["k"] + S = int_list(ans.get("clique"), None, 0, n - 1, "clique") + if len(set(S)) != len(S): + raise Invalid("repeated vertex") + if len(S) < k: + raise Invalid(f"clique has {len(S)} vertices, need at least {k}") + E = {(u, v) for u, v in inst["edges"]} + for u, v in itertools.combinations(sorted(S), 2): + if (u, v) not in E: + raise Invalid(f"vertices {u} and {v} are not adjacent") + return None, {"size": len(S)} diff --git a/tasks/construct-mc-max-clique-l6-s8/tests/instance.json b/tasks/construct-mc-max-clique-l6-s8/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..0a7585897f473fa5d36661ee2803314525145544 --- /dev/null +++ b/tasks/construct-mc-max-clique-l6-s8/tests/instance.json @@ -0,0 +1 @@ +{"n": 120, "k": 13, "edges": [[0, 2], [0, 4], [0, 6], [0, 9], [0, 11], [0, 12], [0, 19], [0, 21], [0, 23], [0, 24], [0, 26], [0, 28], [0, 30], [0, 31], [0, 32], [0, 33], [0, 36], [0, 37], [0, 38], [0, 39], [0, 40], [0, 41], [0, 43], [0, 48], [0, 50], [0, 51], [0, 52], [0, 53], [0, 56], [0, 58], [0, 60], [0, 61], [0, 62], [0, 64], [0, 65], [0, 66], [0, 68], [0, 70], [0, 71], [0, 72], [0, 73], [0, 76], [0, 78], [0, 81], [0, 82], [0, 84], [0, 86], [0, 87], [0, 94], [0, 95], [0, 97], [0, 98], [0, 100], [0, 104], [0, 105], [0, 108], [0, 109], [0, 111], [0, 113], [0, 115], [0, 117], [0, 118], [0, 119], [1, 2], [1, 3], [1, 5], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 18], [1, 20], [1, 22], [1, 24], [1, 25], [1, 26], [1, 27], [1, 28], [1, 29], [1, 32], [1, 34], [1, 35], [1, 36], [1, 37], [1, 38], [1, 40], [1, 45], [1, 50], [1, 51], [1, 52], [1, 57], [1, 58], [1, 59], [1, 61], [1, 64], [1, 65], [1, 66], [1, 67], [1, 70], [1, 71], [1, 74], [1, 83], [1, 84], [1, 86], [1, 89], [1, 90], [1, 91], [1, 92], [1, 94], [1, 97], [1, 100], [1, 101], [1, 102], [1, 105], [1, 106], [1, 109], [1, 110], [1, 111], [1, 112], [1, 115], [1, 116], [1, 117], [2, 3], [2, 7], [2, 8], [2, 9], [2, 10], [2, 12], [2, 14], [2, 16], [2, 18], [2, 20], [2, 21], [2, 22], [2, 24], [2, 28], [2, 31], [2, 33], [2, 35], [2, 36], [2, 39], [2, 41], [2, 42], [2, 44], [2, 48], [2, 51], [2, 54], [2, 56], [2, 57], [2, 58], [2, 59], [2, 62], [2, 63], [2, 67], [2, 68], [2, 70], [2, 71], [2, 73], [2, 77], [2, 81], [2, 82], [2, 83], [2, 84], [2, 88], [2, 89], [2, 91], [2, 94], [2, 95], [2, 96], [2, 97], [2, 99], [2, 100], [2, 101], [2, 103], [2, 104], [2, 108], [2, 109], [2, 110], [2, 111], [2, 112], [2, 113], [2, 115], [2, 116], [2, 118], [2, 119], [3, 5], [3, 7], [3, 8], [3, 9], [3, 11], [3, 12], [3, 13], [3, 14], [3, 16], [3, 21], [3, 22], [3, 23], [3, 24], [3, 26], [3, 29], [3, 31], [3, 32], [3, 33], [3, 34], [3, 38], [3, 39], [3, 40], [3, 45], [3, 46], [3, 52], [3, 53], [3, 54], [3, 56], [3, 59], [3, 60], [3, 65], [3, 67], [3, 68], [3, 69], [3, 71], [3, 74], [3, 75], [3, 77], [3, 79], [3, 80], [3, 83], [3, 85], [3, 86], [3, 88], [3, 90], [3, 91], [3, 92], [3, 94], [3, 95], [3, 97], [3, 98], [3, 99], [3, 102], [3, 103], [3, 104], [3, 107], [3, 108], [3, 110], [3, 112], [3, 115], [4, 5], [4, 7], [4, 11], [4, 12], [4, 16], [4, 17], [4, 18], [4, 21], [4, 25], [4, 26], [4, 27], [4, 32], [4, 35], [4, 36], [4, 37], [4, 39], [4, 41], [4, 42], [4, 43], [4, 44], [4, 45], [4, 47], [4, 48], [4, 49], [4, 50], [4, 52], [4, 53], [4, 56], [4, 57], [4, 59], [4, 60], [4, 62], [4, 64], [4, 67], [4, 69], [4, 70], [4, 71], [4, 72], [4, 74], [4, 75], [4, 81], [4, 83], [4, 85], [4, 86], [4, 87], [4, 88], [4, 90], [4, 91], [4, 92], [4, 94], [4, 96], [4, 98], [4, 99], [4, 100], [4, 101], [4, 102], [4, 103], [4, 104], [4, 106], [4, 107], [4, 108], [4, 109], [4, 110], [4, 111], [4, 112], [4, 113], [4, 115], [4, 116], [4, 117], [4, 119], [5, 9], [5, 10], [5, 16], [5, 18], [5, 19], [5, 20], [5, 24], [5, 25], [5, 27], [5, 34], [5, 35], [5, 36], [5, 37], [5, 38], [5, 41], [5, 43], [5, 45], [5, 46], [5, 47], [5, 48], [5, 50], [5, 51], [5, 54], [5, 55], [5, 56], [5, 57], [5, 58], [5, 64], [5, 65], [5, 66], [5, 68], [5, 69], [5, 70], [5, 71], [5, 73], [5, 74], [5, 75], [5, 77], [5, 78], [5, 81], [5, 82], [5, 84], [5, 85], [5, 88], [5, 89], [5, 90], [5, 96], [5, 97], [5, 98], [5, 102], [5, 106], [5, 107], [5, 108], [5, 109], [5, 112], [5, 114], [6, 7], [6, 10], [6, 11], [6, 13], [6, 16], [6, 17], [6, 21], [6, 22], [6, 26], [6, 27], [6, 29], [6, 30], [6, 34], [6, 37], [6, 40], [6, 44], [6, 47], [6, 48], [6, 49], [6, 50], [6, 51], [6, 52], [6, 53], [6, 54], [6, 56], [6, 58], [6, 59], [6, 60], [6, 61], [6, 62], [6, 63], [6, 64], [6, 65], [6, 68], [6, 69], [6, 70], [6, 74], [6, 76], [6, 79], [6, 81], [6, 86], [6, 89], [6, 91], [6, 94], [6, 95], [6, 97], [6, 99], [6, 100], [6, 102], [6, 103], [6, 106], [6, 109], [6, 110], [6, 111], [6, 113], [6, 115], [6, 116], [6, 119], [7, 12], [7, 14], [7, 16], [7, 17], [7, 18], [7, 20], [7, 21], [7, 22], [7, 24], [7, 28], [7, 29], [7, 30], [7, 37], [7, 38], [7, 39], [7, 44], [7, 45], [7, 48], [7, 53], [7, 55], [7, 56], [7, 58], [7, 60], [7, 62], [7, 64], [7, 65], [7, 66], [7, 67], [7, 68], [7, 69], [7, 72], [7, 73], [7, 76], [7, 78], [7, 80], [7, 81], [7, 83], [7, 85], [7, 86], [7, 88], [7, 90], [7, 92], [7, 94], [7, 96], [7, 98], [7, 99], [7, 104], [7, 108], [7, 111], [7, 117], [7, 118], [8, 9], [8, 10], [8, 11], [8, 12], [8, 13], [8, 14], [8, 20], [8, 24], [8, 26], [8, 27], [8, 28], [8, 29], [8, 31], [8, 34], [8, 35], [8, 37], [8, 39], [8, 40], [8, 41], [8, 42], [8, 44], [8, 45], [8, 46], [8, 47], [8, 48], [8, 49], [8, 51], [8, 55], [8, 57], [8, 60], [8, 62], [8, 63], [8, 64], [8, 65], [8, 67], [8, 68], [8, 69], [8, 71], [8, 72], [8, 73], [8, 76], [8, 77], [8, 78], [8, 79], [8, 82], [8, 87], [8, 88], [8, 91], [8, 93], [8, 95], [8, 96], [8, 97], [8, 99], [8, 100], [8, 102], [8, 103], [8, 104], [8, 105], [8, 106], [8, 108], [8, 110], [8, 111], [8, 116], [8, 117], [8, 118], [9, 10], [9, 12], [9, 13], [9, 15], [9, 16], [9, 21], [9, 22], [9, 24], [9, 26], [9, 27], [9, 30], [9, 32], [9, 33], [9, 36], [9, 39], [9, 41], [9, 42], [9, 46], [9, 49], [9, 50], [9, 51], [9, 52], [9, 53], [9, 54], [9, 55], [9, 57], [9, 58], [9, 59], [9, 60], [9, 61], [9, 64], [9, 65], [9, 67], [9, 75], [9, 77], [9, 79], [9, 80], [9, 82], [9, 83], [9, 85], [9, 87], [9, 89], [9, 91], [9, 94], [9, 97], [9, 98], [9, 99], [9, 101], [9, 102], [9, 103], [9, 105], [9, 107], [9, 108], [9, 109], [9, 118], [10, 11], [10, 12], [10, 13], [10, 15], [10, 16], [10, 18], [10, 23], [10, 24], [10, 25], [10, 28], [10, 31], [10, 32], [10, 37], [10, 40], [10, 43], [10, 45], [10, 46], [10, 48], [10, 49], [10, 50], [10, 52], [10, 54], [10, 55], [10, 56], [10, 57], [10, 59], [10, 60], [10, 61], [10, 63], [10, 65], [10, 66], [10, 69], [10, 73], [10, 74], [10, 75], [10, 76], [10, 77], [10, 82], [10, 83], [10, 84], [10, 85], [10, 88], [10, 91], [10, 94], [10, 95], [10, 96], [10, 97], [10, 99], [10, 100], [10, 102], [10, 103], [10, 104], [10, 105], [10, 106], [10, 109], [10, 111], [10, 114], [10, 116], [10, 118], [10, 119], [11, 14], [11, 15], [11, 16], [11, 17], [11, 18], [11, 21], [11, 23], [11, 24], [11, 25], [11, 26], [11, 28], [11, 29], [11, 30], [11, 31], [11, 34], [11, 35], [11, 36], [11, 37], [11, 45], [11, 47], [11, 48], [11, 50], [11, 54], [11, 55], [11, 57], [11, 58], [11, 60], [11, 62], [11, 64], [11, 69], [11, 70], [11, 71], [11, 77], [11, 80], [11, 81], [11, 82], [11, 84], [11, 85], [11, 86], [11, 88], [11, 89], [11, 91], [11, 92], [11, 93], [11, 94], [11, 97], [11, 98], [11, 99], [11, 100], [11, 101], [11, 102], [11, 113], [11, 114], [11, 115], [11, 116], [11, 117], [12, 14], [12, 15], [12, 16], [12, 18], [12, 20], [12, 21], [12, 26], [12, 30], [12, 34], [12, 36], [12, 37], [12, 38], [12, 40], [12, 41], [12, 43], [12, 45], [12, 46], [12, 51], [12, 52], [12, 54], [12, 55], [12, 58], [12, 59], [12, 61], [12, 63], [12, 65], [12, 67], [12, 68], [12, 70], [12, 71], [12, 73], [12, 76], [12, 77], [12, 82], [12, 84], [12, 85], [12, 87], [12, 90], [12, 91], [12, 94], [12, 96], [12, 97], [12, 98], [12, 100], [12, 101], [12, 104], [12, 106], [12, 108], [12, 109], [12, 112], [12, 114], [12, 119], [13, 14], [13, 16], [13, 18], [13, 23], [13, 24], [13, 25], [13, 26], [13, 27], [13, 28], [13, 32], [13, 35], [13, 38], [13, 40], [13, 42], [13, 44], [13, 45], [13, 49], [13, 50], [13, 51], [13, 53], [13, 59], [13, 60], [13, 70], [13, 73], [13, 74], [13, 75], [13, 77], [13, 78], [13, 80], [13, 82], [13, 83], [13, 84], [13, 85], [13, 87], [13, 90], [13, 92], [13, 93], [13, 94], [13, 95], [13, 97], [13, 99], [13, 100], [13, 101], [13, 107], [13, 109], [13, 111], [13, 113], [13, 114], [13, 115], [14, 16], [14, 19], [14, 21], [14, 22], [14, 23], [14, 24], [14, 26], [14, 29], [14, 31], [14, 32], [14, 33], [14, 37], [14, 38], [14, 40], [14, 42], [14, 46], [14, 47], [14, 48], [14, 49], [14, 55], [14, 56], [14, 59], [14, 60], [14, 61], [14, 63], [14, 64], [14, 66], [14, 75], [14, 76], [14, 77], [14, 78], [14, 79], [14, 80], [14, 81], [14, 83], [14, 84], [14, 87], [14, 88], [14, 90], [14, 94], [14, 97], [14, 99], [14, 102], [14, 105], [14, 107], [14, 110], [14, 111], [14, 112], [14, 113], [14, 114], [14, 115], [14, 119], [15, 17], [15, 21], [15, 22], [15, 23], [15, 27], [15, 28], [15, 31], [15, 32], [15, 33], [15, 34], [15, 36], [15, 38], [15, 40], [15, 43], [15, 45], [15, 46], [15, 48], [15, 50], [15, 51], [15, 52], [15, 53], [15, 59], [15, 62], [15, 63], [15, 64], [15, 67], [15, 69], [15, 70], [15, 72], [15, 78], [15, 82], [15, 84], [15, 88], [15, 90], [15, 93], [15, 95], [15, 96], [15, 102], [15, 103], [15, 105], [15, 108], [15, 109], [15, 112], [15, 114], [15, 115], [15, 117], [16, 17], [16, 18], [16, 19], [16, 20], [16, 21], [16, 22], [16, 27], [16, 28], [16, 30], [16, 34], [16, 37], [16, 38], [16, 40], [16, 41], [16, 48], [16, 49], [16, 50], [16, 52], [16, 54], [16, 56], [16, 59], [16, 61], [16, 63], [16, 64], [16, 65], [16, 66], [16, 67], [16, 68], [16, 69], [16, 70], [16, 71], [16, 74], [16, 75], [16, 76], [16, 80], [16, 81], [16, 82], [16, 84], [16, 88], [16, 92], [16, 94], [16, 95], [16, 96], [16, 98], [16, 100], [16, 103], [16, 107], [16, 108], [16, 110], [16, 112], [16, 113], [16, 115], [16, 117], [16, 119], [17, 18], [17, 20], [17, 25], [17, 27], [17, 29], [17, 30], [17, 39], [17, 41], [17, 44], [17, 47], [17, 48], [17, 49], [17, 50], [17, 55], [17, 56], [17, 62], [17, 66], [17, 67], [17, 72], [17, 73], [17, 84], [17, 86], [17, 87], [17, 88], [17, 90], [17, 92], [17, 94], [17, 96], [17, 97], [17, 98], [17, 99], [17, 102], [17, 103], [17, 109], [17, 111], [17, 114], [17, 116], [17, 117], [17, 118], [17, 119], [18, 20], [18, 21], [18, 23], [18, 24], [18, 25], [18, 26], [18, 28], [18, 29], [18, 32], [18, 33], [18, 37], [18, 40], [18, 41], [18, 42], [18, 43], [18, 44], [18, 47], [18, 48], [18, 49], [18, 50], [18, 51], [18, 52], [18, 53], [18, 54], [18, 55], [18, 56], [18, 58], [18, 60], [18, 61], [18, 62], [18, 63], [18, 66], [18, 68], [18, 69], [18, 71], [18, 73], [18, 75], [18, 78], [18, 80], [18, 81], [18, 84], [18, 85], [18, 86], [18, 87], [18, 90], [18, 91], [18, 92], [18, 94], [18, 95], [18, 98], [18, 100], [18, 103], [18, 105], [18, 106], [18, 107], [18, 108], [18, 109], [18, 112], [18, 113], [18, 115], [18, 116], [18, 117], [18, 118], [19, 22], [19, 24], [19, 26], [19, 27], [19, 30], [19, 31], [19, 32], [19, 34], [19, 36], [19, 37], [19, 38], [19, 43], [19, 44], [19, 45], [19, 50], [19, 51], [19, 53], [19, 54], [19, 56], [19, 57], [19, 59], [19, 60], [19, 61], [19, 62], [19, 64], [19, 72], [19, 73], [19, 75], [19, 76], [19, 78], [19, 79], [19, 80], [19, 81], [19, 86], [19, 87], [19, 89], [19, 90], [19, 91], [19, 92], [19, 93], [19, 98], [19, 99], [19, 100], [19, 101], [19, 103], [19, 105], [19, 107], [19, 108], [19, 109], [19, 115], [19, 116], [20, 21], [20, 25], [20, 28], [20, 29], [20, 32], [20, 33], [20, 35], [20, 36], [20, 37], [20, 38], [20, 40], [20, 41], [20, 43], [20, 45], [20, 49], [20, 52], [20, 53], [20, 55], [20, 57], [20, 59], [20, 61], [20, 65], [20, 66], [20, 67], [20, 68], [20, 69], [20, 76], [20, 77], [20, 79], [20, 86], [20, 87], [20, 89], [20, 90], [20, 91], [20, 92], [20, 93], [20, 94], [20, 97], [20, 99], [20, 100], [20, 107], [20, 108], [20, 111], [20, 114], [20, 116], [20, 118], [21, 24], [21, 25], [21, 26], [21, 35], [21, 37], [21, 39], [21, 40], [21, 42], [21, 43], [21, 48], [21, 49], [21, 50], [21, 51], [21, 57], [21, 60], [21, 62], [21, 66], [21, 68], [21, 71], [21, 73], [21, 74], [21, 76], [21, 84], [21, 85], [21, 86], [21, 87], [21, 93], [21, 94], [21, 95], [21, 99], [21, 102], [21, 104], [21, 105], [21, 106], [21, 107], [21, 109], [21, 111], [21, 112], [21, 113], [21, 114], [21, 116], [21, 119], [22, 25], [22, 26], [22, 28], [22, 31], [22, 34], [22, 35], [22, 36], [22, 40], [22, 41], [22, 42], [22, 45], [22, 46], [22, 47], [22, 49], [22, 51], [22, 52], [22, 56], [22, 58], [22, 63], [22, 64], [22, 66], [22, 67], [22, 68], [22, 69], [22, 70], [22, 71], [22, 74], [22, 76], [22, 77], [22, 80], [22, 81], [22, 82], [22, 84], [22, 88], [22, 90], [22, 91], [22, 93], [22, 97], [22, 99], [22, 100], [22, 106], [22, 107], [22, 110], [22, 113], [22, 116], [22, 117], [23, 24], [23, 26], [23, 27], [23, 30], [23, 31], [23, 34], [23, 35], [23, 36], [23, 37], [23, 39], [23, 42], [23, 45], [23, 48], [23, 49], [23, 50], [23, 51], [23, 52], [23, 55], [23, 57], [23, 58], [23, 63], [23, 64], [23, 69], [23, 73], [23, 75], [23, 76], [23, 77], [23, 79], [23, 81], [23, 84], [23, 85], [23, 86], [23, 88], [23, 91], [23, 92], [23, 93], [23, 94], [23, 95], [23, 97], [23, 98], [23, 100], [23, 102], [23, 103], [23, 112], [23, 113], [23, 116], [23, 117], [24, 26], [24, 28], [24, 29], [24, 35], [24, 37], [24, 38], [24, 40], [24, 42], [24, 43], [24, 45], [24, 46], [24, 47], [24, 49], [24, 50], [24, 51], [24, 53], [24, 58], [24, 59], [24, 60], [24, 61], [24, 63], [24, 64], [24, 65], [24, 67], [24, 69], [24, 70], [24, 72], [24, 74], [24, 80], [24, 83], [24, 84], [24, 89], [24, 92], [24, 93], [24, 94], [24, 95], [24, 98], [24, 102], [24, 104], [24, 107], [24, 108], [24, 110], [24, 113], [24, 114], [24, 115], [24, 117], [25, 27], [25, 29], [25, 30], [25, 31], [25, 32], [25, 33], [25, 34], [25, 37], [25, 40], [25, 41], [25, 46], [25, 47], [25, 48], [25, 49], [25, 51], [25, 52], [25, 54], [25, 55], [25, 57], [25, 60], [25, 66], [25, 69], [25, 72], [25, 74], [25, 77], [25, 78], [25, 80], [25, 81], [25, 83], [25, 84], [25, 85], [25, 87], [25, 90], [25, 91], [25, 92], [25, 94], [25, 95], [25, 98], [25, 103], [25, 105], [25, 108], [25, 109], [25, 110], [25, 111], [25, 112], [25, 115], [25, 116], [25, 117], [26, 30], [26, 31], [26, 34], [26, 35], [26, 37], [26, 38], [26, 42], [26, 43], [26, 44], [26, 46], [26, 48], [26, 49], [26, 50], [26, 52], [26, 53], [26, 55], [26, 57], [26, 60], [26, 61], [26, 62], [26, 65], [26, 67], [26, 73], [26, 75], [26, 78], [26, 81], [26, 84], [26, 87], [26, 88], [26, 89], [26, 90], [26, 93], [26, 95], [26, 96], [26, 97], [26, 98], [26, 101], [26, 102], [26, 103], [26, 104], [26, 105], [26, 106], [26, 107], [26, 108], [26, 111], [26, 113], [26, 115], [26, 117], [27, 29], [27, 30], [27, 31], [27, 34], [27, 36], [27, 40], [27, 42], [27, 46], [27, 50], [27, 54], [27, 56], [27, 62], [27, 63], [27, 66], [27, 70], [27, 71], [27, 73], [27, 74], [27, 75], [27, 76], [27, 77], [27, 81], [27, 82], [27, 88], [27, 91], [27, 96], [27, 97], [27, 98], [27, 99], [27, 100], [27, 101], [27, 102], [27, 104], [27, 105], [27, 107], [27, 109], [27, 110], [27, 111], [27, 112], [27, 113], [27, 114], [27, 115], [27, 117], [27, 118], [27, 119], [28, 30], [28, 31], [28, 32], [28, 33], [28, 35], [28, 37], [28, 38], [28, 41], [28, 43], [28, 44], [28, 45], [28, 46], [28, 47], [28, 50], [28, 51], [28, 53], [28, 55], [28, 58], [28, 59], [28, 60], [28, 61], [28, 65], [28, 66], [28, 67], [28, 71], [28, 74], [28, 75], [28, 76], [28, 77], [28, 78], [28, 80], [28, 85], [28, 90], [28, 93], [28, 95], [28, 99], [28, 100], [28, 107], [28, 108], [28, 109], [28, 112], [28, 117], [28, 119], [29, 30], [29, 31], [29, 35], [29, 42], [29, 43], [29, 44], [29, 47], [29, 49], [29, 51], [29, 53], [29, 54], [29, 55], [29, 56], [29, 61], [29, 63], [29, 68], [29, 71], [29, 72], [29, 73], [29, 75], [29, 76], [29, 77], [29, 79], [29, 83], [29, 84], [29, 88], [29, 89], [29, 90], [29, 91], [29, 93], [29, 94], [29, 96], [29, 97], [29, 99], [29, 100], [29, 101], [29, 105], [29, 107], [29, 112], [29, 114], [29, 116], [29, 117], [30, 31], [30, 32], [30, 35], [30, 36], [30, 40], [30, 41], [30, 44], [30, 48], [30, 52], [30, 54], [30, 56], [30, 57], [30, 61], [30, 64], [30, 65], [30, 66], [30, 67], [30, 70], [30, 71], [30, 74], [30, 75], [30, 76], [30, 80], [30, 82], [30, 84], [30, 85], [30, 87], [30, 88], [30, 89], [30, 91], [30, 94], [30, 95], [30, 100], [30, 101], [30, 102], [30, 103], [30, 106], [30, 107], [30, 109], [30, 112], [30, 114], [30, 115], [30, 119], [31, 32], [31, 34], [31, 38], [31, 40], [31, 41], [31, 43], [31, 48], [31, 49], [31, 50], [31, 51], [31, 52], [31, 54], [31, 55], [31, 57], [31, 59], [31, 63], [31, 67], [31, 69], [31, 71], [31, 73], [31, 76], [31, 78], [31, 79], [31, 80], [31, 81], [31, 84], [31, 87], [31, 89], [31, 90], [31, 94], [31, 97], [31, 98], [31, 107], [31, 108], [31, 110], [31, 112], [31, 113], [31, 117], [31, 119], [32, 33], [32, 35], [32, 36], [32, 37], [32, 38], [32, 40], [32, 41], [32, 44], [32, 45], [32, 46], [32, 47], [32, 50], [32, 52], [32, 53], [32, 54], [32, 55], [32, 59], [32, 62], [32, 64], [32, 69], [32, 70], [32, 73], [32, 74], [32, 75], [32, 77], [32, 78], [32, 79], [32, 80], [32, 83], [32, 90], [32, 91], [32, 92], [32, 99], [32, 100], [32, 101], [32, 102], [32, 103], [32, 106], [32, 108], [32, 109], [32, 111], [32, 112], [32, 117], [32, 119], [33, 35], [33, 36], [33, 37], [33, 40], [33, 41], [33, 43], [33, 47], [33, 50], [33, 52], [33, 53], [33, 56], [33, 58], [33, 61], [33, 64], [33, 66], [33, 67], [33, 68], [33, 69], [33, 71], [33, 73], [33, 74], [33, 75], [33, 76], [33, 77], [33, 78], [33, 79], [33, 80], [33, 81], [33, 83], [33, 85], [33, 86], [33, 89], [33, 91], [33, 93], [33, 94], [33, 96], [33, 98], [33, 100], [33, 101], [33, 102], [33, 108], [33, 109], [33, 110], [33, 114], [33, 115], [33, 118], [34, 35], [34, 37], [34, 38], [34, 44], [34, 47], [34, 49], [34, 53], [34, 54], [34, 57], [34, 58], [34, 59], [34, 63], [34, 64], [34, 65], [34, 69], [34, 70], [34, 71], [34, 72], [34, 75], [34, 78], [34, 80], [34, 81], [34, 85], [34, 86], [34, 87], [34, 92], [34, 93], [34, 94], [34, 95], [34, 96], [34, 97], [34, 99], [34, 103], [34, 104], [34, 105], [34, 106], [34, 107], [34, 108], [34, 112], [34, 116], [34, 117], [34, 118], [34, 119], [35, 37], [35, 38], [35, 39], [35, 43], [35, 46], [35, 47], [35, 50], [35, 57], [35, 58], [35, 59], [35, 61], [35, 62], [35, 64], [35, 65], [35, 66], [35, 67], [35, 68], [35, 69], [35, 70], [35, 71], [35, 72], [35, 75], [35, 76], [35, 78], [35, 83], [35, 88], [35, 89], [35, 91], [35, 92], [35, 94], [35, 96], [35, 99], [35, 100], [35, 101], [35, 104], [35, 105], [35, 107], [35, 109], [35, 111], [35, 112], [35, 113], [35, 114], [35, 116], [35, 117], [35, 119], [36, 37], [36, 38], [36, 40], [36, 41], [36, 43], [36, 44], [36, 48], [36, 49], [36, 53], [36, 55], [36, 56], [36, 58], [36, 59], [36, 60], [36, 61], [36, 63], [36, 65], [36, 66], [36, 67], [36, 71], [36, 72], [36, 73], [36, 75], [36, 77], [36, 79], [36, 83], [36, 84], [36, 85], [36, 89], [36, 91], [36, 92], [36, 95], [36, 99], [36, 100], [36, 104], [36, 105], [36, 106], [36, 109], [36, 110], [36, 111], [36, 112], [36, 114], [36, 115], [36, 116], [37, 39], [37, 40], [37, 42], [37, 43], [37, 44], [37, 47], [37, 48], [37, 52], [37, 53], [37, 56], [37, 59], [37, 60], [37, 61], [37, 63], [37, 64], [37, 65], [37, 66], [37, 67], [37, 69], [37, 71], [37, 72], [37, 75], [37, 78], [37, 79], [37, 81], [37, 82], [37, 83], [37, 85], [37, 86], [37, 87], [37, 89], [37, 92], [37, 93], [37, 94], [37, 95], [37, 98], [37, 99], [37, 101], [37, 104], [37, 105], [37, 106], [37, 107], [37, 109], [37, 111], [37, 112], [37, 113], [37, 115], [37, 119], [38, 40], [38, 41], [38, 45], [38, 46], [38, 50], [38, 51], [38, 54], [38, 55], [38, 58], [38, 59], [38, 61], [38, 63], [38, 66], [38, 68], [38, 69], [38, 70], [38, 71], [38, 72], [38, 73], [38, 74], [38, 76], [38, 80], [38, 83], [38, 84], [38, 86], [38, 87], [38, 88], [38, 90], [38, 92], [38, 93], [38, 96], [38, 98], [38, 99], [38, 100], [38, 103], [38, 104], [38, 106], [38, 108], [38, 110], [38, 111], [38, 112], [38, 113], [38, 114], [38, 115], [38, 116], [38, 117], [38, 118], [39, 40], [39, 42], [39, 47], [39, 56], [39, 57], [39, 58], [39, 60], [39, 61], [39, 62], [39, 63], [39, 65], [39, 68], [39, 69], [39, 70], [39, 71], [39, 72], [39, 73], [39, 74], [39, 76], [39, 77], [39, 78], [39, 81], [39, 82], [39, 84], [39, 86], [39, 88], [39, 91], [39, 92], [39, 93], [39, 94], [39, 95], [39, 98], [39, 101], [39, 102], [39, 104], [39, 105], [39, 106], [39, 109], [39, 110], [39, 111], [39, 113], [39, 114], [39, 115], [39, 116], [39, 118], [39, 119], [40, 41], [40, 42], [40, 46], [40, 48], [40, 49], [40, 50], [40, 51], [40, 53], [40, 56], [40, 57], [40, 58], [40, 62], [40, 63], [40, 64], [40, 65], [40, 66], [40, 67], [40, 68], [40, 70], [40, 74], [40, 75], [40, 78], [40, 79], [40, 82], [40, 85], [40, 86], [40, 87], [40, 90], [40, 92], [40, 93], [40, 94], [40, 95], [40, 96], [40, 97], [40, 99], [40, 101], [40, 102], [40, 103], [40, 105], [40, 108], [40, 109], [40, 110], [40, 111], [40, 113], [40, 114], [40, 117], [40, 119], [41, 42], [41, 44], [41, 46], [41, 49], [41, 50], [41, 51], [41, 54], [41, 55], [41, 61], [41, 64], [41, 65], [41, 67], [41, 68], [41, 72], [41, 73], [41, 74], [41, 77], [41, 78], [41, 80], [41, 81], [41, 82], [41, 83], [41, 84], [41, 88], [41, 89], [41, 95], [41, 97], [41, 99], [41, 102], [41, 103], [41, 104], [41, 109], [41, 113], [41, 116], [41, 118], [41, 119], [42, 43], [42, 44], [42, 47], [42, 48], [42, 49], [42, 50], [42, 51], [42, 52], [42, 54], [42, 58], [42, 59], [42, 60], [42, 61], [42, 65], [42, 69], [42, 75], [42, 76], [42, 77], [42, 78], [42, 79], [42, 80], [42, 81], [42, 82], [42, 83], [42, 85], [42, 86], [42, 87], [42, 89], [42, 90], [42, 94], [42, 95], [42, 97], [42, 98], [42, 100], [42, 103], [42, 104], [42, 105], [42, 106], [42, 107], [42, 109], [42, 112], [42, 115], [43, 44], [43, 46], [43, 47], [43, 49], [43, 50], [43, 51], [43, 52], [43, 57], [43, 58], [43, 60], [43, 61], [43, 63], [43, 64], [43, 65], [43, 66], [43, 68], [43, 70], [43, 71], [43, 72], [43, 75], [43, 78], [43, 79], [43, 81], [43, 83], [43, 84], [43, 85], [43, 87], [43, 89], [43, 93], [43, 94], [43, 95], [43, 98], [43, 101], [43, 102], [43, 106], [43, 107], [43, 110], [43, 111], [43, 113], [43, 114], [43, 115], [43, 117], [43, 118], [44, 45], [44, 47], [44, 48], [44, 49], [44, 52], [44, 54], [44, 59], [44, 61], [44, 67], [44, 70], [44, 75], [44, 77], [44, 78], [44, 79], [44, 80], [44, 81], [44, 84], [44, 85], [44, 86], [44, 87], [44, 91], [44, 93], [44, 94], [44, 95], [44, 97], [44, 98], [44, 106], [44, 108], [44, 109], [44, 110], [44, 111], [44, 112], [44, 114], [44, 116], [44, 118], [44, 119], [45, 46], [45, 51], [45, 52], [45, 53], [45, 57], [45, 58], [45, 59], [45, 63], [45, 64], [45, 66], [45, 67], [45, 69], [45, 72], [45, 74], [45, 77], [45, 79], [45, 81], [45, 82], [45, 85], [45, 86], [45, 87], [45, 89], [45, 90], [45, 91], [45, 94], [45, 95], [45, 96], [45, 97], [45, 99], [45, 103], [45, 106], [45, 107], [45, 113], [45, 114], [45, 116], [45, 118], [46, 47], [46, 53], [46, 54], [46, 55], [46, 56], [46, 58], [46, 59], [46, 66], [46, 67], [46, 68], [46, 69], [46, 71], [46, 72], [46, 73], [46, 79], [46, 80], [46, 81], [46, 82], [46, 83], [46, 85], [46, 86], [46, 88], [46, 90], [46, 92], [46, 94], [46, 95], [46, 103], [46, 104], [46, 106], [46, 109], [46, 113], [46, 115], [46, 116], [46, 117], [46, 118], [46, 119], [47, 49], [47, 51], [47, 52], [47, 53], [47, 54], [47, 55], [47, 56], [47, 57], [47, 58], [47, 60], [47, 61], [47, 62], [47, 65], [47, 71], [47, 72], [47, 75], [47, 76], [47, 77], [47, 81], [47, 84], [47, 85], [47, 87], [47, 88], [47, 89], [47, 90], [47, 93], [47, 94], [47, 96], [47, 98], [47, 99], [47, 101], [47, 104], [47, 105], [47, 114], [47, 117], [47, 118], [48, 50], [48, 51], [48, 52], [48, 53], [48, 55], [48, 57], [48, 59], [48, 63], [48, 65], [48, 68], [48, 70], [48, 72], [48, 74], [48, 77], [48, 80], [48, 81], [48, 86], [48, 87], [48, 88], [48, 91], [48, 94], [48, 97], [48, 101], [48, 103], [48, 104], [48, 110], [48, 111], [48, 112], [48, 114], [48, 115], [48, 117], [48, 118], [48, 119], [49, 50], [49, 52], [49, 54], [49, 57], [49, 58], [49, 60], [49, 61], [49, 62], [49, 63], [49, 64], [49, 66], [49, 67], [49, 69], [49, 71], [49, 72], [49, 77], [49, 81], [49, 82], [49, 86], [49, 89], [49, 91], [49, 97], [49, 99], [49, 100], [49, 101], [49, 103], [49, 104], [49, 106], [49, 108], [49, 109], [49, 110], [49, 113], [49, 114], [49, 116], [49, 117], [49, 119], [50, 52], [50, 53], [50, 55], [50, 56], [50, 57], [50, 58], [50, 59], [50, 60], [50, 63], [50, 64], [50, 67], [50, 68], [50, 69], [50, 76], [50, 78], [50, 81], [50, 83], [50, 84], [50, 89], [50, 90], [50, 93], [50, 94], [50, 99], [50, 100], [50, 105], [50, 106], [50, 110], [50, 111], [50, 112], [50, 114], [50, 116], [50, 117], [50, 118], [50, 119], [51, 52], [51, 58], [51, 59], [51, 64], [51, 67], [51, 68], [51, 70], [51, 71], [51, 74], [51, 75], [51, 76], [51, 77], [51, 81], [51, 87], [51, 93], [51, 101], [51, 102], [51, 104], [51, 108], [51, 110], [51, 113], [51, 114], [51, 115], [51, 117], [51, 118], [51, 119], [52, 54], [52, 55], [52, 56], [52, 57], [52, 58], [52, 61], [52, 65], [52, 68], [52, 70], [52, 71], [52, 72], [52, 75], [52, 78], [52, 79], [52, 80], [52, 81], [52, 82], [52, 85], [52, 86], [52, 87], [52, 88], [52, 91], [52, 94], [52, 96], [52, 97], [52, 98], [52, 101], [52, 102], [52, 104], [52, 105], [52, 106], [52, 110], [52, 111], [52, 113], [52, 114], [52, 115], [52, 118], [53, 56], [53, 58], [53, 60], [53, 65], [53, 68], [53, 72], [53, 73], [53, 74], [53, 75], [53, 76], [53, 80], [53, 82], [53, 83], [53, 84], [53, 85], [53, 88], [53, 92], [53, 95], [53, 96], [53, 97], [53, 98], [53, 99], [53, 100], [53, 102], [53, 103], [53, 104], [53, 105], [53, 106], [53, 107], [53, 108], [53, 109], [53, 111], [53, 114], [53, 116], [53, 117], [53, 118], [53, 119], [54, 58], [54, 61], [54, 62], [54, 64], [54, 65], [54, 68], [54, 69], [54, 74], [54, 75], [54, 77], [54, 78], [54, 79], [54, 80], [54, 81], [54, 83], [54, 84], [54, 85], [54, 89], [54, 90], [54, 91], [54, 95], [54, 96], [54, 97], [54, 98], [54, 99], [54, 100], [54, 101], [54, 104], [54, 108], [54, 110], [54, 113], [54, 116], [54, 117], [54, 119], [55, 56], [55, 57], [55, 59], [55, 63], [55, 64], [55, 68], [55, 69], [55, 71], [55, 73], [55, 75], [55, 77], [55, 78], [55, 80], [55, 82], [55, 84], [55, 86], [55, 89], [55, 90], [55, 93], [55, 96], [55, 97], [55, 99], [55, 101], [55, 102], [55, 103], [55, 105], [55, 107], [55, 108], [55, 109], [55, 110], [55, 112], [55, 113], [55, 115], [55, 117], [55, 118], [55, 119], [56, 59], [56, 60], [56, 62], [56, 64], [56, 65], [56, 70], [56, 71], [56, 72], [56, 74], [56, 76], [56, 79], [56, 81], [56, 84], [56, 85], [56, 88], [56, 90], [56, 93], [56, 98], [56, 99], [56, 103], [56, 105], [56, 107], [56, 108], [56, 109], [56, 110], [56, 111], [56, 113], [56, 117], [56, 118], [57, 58], [57, 59], [57, 60], [57, 61], [57, 62], [57, 63], [57, 65], [57, 66], [57, 69], [57, 72], [57, 73], [57, 77], [57, 78], [57, 80], [57, 81], [57, 83], [57, 86], [57, 88], [57, 91], [57, 93], [57, 95], [57, 98], [57, 99], [57, 100], [57, 102], [57, 103], [57, 104], [57, 107], [57, 109], [57, 110], [57, 114], [57, 115], [57, 116], [57, 117], [57, 118], [57, 119], [58, 59], [58, 61], [58, 62], [58, 63], [58, 64], [58, 73], [58, 75], [58, 76], [58, 77], [58, 79], [58, 80], [58, 81], [58, 84], [58, 85], [58, 86], [58, 89], [58, 90], [58, 91], [58, 92], [58, 96], [58, 97], [58, 99], [58, 102], [58, 103], [58, 104], [58, 110], [58, 117], [58, 118], [59, 60], [59, 63], [59, 64], [59, 65], [59, 67], [59, 68], [59, 69], [59, 70], [59, 71], [59, 72], [59, 74], [59, 79], [59, 82], [59, 83], [59, 84], [59, 86], [59, 87], [59, 89], [59, 91], [59, 93], [59, 96], [59, 97], [59, 101], [59, 102], [59, 107], [59, 108], [59, 109], [59, 112], [59, 113], [59, 114], [59, 118], [59, 119], [60, 61], [60, 62], [60, 65], [60, 66], [60, 68], [60, 73], [60, 74], [60, 75], [60, 77], [60, 78], [60, 80], [60, 81], [60, 82], [60, 83], [60, 84], [60, 85], [60, 88], [60, 90], [60, 91], [60, 92], [60, 93], [60, 94], [60, 95], [60, 96], [60, 97], [60, 98], [60, 99], [60, 102], [60, 105], [60, 107], [60, 109], [60, 111], [60, 113], [60, 114], [60, 115], [60, 117], [61, 64], [61, 66], [61, 68], [61, 70], [61, 72], [61, 75], [61, 77], [61, 79], [61, 83], [61, 84], [61, 86], [61, 87], [61, 89], [61, 90], [61, 91], [61, 94], [61, 95], [61, 96], [61, 99], [61, 100], [61, 101], [61, 104], [61, 105], [61, 108], [61, 111], [61, 112], [61, 113], [61, 116], [61, 117], [61, 119], [62, 63], [62, 66], [62, 67], [62, 68], [62, 69], [62, 71], [62, 72], [62, 74], [62, 75], [62, 77], [62, 78], [62, 80], [62, 83], [62, 88], [62, 89], [62, 90], [62, 91], [62, 93], [62, 94], [62, 95], [62, 99], [62, 100], [62, 101], [62, 102], [62, 104], [62, 105], [62, 107], [62, 114], [62, 115], [62, 117], [62, 118], [62, 119], [63, 66], [63, 67], [63, 69], [63, 73], [63, 75], [63, 79], [63, 82], [63, 83], [63, 84], [63, 86], [63, 87], [63, 89], [63, 93], [63, 94], [63, 96], [63, 100], [63, 101], [63, 102], [63, 103], [63, 104], [63, 108], [63, 112], [63, 113], [63, 115], [63, 116], [63, 118], [64, 65], [64, 66], [64, 68], [64, 69], [64, 70], [64, 71], [64, 72], [64, 73], [64, 74], [64, 75], [64, 77], [64, 82], [64, 85], [64, 87], [64, 91], [64, 93], [64, 96], [64, 97], [64, 101], [64, 103], [64, 104], [64, 107], [64, 111], [64, 115], [64, 116], [64, 119], [65, 66], [65, 68], [65, 69], [65, 70], [65, 72], [65, 75], [65, 79], [65, 86], [65, 87], [65, 88], [65, 89], [65, 92], [65, 93], [65, 94], [65, 96], [65, 104], [65, 105], [65, 106], [65, 107], [65, 110], [65, 112], [65, 113], [65, 115], [65, 116], [65, 119], [66, 67], [66, 69], [66, 71], [66, 72], [66, 73], [66, 76], [66, 80], [66, 82], [66, 83], [66, 84], [66, 85], [66, 87], [66, 88], [66, 91], [66, 93], [66, 95], [66, 98], [66, 99], [66, 103], [66, 106], [66, 111], [66, 113], [66, 115], [66, 116], [66, 117], [66, 119], [67, 68], [67, 70], [67, 71], [67, 75], [67, 76], [67, 77], [67, 78], [67, 79], [67, 88], [67, 98], [67, 99], [67, 102], [67, 104], [67, 108], [67, 109], [67, 110], [67, 112], [67, 116], [67, 117], [67, 118], [67, 119], [68, 69], [68, 71], [68, 72], [68, 77], [68, 78], [68, 80], [68, 81], [68, 83], [68, 86], [68, 87], [68, 88], [68, 89], [68, 92], [68, 93], [68, 99], [68, 100], [68, 102], [68, 103], [68, 105], [68, 106], [68, 107], [68, 109], [68, 110], [68, 115], [68, 117], [68, 119], [69, 71], [69, 72], [69, 75], [69, 78], [69, 79], [69, 81], [69, 85], [69, 86], [69, 88], [69, 89], [69, 95], [69, 96], [69, 97], [69, 98], [69, 100], [69, 102], [69, 103], [69, 104], [69, 105], [69, 107], [69, 109], [69, 111], [69, 113], [69, 116], [69, 117], [69, 118], [70, 71], [70, 72], [70, 74], [70, 76], [70, 77], [70, 79], [70, 81], [70, 82], [70, 84], [70, 85], [70, 86], [70, 89], [70, 90], [70, 93], [70, 94], [70, 95], [70, 96], [70, 97], [70, 99], [70, 103], [70, 104], [70, 106], [70, 107], [70, 109], [70, 110], [70, 112], [70, 114], [70, 115], [70, 116], [70, 119], [71, 73], [71, 74], [71, 76], [71, 78], [71, 79], [71, 80], [71, 81], [71, 85], [71, 88], [71, 89], [71, 91], [71, 93], [71, 95], [71, 96], [71, 98], [71, 99], [71, 100], [71, 101], [71, 106], [71, 111], [71, 116], [71, 117], [71, 118], [72, 75], [72, 76], [72, 77], [72, 78], [72, 79], [72, 81], [72, 83], [72, 84], [72, 85], [72, 86], [72, 87], [72, 88], [72, 93], [72, 94], [72, 95], [72, 96], [72, 98], [72, 99], [72, 107], [72, 108], [72, 115], [72, 116], [72, 117], [72, 118], [73, 74], [73, 75], [73, 77], [73, 81], [73, 82], [73, 87], [73, 88], [73, 89], [73, 90], [73, 95], [73, 96], [73, 98], [73, 99], [73, 101], [73, 106], [73, 107], [73, 110], [73, 111], [73, 114], [74, 78], [74, 79], [74, 82], [74, 83], [74, 89], [74, 91], [74, 93], [74, 95], [74, 98], [74, 101], [74, 104], [74, 105], [74, 106], [74, 108], [74, 110], [74, 111], [74, 115], [74, 117], [74, 118], [74, 119], [75, 76], [75, 79], [75, 81], [75, 83], [75, 85], [75, 86], [75, 87], [75, 90], [75, 91], [75, 92], [75, 94], [75, 95], [75, 98], [75, 99], [75, 102], [75, 104], [75, 105], [75, 106], [75, 108], [75, 111], [75, 112], [75, 117], [75, 119], [76, 78], [76, 83], [76, 87], [76, 88], [76, 89], [76, 92], [76, 93], [76, 97], [76, 102], [76, 103], [76, 104], [76, 106], [76, 108], [76, 109], [76, 112], [76, 115], [76, 116], [76, 117], [77, 78], [77, 79], [77, 80], [77, 84], [77, 85], [77, 87], [77, 88], [77, 89], [77, 92], [77, 94], [77, 95], [77, 98], [77, 100], [77, 102], [77, 104], [77, 105], [77, 111], [77, 114], [77, 115], [77, 116], [77, 117], [77, 118], [78, 79], [78, 82], [78, 84], [78, 85], [78, 86], [78, 87], [78, 88], [78, 92], [78, 94], [78, 95], [78, 97], [78, 99], [78, 103], [78, 108], [78, 109], [78, 110], [78, 111], [78, 114], [78, 116], [78, 117], [79, 80], [79, 81], [79, 82], [79, 83], [79, 84], [79, 85], [79, 88], [79, 89], [79, 91], [79, 92], [79, 94], [79, 95], [79, 96], [79, 99], [79, 105], [79, 106], [79, 109], [79, 110], [79, 111], [79, 112], [79, 113], [79, 115], [79, 118], [80, 81], [80, 85], [80, 87], [80, 88], [80, 91], [80, 92], [80, 93], [80, 94], [80, 95], [80, 97], [80, 100], [80, 101], [80, 103], [80, 106], [80, 112], [81, 82], [81, 83], [81, 84], [81, 85], [81, 86], [81, 87], [81, 92], [81, 93], [81, 94], [81, 95], [81, 97], [81, 98], [81, 99], [81, 102], [81, 104], [81, 105], [81, 109], [81, 110], [81, 111], [81, 113], [81, 114], [81, 115], [81, 116], [82, 85], [82, 87], [82, 89], [82, 92], [82, 93], [82, 95], [82, 96], [82, 103], [82, 105], [82, 106], [82, 107], [82, 110], [82, 114], [82, 117], [83, 88], [83, 89], [83, 90], [83, 91], [83, 93], [83, 94], [83, 95], [83, 96], [83, 99], [83, 101], [83, 102], [83, 103], [83, 104], [83, 105], [83, 108], [83, 109], [83, 110], [83, 111], [83, 112], [83, 113], [83, 115], [83, 117], [83, 118], [84, 86], [84, 87], [84, 88], [84, 90], [84, 91], [84, 92], [84, 96], [84, 97], [84, 98], [84, 110], [84, 111], [84, 114], [84, 115], [84, 118], [84, 119], [85, 87], [85, 88], [85, 90], [85, 91], [85, 92], [85, 93], [85, 94], [85, 98], [85, 103], [85, 104], [85, 105], [85, 106], [85, 108], [85, 111], [85, 113], [85, 115], [85, 116], [85, 117], [85, 118], [85, 119], [86, 89], [86, 91], [86, 92], [86, 93], [86, 94], [86, 98], [86, 100], [86, 101], [86, 102], [86, 107], [86, 108], [86, 113], [86, 115], [86, 117], [87, 88], [87, 89], [87, 90], [87, 92], [87, 93], [87, 94], [87, 95], [87, 97], [87, 100], [87, 104], [87, 105], [87, 107], [87, 108], [87, 109], [87, 110], [87, 111], [87, 112], [87, 114], [87, 117], [87, 119], [88, 90], [88, 91], [88, 96], [88, 97], [88, 98], [88, 99], [88, 100], [88, 106], [88, 107], [88, 108], [88, 109], [88, 111], [88, 114], [88, 115], [88, 117], [88, 118], [88, 119], [89, 90], [89, 94], [89, 95], [89, 99], [89, 100], [89, 103], [89, 104], [89, 108], [89, 111], [89, 112], [89, 117], [89, 119], [90, 91], [90, 95], [90, 98], [90, 99], [90, 100], [90, 101], [90, 102], [90, 107], [90, 112], [90, 113], [90, 114], [90, 115], [90, 117], [90, 118], [91, 92], [91, 94], [91, 99], [91, 102], [91, 103], [91, 106], [91, 110], [91, 111], [91, 112], [91, 115], [91, 116], [91, 117], [91, 118], [91, 119], [92, 95], [92, 99], [92, 101], [92, 102], [92, 104], [92, 109], [92, 111], [92, 114], [92, 115], [92, 116], [92, 118], [92, 119], [93, 94], [93, 95], [93, 99], [93, 101], [93, 103], [93, 104], [93, 109], [93, 110], [93, 111], [93, 113], [93, 115], [93, 116], [93, 117], [93, 118], [93, 119], [94, 95], [94, 99], [94, 100], [94, 105], [94, 106], [94, 109], [94, 111], [94, 113], [94, 114], [94, 115], [94, 117], [94, 118], [95, 99], [95, 100], [95, 102], [95, 104], [95, 105], [95, 106], [95, 107], [95, 109], [95, 110], [95, 111], [95, 112], [95, 113], [95, 115], [95, 116], [95, 117], [95, 119], [96, 98], [96, 99], [96, 105], [96, 106], [96, 110], [96, 111], [96, 112], [96, 113], [96, 116], [96, 118], [97, 98], [97, 100], [97, 102], [97, 103], [97, 105], [97, 106], [97, 109], [97, 110], [97, 111], [97, 117], [97, 118], [97, 119], [98, 101], [98, 103], [98, 104], [98, 105], [98, 106], [98, 107], [98, 109], [98, 110], [98, 112], [98, 113], [98, 114], [98, 115], [98, 116], [98, 119], [99, 100], [99, 103], [99, 105], [99, 108], [99, 109], [99, 110], [99, 111], [99, 112], [99, 115], [99, 116], [99, 117], [100, 101], [100, 102], [100, 104], [100, 105], [100, 109], [100, 111], [100, 112], [100, 113], [100, 117], [101, 102], [101, 103], [101, 105], [101, 107], [101, 109], [101, 110], [101, 111], [101, 112], [101, 113], [101, 115], [101, 117], [102, 103], [102, 105], [102, 107], [102, 109], [102, 110], [102, 118], [102, 119], [103, 105], [103, 106], [103, 107], [103, 109], [103, 110], [103, 111], [103, 112], [103, 118], [104, 105], [104, 106], [104, 107], [104, 110], [104, 112], [104, 114], [104, 115], [104, 116], [104, 117], [104, 118], [105, 106], [105, 110], [105, 112], [105, 113], [105, 118], [106, 107], [106, 108], [106, 111], [106, 112], [106, 114], [106, 116], [106, 119], [107, 108], [107, 110], [107, 111], [107, 112], [107, 113], [107, 114], [107, 119], [108, 111], [108, 112], [108, 113], [108, 114], [108, 115], [108, 116], [108, 117], [108, 118], [109, 110], [109, 111], [109, 112], [109, 114], [109, 115], [109, 116], [109, 117], [110, 112], [110, 114], [110, 117], [110, 119], [111, 112], [111, 114], [111, 115], [111, 118], [112, 115], [112, 118], [112, 119], [113, 118], [113, 119], [114, 115], [114, 116], [114, 117], [114, 118], [115, 117], [115, 118], [117, 118], [117, 119]], "family": "mc_max_clique", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-max-clique-l6-s8/tests/run.py b/tasks/construct-mc-max-clique-l6-s8/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-max-clique-l6-s8/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-max-clique-l6-s8/tests/test.sh b/tasks/construct-mc-max-clique-l6-s8/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-max-clique-l6-s8/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-max-independent-set-l1-s2/environment/Dockerfile b/tasks/construct-mc-max-independent-set-l1-s2/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-max-independent-set-l1-s2/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-max-independent-set-l1-s2/environment/instance.json b/tasks/construct-mc-max-independent-set-l1-s2/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..7b18a70436c40f3412252c081bae6508a1567990 --- /dev/null +++ b/tasks/construct-mc-max-independent-set-l1-s2/environment/instance.json @@ -0,0 +1 @@ +{"n": 20, "k": 7, "edges": [[0, 4], [0, 6], [0, 12], [0, 18], [1, 9], [1, 10], [1, 13], [2, 3], [2, 4], [2, 5], [2, 12], [2, 15], [2, 16], [3, 5], [3, 6], [3, 18], [4, 5], [4, 6], [4, 7], [4, 16], [4, 17], [5, 8], [5, 10], [5, 13], [5, 17], [6, 15], [6, 16], [7, 12], [7, 19], [8, 14], [8, 19], [9, 17], [10, 11], [10, 12], [10, 14], [10, 17], [11, 13], [11, 15], [11, 16], [11, 19], [13, 15], [13, 16], [13, 17], [15, 17], [16, 17], [16, 19], [17, 18], [17, 19], [18, 19]], "family": "mc_max_independent_set", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-max-independent-set-l1-s2/solution/solve.sh b/tasks/construct-mc-max-independent-set-l1-s2/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..6c1fda90d35622ccc493229939e15f86d8a7f76e --- /dev/null +++ b/tasks/construct-mc-max-independent-set-l1-s2/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"independent_set": [2, 6, 7, 9, 10, 13, 18]} +RLMATH_EOF diff --git a/tasks/construct-mc-max-independent-set-l1-s2/tests/check.py b/tasks/construct-mc-max-independent-set-l1-s2/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..adce413e8578d996549583b990e4ff559f38ed41 --- /dev/null +++ b/tasks/construct-mc-max-independent-set-l1-s2/tests/check.py @@ -0,0 +1,18 @@ +"""Independent set of size >= k in a given graph (MathConstraint max_independent_set, CC-BY-4.0).""" +import itertools + +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["n"], inst["k"] + S = int_list(ans.get("independent_set"), None, 0, n - 1, "independent_set") + if len(set(S)) != len(S): + raise Invalid("repeated vertex") + if len(S) < k: + raise Invalid(f"set has {len(S)} vertices, need at least {k}") + E = {(u, v) for u, v in inst["edges"]} + for u, v in itertools.combinations(sorted(S), 2): + if (u, v) in E: + raise Invalid(f"vertices {u} and {v} are adjacent") + return None, {"size": len(S)} diff --git a/tasks/construct-mc-max-independent-set-l1-s2/tests/instance.json b/tasks/construct-mc-max-independent-set-l1-s2/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..7b18a70436c40f3412252c081bae6508a1567990 --- /dev/null +++ b/tasks/construct-mc-max-independent-set-l1-s2/tests/instance.json @@ -0,0 +1 @@ +{"n": 20, "k": 7, "edges": [[0, 4], [0, 6], [0, 12], [0, 18], [1, 9], [1, 10], [1, 13], [2, 3], [2, 4], [2, 5], [2, 12], [2, 15], [2, 16], [3, 5], [3, 6], [3, 18], [4, 5], [4, 6], [4, 7], [4, 16], [4, 17], [5, 8], [5, 10], [5, 13], [5, 17], [6, 15], [6, 16], [7, 12], [7, 19], [8, 14], [8, 19], [9, 17], [10, 11], [10, 12], [10, 14], [10, 17], [11, 13], [11, 15], [11, 16], [11, 19], [13, 15], [13, 16], [13, 17], [15, 17], [16, 17], [16, 19], [17, 18], [17, 19], [18, 19]], "family": "mc_max_independent_set", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-max-independent-set-l1-s2/tests/run.py b/tasks/construct-mc-max-independent-set-l1-s2/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-max-independent-set-l1-s2/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-max-independent-set-l1-s2/tests/test.sh b/tasks/construct-mc-max-independent-set-l1-s2/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-max-independent-set-l1-s2/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-max-independent-set-l1-s5/environment/Dockerfile b/tasks/construct-mc-max-independent-set-l1-s5/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-max-independent-set-l1-s5/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-max-independent-set-l1-s5/environment/instance.json b/tasks/construct-mc-max-independent-set-l1-s5/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..31ffacd599584f8ad26c851b4f386468de1d35f6 --- /dev/null +++ b/tasks/construct-mc-max-independent-set-l1-s5/environment/instance.json @@ -0,0 +1 @@ +{"n": 20, "k": 7, "edges": [[0, 3], [0, 4], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 14], [0, 18], [1, 2], [1, 3], [1, 5], [1, 19], [2, 7], [2, 15], [3, 5], [3, 9], [3, 11], [3, 15], [3, 18], [3, 19], [4, 7], [4, 8], [5, 9], [6, 12], [6, 13], [7, 9], [7, 12], [7, 14], [7, 18], [9, 13], [9, 19], [10, 13], [11, 16], [12, 19], [13, 18], [13, 19], [14, 19], [15, 19], [16, 19]], "family": "mc_max_independent_set", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-max-independent-set-l1-s5/solution/solve.sh b/tasks/construct-mc-max-independent-set-l1-s5/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..76f761bee979743813f76b7521e62ba02da7e0a4 --- /dev/null +++ b/tasks/construct-mc-max-independent-set-l1-s5/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"independent_set": [4, 5, 6, 10, 14, 17, 18]} +RLMATH_EOF diff --git a/tasks/construct-mc-max-independent-set-l1-s5/tests/check.py b/tasks/construct-mc-max-independent-set-l1-s5/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..adce413e8578d996549583b990e4ff559f38ed41 --- /dev/null +++ b/tasks/construct-mc-max-independent-set-l1-s5/tests/check.py @@ -0,0 +1,18 @@ +"""Independent set of size >= k in a given graph (MathConstraint max_independent_set, CC-BY-4.0).""" +import itertools + +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["n"], inst["k"] + S = int_list(ans.get("independent_set"), None, 0, n - 1, "independent_set") + if len(set(S)) != len(S): + raise Invalid("repeated vertex") + if len(S) < k: + raise Invalid(f"set has {len(S)} vertices, need at least {k}") + E = {(u, v) for u, v in inst["edges"]} + for u, v in itertools.combinations(sorted(S), 2): + if (u, v) in E: + raise Invalid(f"vertices {u} and {v} are adjacent") + return None, {"size": len(S)} diff --git a/tasks/construct-mc-max-independent-set-l1-s5/tests/instance.json b/tasks/construct-mc-max-independent-set-l1-s5/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..31ffacd599584f8ad26c851b4f386468de1d35f6 --- /dev/null +++ b/tasks/construct-mc-max-independent-set-l1-s5/tests/instance.json @@ -0,0 +1 @@ +{"n": 20, "k": 7, "edges": [[0, 3], [0, 4], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 14], [0, 18], [1, 2], [1, 3], [1, 5], [1, 19], [2, 7], [2, 15], [3, 5], [3, 9], [3, 11], [3, 15], [3, 18], [3, 19], [4, 7], [4, 8], [5, 9], [6, 12], [6, 13], [7, 9], [7, 12], [7, 14], [7, 18], [9, 13], [9, 19], [10, 13], [11, 16], [12, 19], [13, 18], [13, 19], [14, 19], [15, 19], [16, 19]], "family": "mc_max_independent_set", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-max-independent-set-l1-s5/tests/run.py b/tasks/construct-mc-max-independent-set-l1-s5/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-max-independent-set-l1-s5/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-max-independent-set-l1-s5/tests/test.sh b/tasks/construct-mc-max-independent-set-l1-s5/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-max-independent-set-l1-s5/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-max-independent-set-l5-s3/environment/Dockerfile b/tasks/construct-mc-max-independent-set-l5-s3/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-max-independent-set-l5-s3/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-max-independent-set-l5-s3/environment/instance.json b/tasks/construct-mc-max-independent-set-l5-s3/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..431471e529cfd6f03064e314885c379c586121be --- /dev/null +++ b/tasks/construct-mc-max-independent-set-l5-s3/environment/instance.json @@ -0,0 +1 @@ +{"n": 90, "k": 16, "edges": [[0, 1], [0, 2], [0, 3], [0, 9], [0, 11], [0, 17], [0, 19], [0, 22], [0, 29], [0, 31], [0, 32], [0, 37], [0, 41], [0, 46], [0, 56], [0, 62], [0, 63], [0, 64], [0, 65], [0, 69], [0, 73], [0, 76], [0, 77], [0, 78], [0, 79], [0, 87], [1, 10], [1, 14], [1, 18], [1, 19], [1, 21], [1, 22], [1, 30], [1, 32], [1, 34], [1, 36], [1, 40], [1, 41], [1, 46], [1, 53], [1, 57], [1, 61], [1, 63], [1, 64], [1, 65], [1, 68], [1, 69], [1, 70], [1, 71], [1, 72], [1, 78], [1, 79], [1, 80], [1, 81], [2, 3], [2, 9], [2, 12], [2, 13], [2, 14], [2, 20], [2, 21], [2, 22], [2, 24], [2, 26], [2, 32], [2, 38], [2, 48], [2, 50], [2, 52], [2, 54], [2, 57], [2, 65], [2, 70], [2, 72], [2, 73], [2, 76], [2, 78], [2, 84], [3, 4], [3, 17], [3, 20], [3, 26], [3, 27], [3, 31], [3, 36], [3, 38], [3, 39], [3, 41], [3, 42], [3, 46], [3, 48], [3, 51], [3, 52], [3, 55], [3, 62], [3, 63], [3, 64], [3, 65], [3, 76], [3, 81], [3, 86], [3, 88], [4, 5], [4, 10], [4, 13], [4, 17], [4, 19], [4, 20], [4, 22], [4, 23], [4, 24], [4, 25], [4, 27], [4, 35], [4, 36], [4, 37], [4, 39], [4, 41], [4, 46], [4, 52], [4, 59], [4, 61], [4, 62], [4, 64], [4, 65], [4, 68], [4, 71], [4, 74], [4, 77], [4, 82], [4, 85], [4, 89], [5, 6], [5, 7], [5, 10], [5, 11], [5, 17], [5, 20], [5, 22], [5, 30], [5, 36], [5, 40], [5, 42], [5, 44], [5, 50], [5, 51], [5, 54], [5, 66], [5, 68], [5, 70], [5, 75], [5, 77], [5, 78], [5, 80], [5, 81], [5, 82], [5, 83], [5, 86], [5, 89], [6, 14], [6, 15], [6, 19], [6, 21], [6, 34], [6, 36], [6, 38], [6, 42], [6, 49], [6, 54], [6, 57], [6, 59], [6, 63], [6, 64], [6, 65], [6, 68], [6, 70], [6, 71], [6, 75], [6, 83], [6, 89], [7, 11], [7, 14], [7, 17], [7, 25], [7, 26], [7, 28], [7, 37], [7, 39], [7, 42], [7, 43], [7, 45], [7, 47], [7, 57], [7, 63], [7, 76], [7, 78], [7, 83], [7, 84], [7, 87], [8, 10], [8, 11], [8, 12], [8, 13], [8, 16], [8, 20], [8, 28], [8, 30], [8, 31], [8, 32], [8, 35], [8, 37], [8, 40], [8, 45], [8, 47], [8, 50], [8, 56], [8, 59], [8, 61], [8, 64], [8, 68], [8, 72], [8, 74], [8, 75], [8, 76], [8, 79], [8, 83], [8, 84], [8, 85], [8, 86], [8, 87], [8, 88], [9, 12], [9, 15], [9, 17], [9, 18], [9, 20], [9, 23], [9, 30], [9, 31], [9, 37], [9, 38], [9, 39], [9, 41], [9, 47], [9, 50], [9, 51], [9, 52], [9, 53], [9, 56], [9, 58], [9, 61], [9, 69], [9, 70], [9, 75], [9, 79], [9, 87], [10, 14], [10, 15], [10, 18], [10, 21], [10, 25], [10, 27], [10, 28], [10, 32], [10, 33], [10, 39], [10, 40], [10, 43], [10, 48], [10, 49], [10, 50], [10, 55], [10, 56], [10, 57], [10, 61], [10, 62], [10, 64], [10, 67], [10, 70], [10, 71], [10, 75], [10, 76], [10, 79], [10, 82], [10, 84], [11, 14], [11, 18], [11, 28], [11, 29], [11, 32], [11, 33], [11, 34], [11, 36], [11, 39], [11, 40], [11, 44], [11, 46], [11, 53], [11, 59], [11, 69], [11, 71], [11, 79], [11, 88], [12, 22], [12, 25], [12, 26], [12, 28], [12, 29], [12, 32], [12, 34], [12, 38], [12, 39], [12, 47], [12, 48], [12, 51], [12, 54], [12, 56], [12, 59], [12, 64], [12, 65], [12, 69], [12, 70], [12, 75], [12, 83], [12, 85], [12, 88], [13, 16], [13, 20], [13, 21], [13, 23], [13, 24], [13, 26], [13, 34], [13, 38], [13, 40], [13, 44], [13, 48], [13, 49], [13, 51], [13, 53], [13, 55], [13, 60], [13, 61], [13, 70], [13, 82], [13, 87], [14, 16], [14, 21], [14, 22], [14, 24], [14, 25], [14, 28], [14, 31], [14, 34], [14, 35], [14, 38], [14, 39], [14, 42], [14, 55], [14, 60], [14, 67], [14, 68], [14, 69], [14, 70], [14, 71], [14, 73], [14, 74], [14, 77], [14, 80], [14, 81], [14, 86], [14, 87], [15, 17], [15, 19], [15, 23], [15, 25], [15, 28], [15, 29], [15, 30], [15, 31], [15, 38], [15, 42], [15, 46], [15, 51], [15, 55], [15, 57], [15, 60], [15, 61], [15, 62], [15, 63], [15, 65], [15, 79], [15, 82], [15, 83], [15, 84], [15, 85], [15, 86], [16, 17], [16, 21], [16, 27], [16, 28], [16, 31], [16, 40], [16, 44], [16, 45], [16, 47], [16, 51], [16, 62], [16, 65], [16, 66], [16, 70], [16, 71], [16, 74], [16, 75], [16, 83], [16, 84], [16, 88], [17, 19], [17, 21], [17, 24], [17, 25], [17, 28], [17, 29], [17, 36], [17, 44], [17, 49], [17, 60], [17, 63], [17, 65], [17, 66], [17, 74], [17, 76], [17, 79], [17, 84], [17, 86], [18, 19], [18, 25], [18, 27], [18, 29], [18, 30], [18, 32], [18, 33], [18, 36], [18, 42], [18, 55], [18, 58], [18, 61], [18, 63], [18, 65], [18, 72], [18, 74], [18, 77], [18, 79], [18, 81], [18, 84], [18, 85], [18, 86], [18, 87], [19, 28], [19, 29], [19, 36], [19, 37], [19, 39], [19, 40], [19, 41], [19, 56], [19, 72], [19, 74], [19, 76], [19, 78], [19, 79], [19, 82], [19, 86], [19, 89], [20, 31], [20, 35], [20, 37], [20, 40], [20, 47], [20, 48], [20, 55], [20, 56], [20, 57], [20, 63], [20, 65], [20, 66], [20, 67], [20, 69], [20, 76], [20, 77], [20, 81], [20, 88], [21, 29], [21, 31], [21, 32], [21, 33], [21, 37], [21, 47], [21, 49], [21, 50], [21, 51], [21, 56], [21, 59], [21, 62], [21, 64], [21, 71], [21, 76], [21, 77], [21, 78], [21, 80], [21, 81], [21, 83], [21, 86], [22, 28], [22, 35], [22, 40], [22, 44], [22, 47], [22, 49], [22, 53], [22, 64], [22, 67], [22, 72], [22, 75], [22, 79], [22, 80], [22, 81], [22, 82], [22, 89], [23, 24], [23, 25], [23, 35], [23, 37], [23, 44], [23, 46], [23, 49], [23, 52], [23, 57], [23, 58], [23, 68], [23, 82], [24, 25], [24, 27], [24, 33], [24, 34], [24, 38], [24, 41], [24, 42], [24, 43], [24, 44], [24, 45], [24, 48], [24, 49], [24, 53], [24, 56], [24, 63], [24, 66], [24, 74], [24, 77], [24, 86], [24, 87], [24, 88], [25, 27], [25, 30], [25, 33], [25, 37], [25, 42], [25, 46], [25, 56], [25, 58], [25, 59], [25, 60], [25, 64], [25, 67], [25, 72], [25, 77], [25, 80], [25, 81], [25, 82], [25, 84], [25, 86], [25, 87], [26, 29], [26, 33], [26, 34], [26, 39], [26, 46], [26, 51], [26, 54], [26, 60], [26, 63], [26, 65], [26, 67], [26, 71], [26, 81], [26, 88], [27, 29], [27, 31], [27, 33], [27, 37], [27, 39], [27, 40], [27, 43], [27, 47], [27, 58], [27, 66], [27, 68], [27, 77], [27, 79], [27, 81], [27, 82], [27, 84], [27, 88], [27, 89], [28, 32], [28, 38], [28, 39], [28, 43], [28, 47], [28, 53], [28, 54], [28, 55], [28, 59], [28, 61], [28, 64], [28, 65], [28, 77], [28, 78], [28, 79], [28, 80], [28, 85], [28, 86], [28, 89], [29, 30], [29, 31], [29, 32], [29, 47], [29, 48], [29, 49], [29, 53], [29, 55], [29, 62], [29, 69], [29, 75], [29, 79], [29, 80], [29, 81], [30, 34], [30, 38], [30, 47], [30, 50], [30, 54], [30, 60], [30, 70], [30, 72], [30, 76], [30, 86], [31, 38], [31, 39], [31, 43], [31, 48], [31, 50], [31, 54], [31, 56], [31, 63], [31, 69], [31, 74], [31, 75], [31, 79], [31, 82], [31, 83], [31, 86], [31, 89], [32, 34], [32, 36], [32, 37], [32, 38], [32, 39], [32, 43], [32, 49], [32, 54], [32, 56], [32, 57], [32, 62], [32, 64], [32, 72], [32, 85], [32, 88], [32, 89], [33, 34], [33, 37], [33, 39], [33, 40], [33, 44], [33, 49], [33, 51], [33, 54], [33, 56], [33, 60], [33, 63], [33, 68], [33, 71], [33, 73], [33, 82], [33, 85], [33, 87], [34, 41], [34, 43], [34, 47], [34, 49], [34, 53], [34, 54], [34, 64], [34, 65], [34, 66], [34, 71], [34, 76], [34, 83], [34, 87], [35, 40], [35, 41], [35, 44], [35, 51], [35, 58], [35, 61], [35, 62], [35, 69], [35, 70], [35, 72], [35, 74], [35, 81], [35, 82], [35, 87], [36, 37], [36, 41], [36, 43], [36, 45], [36, 46], [36, 48], [36, 49], [36, 51], [36, 53], [36, 54], [36, 55], [36, 56], [36, 58], [36, 59], [36, 60], [36, 64], [36, 74], [36, 77], [36, 78], [36, 84], [36, 85], [36, 86], [36, 88], [37, 39], [37, 42], [37, 43], [37, 44], [37, 45], [37, 47], [37, 48], [37, 51], [37, 55], [37, 56], [37, 62], [37, 63], [37, 64], [37, 65], [37, 66], [37, 70], [37, 71], [37, 75], [37, 76], [37, 81], [38, 51], [38, 55], [38, 57], [38, 58], [38, 60], [38, 66], [38, 68], [38, 82], [38, 88], [39, 40], [39, 41], [39, 46], [39, 47], [39, 48], [39, 59], [39, 61], [39, 65], [39, 72], [39, 73], [39, 76], [39, 83], [39, 87], [40, 41], [40, 49], [40, 50], [40, 58], [40, 60], [40, 61], [40, 63], [40, 67], [40, 75], [40, 76], [40, 78], [40, 79], [40, 82], [40, 83], [41, 42], [41, 44], [41, 47], [41, 51], [41, 55], [41, 60], [41, 61], [41, 66], [41, 71], [41, 73], [41, 82], [41, 83], [42, 45], [42, 48], [42, 52], [42, 56], [42, 57], [42, 58], [42, 60], [42, 65], [42, 70], [42, 74], [42, 86], [42, 88], [43, 45], [43, 51], [43, 53], [43, 57], [43, 59], [43, 61], [43, 62], [43, 64], [43, 69], [43, 83], [43, 86], [43, 89], [44, 45], [44, 55], [44, 58], [44, 68], [44, 73], [44, 75], [44, 78], [44, 82], [44, 86], [44, 87], [45, 50], [45, 54], [45, 55], [45, 57], [45, 58], [45, 67], [45, 71], [45, 75], [45, 78], [45, 79], [45, 82], [46, 48], [46, 49], [46, 50], [46, 56], [46, 62], [46, 64], [46, 68], [46, 77], [46, 78], [46, 80], [46, 83], [46, 84], [46, 85], [47, 48], [47, 50], [47, 64], [47, 73], [47, 74], [47, 78], [47, 80], [47, 81], [47, 85], [47, 86], [47, 87], [48, 51], [48, 58], [48, 60], [48, 63], [48, 70], [48, 73], [48, 74], [48, 80], [48, 81], [48, 84], [49, 56], [49, 58], [49, 59], [49, 70], [49, 81], [49, 84], [49, 87], [49, 89], [50, 56], [50, 60], [50, 64], [50, 67], [50, 74], [50, 76], [50, 77], [50, 78], [50, 87], [51, 55], [51, 61], [51, 66], [51, 67], [51, 69], [51, 70], [51, 73], [51, 75], [51, 85], [52, 57], [52, 65], [52, 66], [52, 76], [52, 89], [53, 55], [53, 63], [53, 65], [53, 67], [53, 68], [53, 75], [53, 89], [54, 56], [54, 57], [54, 60], [54, 61], [54, 62], [54, 66], [54, 72], [54, 73], [54, 79], [54, 82], [54, 84], [54, 89], [55, 56], [55, 59], [55, 60], [55, 65], [55, 67], [55, 70], [55, 74], [55, 78], [55, 80], [55, 83], [55, 85], [55, 88], [55, 89], [56, 61], [56, 63], [56, 65], [56, 71], [56, 72], [56, 73], [56, 82], [56, 88], [57, 58], [57, 60], [57, 62], [57, 63], [57, 73], [57, 76], [57, 77], [57, 78], [57, 81], [57, 84], [58, 59], [58, 62], [58, 64], [58, 67], [58, 68], [58, 75], [58, 76], [58, 81], [58, 86], [59, 64], [59, 68], [59, 69], [59, 73], [59, 75], [59, 76], [59, 78], [59, 89], [60, 61], [60, 65], [60, 67], [60, 72], [60, 74], [60, 80], [60, 81], [60, 82], [60, 84], [60, 88], [61, 63], [61, 64], [61, 66], [61, 68], [61, 71], [61, 75], [61, 76], [61, 77], [61, 78], [61, 88], [62, 65], [62, 67], [62, 72], [62, 73], [62, 84], [62, 87], [62, 89], [63, 64], [63, 69], [63, 70], [63, 74], [63, 76], [63, 77], [63, 82], [63, 84], [63, 86], [63, 88], [64, 70], [64, 73], [64, 78], [64, 81], [64, 84], [64, 86], [65, 67], [65, 73], [65, 74], [65, 81], [65, 84], [66, 72], [66, 77], [66, 83], [67, 69], [67, 71], [67, 72], [67, 73], [67, 76], [67, 81], [67, 87], [67, 89], [68, 71], [68, 75], [68, 76], [68, 77], [68, 82], [68, 85], [69, 73], [69, 78], [69, 80], [69, 82], [70, 71], [70, 82], [70, 84], [70, 87], [70, 88], [70, 89], [71, 73], [71, 74], [71, 81], [71, 83], [71, 86], [71, 87], [72, 87], [72, 89], [73, 74], [73, 77], [73, 78], [73, 80], [73, 81], [73, 87], [73, 88], [74, 75], [74, 76], [74, 87], [75, 85], [76, 81], [76, 82], [76, 83], [76, 84], [76, 85], [76, 89], [77, 81], [77, 82], [77, 83], [77, 85], [77, 89], [78, 81], [78, 87], [78, 89], [79, 82], [79, 83], [79, 84], [79, 85], [79, 86], [79, 88], [80, 82], [80, 89], [81, 82], [81, 83], [81, 85], [81, 86], [81, 89], [82, 87], [82, 89], [83, 88], [83, 89], [84, 86], [87, 88], [87, 89]], "family": "mc_max_independent_set", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-max-independent-set-l5-s3/solution/solve.sh b/tasks/construct-mc-max-independent-set-l5-s3/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..c98217cbe13fc5bb20cab751bcd543f2fccfe56a --- /dev/null +++ b/tasks/construct-mc-max-independent-set-l5-s3/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"independent_set": [0, 20, 26, 27, 38, 45, 52, 53, 61, 70, 72, 74, 80, 83, 85, 86]} +RLMATH_EOF diff --git a/tasks/construct-mc-max-independent-set-l5-s3/tests/check.py b/tasks/construct-mc-max-independent-set-l5-s3/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..adce413e8578d996549583b990e4ff559f38ed41 --- /dev/null +++ b/tasks/construct-mc-max-independent-set-l5-s3/tests/check.py @@ -0,0 +1,18 @@ +"""Independent set of size >= k in a given graph (MathConstraint max_independent_set, CC-BY-4.0).""" +import itertools + +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["n"], inst["k"] + S = int_list(ans.get("independent_set"), None, 0, n - 1, "independent_set") + if len(set(S)) != len(S): + raise Invalid("repeated vertex") + if len(S) < k: + raise Invalid(f"set has {len(S)} vertices, need at least {k}") + E = {(u, v) for u, v in inst["edges"]} + for u, v in itertools.combinations(sorted(S), 2): + if (u, v) in E: + raise Invalid(f"vertices {u} and {v} are adjacent") + return None, {"size": len(S)} diff --git a/tasks/construct-mc-max-independent-set-l5-s3/tests/instance.json b/tasks/construct-mc-max-independent-set-l5-s3/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..431471e529cfd6f03064e314885c379c586121be --- /dev/null +++ b/tasks/construct-mc-max-independent-set-l5-s3/tests/instance.json @@ -0,0 +1 @@ +{"n": 90, "k": 16, "edges": [[0, 1], [0, 2], [0, 3], [0, 9], [0, 11], [0, 17], [0, 19], [0, 22], [0, 29], [0, 31], [0, 32], [0, 37], [0, 41], [0, 46], [0, 56], [0, 62], [0, 63], [0, 64], [0, 65], [0, 69], [0, 73], [0, 76], [0, 77], [0, 78], [0, 79], [0, 87], [1, 10], [1, 14], [1, 18], [1, 19], [1, 21], [1, 22], [1, 30], [1, 32], [1, 34], [1, 36], [1, 40], [1, 41], [1, 46], [1, 53], [1, 57], [1, 61], [1, 63], [1, 64], [1, 65], [1, 68], [1, 69], [1, 70], [1, 71], [1, 72], [1, 78], [1, 79], [1, 80], [1, 81], [2, 3], [2, 9], [2, 12], [2, 13], [2, 14], [2, 20], [2, 21], [2, 22], [2, 24], [2, 26], [2, 32], [2, 38], [2, 48], [2, 50], [2, 52], [2, 54], [2, 57], [2, 65], [2, 70], [2, 72], [2, 73], [2, 76], [2, 78], [2, 84], [3, 4], [3, 17], [3, 20], [3, 26], [3, 27], [3, 31], [3, 36], [3, 38], [3, 39], [3, 41], [3, 42], [3, 46], [3, 48], [3, 51], [3, 52], [3, 55], [3, 62], [3, 63], [3, 64], [3, 65], [3, 76], [3, 81], [3, 86], [3, 88], [4, 5], [4, 10], [4, 13], [4, 17], [4, 19], [4, 20], [4, 22], [4, 23], [4, 24], [4, 25], [4, 27], [4, 35], [4, 36], [4, 37], [4, 39], [4, 41], [4, 46], [4, 52], [4, 59], [4, 61], [4, 62], [4, 64], [4, 65], [4, 68], [4, 71], [4, 74], [4, 77], [4, 82], [4, 85], [4, 89], [5, 6], [5, 7], [5, 10], [5, 11], [5, 17], [5, 20], [5, 22], [5, 30], [5, 36], [5, 40], [5, 42], [5, 44], [5, 50], [5, 51], [5, 54], [5, 66], [5, 68], [5, 70], [5, 75], [5, 77], [5, 78], [5, 80], [5, 81], [5, 82], [5, 83], [5, 86], [5, 89], [6, 14], [6, 15], [6, 19], [6, 21], [6, 34], [6, 36], [6, 38], [6, 42], [6, 49], [6, 54], [6, 57], [6, 59], [6, 63], [6, 64], [6, 65], [6, 68], [6, 70], [6, 71], [6, 75], [6, 83], [6, 89], [7, 11], [7, 14], [7, 17], [7, 25], [7, 26], [7, 28], [7, 37], [7, 39], [7, 42], [7, 43], [7, 45], [7, 47], [7, 57], [7, 63], [7, 76], [7, 78], [7, 83], [7, 84], [7, 87], [8, 10], [8, 11], [8, 12], [8, 13], [8, 16], [8, 20], [8, 28], [8, 30], [8, 31], [8, 32], [8, 35], [8, 37], [8, 40], [8, 45], [8, 47], [8, 50], [8, 56], [8, 59], [8, 61], [8, 64], [8, 68], [8, 72], [8, 74], [8, 75], [8, 76], [8, 79], [8, 83], [8, 84], [8, 85], [8, 86], [8, 87], [8, 88], [9, 12], [9, 15], [9, 17], [9, 18], [9, 20], [9, 23], [9, 30], [9, 31], [9, 37], [9, 38], [9, 39], [9, 41], [9, 47], [9, 50], [9, 51], [9, 52], [9, 53], [9, 56], [9, 58], [9, 61], [9, 69], [9, 70], [9, 75], [9, 79], [9, 87], [10, 14], [10, 15], [10, 18], [10, 21], [10, 25], [10, 27], [10, 28], [10, 32], [10, 33], [10, 39], [10, 40], [10, 43], [10, 48], [10, 49], [10, 50], [10, 55], [10, 56], [10, 57], [10, 61], [10, 62], [10, 64], [10, 67], [10, 70], [10, 71], [10, 75], [10, 76], [10, 79], [10, 82], [10, 84], [11, 14], [11, 18], [11, 28], [11, 29], [11, 32], [11, 33], [11, 34], [11, 36], [11, 39], [11, 40], [11, 44], [11, 46], [11, 53], [11, 59], [11, 69], [11, 71], [11, 79], [11, 88], [12, 22], [12, 25], [12, 26], [12, 28], [12, 29], [12, 32], [12, 34], [12, 38], [12, 39], [12, 47], [12, 48], [12, 51], [12, 54], [12, 56], [12, 59], [12, 64], [12, 65], [12, 69], [12, 70], [12, 75], [12, 83], [12, 85], [12, 88], [13, 16], [13, 20], [13, 21], [13, 23], [13, 24], [13, 26], [13, 34], [13, 38], [13, 40], [13, 44], [13, 48], [13, 49], [13, 51], [13, 53], [13, 55], [13, 60], [13, 61], [13, 70], [13, 82], [13, 87], [14, 16], [14, 21], [14, 22], [14, 24], [14, 25], [14, 28], [14, 31], [14, 34], [14, 35], [14, 38], [14, 39], [14, 42], [14, 55], [14, 60], [14, 67], [14, 68], [14, 69], [14, 70], [14, 71], [14, 73], [14, 74], [14, 77], [14, 80], [14, 81], [14, 86], [14, 87], [15, 17], [15, 19], [15, 23], [15, 25], [15, 28], [15, 29], [15, 30], [15, 31], [15, 38], [15, 42], [15, 46], [15, 51], [15, 55], [15, 57], [15, 60], [15, 61], [15, 62], [15, 63], [15, 65], [15, 79], [15, 82], [15, 83], [15, 84], [15, 85], [15, 86], [16, 17], [16, 21], [16, 27], [16, 28], [16, 31], [16, 40], [16, 44], [16, 45], [16, 47], [16, 51], [16, 62], [16, 65], [16, 66], [16, 70], [16, 71], [16, 74], [16, 75], [16, 83], [16, 84], [16, 88], [17, 19], [17, 21], [17, 24], [17, 25], [17, 28], [17, 29], [17, 36], [17, 44], [17, 49], [17, 60], [17, 63], [17, 65], [17, 66], [17, 74], [17, 76], [17, 79], [17, 84], [17, 86], [18, 19], [18, 25], [18, 27], [18, 29], [18, 30], [18, 32], [18, 33], [18, 36], [18, 42], [18, 55], [18, 58], [18, 61], [18, 63], [18, 65], [18, 72], [18, 74], [18, 77], [18, 79], [18, 81], [18, 84], [18, 85], [18, 86], [18, 87], [19, 28], [19, 29], [19, 36], [19, 37], [19, 39], [19, 40], [19, 41], [19, 56], [19, 72], [19, 74], [19, 76], [19, 78], [19, 79], [19, 82], [19, 86], [19, 89], [20, 31], [20, 35], [20, 37], [20, 40], [20, 47], [20, 48], [20, 55], [20, 56], [20, 57], [20, 63], [20, 65], [20, 66], [20, 67], [20, 69], [20, 76], [20, 77], [20, 81], [20, 88], [21, 29], [21, 31], [21, 32], [21, 33], [21, 37], [21, 47], [21, 49], [21, 50], [21, 51], [21, 56], [21, 59], [21, 62], [21, 64], [21, 71], [21, 76], [21, 77], [21, 78], [21, 80], [21, 81], [21, 83], [21, 86], [22, 28], [22, 35], [22, 40], [22, 44], [22, 47], [22, 49], [22, 53], [22, 64], [22, 67], [22, 72], [22, 75], [22, 79], [22, 80], [22, 81], [22, 82], [22, 89], [23, 24], [23, 25], [23, 35], [23, 37], [23, 44], [23, 46], [23, 49], [23, 52], [23, 57], [23, 58], [23, 68], [23, 82], [24, 25], [24, 27], [24, 33], [24, 34], [24, 38], [24, 41], [24, 42], [24, 43], [24, 44], [24, 45], [24, 48], [24, 49], [24, 53], [24, 56], [24, 63], [24, 66], [24, 74], [24, 77], [24, 86], [24, 87], [24, 88], [25, 27], [25, 30], [25, 33], [25, 37], [25, 42], [25, 46], [25, 56], [25, 58], [25, 59], [25, 60], [25, 64], [25, 67], [25, 72], [25, 77], [25, 80], [25, 81], [25, 82], [25, 84], [25, 86], [25, 87], [26, 29], [26, 33], [26, 34], [26, 39], [26, 46], [26, 51], [26, 54], [26, 60], [26, 63], [26, 65], [26, 67], [26, 71], [26, 81], [26, 88], [27, 29], [27, 31], [27, 33], [27, 37], [27, 39], [27, 40], [27, 43], [27, 47], [27, 58], [27, 66], [27, 68], [27, 77], [27, 79], [27, 81], [27, 82], [27, 84], [27, 88], [27, 89], [28, 32], [28, 38], [28, 39], [28, 43], [28, 47], [28, 53], [28, 54], [28, 55], [28, 59], [28, 61], [28, 64], [28, 65], [28, 77], [28, 78], [28, 79], [28, 80], [28, 85], [28, 86], [28, 89], [29, 30], [29, 31], [29, 32], [29, 47], [29, 48], [29, 49], [29, 53], [29, 55], [29, 62], [29, 69], [29, 75], [29, 79], [29, 80], [29, 81], [30, 34], [30, 38], [30, 47], [30, 50], [30, 54], [30, 60], [30, 70], [30, 72], [30, 76], [30, 86], [31, 38], [31, 39], [31, 43], [31, 48], [31, 50], [31, 54], [31, 56], [31, 63], [31, 69], [31, 74], [31, 75], [31, 79], [31, 82], [31, 83], [31, 86], [31, 89], [32, 34], [32, 36], [32, 37], [32, 38], [32, 39], [32, 43], [32, 49], [32, 54], [32, 56], [32, 57], [32, 62], [32, 64], [32, 72], [32, 85], [32, 88], [32, 89], [33, 34], [33, 37], [33, 39], [33, 40], [33, 44], [33, 49], [33, 51], [33, 54], [33, 56], [33, 60], [33, 63], [33, 68], [33, 71], [33, 73], [33, 82], [33, 85], [33, 87], [34, 41], [34, 43], [34, 47], [34, 49], [34, 53], [34, 54], [34, 64], [34, 65], [34, 66], [34, 71], [34, 76], [34, 83], [34, 87], [35, 40], [35, 41], [35, 44], [35, 51], [35, 58], [35, 61], [35, 62], [35, 69], [35, 70], [35, 72], [35, 74], [35, 81], [35, 82], [35, 87], [36, 37], [36, 41], [36, 43], [36, 45], [36, 46], [36, 48], [36, 49], [36, 51], [36, 53], [36, 54], [36, 55], [36, 56], [36, 58], [36, 59], [36, 60], [36, 64], [36, 74], [36, 77], [36, 78], [36, 84], [36, 85], [36, 86], [36, 88], [37, 39], [37, 42], [37, 43], [37, 44], [37, 45], [37, 47], [37, 48], [37, 51], [37, 55], [37, 56], [37, 62], [37, 63], [37, 64], [37, 65], [37, 66], [37, 70], [37, 71], [37, 75], [37, 76], [37, 81], [38, 51], [38, 55], [38, 57], [38, 58], [38, 60], [38, 66], [38, 68], [38, 82], [38, 88], [39, 40], [39, 41], [39, 46], [39, 47], [39, 48], [39, 59], [39, 61], [39, 65], [39, 72], [39, 73], [39, 76], [39, 83], [39, 87], [40, 41], [40, 49], [40, 50], [40, 58], [40, 60], [40, 61], [40, 63], [40, 67], [40, 75], [40, 76], [40, 78], [40, 79], [40, 82], [40, 83], [41, 42], [41, 44], [41, 47], [41, 51], [41, 55], [41, 60], [41, 61], [41, 66], [41, 71], [41, 73], [41, 82], [41, 83], [42, 45], [42, 48], [42, 52], [42, 56], [42, 57], [42, 58], [42, 60], [42, 65], [42, 70], [42, 74], [42, 86], [42, 88], [43, 45], [43, 51], [43, 53], [43, 57], [43, 59], [43, 61], [43, 62], [43, 64], [43, 69], [43, 83], [43, 86], [43, 89], [44, 45], [44, 55], [44, 58], [44, 68], [44, 73], [44, 75], [44, 78], [44, 82], [44, 86], [44, 87], [45, 50], [45, 54], [45, 55], [45, 57], [45, 58], [45, 67], [45, 71], [45, 75], [45, 78], [45, 79], [45, 82], [46, 48], [46, 49], [46, 50], [46, 56], [46, 62], [46, 64], [46, 68], [46, 77], [46, 78], [46, 80], [46, 83], [46, 84], [46, 85], [47, 48], [47, 50], [47, 64], [47, 73], [47, 74], [47, 78], [47, 80], [47, 81], [47, 85], [47, 86], [47, 87], [48, 51], [48, 58], [48, 60], [48, 63], [48, 70], [48, 73], [48, 74], [48, 80], [48, 81], [48, 84], [49, 56], [49, 58], [49, 59], [49, 70], [49, 81], [49, 84], [49, 87], [49, 89], [50, 56], [50, 60], [50, 64], [50, 67], [50, 74], [50, 76], [50, 77], [50, 78], [50, 87], [51, 55], [51, 61], [51, 66], [51, 67], [51, 69], [51, 70], [51, 73], [51, 75], [51, 85], [52, 57], [52, 65], [52, 66], [52, 76], [52, 89], [53, 55], [53, 63], [53, 65], [53, 67], [53, 68], [53, 75], [53, 89], [54, 56], [54, 57], [54, 60], [54, 61], [54, 62], [54, 66], [54, 72], [54, 73], [54, 79], [54, 82], [54, 84], [54, 89], [55, 56], [55, 59], [55, 60], [55, 65], [55, 67], [55, 70], [55, 74], [55, 78], [55, 80], [55, 83], [55, 85], [55, 88], [55, 89], [56, 61], [56, 63], [56, 65], [56, 71], [56, 72], [56, 73], [56, 82], [56, 88], [57, 58], [57, 60], [57, 62], [57, 63], [57, 73], [57, 76], [57, 77], [57, 78], [57, 81], [57, 84], [58, 59], [58, 62], [58, 64], [58, 67], [58, 68], [58, 75], [58, 76], [58, 81], [58, 86], [59, 64], [59, 68], [59, 69], [59, 73], [59, 75], [59, 76], [59, 78], [59, 89], [60, 61], [60, 65], [60, 67], [60, 72], [60, 74], [60, 80], [60, 81], [60, 82], [60, 84], [60, 88], [61, 63], [61, 64], [61, 66], [61, 68], [61, 71], [61, 75], [61, 76], [61, 77], [61, 78], [61, 88], [62, 65], [62, 67], [62, 72], [62, 73], [62, 84], [62, 87], [62, 89], [63, 64], [63, 69], [63, 70], [63, 74], [63, 76], [63, 77], [63, 82], [63, 84], [63, 86], [63, 88], [64, 70], [64, 73], [64, 78], [64, 81], [64, 84], [64, 86], [65, 67], [65, 73], [65, 74], [65, 81], [65, 84], [66, 72], [66, 77], [66, 83], [67, 69], [67, 71], [67, 72], [67, 73], [67, 76], [67, 81], [67, 87], [67, 89], [68, 71], [68, 75], [68, 76], [68, 77], [68, 82], [68, 85], [69, 73], [69, 78], [69, 80], [69, 82], [70, 71], [70, 82], [70, 84], [70, 87], [70, 88], [70, 89], [71, 73], [71, 74], [71, 81], [71, 83], [71, 86], [71, 87], [72, 87], [72, 89], [73, 74], [73, 77], [73, 78], [73, 80], [73, 81], [73, 87], [73, 88], [74, 75], [74, 76], [74, 87], [75, 85], [76, 81], [76, 82], [76, 83], [76, 84], [76, 85], [76, 89], [77, 81], [77, 82], [77, 83], [77, 85], [77, 89], [78, 81], [78, 87], [78, 89], [79, 82], [79, 83], [79, 84], [79, 85], [79, 86], [79, 88], [80, 82], [80, 89], [81, 82], [81, 83], [81, 85], [81, 86], [81, 89], [82, 87], [82, 89], [83, 88], [83, 89], [84, 86], [87, 88], [87, 89]], "family": "mc_max_independent_set", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-max-independent-set-l5-s3/tests/run.py b/tasks/construct-mc-max-independent-set-l5-s3/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-max-independent-set-l5-s3/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-max-independent-set-l5-s3/tests/test.sh b/tasks/construct-mc-max-independent-set-l5-s3/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-max-independent-set-l5-s3/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-max-independent-set-l5-s4/environment/Dockerfile b/tasks/construct-mc-max-independent-set-l5-s4/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-max-independent-set-l5-s4/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-max-independent-set-l5-s4/environment/instance.json b/tasks/construct-mc-max-independent-set-l5-s4/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..d8f2fbe1572bb75ad70c6e20fcfa735d6298355f --- /dev/null +++ b/tasks/construct-mc-max-independent-set-l5-s4/environment/instance.json @@ -0,0 +1 @@ +{"n": 90, "k": 16, "edges": [[0, 2], [0, 4], [0, 7], [0, 8], [0, 12], [0, 14], [0, 17], [0, 18], [0, 21], [0, 22], [0, 23], [0, 25], [0, 26], [0, 28], [0, 31], [0, 32], [0, 33], [0, 38], [0, 40], [0, 41], [0, 47], [0, 49], [0, 52], [0, 53], [0, 54], [0, 55], [0, 59], [0, 71], [0, 76], [0, 77], [0, 81], [0, 89], [1, 4], [1, 11], [1, 23], [1, 24], [1, 27], [1, 28], [1, 33], [1, 37], [1, 42], [1, 43], [1, 48], [1, 52], [1, 60], [1, 64], [1, 66], [1, 67], [1, 70], [1, 73], [1, 75], [1, 76], [1, 83], [1, 84], [1, 89], [2, 8], [2, 9], [2, 13], [2, 22], [2, 26], [2, 29], [2, 33], [2, 40], [2, 43], [2, 45], [2, 47], [2, 49], [2, 52], [2, 53], [2, 58], [2, 60], [2, 62], [2, 69], [2, 71], [2, 75], [2, 88], [3, 4], [3, 5], [3, 9], [3, 10], [3, 12], [3, 18], [3, 27], [3, 28], [3, 31], [3, 33], [3, 34], [3, 36], [3, 39], [3, 40], [3, 45], [3, 46], [3, 47], [3, 48], [3, 55], [3, 56], [3, 57], [3, 59], [3, 62], [3, 63], [3, 65], [3, 66], [3, 69], [3, 71], [3, 76], [3, 77], [3, 81], [3, 82], [3, 83], [3, 85], [4, 5], [4, 12], [4, 17], [4, 23], [4, 25], [4, 29], [4, 31], [4, 32], [4, 37], [4, 42], [4, 45], [4, 63], [4, 68], [4, 70], [4, 71], [4, 72], [4, 74], [4, 76], [4, 78], [4, 79], [4, 80], [4, 81], [4, 87], [4, 88], [5, 6], [5, 7], [5, 14], [5, 16], [5, 18], [5, 20], [5, 21], [5, 24], [5, 30], [5, 31], [5, 35], [5, 36], [5, 41], [5, 48], [5, 49], [5, 51], [5, 52], [5, 55], [5, 57], [5, 67], [5, 68], [5, 70], [5, 73], [5, 74], [5, 75], [5, 80], [5, 84], [5, 85], [6, 10], [6, 22], [6, 23], [6, 25], [6, 28], [6, 35], [6, 36], [6, 45], [6, 49], [6, 55], [6, 60], [6, 62], [6, 67], [6, 70], [6, 71], [6, 72], [6, 73], [6, 75], [6, 78], [6, 88], [7, 10], [7, 16], [7, 18], [7, 25], [7, 28], [7, 29], [7, 34], [7, 37], [7, 45], [7, 46], [7, 53], [7, 61], [7, 72], [7, 77], [7, 79], [7, 83], [7, 88], [7, 89], [8, 12], [8, 13], [8, 16], [8, 18], [8, 20], [8, 23], [8, 30], [8, 32], [8, 33], [8, 35], [8, 37], [8, 42], [8, 43], [8, 46], [8, 47], [8, 55], [8, 56], [8, 60], [8, 62], [8, 69], [8, 70], [8, 71], [8, 73], [8, 79], [8, 81], [8, 86], [8, 89], [9, 26], [9, 27], [9, 28], [9, 30], [9, 31], [9, 33], [9, 35], [9, 39], [9, 40], [9, 42], [9, 50], [9, 55], [9, 58], [9, 60], [9, 66], [9, 71], [9, 76], [9, 79], [9, 80], [9, 81], [9, 86], [10, 14], [10, 15], [10, 17], [10, 19], [10, 27], [10, 29], [10, 40], [10, 42], [10, 43], [10, 45], [10, 46], [10, 47], [10, 49], [10, 52], [10, 57], [10, 59], [10, 62], [10, 64], [10, 65], [10, 67], [10, 75], [10, 76], [10, 77], [10, 80], [10, 84], [10, 86], [10, 89], [11, 13], [11, 16], [11, 20], [11, 25], [11, 28], [11, 31], [11, 40], [11, 51], [11, 54], [11, 56], [11, 62], [11, 65], [11, 69], [11, 70], [11, 71], [11, 73], [11, 74], [11, 77], [11, 79], [11, 80], [11, 82], [11, 83], [11, 84], [11, 87], [12, 16], [12, 29], [12, 30], [12, 32], [12, 35], [12, 37], [12, 40], [12, 52], [12, 56], [12, 58], [12, 61], [12, 63], [12, 67], [12, 71], [12, 76], [12, 78], [13, 20], [13, 24], [13, 29], [13, 33], [13, 34], [13, 35], [13, 47], [13, 48], [13, 52], [13, 55], [13, 56], [13, 59], [13, 63], [13, 69], [13, 76], [13, 78], [13, 79], [13, 83], [13, 89], [14, 19], [14, 22], [14, 25], [14, 26], [14, 29], [14, 33], [14, 34], [14, 38], [14, 48], [14, 49], [14, 53], [14, 56], [14, 61], [14, 78], [14, 81], [14, 82], [14, 87], [14, 88], [14, 89], [15, 16], [15, 19], [15, 21], [15, 27], [15, 28], [15, 30], [15, 32], [15, 44], [15, 47], [15, 49], [15, 51], [15, 55], [15, 57], [15, 60], [15, 63], [15, 65], [15, 66], [15, 70], [15, 71], [15, 75], [15, 81], [15, 85], [15, 87], [15, 88], [16, 20], [16, 21], [16, 23], [16, 24], [16, 25], [16, 27], [16, 30], [16, 31], [16, 33], [16, 35], [16, 38], [16, 39], [16, 41], [16, 45], [16, 50], [16, 53], [16, 56], [16, 59], [16, 60], [16, 61], [16, 68], [16, 69], [16, 70], [16, 71], [16, 72], [16, 75], [16, 83], [16, 84], [16, 87], [16, 88], [17, 19], [17, 21], [17, 22], [17, 24], [17, 31], [17, 34], [17, 36], [17, 43], [17, 44], [17, 50], [17, 51], [17, 54], [17, 56], [17, 57], [17, 69], [17, 73], [17, 78], [17, 82], [17, 87], [18, 27], [18, 31], [18, 33], [18, 36], [18, 37], [18, 40], [18, 41], [18, 42], [18, 44], [18, 46], [18, 54], [18, 55], [18, 59], [18, 60], [18, 63], [18, 68], [18, 69], [18, 72], [18, 78], [18, 80], [18, 81], [18, 88], [19, 25], [19, 29], [19, 33], [19, 35], [19, 37], [19, 39], [19, 54], [19, 56], [19, 58], [19, 59], [19, 62], [19, 64], [19, 65], [19, 70], [19, 74], [19, 81], [19, 82], [19, 83], [19, 89], [20, 26], [20, 28], [20, 29], [20, 31], [20, 35], [20, 37], [20, 48], [20, 53], [20, 54], [20, 63], [20, 67], [20, 74], [20, 75], [20, 77], [20, 79], [20, 87], [21, 25], [21, 27], [21, 29], [21, 32], [21, 38], [21, 39], [21, 42], [21, 45], [21, 46], [21, 50], [21, 52], [21, 56], [21, 60], [21, 64], [21, 67], [21, 70], [21, 71], [21, 72], [21, 76], [21, 83], [21, 85], [22, 25], [22, 28], [22, 30], [22, 32], [22, 42], [22, 48], [22, 49], [22, 50], [22, 51], [22, 53], [22, 55], [22, 56], [22, 57], [22, 63], [22, 66], [22, 68], [22, 71], [22, 72], [22, 73], [22, 74], [22, 77], [22, 78], [22, 79], [22, 80], [22, 81], [22, 88], [23, 24], [23, 27], [23, 28], [23, 36], [23, 42], [23, 48], [23, 51], [23, 53], [23, 54], [23, 63], [23, 64], [23, 66], [23, 67], [23, 69], [23, 72], [23, 78], [23, 80], [23, 82], [23, 83], [24, 32], [24, 39], [24, 49], [24, 55], [24, 61], [24, 63], [24, 65], [24, 73], [24, 75], [24, 77], [24, 82], [24, 84], [24, 89], [25, 27], [25, 28], [25, 29], [25, 33], [25, 39], [25, 41], [25, 43], [25, 44], [25, 47], [25, 48], [25, 49], [25, 50], [25, 52], [25, 54], [25, 56], [25, 57], [25, 58], [25, 59], [25, 62], [25, 63], [25, 65], [25, 67], [25, 71], [25, 78], [25, 80], [25, 81], [25, 83], [25, 85], [26, 27], [26, 30], [26, 31], [26, 33], [26, 36], [26, 38], [26, 41], [26, 43], [26, 45], [26, 52], [26, 56], [26, 57], [26, 63], [26, 64], [26, 69], [26, 71], [26, 74], [26, 75], [26, 80], [26, 85], [27, 37], [27, 39], [27, 45], [27, 46], [27, 51], [27, 54], [27, 58], [27, 60], [27, 61], [27, 62], [27, 67], [27, 68], [27, 76], [27, 78], [27, 80], [27, 85], [27, 86], [27, 88], [27, 89], [28, 29], [28, 30], [28, 31], [28, 33], [28, 35], [28, 42], [28, 43], [28, 44], [28, 53], [28, 63], [28, 66], [28, 71], [28, 74], [28, 78], [28, 81], [28, 82], [28, 83], [28, 86], [29, 30], [29, 31], [29, 34], [29, 42], [29, 53], [29, 55], [29, 56], [29, 61], [29, 67], [29, 71], [29, 76], [29, 81], [29, 83], [29, 85], [30, 33], [30, 38], [30, 40], [30, 41], [30, 49], [30, 51], [30, 61], [30, 68], [30, 71], [30, 72], [30, 80], [30, 89], [31, 37], [31, 38], [31, 39], [31, 41], [31, 44], [31, 46], [31, 49], [31, 50], [31, 64], [31, 65], [31, 72], [31, 75], [31, 80], [31, 82], [31, 89], [32, 33], [32, 54], [32, 55], [32, 57], [32, 60], [32, 63], [32, 65], [32, 66], [32, 68], [32, 70], [32, 71], [32, 72], [32, 74], [32, 87], [32, 88], [33, 44], [33, 47], [33, 51], [33, 54], [33, 56], [33, 57], [33, 64], [33, 65], [33, 67], [33, 69], [33, 70], [33, 75], [33, 78], [33, 79], [33, 80], [33, 86], [33, 89], [34, 39], [34, 41], [34, 42], [34, 43], [34, 45], [34, 47], [34, 48], [34, 52], [34, 54], [34, 56], [34, 60], [34, 61], [34, 62], [34, 65], [34, 66], [34, 69], [34, 72], [34, 75], [34, 77], [34, 78], [34, 85], [34, 89], [35, 37], [35, 42], [35, 43], [35, 47], [35, 48], [35, 54], [35, 55], [35, 59], [35, 60], [35, 61], [35, 65], [35, 74], [35, 79], [35, 84], [35, 85], [35, 87], [36, 37], [36, 43], [36, 46], [36, 49], [36, 52], [36, 53], [36, 57], [36, 59], [36, 66], [36, 69], [36, 70], [36, 72], [36, 73], [36, 76], [36, 77], [36, 80], [36, 85], [36, 88], [37, 38], [37, 42], [37, 46], [37, 48], [37, 49], [37, 50], [37, 52], [37, 53], [37, 54], [37, 56], [37, 57], [37, 61], [37, 65], [37, 71], [37, 78], [37, 82], [37, 86], [38, 45], [38, 48], [38, 49], [38, 56], [38, 58], [38, 65], [38, 68], [38, 71], [38, 83], [38, 84], [38, 86], [39, 40], [39, 42], [39, 44], [39, 45], [39, 55], [39, 59], [39, 61], [39, 62], [39, 67], [39, 71], [39, 73], [39, 78], [39, 81], [39, 89], [40, 46], [40, 47], [40, 50], [40, 51], [40, 52], [40, 56], [40, 57], [40, 58], [40, 62], [40, 65], [40, 67], [40, 70], [40, 71], [40, 74], [40, 75], [40, 79], [40, 84], [40, 85], [40, 87], [40, 88], [40, 89], [41, 45], [41, 47], [41, 53], [41, 55], [41, 58], [41, 63], [41, 70], [41, 76], [41, 77], [41, 79], [41, 84], [41, 86], [41, 89], [42, 45], [42, 47], [42, 48], [42, 50], [42, 55], [42, 62], [42, 65], [42, 67], [42, 74], [42, 78], [42, 82], [42, 87], [42, 89], [43, 47], [43, 49], [43, 54], [43, 58], [43, 60], [43, 62], [43, 69], [43, 70], [43, 77], [43, 84], [43, 85], [43, 86], [43, 87], [43, 88], [44, 47], [44, 51], [44, 60], [44, 61], [44, 62], [44, 63], [44, 68], [44, 71], [44, 86], [45, 50], [45, 51], [45, 52], [45, 55], [45, 59], [45, 65], [45, 66], [45, 71], [45, 74], [45, 75], [45, 81], [45, 83], [45, 84], [45, 85], [45, 86], [46, 47], [46, 48], [46, 52], [46, 54], [46, 56], [46, 57], [46, 58], [46, 59], [46, 60], [46, 61], [46, 69], [46, 71], [46, 72], [46, 84], [46, 88], [46, 89], [47, 49], [47, 52], [47, 56], [47, 57], [47, 61], [47, 62], [47, 63], [47, 72], [47, 74], [47, 83], [47, 84], [47, 85], [47, 87], [48, 51], [48, 53], [48, 61], [48, 64], [48, 70], [48, 71], [48, 73], [48, 75], [48, 78], [48, 79], [48, 84], [48, 86], [48, 87], [48, 89], [49, 57], [49, 60], [49, 64], [49, 72], [49, 77], [49, 79], [49, 83], [49, 86], [50, 54], [50, 58], [50, 60], [50, 70], [50, 73], [50, 77], [50, 79], [51, 57], [51, 59], [51, 60], [51, 61], [51, 63], [51, 66], [51, 67], [51, 70], [51, 72], [51, 73], [51, 84], [51, 87], [52, 54], [52, 56], [52, 61], [52, 63], [52, 65], [52, 66], [52, 68], [52, 69], [52, 70], [52, 74], [52, 77], [52, 81], [52, 89], [53, 54], [53, 64], [53, 69], [53, 76], [53, 78], [53, 79], [53, 80], [53, 82], [53, 85], [53, 87], [53, 89], [54, 55], [54, 59], [54, 64], [54, 66], [54, 67], [54, 70], [54, 82], [54, 85], [54, 86], [55, 58], [55, 65], [55, 67], [55, 72], [55, 77], [55, 81], [55, 84], [55, 85], [56, 59], [56, 63], [56, 66], [56, 68], [56, 72], [56, 74], [56, 78], [56, 86], [56, 88], [56, 89], [57, 61], [57, 63], [57, 70], [57, 80], [57, 81], [57, 82], [57, 83], [57, 85], [58, 62], [58, 63], [58, 67], [58, 70], [58, 71], [58, 73], [58, 75], [58, 77], [58, 78], [58, 84], [58, 85], [58, 89], [59, 68], [59, 70], [59, 73], [59, 74], [59, 78], [59, 82], [59, 83], [59, 85], [59, 86], [59, 87], [59, 88], [60, 61], [60, 65], [60, 72], [60, 73], [60, 76], [60, 79], [60, 86], [60, 88], [61, 63], [61, 67], [61, 69], [61, 70], [61, 71], [61, 72], [61, 80], [61, 81], [61, 87], [62, 63], [62, 66], [62, 69], [62, 75], [62, 82], [62, 86], [63, 65], [63, 67], [63, 68], [63, 73], [63, 75], [63, 79], [63, 80], [63, 81], [63, 86], [63, 89], [64, 67], [64, 70], [64, 71], [64, 73], [64, 76], [64, 77], [64, 79], [65, 69], [65, 72], [65, 79], [65, 80], [66, 70], [66, 75], [66, 79], [66, 82], [66, 83], [66, 85], [66, 86], [66, 87], [66, 88], [67, 70], [67, 73], [67, 76], [67, 77], [67, 81], [67, 83], [67, 84], [67, 85], [67, 86], [67, 87], [68, 69], [68, 71], [68, 72], [68, 79], [68, 84], [68, 87], [68, 89], [69, 70], [69, 71], [69, 72], [69, 75], [69, 76], [69, 81], [69, 83], [70, 78], [70, 80], [70, 81], [70, 82], [70, 86], [70, 88], [71, 74], [71, 80], [71, 82], [71, 84], [72, 79], [72, 80], [72, 82], [72, 85], [72, 87], [73, 74], [73, 78], [73, 81], [73, 86], [73, 89], [74, 83], [74, 85], [74, 86], [74, 89], [75, 78], [75, 80], [75, 83], [75, 86], [75, 87], [76, 77], [76, 83], [76, 87], [76, 88], [77, 85], [77, 89], [78, 83], [78, 84], [78, 87], [78, 89], [79, 81], [79, 85], [79, 89], [80, 81], [81, 82], [81, 84], [81, 85], [82, 83], [82, 84], [82, 85], [83, 88], [83, 89], [84, 86], [84, 89], [85, 87], [85, 88], [87, 89]], "family": "mc_max_independent_set", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-max-independent-set-l5-s4/solution/solve.sh b/tasks/construct-mc-max-independent-set-l5-s4/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..2b6db5378c32928971a3f3103eb11c1e3c88fefd --- /dev/null +++ b/tasks/construct-mc-max-independent-set-l5-s4/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"independent_set": [2, 4, 6, 7, 14, 20, 27, 30, 44, 50, 57, 59, 64, 65, 66, 84]} +RLMATH_EOF diff --git a/tasks/construct-mc-max-independent-set-l5-s4/tests/check.py b/tasks/construct-mc-max-independent-set-l5-s4/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..adce413e8578d996549583b990e4ff559f38ed41 --- /dev/null +++ b/tasks/construct-mc-max-independent-set-l5-s4/tests/check.py @@ -0,0 +1,18 @@ +"""Independent set of size >= k in a given graph (MathConstraint max_independent_set, CC-BY-4.0).""" +import itertools + +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["n"], inst["k"] + S = int_list(ans.get("independent_set"), None, 0, n - 1, "independent_set") + if len(set(S)) != len(S): + raise Invalid("repeated vertex") + if len(S) < k: + raise Invalid(f"set has {len(S)} vertices, need at least {k}") + E = {(u, v) for u, v in inst["edges"]} + for u, v in itertools.combinations(sorted(S), 2): + if (u, v) in E: + raise Invalid(f"vertices {u} and {v} are adjacent") + return None, {"size": len(S)} diff --git a/tasks/construct-mc-max-independent-set-l5-s4/tests/instance.json b/tasks/construct-mc-max-independent-set-l5-s4/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..d8f2fbe1572bb75ad70c6e20fcfa735d6298355f --- /dev/null +++ b/tasks/construct-mc-max-independent-set-l5-s4/tests/instance.json @@ -0,0 +1 @@ +{"n": 90, "k": 16, "edges": [[0, 2], [0, 4], [0, 7], [0, 8], [0, 12], [0, 14], [0, 17], [0, 18], [0, 21], [0, 22], [0, 23], [0, 25], [0, 26], [0, 28], [0, 31], [0, 32], [0, 33], [0, 38], [0, 40], [0, 41], [0, 47], [0, 49], [0, 52], [0, 53], [0, 54], [0, 55], [0, 59], [0, 71], [0, 76], [0, 77], [0, 81], [0, 89], [1, 4], [1, 11], [1, 23], [1, 24], [1, 27], [1, 28], [1, 33], [1, 37], [1, 42], [1, 43], [1, 48], [1, 52], [1, 60], [1, 64], [1, 66], [1, 67], [1, 70], [1, 73], [1, 75], [1, 76], [1, 83], [1, 84], [1, 89], [2, 8], [2, 9], [2, 13], [2, 22], [2, 26], [2, 29], [2, 33], [2, 40], [2, 43], [2, 45], [2, 47], [2, 49], [2, 52], [2, 53], [2, 58], [2, 60], [2, 62], [2, 69], [2, 71], [2, 75], [2, 88], [3, 4], [3, 5], [3, 9], [3, 10], [3, 12], [3, 18], [3, 27], [3, 28], [3, 31], [3, 33], [3, 34], [3, 36], [3, 39], [3, 40], [3, 45], [3, 46], [3, 47], [3, 48], [3, 55], [3, 56], [3, 57], [3, 59], [3, 62], [3, 63], [3, 65], [3, 66], [3, 69], [3, 71], [3, 76], [3, 77], [3, 81], [3, 82], [3, 83], [3, 85], [4, 5], [4, 12], [4, 17], [4, 23], [4, 25], [4, 29], [4, 31], [4, 32], [4, 37], [4, 42], [4, 45], [4, 63], [4, 68], [4, 70], [4, 71], [4, 72], [4, 74], [4, 76], [4, 78], [4, 79], [4, 80], [4, 81], [4, 87], [4, 88], [5, 6], [5, 7], [5, 14], [5, 16], [5, 18], [5, 20], [5, 21], [5, 24], [5, 30], [5, 31], [5, 35], [5, 36], [5, 41], [5, 48], [5, 49], [5, 51], [5, 52], [5, 55], [5, 57], [5, 67], [5, 68], [5, 70], [5, 73], [5, 74], [5, 75], [5, 80], [5, 84], [5, 85], [6, 10], [6, 22], [6, 23], [6, 25], [6, 28], [6, 35], [6, 36], [6, 45], [6, 49], [6, 55], [6, 60], [6, 62], [6, 67], [6, 70], [6, 71], [6, 72], [6, 73], [6, 75], [6, 78], [6, 88], [7, 10], [7, 16], [7, 18], [7, 25], [7, 28], [7, 29], [7, 34], [7, 37], [7, 45], [7, 46], [7, 53], [7, 61], [7, 72], [7, 77], [7, 79], [7, 83], [7, 88], [7, 89], [8, 12], [8, 13], [8, 16], [8, 18], [8, 20], [8, 23], [8, 30], [8, 32], [8, 33], [8, 35], [8, 37], [8, 42], [8, 43], [8, 46], [8, 47], [8, 55], [8, 56], [8, 60], [8, 62], [8, 69], [8, 70], [8, 71], [8, 73], [8, 79], [8, 81], [8, 86], [8, 89], [9, 26], [9, 27], [9, 28], [9, 30], [9, 31], [9, 33], [9, 35], [9, 39], [9, 40], [9, 42], [9, 50], [9, 55], [9, 58], [9, 60], [9, 66], [9, 71], [9, 76], [9, 79], [9, 80], [9, 81], [9, 86], [10, 14], [10, 15], [10, 17], [10, 19], [10, 27], [10, 29], [10, 40], [10, 42], [10, 43], [10, 45], [10, 46], [10, 47], [10, 49], [10, 52], [10, 57], [10, 59], [10, 62], [10, 64], [10, 65], [10, 67], [10, 75], [10, 76], [10, 77], [10, 80], [10, 84], [10, 86], [10, 89], [11, 13], [11, 16], [11, 20], [11, 25], [11, 28], [11, 31], [11, 40], [11, 51], [11, 54], [11, 56], [11, 62], [11, 65], [11, 69], [11, 70], [11, 71], [11, 73], [11, 74], [11, 77], [11, 79], [11, 80], [11, 82], [11, 83], [11, 84], [11, 87], [12, 16], [12, 29], [12, 30], [12, 32], [12, 35], [12, 37], [12, 40], [12, 52], [12, 56], [12, 58], [12, 61], [12, 63], [12, 67], [12, 71], [12, 76], [12, 78], [13, 20], [13, 24], [13, 29], [13, 33], [13, 34], [13, 35], [13, 47], [13, 48], [13, 52], [13, 55], [13, 56], [13, 59], [13, 63], [13, 69], [13, 76], [13, 78], [13, 79], [13, 83], [13, 89], [14, 19], [14, 22], [14, 25], [14, 26], [14, 29], [14, 33], [14, 34], [14, 38], [14, 48], [14, 49], [14, 53], [14, 56], [14, 61], [14, 78], [14, 81], [14, 82], [14, 87], [14, 88], [14, 89], [15, 16], [15, 19], [15, 21], [15, 27], [15, 28], [15, 30], [15, 32], [15, 44], [15, 47], [15, 49], [15, 51], [15, 55], [15, 57], [15, 60], [15, 63], [15, 65], [15, 66], [15, 70], [15, 71], [15, 75], [15, 81], [15, 85], [15, 87], [15, 88], [16, 20], [16, 21], [16, 23], [16, 24], [16, 25], [16, 27], [16, 30], [16, 31], [16, 33], [16, 35], [16, 38], [16, 39], [16, 41], [16, 45], [16, 50], [16, 53], [16, 56], [16, 59], [16, 60], [16, 61], [16, 68], [16, 69], [16, 70], [16, 71], [16, 72], [16, 75], [16, 83], [16, 84], [16, 87], [16, 88], [17, 19], [17, 21], [17, 22], [17, 24], [17, 31], [17, 34], [17, 36], [17, 43], [17, 44], [17, 50], [17, 51], [17, 54], [17, 56], [17, 57], [17, 69], [17, 73], [17, 78], [17, 82], [17, 87], [18, 27], [18, 31], [18, 33], [18, 36], [18, 37], [18, 40], [18, 41], [18, 42], [18, 44], [18, 46], [18, 54], [18, 55], [18, 59], [18, 60], [18, 63], [18, 68], [18, 69], [18, 72], [18, 78], [18, 80], [18, 81], [18, 88], [19, 25], [19, 29], [19, 33], [19, 35], [19, 37], [19, 39], [19, 54], [19, 56], [19, 58], [19, 59], [19, 62], [19, 64], [19, 65], [19, 70], [19, 74], [19, 81], [19, 82], [19, 83], [19, 89], [20, 26], [20, 28], [20, 29], [20, 31], [20, 35], [20, 37], [20, 48], [20, 53], [20, 54], [20, 63], [20, 67], [20, 74], [20, 75], [20, 77], [20, 79], [20, 87], [21, 25], [21, 27], [21, 29], [21, 32], [21, 38], [21, 39], [21, 42], [21, 45], [21, 46], [21, 50], [21, 52], [21, 56], [21, 60], [21, 64], [21, 67], [21, 70], [21, 71], [21, 72], [21, 76], [21, 83], [21, 85], [22, 25], [22, 28], [22, 30], [22, 32], [22, 42], [22, 48], [22, 49], [22, 50], [22, 51], [22, 53], [22, 55], [22, 56], [22, 57], [22, 63], [22, 66], [22, 68], [22, 71], [22, 72], [22, 73], [22, 74], [22, 77], [22, 78], [22, 79], [22, 80], [22, 81], [22, 88], [23, 24], [23, 27], [23, 28], [23, 36], [23, 42], [23, 48], [23, 51], [23, 53], [23, 54], [23, 63], [23, 64], [23, 66], [23, 67], [23, 69], [23, 72], [23, 78], [23, 80], [23, 82], [23, 83], [24, 32], [24, 39], [24, 49], [24, 55], [24, 61], [24, 63], [24, 65], [24, 73], [24, 75], [24, 77], [24, 82], [24, 84], [24, 89], [25, 27], [25, 28], [25, 29], [25, 33], [25, 39], [25, 41], [25, 43], [25, 44], [25, 47], [25, 48], [25, 49], [25, 50], [25, 52], [25, 54], [25, 56], [25, 57], [25, 58], [25, 59], [25, 62], [25, 63], [25, 65], [25, 67], [25, 71], [25, 78], [25, 80], [25, 81], [25, 83], [25, 85], [26, 27], [26, 30], [26, 31], [26, 33], [26, 36], [26, 38], [26, 41], [26, 43], [26, 45], [26, 52], [26, 56], [26, 57], [26, 63], [26, 64], [26, 69], [26, 71], [26, 74], [26, 75], [26, 80], [26, 85], [27, 37], [27, 39], [27, 45], [27, 46], [27, 51], [27, 54], [27, 58], [27, 60], [27, 61], [27, 62], [27, 67], [27, 68], [27, 76], [27, 78], [27, 80], [27, 85], [27, 86], [27, 88], [27, 89], [28, 29], [28, 30], [28, 31], [28, 33], [28, 35], [28, 42], [28, 43], [28, 44], [28, 53], [28, 63], [28, 66], [28, 71], [28, 74], [28, 78], [28, 81], [28, 82], [28, 83], [28, 86], [29, 30], [29, 31], [29, 34], [29, 42], [29, 53], [29, 55], [29, 56], [29, 61], [29, 67], [29, 71], [29, 76], [29, 81], [29, 83], [29, 85], [30, 33], [30, 38], [30, 40], [30, 41], [30, 49], [30, 51], [30, 61], [30, 68], [30, 71], [30, 72], [30, 80], [30, 89], [31, 37], [31, 38], [31, 39], [31, 41], [31, 44], [31, 46], [31, 49], [31, 50], [31, 64], [31, 65], [31, 72], [31, 75], [31, 80], [31, 82], [31, 89], [32, 33], [32, 54], [32, 55], [32, 57], [32, 60], [32, 63], [32, 65], [32, 66], [32, 68], [32, 70], [32, 71], [32, 72], [32, 74], [32, 87], [32, 88], [33, 44], [33, 47], [33, 51], [33, 54], [33, 56], [33, 57], [33, 64], [33, 65], [33, 67], [33, 69], [33, 70], [33, 75], [33, 78], [33, 79], [33, 80], [33, 86], [33, 89], [34, 39], [34, 41], [34, 42], [34, 43], [34, 45], [34, 47], [34, 48], [34, 52], [34, 54], [34, 56], [34, 60], [34, 61], [34, 62], [34, 65], [34, 66], [34, 69], [34, 72], [34, 75], [34, 77], [34, 78], [34, 85], [34, 89], [35, 37], [35, 42], [35, 43], [35, 47], [35, 48], [35, 54], [35, 55], [35, 59], [35, 60], [35, 61], [35, 65], [35, 74], [35, 79], [35, 84], [35, 85], [35, 87], [36, 37], [36, 43], [36, 46], [36, 49], [36, 52], [36, 53], [36, 57], [36, 59], [36, 66], [36, 69], [36, 70], [36, 72], [36, 73], [36, 76], [36, 77], [36, 80], [36, 85], [36, 88], [37, 38], [37, 42], [37, 46], [37, 48], [37, 49], [37, 50], [37, 52], [37, 53], [37, 54], [37, 56], [37, 57], [37, 61], [37, 65], [37, 71], [37, 78], [37, 82], [37, 86], [38, 45], [38, 48], [38, 49], [38, 56], [38, 58], [38, 65], [38, 68], [38, 71], [38, 83], [38, 84], [38, 86], [39, 40], [39, 42], [39, 44], [39, 45], [39, 55], [39, 59], [39, 61], [39, 62], [39, 67], [39, 71], [39, 73], [39, 78], [39, 81], [39, 89], [40, 46], [40, 47], [40, 50], [40, 51], [40, 52], [40, 56], [40, 57], [40, 58], [40, 62], [40, 65], [40, 67], [40, 70], [40, 71], [40, 74], [40, 75], [40, 79], [40, 84], [40, 85], [40, 87], [40, 88], [40, 89], [41, 45], [41, 47], [41, 53], [41, 55], [41, 58], [41, 63], [41, 70], [41, 76], [41, 77], [41, 79], [41, 84], [41, 86], [41, 89], [42, 45], [42, 47], [42, 48], [42, 50], [42, 55], [42, 62], [42, 65], [42, 67], [42, 74], [42, 78], [42, 82], [42, 87], [42, 89], [43, 47], [43, 49], [43, 54], [43, 58], [43, 60], [43, 62], [43, 69], [43, 70], [43, 77], [43, 84], [43, 85], [43, 86], [43, 87], [43, 88], [44, 47], [44, 51], [44, 60], [44, 61], [44, 62], [44, 63], [44, 68], [44, 71], [44, 86], [45, 50], [45, 51], [45, 52], [45, 55], [45, 59], [45, 65], [45, 66], [45, 71], [45, 74], [45, 75], [45, 81], [45, 83], [45, 84], [45, 85], [45, 86], [46, 47], [46, 48], [46, 52], [46, 54], [46, 56], [46, 57], [46, 58], [46, 59], [46, 60], [46, 61], [46, 69], [46, 71], [46, 72], [46, 84], [46, 88], [46, 89], [47, 49], [47, 52], [47, 56], [47, 57], [47, 61], [47, 62], [47, 63], [47, 72], [47, 74], [47, 83], [47, 84], [47, 85], [47, 87], [48, 51], [48, 53], [48, 61], [48, 64], [48, 70], [48, 71], [48, 73], [48, 75], [48, 78], [48, 79], [48, 84], [48, 86], [48, 87], [48, 89], [49, 57], [49, 60], [49, 64], [49, 72], [49, 77], [49, 79], [49, 83], [49, 86], [50, 54], [50, 58], [50, 60], [50, 70], [50, 73], [50, 77], [50, 79], [51, 57], [51, 59], [51, 60], [51, 61], [51, 63], [51, 66], [51, 67], [51, 70], [51, 72], [51, 73], [51, 84], [51, 87], [52, 54], [52, 56], [52, 61], [52, 63], [52, 65], [52, 66], [52, 68], [52, 69], [52, 70], [52, 74], [52, 77], [52, 81], [52, 89], [53, 54], [53, 64], [53, 69], [53, 76], [53, 78], [53, 79], [53, 80], [53, 82], [53, 85], [53, 87], [53, 89], [54, 55], [54, 59], [54, 64], [54, 66], [54, 67], [54, 70], [54, 82], [54, 85], [54, 86], [55, 58], [55, 65], [55, 67], [55, 72], [55, 77], [55, 81], [55, 84], [55, 85], [56, 59], [56, 63], [56, 66], [56, 68], [56, 72], [56, 74], [56, 78], [56, 86], [56, 88], [56, 89], [57, 61], [57, 63], [57, 70], [57, 80], [57, 81], [57, 82], [57, 83], [57, 85], [58, 62], [58, 63], [58, 67], [58, 70], [58, 71], [58, 73], [58, 75], [58, 77], [58, 78], [58, 84], [58, 85], [58, 89], [59, 68], [59, 70], [59, 73], [59, 74], [59, 78], [59, 82], [59, 83], [59, 85], [59, 86], [59, 87], [59, 88], [60, 61], [60, 65], [60, 72], [60, 73], [60, 76], [60, 79], [60, 86], [60, 88], [61, 63], [61, 67], [61, 69], [61, 70], [61, 71], [61, 72], [61, 80], [61, 81], [61, 87], [62, 63], [62, 66], [62, 69], [62, 75], [62, 82], [62, 86], [63, 65], [63, 67], [63, 68], [63, 73], [63, 75], [63, 79], [63, 80], [63, 81], [63, 86], [63, 89], [64, 67], [64, 70], [64, 71], [64, 73], [64, 76], [64, 77], [64, 79], [65, 69], [65, 72], [65, 79], [65, 80], [66, 70], [66, 75], [66, 79], [66, 82], [66, 83], [66, 85], [66, 86], [66, 87], [66, 88], [67, 70], [67, 73], [67, 76], [67, 77], [67, 81], [67, 83], [67, 84], [67, 85], [67, 86], [67, 87], [68, 69], [68, 71], [68, 72], [68, 79], [68, 84], [68, 87], [68, 89], [69, 70], [69, 71], [69, 72], [69, 75], [69, 76], [69, 81], [69, 83], [70, 78], [70, 80], [70, 81], [70, 82], [70, 86], [70, 88], [71, 74], [71, 80], [71, 82], [71, 84], [72, 79], [72, 80], [72, 82], [72, 85], [72, 87], [73, 74], [73, 78], [73, 81], [73, 86], [73, 89], [74, 83], [74, 85], [74, 86], [74, 89], [75, 78], [75, 80], [75, 83], [75, 86], [75, 87], [76, 77], [76, 83], [76, 87], [76, 88], [77, 85], [77, 89], [78, 83], [78, 84], [78, 87], [78, 89], [79, 81], [79, 85], [79, 89], [80, 81], [81, 82], [81, 84], [81, 85], [82, 83], [82, 84], [82, 85], [83, 88], [83, 89], [84, 86], [84, 89], [85, 87], [85, 88], [87, 89]], "family": "mc_max_independent_set", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-max-independent-set-l5-s4/tests/run.py b/tasks/construct-mc-max-independent-set-l5-s4/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-max-independent-set-l5-s4/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-max-independent-set-l5-s4/tests/test.sh b/tasks/construct-mc-max-independent-set-l5-s4/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-max-independent-set-l5-s4/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-number-partitioning-l1-s1/environment/Dockerfile b/tasks/construct-mc-number-partitioning-l1-s1/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-number-partitioning-l1-s1/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-number-partitioning-l1-s1/environment/instance.json b/tasks/construct-mc-number-partitioning-l1-s1/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..f70e323ac9b932193ab14af71f900ef3365c5fe2 --- /dev/null +++ b/tasks/construct-mc-number-partitioning-l1-s1/environment/instance.json @@ -0,0 +1 @@ +{"n": 12, "k": 6, "family": "mc_number_partitioning", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-number-partitioning-l1-s1/solution/solve.sh b/tasks/construct-mc-number-partitioning-l1-s1/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..d07ccc4baab6e1bbb7f2f516695b5a7e96ac6560 --- /dev/null +++ b/tasks/construct-mc-number-partitioning-l1-s1/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"x": [0, 1, 2, 3, 4, 5, 5, 4, 3, 2, 1, 0]} +RLMATH_EOF diff --git a/tasks/construct-mc-number-partitioning-l1-s1/tests/check.py b/tasks/construct-mc-number-partitioning-l1-s1/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..67793721db8ba7d3c3979ea0e1e07091491ffa7e --- /dev/null +++ b/tasks/construct-mc-number-partitioning-l1-s1/tests/check.py @@ -0,0 +1,14 @@ +"""Partition {1..n} into k subsets of equal sum (MathConstraint number_partitioning, CC-BY-4.0).""" +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["n"], inst["k"] + x = int_list(ans.get("x"), n, 0, k - 1, "x") + target = n * (n + 1) // 2 // k + sums = [0] * k + for i, s in enumerate(x): + sums[s] += i + 1 + if any(t != target for t in sums): + raise Invalid(f"subset sums {sums} are not all {target}") + return None, {} diff --git a/tasks/construct-mc-number-partitioning-l1-s1/tests/instance.json b/tasks/construct-mc-number-partitioning-l1-s1/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..f70e323ac9b932193ab14af71f900ef3365c5fe2 --- /dev/null +++ b/tasks/construct-mc-number-partitioning-l1-s1/tests/instance.json @@ -0,0 +1 @@ +{"n": 12, "k": 6, "family": "mc_number_partitioning", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-number-partitioning-l1-s1/tests/run.py b/tasks/construct-mc-number-partitioning-l1-s1/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-number-partitioning-l1-s1/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-number-partitioning-l1-s1/tests/test.sh b/tasks/construct-mc-number-partitioning-l1-s1/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-number-partitioning-l1-s1/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-number-partitioning-l1-s6/environment/Dockerfile b/tasks/construct-mc-number-partitioning-l1-s6/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-number-partitioning-l1-s6/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-number-partitioning-l1-s6/environment/instance.json b/tasks/construct-mc-number-partitioning-l1-s6/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..62f645e7071de35c3b591d3b4c395f62ebd01f12 --- /dev/null +++ b/tasks/construct-mc-number-partitioning-l1-s6/environment/instance.json @@ -0,0 +1 @@ +{"n": 11, "k": 3, "family": "mc_number_partitioning", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-number-partitioning-l1-s6/solution/solve.sh b/tasks/construct-mc-number-partitioning-l1-s6/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..45cb054e375061a737460fbc49d2fa40067f3f59 --- /dev/null +++ b/tasks/construct-mc-number-partitioning-l1-s6/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"x": [1, 2, 2, 1, 0, 0, 1, 2, 2, 1, 0]} +RLMATH_EOF diff --git a/tasks/construct-mc-number-partitioning-l1-s6/tests/check.py b/tasks/construct-mc-number-partitioning-l1-s6/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..67793721db8ba7d3c3979ea0e1e07091491ffa7e --- /dev/null +++ b/tasks/construct-mc-number-partitioning-l1-s6/tests/check.py @@ -0,0 +1,14 @@ +"""Partition {1..n} into k subsets of equal sum (MathConstraint number_partitioning, CC-BY-4.0).""" +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["n"], inst["k"] + x = int_list(ans.get("x"), n, 0, k - 1, "x") + target = n * (n + 1) // 2 // k + sums = [0] * k + for i, s in enumerate(x): + sums[s] += i + 1 + if any(t != target for t in sums): + raise Invalid(f"subset sums {sums} are not all {target}") + return None, {} diff --git a/tasks/construct-mc-number-partitioning-l1-s6/tests/instance.json b/tasks/construct-mc-number-partitioning-l1-s6/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..62f645e7071de35c3b591d3b4c395f62ebd01f12 --- /dev/null +++ b/tasks/construct-mc-number-partitioning-l1-s6/tests/instance.json @@ -0,0 +1 @@ +{"n": 11, "k": 3, "family": "mc_number_partitioning", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-number-partitioning-l1-s6/tests/run.py b/tasks/construct-mc-number-partitioning-l1-s6/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-number-partitioning-l1-s6/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-number-partitioning-l1-s6/tests/test.sh b/tasks/construct-mc-number-partitioning-l1-s6/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-number-partitioning-l1-s6/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-number-partitioning-l4-s0/environment/Dockerfile b/tasks/construct-mc-number-partitioning-l4-s0/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-number-partitioning-l4-s0/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-number-partitioning-l4-s0/environment/instance.json b/tasks/construct-mc-number-partitioning-l4-s0/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..24f51d0763b1e8c4764e2ac08f7e4433c58af0ec --- /dev/null +++ b/tasks/construct-mc-number-partitioning-l4-s0/environment/instance.json @@ -0,0 +1 @@ +{"n": 30, "k": 3, "family": "mc_number_partitioning", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-number-partitioning-l4-s0/solution/solve.sh b/tasks/construct-mc-number-partitioning-l4-s0/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..561825804fef64df4190e7ad02eacf4f90635ade --- /dev/null +++ b/tasks/construct-mc-number-partitioning-l4-s0/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"x": [0, 1, 2, 2, 1, 0, 0, 1, 2, 2, 1, 0, 0, 1, 2, 2, 1, 0, 0, 1, 2, 2, 1, 0, 0, 1, 2, 2, 1, 0]} +RLMATH_EOF diff --git a/tasks/construct-mc-number-partitioning-l4-s0/tests/check.py b/tasks/construct-mc-number-partitioning-l4-s0/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..67793721db8ba7d3c3979ea0e1e07091491ffa7e --- /dev/null +++ b/tasks/construct-mc-number-partitioning-l4-s0/tests/check.py @@ -0,0 +1,14 @@ +"""Partition {1..n} into k subsets of equal sum (MathConstraint number_partitioning, CC-BY-4.0).""" +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["n"], inst["k"] + x = int_list(ans.get("x"), n, 0, k - 1, "x") + target = n * (n + 1) // 2 // k + sums = [0] * k + for i, s in enumerate(x): + sums[s] += i + 1 + if any(t != target for t in sums): + raise Invalid(f"subset sums {sums} are not all {target}") + return None, {} diff --git a/tasks/construct-mc-number-partitioning-l4-s0/tests/instance.json b/tasks/construct-mc-number-partitioning-l4-s0/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..24f51d0763b1e8c4764e2ac08f7e4433c58af0ec --- /dev/null +++ b/tasks/construct-mc-number-partitioning-l4-s0/tests/instance.json @@ -0,0 +1 @@ +{"n": 30, "k": 3, "family": "mc_number_partitioning", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-number-partitioning-l4-s0/tests/run.py b/tasks/construct-mc-number-partitioning-l4-s0/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-number-partitioning-l4-s0/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-number-partitioning-l4-s0/tests/test.sh b/tasks/construct-mc-number-partitioning-l4-s0/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-number-partitioning-l4-s0/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-ortholatin-l6-s0/environment/Dockerfile b/tasks/construct-mc-ortholatin-l6-s0/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-ortholatin-l6-s0/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-ortholatin-l6-s0/environment/instance.json b/tasks/construct-mc-ortholatin-l6-s0/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..76d6cfec6720c187327b3ef23e3d5476a9a76e29 --- /dev/null +++ b/tasks/construct-mc-ortholatin-l6-s0/environment/instance.json @@ -0,0 +1 @@ +{"n": 28, "family": "mc_ortholatin", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-ortholatin-l6-s0/solution/solve.sh b/tasks/construct-mc-ortholatin-l6-s0/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..1d4d822f2d6f346f86ac55c84c567898ebbb6cf9 --- /dev/null +++ b/tasks/construct-mc-ortholatin-l6-s0/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"X": [[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27], [1, 2, 3, 4, 5, 6, 0, 8, 9, 10, 11, 12, 13, 7, 15, 16, 17, 18, 19, 20, 14, 22, 23, 24, 25, 26, 27, 21], [2, 3, 4, 5, 6, 0, 1, 9, 10, 11, 12, 13, 7, 8, 16, 17, 18, 19, 20, 14, 15, 23, 24, 25, 26, 27, 21, 22], [3, 4, 5, 6, 0, 1, 2, 10, 11, 12, 13, 7, 8, 9, 17, 18, 19, 20, 14, 15, 16, 24, 25, 26, 27, 21, 22, 23], [4, 5, 6, 0, 1, 2, 3, 11, 12, 13, 7, 8, 9, 10, 18, 19, 20, 14, 15, 16, 17, 25, 26, 27, 21, 22, 23, 24], [5, 6, 0, 1, 2, 3, 4, 12, 13, 7, 8, 9, 10, 11, 19, 20, 14, 15, 16, 17, 18, 26, 27, 21, 22, 23, 24, 25], [6, 0, 1, 2, 3, 4, 5, 13, 7, 8, 9, 10, 11, 12, 20, 14, 15, 16, 17, 18, 19, 27, 21, 22, 23, 24, 25, 26], [7, 8, 9, 10, 11, 12, 13, 0, 1, 2, 3, 4, 5, 6, 21, 22, 23, 24, 25, 26, 27, 14, 15, 16, 17, 18, 19, 20], [8, 9, 10, 11, 12, 13, 7, 1, 2, 3, 4, 5, 6, 0, 22, 23, 24, 25, 26, 27, 21, 15, 16, 17, 18, 19, 20, 14], [9, 10, 11, 12, 13, 7, 8, 2, 3, 4, 5, 6, 0, 1, 23, 24, 25, 26, 27, 21, 22, 16, 17, 18, 19, 20, 14, 15], [10, 11, 12, 13, 7, 8, 9, 3, 4, 5, 6, 0, 1, 2, 24, 25, 26, 27, 21, 22, 23, 17, 18, 19, 20, 14, 15, 16], [11, 12, 13, 7, 8, 9, 10, 4, 5, 6, 0, 1, 2, 3, 25, 26, 27, 21, 22, 23, 24, 18, 19, 20, 14, 15, 16, 17], [12, 13, 7, 8, 9, 10, 11, 5, 6, 0, 1, 2, 3, 4, 26, 27, 21, 22, 23, 24, 25, 19, 20, 14, 15, 16, 17, 18], [13, 7, 8, 9, 10, 11, 12, 6, 0, 1, 2, 3, 4, 5, 27, 21, 22, 23, 24, 25, 26, 20, 14, 15, 16, 17, 18, 19], [14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], [15, 16, 17, 18, 19, 20, 14, 22, 23, 24, 25, 26, 27, 21, 1, 2, 3, 4, 5, 6, 0, 8, 9, 10, 11, 12, 13, 7], [16, 17, 18, 19, 20, 14, 15, 23, 24, 25, 26, 27, 21, 22, 2, 3, 4, 5, 6, 0, 1, 9, 10, 11, 12, 13, 7, 8], [17, 18, 19, 20, 14, 15, 16, 24, 25, 26, 27, 21, 22, 23, 3, 4, 5, 6, 0, 1, 2, 10, 11, 12, 13, 7, 8, 9], [18, 19, 20, 14, 15, 16, 17, 25, 26, 27, 21, 22, 23, 24, 4, 5, 6, 0, 1, 2, 3, 11, 12, 13, 7, 8, 9, 10], [19, 20, 14, 15, 16, 17, 18, 26, 27, 21, 22, 23, 24, 25, 5, 6, 0, 1, 2, 3, 4, 12, 13, 7, 8, 9, 10, 11], [20, 14, 15, 16, 17, 18, 19, 27, 21, 22, 23, 24, 25, 26, 6, 0, 1, 2, 3, 4, 5, 13, 7, 8, 9, 10, 11, 12], [21, 22, 23, 24, 25, 26, 27, 14, 15, 16, 17, 18, 19, 20, 7, 8, 9, 10, 11, 12, 13, 0, 1, 2, 3, 4, 5, 6], [22, 23, 24, 25, 26, 27, 21, 15, 16, 17, 18, 19, 20, 14, 8, 9, 10, 11, 12, 13, 7, 1, 2, 3, 4, 5, 6, 0], [23, 24, 25, 26, 27, 21, 22, 16, 17, 18, 19, 20, 14, 15, 9, 10, 11, 12, 13, 7, 8, 2, 3, 4, 5, 6, 0, 1], [24, 25, 26, 27, 21, 22, 23, 17, 18, 19, 20, 14, 15, 16, 10, 11, 12, 13, 7, 8, 9, 3, 4, 5, 6, 0, 1, 2], [25, 26, 27, 21, 22, 23, 24, 18, 19, 20, 14, 15, 16, 17, 11, 12, 13, 7, 8, 9, 10, 4, 5, 6, 0, 1, 2, 3], [26, 27, 21, 22, 23, 24, 25, 19, 20, 14, 15, 16, 17, 18, 12, 13, 7, 8, 9, 10, 11, 5, 6, 0, 1, 2, 3, 4], [27, 21, 22, 23, 24, 25, 26, 20, 14, 15, 16, 17, 18, 19, 13, 7, 8, 9, 10, 11, 12, 6, 0, 1, 2, 3, 4, 5]], "Y": [[0, 2, 4, 6, 1, 3, 5, 7, 9, 11, 13, 8, 10, 12, 14, 16, 18, 20, 15, 17, 19, 21, 23, 25, 27, 22, 24, 26], [1, 3, 5, 0, 2, 4, 6, 8, 10, 12, 7, 9, 11, 13, 15, 17, 19, 14, 16, 18, 20, 22, 24, 26, 21, 23, 25, 27], [2, 4, 6, 1, 3, 5, 0, 9, 11, 13, 8, 10, 12, 7, 16, 18, 20, 15, 17, 19, 14, 23, 25, 27, 22, 24, 26, 21], [3, 5, 0, 2, 4, 6, 1, 10, 12, 7, 9, 11, 13, 8, 17, 19, 14, 16, 18, 20, 15, 24, 26, 21, 23, 25, 27, 22], [4, 6, 1, 3, 5, 0, 2, 11, 13, 8, 10, 12, 7, 9, 18, 20, 15, 17, 19, 14, 16, 25, 27, 22, 24, 26, 21, 23], [5, 0, 2, 4, 6, 1, 3, 12, 7, 9, 11, 13, 8, 10, 19, 14, 16, 18, 20, 15, 17, 26, 21, 23, 25, 27, 22, 24], [6, 1, 3, 5, 0, 2, 4, 13, 8, 10, 12, 7, 9, 11, 20, 15, 17, 19, 14, 16, 18, 27, 22, 24, 26, 21, 23, 25], [14, 16, 18, 20, 15, 17, 19, 21, 23, 25, 27, 22, 24, 26, 0, 2, 4, 6, 1, 3, 5, 7, 9, 11, 13, 8, 10, 12], [15, 17, 19, 14, 16, 18, 20, 22, 24, 26, 21, 23, 25, 27, 1, 3, 5, 0, 2, 4, 6, 8, 10, 12, 7, 9, 11, 13], [16, 18, 20, 15, 17, 19, 14, 23, 25, 27, 22, 24, 26, 21, 2, 4, 6, 1, 3, 5, 0, 9, 11, 13, 8, 10, 12, 7], [17, 19, 14, 16, 18, 20, 15, 24, 26, 21, 23, 25, 27, 22, 3, 5, 0, 2, 4, 6, 1, 10, 12, 7, 9, 11, 13, 8], [18, 20, 15, 17, 19, 14, 16, 25, 27, 22, 24, 26, 21, 23, 4, 6, 1, 3, 5, 0, 2, 11, 13, 8, 10, 12, 7, 9], [19, 14, 16, 18, 20, 15, 17, 26, 21, 23, 25, 27, 22, 24, 5, 0, 2, 4, 6, 1, 3, 12, 7, 9, 11, 13, 8, 10], [20, 15, 17, 19, 14, 16, 18, 27, 22, 24, 26, 21, 23, 25, 6, 1, 3, 5, 0, 2, 4, 13, 8, 10, 12, 7, 9, 11], [21, 23, 25, 27, 22, 24, 26, 14, 16, 18, 20, 15, 17, 19, 7, 9, 11, 13, 8, 10, 12, 0, 2, 4, 6, 1, 3, 5], [22, 24, 26, 21, 23, 25, 27, 15, 17, 19, 14, 16, 18, 20, 8, 10, 12, 7, 9, 11, 13, 1, 3, 5, 0, 2, 4, 6], [23, 25, 27, 22, 24, 26, 21, 16, 18, 20, 15, 17, 19, 14, 9, 11, 13, 8, 10, 12, 7, 2, 4, 6, 1, 3, 5, 0], [24, 26, 21, 23, 25, 27, 22, 17, 19, 14, 16, 18, 20, 15, 10, 12, 7, 9, 11, 13, 8, 3, 5, 0, 2, 4, 6, 1], [25, 27, 22, 24, 26, 21, 23, 18, 20, 15, 17, 19, 14, 16, 11, 13, 8, 10, 12, 7, 9, 4, 6, 1, 3, 5, 0, 2], [26, 21, 23, 25, 27, 22, 24, 19, 14, 16, 18, 20, 15, 17, 12, 7, 9, 11, 13, 8, 10, 5, 0, 2, 4, 6, 1, 3], [27, 22, 24, 26, 21, 23, 25, 20, 15, 17, 19, 14, 16, 18, 13, 8, 10, 12, 7, 9, 11, 6, 1, 3, 5, 0, 2, 4], [7, 9, 11, 13, 8, 10, 12, 0, 2, 4, 6, 1, 3, 5, 21, 23, 25, 27, 22, 24, 26, 14, 16, 18, 20, 15, 17, 19], [8, 10, 12, 7, 9, 11, 13, 1, 3, 5, 0, 2, 4, 6, 22, 24, 26, 21, 23, 25, 27, 15, 17, 19, 14, 16, 18, 20], [9, 11, 13, 8, 10, 12, 7, 2, 4, 6, 1, 3, 5, 0, 23, 25, 27, 22, 24, 26, 21, 16, 18, 20, 15, 17, 19, 14], [10, 12, 7, 9, 11, 13, 8, 3, 5, 0, 2, 4, 6, 1, 24, 26, 21, 23, 25, 27, 22, 17, 19, 14, 16, 18, 20, 15], [11, 13, 8, 10, 12, 7, 9, 4, 6, 1, 3, 5, 0, 2, 25, 27, 22, 24, 26, 21, 23, 18, 20, 15, 17, 19, 14, 16], [12, 7, 9, 11, 13, 8, 10, 5, 0, 2, 4, 6, 1, 3, 26, 21, 23, 25, 27, 22, 24, 19, 14, 16, 18, 20, 15, 17], [13, 8, 10, 12, 7, 9, 11, 6, 1, 3, 5, 0, 2, 4, 27, 22, 24, 26, 21, 23, 25, 20, 15, 17, 19, 14, 16, 18]]} +RLMATH_EOF diff --git a/tasks/construct-mc-ortholatin-l6-s0/tests/check.py b/tasks/construct-mc-ortholatin-l6-s0/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..a5418a59fae1c86318eee903e90d75b36d8a3306 --- /dev/null +++ b/tasks/construct-mc-ortholatin-l6-s0/tests/check.py @@ -0,0 +1,25 @@ +"""Pair of orthogonal Latin squares of order n (MathConstraint ortholatin, CC-BY-4.0).""" +from run import Invalid, int_list + + +def _square(v, n, name): + if not isinstance(v, list) or len(v) != n: + raise Invalid(f"{name} must be a list of {n} rows") + S = [int_list(r, n, 0, n - 1, f"{name} row") for r in v] + full = list(range(n)) + for i in range(n): + if sorted(S[i]) != full: + raise Invalid(f"{name}: row {i} is not a permutation of 0..{n - 1}") + if sorted(S[r][i] for r in range(n)) != full: + raise Invalid(f"{name}: column {i} is not a permutation of 0..{n - 1}") + return S + + +def check(inst, ans): + n = inst["n"] + X = _square(ans.get("X"), n, "X") + Y = _square(ans.get("Y"), n, "Y") + pairs = {(X[i][j], Y[i][j]) for i in range(n) for j in range(n)} + if len(pairs) != n * n: + raise Invalid("X and Y are not orthogonal (some ordered pair repeats)") + return None, {} diff --git a/tasks/construct-mc-ortholatin-l6-s0/tests/instance.json b/tasks/construct-mc-ortholatin-l6-s0/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..76d6cfec6720c187327b3ef23e3d5476a9a76e29 --- /dev/null +++ b/tasks/construct-mc-ortholatin-l6-s0/tests/instance.json @@ -0,0 +1 @@ +{"n": 28, "family": "mc_ortholatin", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-ortholatin-l6-s0/tests/run.py b/tasks/construct-mc-ortholatin-l6-s0/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-ortholatin-l6-s0/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-ortholatin-l6-s0/tests/test.sh b/tasks/construct-mc-ortholatin-l6-s0/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-ortholatin-l6-s0/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-pysms-chromatic-girth-l2-s1/environment/Dockerfile b/tasks/construct-mc-pysms-chromatic-girth-l2-s1/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-pysms-chromatic-girth-l2-s1/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-pysms-chromatic-girth-l2-s1/environment/instance.json b/tasks/construct-mc-pysms-chromatic-girth-l2-s1/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..f2ddf18b8d00c470b998311c7465c1b2cab14f87 --- /dev/null +++ b/tasks/construct-mc-pysms-chromatic-girth-l2-s1/environment/instance.json @@ -0,0 +1 @@ +{"vertices": 15, "required_edges": [], "max_chromatic_number": 2, "min_edges": 19, "min_girth": 4, "family": "mc_pysms_chromatic_girth", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-pysms-chromatic-girth-l2-s1/solution/solve.sh b/tasks/construct-mc-pysms-chromatic-girth-l2-s1/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..aaff3b778eccb53df6111d353275ce48ef765900 --- /dev/null +++ b/tasks/construct-mc-pysms-chromatic-girth-l2-s1/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"edges": [[0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14]], "coloring": [0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]} +RLMATH_EOF diff --git a/tasks/construct-mc-pysms-chromatic-girth-l2-s1/tests/check.py b/tasks/construct-mc-pysms-chromatic-girth-l2-s1/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..4ab0b12508cf59b733f007a9d1f50831aec9efdf --- /dev/null +++ b/tasks/construct-mc-pysms-chromatic-girth-l2-s1/tests/check.py @@ -0,0 +1,151 @@ +"""Graph-existence constraints (MathConstraint pysms_* problem types, CC-BY-4.0). The answer is a graph on +the stated vertex set, plus a proper colouring when a chromatic-number upper bound is asked for. Every +constraint present in the instance is checked exactly (no stored answer is compared). + +Upstream note: upstream verifies by fixing the edge variables in the pysms CNF and calling CaDiCaL; the +min-chromatic-number bound of pysms_graph_builder is only a raw smsg solver parameter, not a clause, so the +upstream verifier ignored it. It is enforced here. Edge endpoints are also type-checked (upstream accepted +floats/bools that compare in range).""" +import itertools + +from run import Invalid, int_list + + +def _has_clique(adj, n, k): + def rec(cand, size): + if size == k: + return True + while cand: + if size + bin(cand).count("1") < k: + return False + v = cand.bit_length() - 1 + cand &= ~(1 << v) + if rec(cand & adj[v], size + 1): + return True + return False + return rec((1 << n) - 1, 0) + + +def _connected(adj, n, removed): + alive = [v for v in range(n) if not removed >> v & 1] + if len(alive) <= 1: + return True + mask = sum(1 << v for v in alive) + seen = 1 << alive[0] + stack = [alive[0]] + while stack: + v = stack.pop() + new = adj[v] & mask & ~seen + seen |= new + while new: + u = new.bit_length() - 1 + new &= ~(1 << u) + stack.append(u) + return seen == mask + + +def _girth(adj, n): + best = None + for r in range(n): + dist, par, q = {r: 0}, {r: -1}, [r] + for v in q: + nb = adj[v] + while nb: + u = nb.bit_length() - 1 + nb &= ~(1 << u) + if u not in dist: + dist[u], par[u] = dist[v] + 1, v + q.append(u) + elif par[v] != u: + c = dist[u] + dist[v] + 1 + best = c if best is None else min(best, c) + return best # None = acyclic + + +def _colourable(adj, n, k): + col = [-1] * n + order = sorted(range(n), key=lambda v: -bin(adj[v]).count("1")) + + def rec(i): + if i == n: + return True + v = order[i] + used = {col[u] for u in range(n) if adj[v] >> u & 1 and col[u] >= 0} + for c in range(k): + if c not in used: + col[v] = c + if rec(i + 1): + return True + col[v] = -1 + return False + return rec(0) + + +def check(inst, ans): + n = inst["vertices"] + E = ans.get("edges") + if not isinstance(E, list): + raise Invalid("edges must be a list of [u, v] pairs") + edges = set() + for e in E: + u, v = int_list(e, 2, 0, n - 1, "edge") + if u == v: + raise Invalid(f"self-loop at {u}") + e2 = (min(u, v), max(u, v)) + if e2 in edges: + raise Invalid(f"duplicate edge {e2}") + edges.add(e2) + adj = [0] * n + for u, v in edges: + adj[u] |= 1 << v + adj[v] |= 1 << u + deg = [bin(a).count("1") for a in adj] + for u, v in inst.get("required_edges", []): + if (min(u, v), max(u, v)) not in edges: + raise Invalid(f"required edge ({u},{v}) is missing") + c = inst.get + if c("min_degree") is not None and min(deg) < c("min_degree"): + raise Invalid(f"minimum degree {min(deg)} < {c('min_degree')}") + if c("max_degree") is not None and max(deg) > c("max_degree"): + raise Invalid(f"maximum degree {max(deg)} > {c('max_degree')}") + if c("min_edges") is not None and len(edges) < c("min_edges"): + raise Invalid(f"{len(edges)} edges < {c('min_edges')}") + if c("max_edges") is not None and len(edges) > c("max_edges"): + raise Invalid(f"{len(edges)} edges > {c('max_edges')}") + if c("max_clique") is not None and _has_clique(adj, n, c("max_clique") + 1): + raise Invalid(f"graph contains a clique of size {c('max_clique') + 1}") + if c("max_independent_set") is not None: + full = (1 << n) - 1 + comp = [full & ~adj[v] & ~(1 << v) for v in range(n)] + if _has_clique(comp, n, c("max_independent_set") + 1): + raise Invalid(f"graph contains an independent set of size {c('max_independent_set') + 1}") + if c("min_girth") is not None: + g = _girth(adj, n) + if g is not None and g < c("min_girth"): + raise Invalid(f"graph has a cycle of length {g} < {c('min_girth')}") + if c("min_connectivity") is not None: + k = c("min_connectivity") + if n <= k: + raise Invalid("too few vertices for this connectivity") + for s in range(k): + for I in itertools.combinations(range(n), s): + if not _connected(adj, n, sum(1 << v for v in I)): + raise Invalid(f"deleting vertices {list(I)} disconnects the graph") + if c("mtf"): + for u, v in itertools.combinations(range(n), 2): + if adj[u] >> v & 1: + if adj[u] & adj[v]: + raise Invalid(f"triangle on edge ({u},{v})") + elif not adj[u] & adj[v]: + raise Invalid(f"non-adjacent {u}, {v} have no common neighbour (edge could be added)") + if c("max_chromatic_number") is not None: + k = c("max_chromatic_number") + col = int_list(ans.get("coloring"), n, 0, k - 1, "coloring") + for u, v in edges: + if col[u] == col[v]: + raise Invalid(f"coloring: edge ({u},{v}) is monochromatic") + if c("min_chromatic_number") is not None and c("min_chromatic_number") >= 2: + m = c("min_chromatic_number") + if not edges or _colourable(adj, n, m - 1): + raise Invalid(f"graph is {m - 1}-colourable, chromatic number must be at least {m}") + return None, {"num_edges": len(edges)} diff --git a/tasks/construct-mc-pysms-chromatic-girth-l2-s1/tests/instance.json b/tasks/construct-mc-pysms-chromatic-girth-l2-s1/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..f2ddf18b8d00c470b998311c7465c1b2cab14f87 --- /dev/null +++ b/tasks/construct-mc-pysms-chromatic-girth-l2-s1/tests/instance.json @@ -0,0 +1 @@ +{"vertices": 15, "required_edges": [], "max_chromatic_number": 2, "min_edges": 19, "min_girth": 4, "family": "mc_pysms_chromatic_girth", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-pysms-chromatic-girth-l2-s1/tests/run.py b/tasks/construct-mc-pysms-chromatic-girth-l2-s1/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-pysms-chromatic-girth-l2-s1/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-pysms-chromatic-girth-l2-s1/tests/test.sh b/tasks/construct-mc-pysms-chromatic-girth-l2-s1/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-pysms-chromatic-girth-l2-s1/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-pysms-degree-bounds-l3-s1/environment/Dockerfile b/tasks/construct-mc-pysms-degree-bounds-l3-s1/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-pysms-degree-bounds-l3-s1/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-pysms-degree-bounds-l3-s1/environment/instance.json b/tasks/construct-mc-pysms-degree-bounds-l3-s1/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..5d577e36ebece55a59d0c9e7aa305d187076d032 --- /dev/null +++ b/tasks/construct-mc-pysms-degree-bounds-l3-s1/environment/instance.json @@ -0,0 +1 @@ +{"vertices": 12, "required_edges": [[2, 9], [2, 11], [2, 10]], "max_degree": 3, "min_degree": 1, "family": "mc_pysms_degree_bounds", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-pysms-degree-bounds-l3-s1/solution/solve.sh b/tasks/construct-mc-pysms-degree-bounds-l3-s1/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..6b3379ac757df0cea48c80d5876efa1c36bd070e --- /dev/null +++ b/tasks/construct-mc-pysms-degree-bounds-l3-s1/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"edges": [[0, 9], [0, 10], [0, 11], [1, 9], [1, 10], [1, 11], [2, 9], [2, 10], [2, 11], [3, 6], [3, 7], [3, 8], [4, 6], [4, 7], [4, 8], [5, 6], [5, 7], [5, 8]]} +RLMATH_EOF diff --git a/tasks/construct-mc-pysms-degree-bounds-l3-s1/tests/check.py b/tasks/construct-mc-pysms-degree-bounds-l3-s1/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..4ab0b12508cf59b733f007a9d1f50831aec9efdf --- /dev/null +++ b/tasks/construct-mc-pysms-degree-bounds-l3-s1/tests/check.py @@ -0,0 +1,151 @@ +"""Graph-existence constraints (MathConstraint pysms_* problem types, CC-BY-4.0). The answer is a graph on +the stated vertex set, plus a proper colouring when a chromatic-number upper bound is asked for. Every +constraint present in the instance is checked exactly (no stored answer is compared). + +Upstream note: upstream verifies by fixing the edge variables in the pysms CNF and calling CaDiCaL; the +min-chromatic-number bound of pysms_graph_builder is only a raw smsg solver parameter, not a clause, so the +upstream verifier ignored it. It is enforced here. Edge endpoints are also type-checked (upstream accepted +floats/bools that compare in range).""" +import itertools + +from run import Invalid, int_list + + +def _has_clique(adj, n, k): + def rec(cand, size): + if size == k: + return True + while cand: + if size + bin(cand).count("1") < k: + return False + v = cand.bit_length() - 1 + cand &= ~(1 << v) + if rec(cand & adj[v], size + 1): + return True + return False + return rec((1 << n) - 1, 0) + + +def _connected(adj, n, removed): + alive = [v for v in range(n) if not removed >> v & 1] + if len(alive) <= 1: + return True + mask = sum(1 << v for v in alive) + seen = 1 << alive[0] + stack = [alive[0]] + while stack: + v = stack.pop() + new = adj[v] & mask & ~seen + seen |= new + while new: + u = new.bit_length() - 1 + new &= ~(1 << u) + stack.append(u) + return seen == mask + + +def _girth(adj, n): + best = None + for r in range(n): + dist, par, q = {r: 0}, {r: -1}, [r] + for v in q: + nb = adj[v] + while nb: + u = nb.bit_length() - 1 + nb &= ~(1 << u) + if u not in dist: + dist[u], par[u] = dist[v] + 1, v + q.append(u) + elif par[v] != u: + c = dist[u] + dist[v] + 1 + best = c if best is None else min(best, c) + return best # None = acyclic + + +def _colourable(adj, n, k): + col = [-1] * n + order = sorted(range(n), key=lambda v: -bin(adj[v]).count("1")) + + def rec(i): + if i == n: + return True + v = order[i] + used = {col[u] for u in range(n) if adj[v] >> u & 1 and col[u] >= 0} + for c in range(k): + if c not in used: + col[v] = c + if rec(i + 1): + return True + col[v] = -1 + return False + return rec(0) + + +def check(inst, ans): + n = inst["vertices"] + E = ans.get("edges") + if not isinstance(E, list): + raise Invalid("edges must be a list of [u, v] pairs") + edges = set() + for e in E: + u, v = int_list(e, 2, 0, n - 1, "edge") + if u == v: + raise Invalid(f"self-loop at {u}") + e2 = (min(u, v), max(u, v)) + if e2 in edges: + raise Invalid(f"duplicate edge {e2}") + edges.add(e2) + adj = [0] * n + for u, v in edges: + adj[u] |= 1 << v + adj[v] |= 1 << u + deg = [bin(a).count("1") for a in adj] + for u, v in inst.get("required_edges", []): + if (min(u, v), max(u, v)) not in edges: + raise Invalid(f"required edge ({u},{v}) is missing") + c = inst.get + if c("min_degree") is not None and min(deg) < c("min_degree"): + raise Invalid(f"minimum degree {min(deg)} < {c('min_degree')}") + if c("max_degree") is not None and max(deg) > c("max_degree"): + raise Invalid(f"maximum degree {max(deg)} > {c('max_degree')}") + if c("min_edges") is not None and len(edges) < c("min_edges"): + raise Invalid(f"{len(edges)} edges < {c('min_edges')}") + if c("max_edges") is not None and len(edges) > c("max_edges"): + raise Invalid(f"{len(edges)} edges > {c('max_edges')}") + if c("max_clique") is not None and _has_clique(adj, n, c("max_clique") + 1): + raise Invalid(f"graph contains a clique of size {c('max_clique') + 1}") + if c("max_independent_set") is not None: + full = (1 << n) - 1 + comp = [full & ~adj[v] & ~(1 << v) for v in range(n)] + if _has_clique(comp, n, c("max_independent_set") + 1): + raise Invalid(f"graph contains an independent set of size {c('max_independent_set') + 1}") + if c("min_girth") is not None: + g = _girth(adj, n) + if g is not None and g < c("min_girth"): + raise Invalid(f"graph has a cycle of length {g} < {c('min_girth')}") + if c("min_connectivity") is not None: + k = c("min_connectivity") + if n <= k: + raise Invalid("too few vertices for this connectivity") + for s in range(k): + for I in itertools.combinations(range(n), s): + if not _connected(adj, n, sum(1 << v for v in I)): + raise Invalid(f"deleting vertices {list(I)} disconnects the graph") + if c("mtf"): + for u, v in itertools.combinations(range(n), 2): + if adj[u] >> v & 1: + if adj[u] & adj[v]: + raise Invalid(f"triangle on edge ({u},{v})") + elif not adj[u] & adj[v]: + raise Invalid(f"non-adjacent {u}, {v} have no common neighbour (edge could be added)") + if c("max_chromatic_number") is not None: + k = c("max_chromatic_number") + col = int_list(ans.get("coloring"), n, 0, k - 1, "coloring") + for u, v in edges: + if col[u] == col[v]: + raise Invalid(f"coloring: edge ({u},{v}) is monochromatic") + if c("min_chromatic_number") is not None and c("min_chromatic_number") >= 2: + m = c("min_chromatic_number") + if not edges or _colourable(adj, n, m - 1): + raise Invalid(f"graph is {m - 1}-colourable, chromatic number must be at least {m}") + return None, {"num_edges": len(edges)} diff --git a/tasks/construct-mc-pysms-degree-bounds-l3-s1/tests/instance.json b/tasks/construct-mc-pysms-degree-bounds-l3-s1/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..5d577e36ebece55a59d0c9e7aa305d187076d032 --- /dev/null +++ b/tasks/construct-mc-pysms-degree-bounds-l3-s1/tests/instance.json @@ -0,0 +1 @@ +{"vertices": 12, "required_edges": [[2, 9], [2, 11], [2, 10]], "max_degree": 3, "min_degree": 1, "family": "mc_pysms_degree_bounds", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-pysms-degree-bounds-l3-s1/tests/run.py b/tasks/construct-mc-pysms-degree-bounds-l3-s1/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-pysms-degree-bounds-l3-s1/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-pysms-degree-bounds-l3-s1/tests/test.sh b/tasks/construct-mc-pysms-degree-bounds-l3-s1/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-pysms-degree-bounds-l3-s1/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-pysms-girth-degree-l4-s2/environment/Dockerfile b/tasks/construct-mc-pysms-girth-degree-l4-s2/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-pysms-girth-degree-l4-s2/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-pysms-girth-degree-l4-s2/environment/instance.json b/tasks/construct-mc-pysms-girth-degree-l4-s2/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..73939f8de66421cfee1d5bedecaf4438ef6ad18d --- /dev/null +++ b/tasks/construct-mc-pysms-girth-degree-l4-s2/environment/instance.json @@ -0,0 +1 @@ +{"vertices": 23, "required_edges": [], "max_degree": 4, "min_degree": 3, "min_girth": 6, "family": "mc_pysms_girth_degree", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-pysms-girth-degree-l4-s2/solution/solve.sh b/tasks/construct-mc-pysms-girth-degree-l4-s2/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..1655979cb5769694550cfc97bbc60587019a7624 --- /dev/null +++ b/tasks/construct-mc-pysms-girth-degree-l4-s2/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"edges": [[0, 20], [0, 21], [0, 22], [1, 18], [1, 19], [1, 22], [2, 17], [2, 19], [2, 21], [3, 17], [3, 18], [3, 20], [4, 16], [4, 19], [4, 20], [5, 15], [5, 18], [5, 21], [6, 14], [6, 17], [6, 22], [7, 13], [7, 16], [7, 22], [8, 12], [8, 13], [8, 17], [9, 11], [9, 13], [9, 14], [10, 11], [10, 12], [10, 16], [11, 21], [12, 15], [14, 15]]} +RLMATH_EOF diff --git a/tasks/construct-mc-pysms-girth-degree-l4-s2/tests/check.py b/tasks/construct-mc-pysms-girth-degree-l4-s2/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..4ab0b12508cf59b733f007a9d1f50831aec9efdf --- /dev/null +++ b/tasks/construct-mc-pysms-girth-degree-l4-s2/tests/check.py @@ -0,0 +1,151 @@ +"""Graph-existence constraints (MathConstraint pysms_* problem types, CC-BY-4.0). The answer is a graph on +the stated vertex set, plus a proper colouring when a chromatic-number upper bound is asked for. Every +constraint present in the instance is checked exactly (no stored answer is compared). + +Upstream note: upstream verifies by fixing the edge variables in the pysms CNF and calling CaDiCaL; the +min-chromatic-number bound of pysms_graph_builder is only a raw smsg solver parameter, not a clause, so the +upstream verifier ignored it. It is enforced here. Edge endpoints are also type-checked (upstream accepted +floats/bools that compare in range).""" +import itertools + +from run import Invalid, int_list + + +def _has_clique(adj, n, k): + def rec(cand, size): + if size == k: + return True + while cand: + if size + bin(cand).count("1") < k: + return False + v = cand.bit_length() - 1 + cand &= ~(1 << v) + if rec(cand & adj[v], size + 1): + return True + return False + return rec((1 << n) - 1, 0) + + +def _connected(adj, n, removed): + alive = [v for v in range(n) if not removed >> v & 1] + if len(alive) <= 1: + return True + mask = sum(1 << v for v in alive) + seen = 1 << alive[0] + stack = [alive[0]] + while stack: + v = stack.pop() + new = adj[v] & mask & ~seen + seen |= new + while new: + u = new.bit_length() - 1 + new &= ~(1 << u) + stack.append(u) + return seen == mask + + +def _girth(adj, n): + best = None + for r in range(n): + dist, par, q = {r: 0}, {r: -1}, [r] + for v in q: + nb = adj[v] + while nb: + u = nb.bit_length() - 1 + nb &= ~(1 << u) + if u not in dist: + dist[u], par[u] = dist[v] + 1, v + q.append(u) + elif par[v] != u: + c = dist[u] + dist[v] + 1 + best = c if best is None else min(best, c) + return best # None = acyclic + + +def _colourable(adj, n, k): + col = [-1] * n + order = sorted(range(n), key=lambda v: -bin(adj[v]).count("1")) + + def rec(i): + if i == n: + return True + v = order[i] + used = {col[u] for u in range(n) if adj[v] >> u & 1 and col[u] >= 0} + for c in range(k): + if c not in used: + col[v] = c + if rec(i + 1): + return True + col[v] = -1 + return False + return rec(0) + + +def check(inst, ans): + n = inst["vertices"] + E = ans.get("edges") + if not isinstance(E, list): + raise Invalid("edges must be a list of [u, v] pairs") + edges = set() + for e in E: + u, v = int_list(e, 2, 0, n - 1, "edge") + if u == v: + raise Invalid(f"self-loop at {u}") + e2 = (min(u, v), max(u, v)) + if e2 in edges: + raise Invalid(f"duplicate edge {e2}") + edges.add(e2) + adj = [0] * n + for u, v in edges: + adj[u] |= 1 << v + adj[v] |= 1 << u + deg = [bin(a).count("1") for a in adj] + for u, v in inst.get("required_edges", []): + if (min(u, v), max(u, v)) not in edges: + raise Invalid(f"required edge ({u},{v}) is missing") + c = inst.get + if c("min_degree") is not None and min(deg) < c("min_degree"): + raise Invalid(f"minimum degree {min(deg)} < {c('min_degree')}") + if c("max_degree") is not None and max(deg) > c("max_degree"): + raise Invalid(f"maximum degree {max(deg)} > {c('max_degree')}") + if c("min_edges") is not None and len(edges) < c("min_edges"): + raise Invalid(f"{len(edges)} edges < {c('min_edges')}") + if c("max_edges") is not None and len(edges) > c("max_edges"): + raise Invalid(f"{len(edges)} edges > {c('max_edges')}") + if c("max_clique") is not None and _has_clique(adj, n, c("max_clique") + 1): + raise Invalid(f"graph contains a clique of size {c('max_clique') + 1}") + if c("max_independent_set") is not None: + full = (1 << n) - 1 + comp = [full & ~adj[v] & ~(1 << v) for v in range(n)] + if _has_clique(comp, n, c("max_independent_set") + 1): + raise Invalid(f"graph contains an independent set of size {c('max_independent_set') + 1}") + if c("min_girth") is not None: + g = _girth(adj, n) + if g is not None and g < c("min_girth"): + raise Invalid(f"graph has a cycle of length {g} < {c('min_girth')}") + if c("min_connectivity") is not None: + k = c("min_connectivity") + if n <= k: + raise Invalid("too few vertices for this connectivity") + for s in range(k): + for I in itertools.combinations(range(n), s): + if not _connected(adj, n, sum(1 << v for v in I)): + raise Invalid(f"deleting vertices {list(I)} disconnects the graph") + if c("mtf"): + for u, v in itertools.combinations(range(n), 2): + if adj[u] >> v & 1: + if adj[u] & adj[v]: + raise Invalid(f"triangle on edge ({u},{v})") + elif not adj[u] & adj[v]: + raise Invalid(f"non-adjacent {u}, {v} have no common neighbour (edge could be added)") + if c("max_chromatic_number") is not None: + k = c("max_chromatic_number") + col = int_list(ans.get("coloring"), n, 0, k - 1, "coloring") + for u, v in edges: + if col[u] == col[v]: + raise Invalid(f"coloring: edge ({u},{v}) is monochromatic") + if c("min_chromatic_number") is not None and c("min_chromatic_number") >= 2: + m = c("min_chromatic_number") + if not edges or _colourable(adj, n, m - 1): + raise Invalid(f"graph is {m - 1}-colourable, chromatic number must be at least {m}") + return None, {"num_edges": len(edges)} diff --git a/tasks/construct-mc-pysms-girth-degree-l4-s2/tests/instance.json b/tasks/construct-mc-pysms-girth-degree-l4-s2/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..73939f8de66421cfee1d5bedecaf4438ef6ad18d --- /dev/null +++ b/tasks/construct-mc-pysms-girth-degree-l4-s2/tests/instance.json @@ -0,0 +1 @@ +{"vertices": 23, "required_edges": [], "max_degree": 4, "min_degree": 3, "min_girth": 6, "family": "mc_pysms_girth_degree", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-pysms-girth-degree-l4-s2/tests/run.py b/tasks/construct-mc-pysms-girth-degree-l4-s2/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-pysms-girth-degree-l4-s2/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-pysms-girth-degree-l4-s2/tests/test.sh b/tasks/construct-mc-pysms-girth-degree-l4-s2/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-pysms-girth-degree-l4-s2/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-pysms-independent-connectivity-l5-s2/environment/Dockerfile b/tasks/construct-mc-pysms-independent-connectivity-l5-s2/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-pysms-independent-connectivity-l5-s2/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-pysms-independent-connectivity-l5-s2/environment/instance.json b/tasks/construct-mc-pysms-independent-connectivity-l5-s2/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..872e5f54aa51b6c09b65d2f1db1e06293fe71288 --- /dev/null +++ b/tasks/construct-mc-pysms-independent-connectivity-l5-s2/environment/instance.json @@ -0,0 +1 @@ +{"vertices": 16, "required_edges": [], "max_independent_set": 5, "min_connectivity": 5, "family": "mc_pysms_independent_connectivity", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-pysms-independent-connectivity-l5-s2/solution/solve.sh b/tasks/construct-mc-pysms-independent-connectivity-l5-s2/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..4b8141dfb1b77c83fdaab714902ed360207c54d0 --- /dev/null +++ b/tasks/construct-mc-pysms-independent-connectivity-l5-s2/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [2, 3], [2, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 15], [3, 4], [3, 5], [3, 6], [3, 7], [3, 8], [3, 9], [3, 10], [3, 11], [3, 12], [3, 13], [3, 14], [3, 15], [4, 5], [4, 6], [4, 7], [4, 8], [4, 9], [4, 10], [4, 11], [4, 12], [4, 13], [4, 14], [4, 15], [5, 6], [5, 7], [5, 8], [5, 9], [5, 10], [5, 11], [5, 12], [5, 13], [5, 14], [5, 15], [6, 7], [6, 8], [6, 9], [6, 10], [6, 11], [6, 12], [6, 13], [6, 14], [6, 15], [7, 8], [7, 9], [7, 10], [7, 11], [7, 12], [7, 13], [7, 14], [7, 15], [8, 9], [8, 10], [8, 11], [8, 12], [8, 13], [8, 14], [8, 15], [9, 10], [9, 11], [9, 12], [9, 13], [9, 14], [9, 15], [10, 11], [10, 12], [10, 13], [10, 14], [10, 15], [11, 12], [11, 13], [11, 14], [11, 15], [12, 13], [12, 14], [12, 15], [13, 14], [13, 15], [14, 15]]} +RLMATH_EOF diff --git a/tasks/construct-mc-pysms-independent-connectivity-l5-s2/tests/check.py b/tasks/construct-mc-pysms-independent-connectivity-l5-s2/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..4ab0b12508cf59b733f007a9d1f50831aec9efdf --- /dev/null +++ b/tasks/construct-mc-pysms-independent-connectivity-l5-s2/tests/check.py @@ -0,0 +1,151 @@ +"""Graph-existence constraints (MathConstraint pysms_* problem types, CC-BY-4.0). The answer is a graph on +the stated vertex set, plus a proper colouring when a chromatic-number upper bound is asked for. Every +constraint present in the instance is checked exactly (no stored answer is compared). + +Upstream note: upstream verifies by fixing the edge variables in the pysms CNF and calling CaDiCaL; the +min-chromatic-number bound of pysms_graph_builder is only a raw smsg solver parameter, not a clause, so the +upstream verifier ignored it. It is enforced here. Edge endpoints are also type-checked (upstream accepted +floats/bools that compare in range).""" +import itertools + +from run import Invalid, int_list + + +def _has_clique(adj, n, k): + def rec(cand, size): + if size == k: + return True + while cand: + if size + bin(cand).count("1") < k: + return False + v = cand.bit_length() - 1 + cand &= ~(1 << v) + if rec(cand & adj[v], size + 1): + return True + return False + return rec((1 << n) - 1, 0) + + +def _connected(adj, n, removed): + alive = [v for v in range(n) if not removed >> v & 1] + if len(alive) <= 1: + return True + mask = sum(1 << v for v in alive) + seen = 1 << alive[0] + stack = [alive[0]] + while stack: + v = stack.pop() + new = adj[v] & mask & ~seen + seen |= new + while new: + u = new.bit_length() - 1 + new &= ~(1 << u) + stack.append(u) + return seen == mask + + +def _girth(adj, n): + best = None + for r in range(n): + dist, par, q = {r: 0}, {r: -1}, [r] + for v in q: + nb = adj[v] + while nb: + u = nb.bit_length() - 1 + nb &= ~(1 << u) + if u not in dist: + dist[u], par[u] = dist[v] + 1, v + q.append(u) + elif par[v] != u: + c = dist[u] + dist[v] + 1 + best = c if best is None else min(best, c) + return best # None = acyclic + + +def _colourable(adj, n, k): + col = [-1] * n + order = sorted(range(n), key=lambda v: -bin(adj[v]).count("1")) + + def rec(i): + if i == n: + return True + v = order[i] + used = {col[u] for u in range(n) if adj[v] >> u & 1 and col[u] >= 0} + for c in range(k): + if c not in used: + col[v] = c + if rec(i + 1): + return True + col[v] = -1 + return False + return rec(0) + + +def check(inst, ans): + n = inst["vertices"] + E = ans.get("edges") + if not isinstance(E, list): + raise Invalid("edges must be a list of [u, v] pairs") + edges = set() + for e in E: + u, v = int_list(e, 2, 0, n - 1, "edge") + if u == v: + raise Invalid(f"self-loop at {u}") + e2 = (min(u, v), max(u, v)) + if e2 in edges: + raise Invalid(f"duplicate edge {e2}") + edges.add(e2) + adj = [0] * n + for u, v in edges: + adj[u] |= 1 << v + adj[v] |= 1 << u + deg = [bin(a).count("1") for a in adj] + for u, v in inst.get("required_edges", []): + if (min(u, v), max(u, v)) not in edges: + raise Invalid(f"required edge ({u},{v}) is missing") + c = inst.get + if c("min_degree") is not None and min(deg) < c("min_degree"): + raise Invalid(f"minimum degree {min(deg)} < {c('min_degree')}") + if c("max_degree") is not None and max(deg) > c("max_degree"): + raise Invalid(f"maximum degree {max(deg)} > {c('max_degree')}") + if c("min_edges") is not None and len(edges) < c("min_edges"): + raise Invalid(f"{len(edges)} edges < {c('min_edges')}") + if c("max_edges") is not None and len(edges) > c("max_edges"): + raise Invalid(f"{len(edges)} edges > {c('max_edges')}") + if c("max_clique") is not None and _has_clique(adj, n, c("max_clique") + 1): + raise Invalid(f"graph contains a clique of size {c('max_clique') + 1}") + if c("max_independent_set") is not None: + full = (1 << n) - 1 + comp = [full & ~adj[v] & ~(1 << v) for v in range(n)] + if _has_clique(comp, n, c("max_independent_set") + 1): + raise Invalid(f"graph contains an independent set of size {c('max_independent_set') + 1}") + if c("min_girth") is not None: + g = _girth(adj, n) + if g is not None and g < c("min_girth"): + raise Invalid(f"graph has a cycle of length {g} < {c('min_girth')}") + if c("min_connectivity") is not None: + k = c("min_connectivity") + if n <= k: + raise Invalid("too few vertices for this connectivity") + for s in range(k): + for I in itertools.combinations(range(n), s): + if not _connected(adj, n, sum(1 << v for v in I)): + raise Invalid(f"deleting vertices {list(I)} disconnects the graph") + if c("mtf"): + for u, v in itertools.combinations(range(n), 2): + if adj[u] >> v & 1: + if adj[u] & adj[v]: + raise Invalid(f"triangle on edge ({u},{v})") + elif not adj[u] & adj[v]: + raise Invalid(f"non-adjacent {u}, {v} have no common neighbour (edge could be added)") + if c("max_chromatic_number") is not None: + k = c("max_chromatic_number") + col = int_list(ans.get("coloring"), n, 0, k - 1, "coloring") + for u, v in edges: + if col[u] == col[v]: + raise Invalid(f"coloring: edge ({u},{v}) is monochromatic") + if c("min_chromatic_number") is not None and c("min_chromatic_number") >= 2: + m = c("min_chromatic_number") + if not edges or _colourable(adj, n, m - 1): + raise Invalid(f"graph is {m - 1}-colourable, chromatic number must be at least {m}") + return None, {"num_edges": len(edges)} diff --git a/tasks/construct-mc-pysms-independent-connectivity-l5-s2/tests/instance.json b/tasks/construct-mc-pysms-independent-connectivity-l5-s2/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..872e5f54aa51b6c09b65d2f1db1e06293fe71288 --- /dev/null +++ b/tasks/construct-mc-pysms-independent-connectivity-l5-s2/tests/instance.json @@ -0,0 +1 @@ +{"vertices": 16, "required_edges": [], "max_independent_set": 5, "min_connectivity": 5, "family": "mc_pysms_independent_connectivity", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-pysms-independent-connectivity-l5-s2/tests/run.py b/tasks/construct-mc-pysms-independent-connectivity-l5-s2/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-pysms-independent-connectivity-l5-s2/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-pysms-independent-connectivity-l5-s2/tests/test.sh b/tasks/construct-mc-pysms-independent-connectivity-l5-s2/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-pysms-independent-connectivity-l5-s2/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-pysms-min-degree-l4-s1/environment/Dockerfile b/tasks/construct-mc-pysms-min-degree-l4-s1/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-pysms-min-degree-l4-s1/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-pysms-min-degree-l4-s1/environment/instance.json b/tasks/construct-mc-pysms-min-degree-l4-s1/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..fe1b4484fb60f5ebf9219d738563c75155b90b23 --- /dev/null +++ b/tasks/construct-mc-pysms-min-degree-l4-s1/environment/instance.json @@ -0,0 +1 @@ +{"vertices": 13, "required_edges": [], "min_degree": 5, "family": "mc_pysms_min_degree", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-pysms-min-degree-l4-s1/solution/solve.sh b/tasks/construct-mc-pysms-min-degree-l4-s1/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..4cafa9813841741ebbf193085ce3e45b85fa4e68 --- /dev/null +++ b/tasks/construct-mc-pysms-min-degree-l4-s1/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [2, 3], [2, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [3, 4], [3, 5], [3, 6], [3, 7], [3, 8], [3, 9], [3, 10], [3, 11], [3, 12], [4, 5], [4, 6], [4, 7], [4, 8], [4, 9], [4, 10], [4, 11], [4, 12], [5, 6], [5, 7], [5, 8], [5, 9], [5, 10], [5, 11], [5, 12], [6, 7], [6, 8], [6, 9], [6, 10], [6, 11], [6, 12], [7, 8], [7, 9], [7, 10], [7, 11], [7, 12], [8, 9], [8, 10], [8, 11], [8, 12], [9, 10], [9, 11], [9, 12], [10, 11], [10, 12], [11, 12]]} +RLMATH_EOF diff --git a/tasks/construct-mc-pysms-min-degree-l4-s1/tests/check.py b/tasks/construct-mc-pysms-min-degree-l4-s1/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..4ab0b12508cf59b733f007a9d1f50831aec9efdf --- /dev/null +++ b/tasks/construct-mc-pysms-min-degree-l4-s1/tests/check.py @@ -0,0 +1,151 @@ +"""Graph-existence constraints (MathConstraint pysms_* problem types, CC-BY-4.0). The answer is a graph on +the stated vertex set, plus a proper colouring when a chromatic-number upper bound is asked for. Every +constraint present in the instance is checked exactly (no stored answer is compared). + +Upstream note: upstream verifies by fixing the edge variables in the pysms CNF and calling CaDiCaL; the +min-chromatic-number bound of pysms_graph_builder is only a raw smsg solver parameter, not a clause, so the +upstream verifier ignored it. It is enforced here. Edge endpoints are also type-checked (upstream accepted +floats/bools that compare in range).""" +import itertools + +from run import Invalid, int_list + + +def _has_clique(adj, n, k): + def rec(cand, size): + if size == k: + return True + while cand: + if size + bin(cand).count("1") < k: + return False + v = cand.bit_length() - 1 + cand &= ~(1 << v) + if rec(cand & adj[v], size + 1): + return True + return False + return rec((1 << n) - 1, 0) + + +def _connected(adj, n, removed): + alive = [v for v in range(n) if not removed >> v & 1] + if len(alive) <= 1: + return True + mask = sum(1 << v for v in alive) + seen = 1 << alive[0] + stack = [alive[0]] + while stack: + v = stack.pop() + new = adj[v] & mask & ~seen + seen |= new + while new: + u = new.bit_length() - 1 + new &= ~(1 << u) + stack.append(u) + return seen == mask + + +def _girth(adj, n): + best = None + for r in range(n): + dist, par, q = {r: 0}, {r: -1}, [r] + for v in q: + nb = adj[v] + while nb: + u = nb.bit_length() - 1 + nb &= ~(1 << u) + if u not in dist: + dist[u], par[u] = dist[v] + 1, v + q.append(u) + elif par[v] != u: + c = dist[u] + dist[v] + 1 + best = c if best is None else min(best, c) + return best # None = acyclic + + +def _colourable(adj, n, k): + col = [-1] * n + order = sorted(range(n), key=lambda v: -bin(adj[v]).count("1")) + + def rec(i): + if i == n: + return True + v = order[i] + used = {col[u] for u in range(n) if adj[v] >> u & 1 and col[u] >= 0} + for c in range(k): + if c not in used: + col[v] = c + if rec(i + 1): + return True + col[v] = -1 + return False + return rec(0) + + +def check(inst, ans): + n = inst["vertices"] + E = ans.get("edges") + if not isinstance(E, list): + raise Invalid("edges must be a list of [u, v] pairs") + edges = set() + for e in E: + u, v = int_list(e, 2, 0, n - 1, "edge") + if u == v: + raise Invalid(f"self-loop at {u}") + e2 = (min(u, v), max(u, v)) + if e2 in edges: + raise Invalid(f"duplicate edge {e2}") + edges.add(e2) + adj = [0] * n + for u, v in edges: + adj[u] |= 1 << v + adj[v] |= 1 << u + deg = [bin(a).count("1") for a in adj] + for u, v in inst.get("required_edges", []): + if (min(u, v), max(u, v)) not in edges: + raise Invalid(f"required edge ({u},{v}) is missing") + c = inst.get + if c("min_degree") is not None and min(deg) < c("min_degree"): + raise Invalid(f"minimum degree {min(deg)} < {c('min_degree')}") + if c("max_degree") is not None and max(deg) > c("max_degree"): + raise Invalid(f"maximum degree {max(deg)} > {c('max_degree')}") + if c("min_edges") is not None and len(edges) < c("min_edges"): + raise Invalid(f"{len(edges)} edges < {c('min_edges')}") + if c("max_edges") is not None and len(edges) > c("max_edges"): + raise Invalid(f"{len(edges)} edges > {c('max_edges')}") + if c("max_clique") is not None and _has_clique(adj, n, c("max_clique") + 1): + raise Invalid(f"graph contains a clique of size {c('max_clique') + 1}") + if c("max_independent_set") is not None: + full = (1 << n) - 1 + comp = [full & ~adj[v] & ~(1 << v) for v in range(n)] + if _has_clique(comp, n, c("max_independent_set") + 1): + raise Invalid(f"graph contains an independent set of size {c('max_independent_set') + 1}") + if c("min_girth") is not None: + g = _girth(adj, n) + if g is not None and g < c("min_girth"): + raise Invalid(f"graph has a cycle of length {g} < {c('min_girth')}") + if c("min_connectivity") is not None: + k = c("min_connectivity") + if n <= k: + raise Invalid("too few vertices for this connectivity") + for s in range(k): + for I in itertools.combinations(range(n), s): + if not _connected(adj, n, sum(1 << v for v in I)): + raise Invalid(f"deleting vertices {list(I)} disconnects the graph") + if c("mtf"): + for u, v in itertools.combinations(range(n), 2): + if adj[u] >> v & 1: + if adj[u] & adj[v]: + raise Invalid(f"triangle on edge ({u},{v})") + elif not adj[u] & adj[v]: + raise Invalid(f"non-adjacent {u}, {v} have no common neighbour (edge could be added)") + if c("max_chromatic_number") is not None: + k = c("max_chromatic_number") + col = int_list(ans.get("coloring"), n, 0, k - 1, "coloring") + for u, v in edges: + if col[u] == col[v]: + raise Invalid(f"coloring: edge ({u},{v}) is monochromatic") + if c("min_chromatic_number") is not None and c("min_chromatic_number") >= 2: + m = c("min_chromatic_number") + if not edges or _colourable(adj, n, m - 1): + raise Invalid(f"graph is {m - 1}-colourable, chromatic number must be at least {m}") + return None, {"num_edges": len(edges)} diff --git a/tasks/construct-mc-pysms-min-degree-l4-s1/tests/instance.json b/tasks/construct-mc-pysms-min-degree-l4-s1/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..fe1b4484fb60f5ebf9219d738563c75155b90b23 --- /dev/null +++ b/tasks/construct-mc-pysms-min-degree-l4-s1/tests/instance.json @@ -0,0 +1 @@ +{"vertices": 13, "required_edges": [], "min_degree": 5, "family": "mc_pysms_min_degree", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-pysms-min-degree-l4-s1/tests/run.py b/tasks/construct-mc-pysms-min-degree-l4-s1/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-pysms-min-degree-l4-s1/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-pysms-min-degree-l4-s1/tests/test.sh b/tasks/construct-mc-pysms-min-degree-l4-s1/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-pysms-min-degree-l4-s1/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-pysms-mtf-l3-s0/environment/Dockerfile b/tasks/construct-mc-pysms-mtf-l3-s0/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-pysms-mtf-l3-s0/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-pysms-mtf-l3-s0/environment/instance.json b/tasks/construct-mc-pysms-mtf-l3-s0/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..c21a017cc6b529789390a0eb7948c0861d26ccaf --- /dev/null +++ b/tasks/construct-mc-pysms-mtf-l3-s0/environment/instance.json @@ -0,0 +1 @@ +{"vertices": 13, "required_edges": [], "mtf": true, "family": "mc_pysms_mtf", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-pysms-mtf-l3-s0/solution/solve.sh b/tasks/construct-mc-pysms-mtf-l3-s0/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..f139dc26d436928601ea1b66df379d7ca661c60d --- /dev/null +++ b/tasks/construct-mc-pysms-mtf-l3-s0/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"edges": [[0, 11], [0, 12], [1, 11], [1, 12], [2, 11], [2, 12], [3, 11], [3, 12], [4, 11], [4, 12], [5, 11], [5, 12], [6, 11], [6, 12], [7, 11], [7, 12], [8, 11], [8, 12], [9, 11], [9, 12], [10, 11], [10, 12]]} +RLMATH_EOF diff --git a/tasks/construct-mc-pysms-mtf-l3-s0/tests/check.py b/tasks/construct-mc-pysms-mtf-l3-s0/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..4ab0b12508cf59b733f007a9d1f50831aec9efdf --- /dev/null +++ b/tasks/construct-mc-pysms-mtf-l3-s0/tests/check.py @@ -0,0 +1,151 @@ +"""Graph-existence constraints (MathConstraint pysms_* problem types, CC-BY-4.0). The answer is a graph on +the stated vertex set, plus a proper colouring when a chromatic-number upper bound is asked for. Every +constraint present in the instance is checked exactly (no stored answer is compared). + +Upstream note: upstream verifies by fixing the edge variables in the pysms CNF and calling CaDiCaL; the +min-chromatic-number bound of pysms_graph_builder is only a raw smsg solver parameter, not a clause, so the +upstream verifier ignored it. It is enforced here. Edge endpoints are also type-checked (upstream accepted +floats/bools that compare in range).""" +import itertools + +from run import Invalid, int_list + + +def _has_clique(adj, n, k): + def rec(cand, size): + if size == k: + return True + while cand: + if size + bin(cand).count("1") < k: + return False + v = cand.bit_length() - 1 + cand &= ~(1 << v) + if rec(cand & adj[v], size + 1): + return True + return False + return rec((1 << n) - 1, 0) + + +def _connected(adj, n, removed): + alive = [v for v in range(n) if not removed >> v & 1] + if len(alive) <= 1: + return True + mask = sum(1 << v for v in alive) + seen = 1 << alive[0] + stack = [alive[0]] + while stack: + v = stack.pop() + new = adj[v] & mask & ~seen + seen |= new + while new: + u = new.bit_length() - 1 + new &= ~(1 << u) + stack.append(u) + return seen == mask + + +def _girth(adj, n): + best = None + for r in range(n): + dist, par, q = {r: 0}, {r: -1}, [r] + for v in q: + nb = adj[v] + while nb: + u = nb.bit_length() - 1 + nb &= ~(1 << u) + if u not in dist: + dist[u], par[u] = dist[v] + 1, v + q.append(u) + elif par[v] != u: + c = dist[u] + dist[v] + 1 + best = c if best is None else min(best, c) + return best # None = acyclic + + +def _colourable(adj, n, k): + col = [-1] * n + order = sorted(range(n), key=lambda v: -bin(adj[v]).count("1")) + + def rec(i): + if i == n: + return True + v = order[i] + used = {col[u] for u in range(n) if adj[v] >> u & 1 and col[u] >= 0} + for c in range(k): + if c not in used: + col[v] = c + if rec(i + 1): + return True + col[v] = -1 + return False + return rec(0) + + +def check(inst, ans): + n = inst["vertices"] + E = ans.get("edges") + if not isinstance(E, list): + raise Invalid("edges must be a list of [u, v] pairs") + edges = set() + for e in E: + u, v = int_list(e, 2, 0, n - 1, "edge") + if u == v: + raise Invalid(f"self-loop at {u}") + e2 = (min(u, v), max(u, v)) + if e2 in edges: + raise Invalid(f"duplicate edge {e2}") + edges.add(e2) + adj = [0] * n + for u, v in edges: + adj[u] |= 1 << v + adj[v] |= 1 << u + deg = [bin(a).count("1") for a in adj] + for u, v in inst.get("required_edges", []): + if (min(u, v), max(u, v)) not in edges: + raise Invalid(f"required edge ({u},{v}) is missing") + c = inst.get + if c("min_degree") is not None and min(deg) < c("min_degree"): + raise Invalid(f"minimum degree {min(deg)} < {c('min_degree')}") + if c("max_degree") is not None and max(deg) > c("max_degree"): + raise Invalid(f"maximum degree {max(deg)} > {c('max_degree')}") + if c("min_edges") is not None and len(edges) < c("min_edges"): + raise Invalid(f"{len(edges)} edges < {c('min_edges')}") + if c("max_edges") is not None and len(edges) > c("max_edges"): + raise Invalid(f"{len(edges)} edges > {c('max_edges')}") + if c("max_clique") is not None and _has_clique(adj, n, c("max_clique") + 1): + raise Invalid(f"graph contains a clique of size {c('max_clique') + 1}") + if c("max_independent_set") is not None: + full = (1 << n) - 1 + comp = [full & ~adj[v] & ~(1 << v) for v in range(n)] + if _has_clique(comp, n, c("max_independent_set") + 1): + raise Invalid(f"graph contains an independent set of size {c('max_independent_set') + 1}") + if c("min_girth") is not None: + g = _girth(adj, n) + if g is not None and g < c("min_girth"): + raise Invalid(f"graph has a cycle of length {g} < {c('min_girth')}") + if c("min_connectivity") is not None: + k = c("min_connectivity") + if n <= k: + raise Invalid("too few vertices for this connectivity") + for s in range(k): + for I in itertools.combinations(range(n), s): + if not _connected(adj, n, sum(1 << v for v in I)): + raise Invalid(f"deleting vertices {list(I)} disconnects the graph") + if c("mtf"): + for u, v in itertools.combinations(range(n), 2): + if adj[u] >> v & 1: + if adj[u] & adj[v]: + raise Invalid(f"triangle on edge ({u},{v})") + elif not adj[u] & adj[v]: + raise Invalid(f"non-adjacent {u}, {v} have no common neighbour (edge could be added)") + if c("max_chromatic_number") is not None: + k = c("max_chromatic_number") + col = int_list(ans.get("coloring"), n, 0, k - 1, "coloring") + for u, v in edges: + if col[u] == col[v]: + raise Invalid(f"coloring: edge ({u},{v}) is monochromatic") + if c("min_chromatic_number") is not None and c("min_chromatic_number") >= 2: + m = c("min_chromatic_number") + if not edges or _colourable(adj, n, m - 1): + raise Invalid(f"graph is {m - 1}-colourable, chromatic number must be at least {m}") + return None, {"num_edges": len(edges)} diff --git a/tasks/construct-mc-pysms-mtf-l3-s0/tests/instance.json b/tasks/construct-mc-pysms-mtf-l3-s0/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..c21a017cc6b529789390a0eb7948c0861d26ccaf --- /dev/null +++ b/tasks/construct-mc-pysms-mtf-l3-s0/tests/instance.json @@ -0,0 +1 @@ +{"vertices": 13, "required_edges": [], "mtf": true, "family": "mc_pysms_mtf", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-pysms-mtf-l3-s0/tests/run.py b/tasks/construct-mc-pysms-mtf-l3-s0/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-pysms-mtf-l3-s0/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-pysms-mtf-l3-s0/tests/test.sh b/tasks/construct-mc-pysms-mtf-l3-s0/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-pysms-mtf-l3-s0/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-quasigroup-idempotent-l4-s0/environment/Dockerfile b/tasks/construct-mc-quasigroup-idempotent-l4-s0/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-quasigroup-idempotent-l4-s0/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-quasigroup-idempotent-l4-s0/environment/instance.json b/tasks/construct-mc-quasigroup-idempotent-l4-s0/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..32b0faf7b366a2ca89c92d8a13b6c9caf76d0c1a --- /dev/null +++ b/tasks/construct-mc-quasigroup-idempotent-l4-s0/environment/instance.json @@ -0,0 +1 @@ +{"n": 16, "family": "mc_quasigroup_idempotent", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-quasigroup-idempotent-l4-s0/solution/solve.sh b/tasks/construct-mc-quasigroup-idempotent-l4-s0/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..1b2fb35bb0dbc9148f0e499f9297368a16b572d6 --- /dev/null +++ b/tasks/construct-mc-quasigroup-idempotent-l4-s0/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"table": [[0, 3, 6, 5, 12, 15, 10, 9, 11, 8, 13, 14, 7, 4, 1, 2], [2, 1, 4, 7, 14, 13, 8, 11, 9, 10, 15, 12, 5, 6, 3, 0], [4, 7, 2, 1, 8, 11, 14, 13, 15, 12, 9, 10, 3, 0, 5, 6], [6, 5, 0, 3, 10, 9, 12, 15, 13, 14, 11, 8, 1, 2, 7, 4], [8, 11, 14, 13, 4, 7, 2, 1, 3, 0, 5, 6, 15, 12, 9, 10], [10, 9, 12, 15, 6, 5, 0, 3, 1, 2, 7, 4, 13, 14, 11, 8], [12, 15, 10, 9, 0, 3, 6, 5, 7, 4, 1, 2, 11, 8, 13, 14], [14, 13, 8, 11, 2, 1, 4, 7, 5, 6, 3, 0, 9, 10, 15, 12], [3, 0, 5, 6, 15, 12, 9, 10, 8, 11, 14, 13, 4, 7, 2, 1], [1, 2, 7, 4, 13, 14, 11, 8, 10, 9, 12, 15, 6, 5, 0, 3], [7, 4, 1, 2, 11, 8, 13, 14, 12, 15, 10, 9, 0, 3, 6, 5], [5, 6, 3, 0, 9, 10, 15, 12, 14, 13, 8, 11, 2, 1, 4, 7], [11, 8, 13, 14, 7, 4, 1, 2, 0, 3, 6, 5, 12, 15, 10, 9], [9, 10, 15, 12, 5, 6, 3, 0, 2, 1, 4, 7, 14, 13, 8, 11], [15, 12, 9, 10, 3, 0, 5, 6, 4, 7, 2, 1, 8, 11, 14, 13], [13, 14, 11, 8, 1, 2, 7, 4, 6, 5, 0, 3, 10, 9, 12, 15]]} +RLMATH_EOF diff --git a/tasks/construct-mc-quasigroup-idempotent-l4-s0/tests/check.py b/tasks/construct-mc-quasigroup-idempotent-l4-s0/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..4563f2e9a90050cdd7c56dfc33831acde74c9ef2 --- /dev/null +++ b/tasks/construct-mc-quasigroup-idempotent-l4-s0/tests/check.py @@ -0,0 +1,21 @@ +"""Idempotent quasigroup satisfying QG3, (x*y)*(y*x) = x (MathConstraint quasigroup_idempotent, CC-BY-4.0).""" +from run import Invalid, int_list + + +def check(inst, ans): + n = inst["n"] + T = ans.get("table") + if not isinstance(T, list) or len(T) != n: + raise Invalid(f"table must be a list of {n} rows") + T = [int_list(r, n, 0, n - 1, "table row") for r in T] + full = list(range(n)) + for i in range(n): + if sorted(T[i]) != full or sorted(T[r][i] for r in range(n)) != full: + raise Invalid(f"row/column {i} is not a permutation (not a Latin square)") + if T[i][i] != i: + raise Invalid(f"not idempotent: {i}*{i} = {T[i][i]}") + for i in range(n): + for j in range(n): + if T[T[i][j]][T[j][i]] != i: + raise Invalid(f"QG3 fails for (x, y) = ({i}, {j})") + return None, {} diff --git a/tasks/construct-mc-quasigroup-idempotent-l4-s0/tests/instance.json b/tasks/construct-mc-quasigroup-idempotent-l4-s0/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..32b0faf7b366a2ca89c92d8a13b6c9caf76d0c1a --- /dev/null +++ b/tasks/construct-mc-quasigroup-idempotent-l4-s0/tests/instance.json @@ -0,0 +1 @@ +{"n": 16, "family": "mc_quasigroup_idempotent", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-quasigroup-idempotent-l4-s0/tests/run.py b/tasks/construct-mc-quasigroup-idempotent-l4-s0/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-quasigroup-idempotent-l4-s0/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-quasigroup-idempotent-l4-s0/tests/test.sh b/tasks/construct-mc-quasigroup-idempotent-l4-s0/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-quasigroup-idempotent-l4-s0/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-ramsey-l1-s2/environment/Dockerfile b/tasks/construct-mc-ramsey-l1-s2/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-ramsey-l1-s2/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-ramsey-l1-s2/environment/instance.json b/tasks/construct-mc-ramsey-l1-s2/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..a9fc4cedbc78a3cca456b1c3dd05869005620fb6 --- /dev/null +++ b/tasks/construct-mc-ramsey-l1-s2/environment/instance.json @@ -0,0 +1 @@ +{"n": 5, "r": 3, "s": 3, "fixed": [], "family": "mc_ramsey", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-ramsey-l1-s2/solution/solve.sh b/tasks/construct-mc-ramsey-l1-s2/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..75f31dc4de25a410aaf124db5493ab54515ec829 --- /dev/null +++ b/tasks/construct-mc-ramsey-l1-s2/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"colors": [0, 1, 1, 0, 0, 1, 1, 0, 1, 0]} +RLMATH_EOF diff --git a/tasks/construct-mc-ramsey-l1-s2/tests/check.py b/tasks/construct-mc-ramsey-l1-s2/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..53526c0bc87af6298219d3e1eac5f95f01b57541 --- /dev/null +++ b/tasks/construct-mc-ramsey-l1-s2/tests/check.py @@ -0,0 +1,31 @@ +"""Two-colouring of the edges of K_n with no colour-0 K_r and no colour-1 K_s (MathConstraint ramsey, +CC-BY-4.0). Adapted from pilot/grader.py check_ramsey; adds the optional fixed edge colours.""" +import itertools + +from run import Invalid, int_list + + +def check(inst, ans): + n, r, s = inst["n"], inst["r"], inst["s"] + edges = list(itertools.combinations(range(n), 2)) + col = int_list(ans.get("colors"), len(edges), 0, 1, "colors") + for name, i, v in inst.get("fixed", []): + if col[i] != v: + raise Invalid(f"fixed value {name}[{i}] = {v} not respected") + c = {e: col[i] for i, e in enumerate(edges)} + for k, colour in ((r, 0), (s, 1)): + adj = {v: {u for u in range(n) if u != v and c[(min(u, v), max(u, v))] == colour} for v in range(n)} + + def grow(size, cand): + if size == k: + return True + if size + len(cand) < k: + return False + for v in sorted(cand): + if grow(size + 1, {u for u in cand if u > v} & adj[v]): + return True + return False + + if grow(0, set(range(n))): + raise Invalid(f"monochromatic K_{k} in colour {colour}") + return None, {} diff --git a/tasks/construct-mc-ramsey-l1-s2/tests/instance.json b/tasks/construct-mc-ramsey-l1-s2/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..a9fc4cedbc78a3cca456b1c3dd05869005620fb6 --- /dev/null +++ b/tasks/construct-mc-ramsey-l1-s2/tests/instance.json @@ -0,0 +1 @@ +{"n": 5, "r": 3, "s": 3, "fixed": [], "family": "mc_ramsey", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-ramsey-l1-s2/tests/run.py b/tasks/construct-mc-ramsey-l1-s2/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-ramsey-l1-s2/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-ramsey-l1-s2/tests/test.sh b/tasks/construct-mc-ramsey-l1-s2/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-ramsey-l1-s2/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-ramsey-l1-s5/environment/Dockerfile b/tasks/construct-mc-ramsey-l1-s5/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-ramsey-l1-s5/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-ramsey-l1-s5/environment/instance.json b/tasks/construct-mc-ramsey-l1-s5/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..d30446351813f7a20289c03cd3aaeedb9fcfb9e3 --- /dev/null +++ b/tasks/construct-mc-ramsey-l1-s5/environment/instance.json @@ -0,0 +1 @@ +{"n": 7, "r": 4, "s": 3, "fixed": [], "family": "mc_ramsey", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-ramsey-l1-s5/solution/solve.sh b/tasks/construct-mc-ramsey-l1-s5/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..787607189e2e6336eac562a7dd74b5b4784b689a --- /dev/null +++ b/tasks/construct-mc-ramsey-l1-s5/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"colors": [1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1]} +RLMATH_EOF diff --git a/tasks/construct-mc-ramsey-l1-s5/tests/check.py b/tasks/construct-mc-ramsey-l1-s5/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..53526c0bc87af6298219d3e1eac5f95f01b57541 --- /dev/null +++ b/tasks/construct-mc-ramsey-l1-s5/tests/check.py @@ -0,0 +1,31 @@ +"""Two-colouring of the edges of K_n with no colour-0 K_r and no colour-1 K_s (MathConstraint ramsey, +CC-BY-4.0). Adapted from pilot/grader.py check_ramsey; adds the optional fixed edge colours.""" +import itertools + +from run import Invalid, int_list + + +def check(inst, ans): + n, r, s = inst["n"], inst["r"], inst["s"] + edges = list(itertools.combinations(range(n), 2)) + col = int_list(ans.get("colors"), len(edges), 0, 1, "colors") + for name, i, v in inst.get("fixed", []): + if col[i] != v: + raise Invalid(f"fixed value {name}[{i}] = {v} not respected") + c = {e: col[i] for i, e in enumerate(edges)} + for k, colour in ((r, 0), (s, 1)): + adj = {v: {u for u in range(n) if u != v and c[(min(u, v), max(u, v))] == colour} for v in range(n)} + + def grow(size, cand): + if size == k: + return True + if size + len(cand) < k: + return False + for v in sorted(cand): + if grow(size + 1, {u for u in cand if u > v} & adj[v]): + return True + return False + + if grow(0, set(range(n))): + raise Invalid(f"monochromatic K_{k} in colour {colour}") + return None, {} diff --git a/tasks/construct-mc-ramsey-l1-s5/tests/instance.json b/tasks/construct-mc-ramsey-l1-s5/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..d30446351813f7a20289c03cd3aaeedb9fcfb9e3 --- /dev/null +++ b/tasks/construct-mc-ramsey-l1-s5/tests/instance.json @@ -0,0 +1 @@ +{"n": 7, "r": 4, "s": 3, "fixed": [], "family": "mc_ramsey", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-ramsey-l1-s5/tests/run.py b/tasks/construct-mc-ramsey-l1-s5/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-ramsey-l1-s5/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-ramsey-l1-s5/tests/test.sh b/tasks/construct-mc-ramsey-l1-s5/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-ramsey-l1-s5/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-ramsey-l5-s3/environment/Dockerfile b/tasks/construct-mc-ramsey-l5-s3/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-ramsey-l5-s3/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-ramsey-l5-s3/environment/instance.json b/tasks/construct-mc-ramsey-l5-s3/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..497e30ac53a7076715358cd67ca58b26b963195a --- /dev/null +++ b/tasks/construct-mc-ramsey-l5-s3/environment/instance.json @@ -0,0 +1 @@ +{"n": 24, "r": 5, "s": 4, "fixed": [], "family": "mc_ramsey", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-ramsey-l5-s3/solution/solve.sh b/tasks/construct-mc-ramsey-l5-s3/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..209bb62619fa322065a517818775fef428ba66e4 --- /dev/null +++ b/tasks/construct-mc-ramsey-l5-s3/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"colors": [1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 1, 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0, 1, 0, 0, 0, 1, 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1]} +RLMATH_EOF diff --git a/tasks/construct-mc-ramsey-l5-s3/tests/check.py b/tasks/construct-mc-ramsey-l5-s3/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..53526c0bc87af6298219d3e1eac5f95f01b57541 --- /dev/null +++ b/tasks/construct-mc-ramsey-l5-s3/tests/check.py @@ -0,0 +1,31 @@ +"""Two-colouring of the edges of K_n with no colour-0 K_r and no colour-1 K_s (MathConstraint ramsey, +CC-BY-4.0). Adapted from pilot/grader.py check_ramsey; adds the optional fixed edge colours.""" +import itertools + +from run import Invalid, int_list + + +def check(inst, ans): + n, r, s = inst["n"], inst["r"], inst["s"] + edges = list(itertools.combinations(range(n), 2)) + col = int_list(ans.get("colors"), len(edges), 0, 1, "colors") + for name, i, v in inst.get("fixed", []): + if col[i] != v: + raise Invalid(f"fixed value {name}[{i}] = {v} not respected") + c = {e: col[i] for i, e in enumerate(edges)} + for k, colour in ((r, 0), (s, 1)): + adj = {v: {u for u in range(n) if u != v and c[(min(u, v), max(u, v))] == colour} for v in range(n)} + + def grow(size, cand): + if size == k: + return True + if size + len(cand) < k: + return False + for v in sorted(cand): + if grow(size + 1, {u for u in cand if u > v} & adj[v]): + return True + return False + + if grow(0, set(range(n))): + raise Invalid(f"monochromatic K_{k} in colour {colour}") + return None, {} diff --git a/tasks/construct-mc-ramsey-l5-s3/tests/instance.json b/tasks/construct-mc-ramsey-l5-s3/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..497e30ac53a7076715358cd67ca58b26b963195a --- /dev/null +++ b/tasks/construct-mc-ramsey-l5-s3/tests/instance.json @@ -0,0 +1 @@ +{"n": 24, "r": 5, "s": 4, "fixed": [], "family": "mc_ramsey", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-ramsey-l5-s3/tests/run.py b/tasks/construct-mc-ramsey-l5-s3/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-ramsey-l5-s3/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-ramsey-l5-s3/tests/test.sh b/tasks/construct-mc-ramsey-l5-s3/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-ramsey-l5-s3/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-ramsey-l5-s4/environment/Dockerfile b/tasks/construct-mc-ramsey-l5-s4/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-ramsey-l5-s4/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-ramsey-l5-s4/environment/instance.json b/tasks/construct-mc-ramsey-l5-s4/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..f546a94f5f20801989c192113a4a8c1226cf5881 --- /dev/null +++ b/tasks/construct-mc-ramsey-l5-s4/environment/instance.json @@ -0,0 +1 @@ +{"n": 24, "r": 3, "s": 8, "fixed": [], "family": "mc_ramsey", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-ramsey-l5-s4/solution/solve.sh b/tasks/construct-mc-ramsey-l5-s4/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..d90ed9087cb38344e9de3429fd2c2756d391a7a4 --- /dev/null +++ b/tasks/construct-mc-ramsey-l5-s4/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"colors": [1, 1, 1, 0, 0, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 0, 0, 1, 1, 1, 1, 0, 0, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 0, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 0, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 0, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 1, 1, 1, 1, 1, 0, 0, 1, 0, 1, 1, 1, 1, 0, 0, 1, 0, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1]} +RLMATH_EOF diff --git a/tasks/construct-mc-ramsey-l5-s4/tests/check.py b/tasks/construct-mc-ramsey-l5-s4/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..53526c0bc87af6298219d3e1eac5f95f01b57541 --- /dev/null +++ b/tasks/construct-mc-ramsey-l5-s4/tests/check.py @@ -0,0 +1,31 @@ +"""Two-colouring of the edges of K_n with no colour-0 K_r and no colour-1 K_s (MathConstraint ramsey, +CC-BY-4.0). Adapted from pilot/grader.py check_ramsey; adds the optional fixed edge colours.""" +import itertools + +from run import Invalid, int_list + + +def check(inst, ans): + n, r, s = inst["n"], inst["r"], inst["s"] + edges = list(itertools.combinations(range(n), 2)) + col = int_list(ans.get("colors"), len(edges), 0, 1, "colors") + for name, i, v in inst.get("fixed", []): + if col[i] != v: + raise Invalid(f"fixed value {name}[{i}] = {v} not respected") + c = {e: col[i] for i, e in enumerate(edges)} + for k, colour in ((r, 0), (s, 1)): + adj = {v: {u for u in range(n) if u != v and c[(min(u, v), max(u, v))] == colour} for v in range(n)} + + def grow(size, cand): + if size == k: + return True + if size + len(cand) < k: + return False + for v in sorted(cand): + if grow(size + 1, {u for u in cand if u > v} & adj[v]): + return True + return False + + if grow(0, set(range(n))): + raise Invalid(f"monochromatic K_{k} in colour {colour}") + return None, {} diff --git a/tasks/construct-mc-ramsey-l5-s4/tests/instance.json b/tasks/construct-mc-ramsey-l5-s4/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..f546a94f5f20801989c192113a4a8c1226cf5881 --- /dev/null +++ b/tasks/construct-mc-ramsey-l5-s4/tests/instance.json @@ -0,0 +1 @@ +{"n": 24, "r": 3, "s": 8, "fixed": [], "family": "mc_ramsey", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-ramsey-l5-s4/tests/run.py b/tasks/construct-mc-ramsey-l5-s4/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-ramsey-l5-s4/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-ramsey-l5-s4/tests/test.sh b/tasks/construct-mc-ramsey-l5-s4/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-ramsey-l5-s4/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-social-golfers-l4-s0/environment/Dockerfile b/tasks/construct-mc-social-golfers-l4-s0/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-social-golfers-l4-s0/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-social-golfers-l4-s0/environment/instance.json b/tasks/construct-mc-social-golfers-l4-s0/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..b5bb15ce6f0e59ce258b2adcc5ebf820a6d8297e --- /dev/null +++ b/tasks/construct-mc-social-golfers-l4-s0/environment/instance.json @@ -0,0 +1 @@ +{"n_groups": 8, "group_size": 3, "n_weeks": 8, "family": "mc_social_golfers", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-social-golfers-l4-s0/solution/solve.sh b/tasks/construct-mc-social-golfers-l4-s0/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..f3c341cb2654643213031a64104cb27cce95f88e --- /dev/null +++ b/tasks/construct-mc-social-golfers-l4-s0/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"schedule": [[0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7], [2, 7, 5, 2, 4, 3, 1, 6, 0, 0, 4, 1, 1, 5, 3, 0, 6, 7, 4, 6, 7, 5, 3, 2], [3, 4, 5, 1, 3, 2, 4, 1, 6, 1, 0, 2, 7, 4, 5, 2, 5, 6, 6, 0, 7, 0, 3, 7], [4, 0, 3, 1, 7, 5, 6, 3, 5, 4, 2, 1, 3, 7, 4, 2, 0, 6, 0, 1, 7, 6, 2, 5], [0, 1, 7, 3, 5, 7, 6, 5, 0, 1, 6, 0, 2, 3, 4, 4, 2, 3, 7, 1, 6, 4, 2, 5], [6, 2, 0, 1, 3, 7, 1, 2, 3, 5, 6, 4, 5, 7, 2, 0, 7, 6, 1, 3, 4, 5, 4, 0], [7, 4, 3, 1, 3, 5, 6, 0, 4, 2, 1, 3, 5, 0, 1, 0, 7, 5, 2, 6, 7, 4, 6, 2], [1, 4, 0, 0, 4, 3, 6, 3, 7, 6, 3, 2, 1, 7, 5, 4, 6, 5, 2, 1, 0, 2, 7, 5]]} +RLMATH_EOF diff --git a/tasks/construct-mc-social-golfers-l4-s0/tests/check.py b/tasks/construct-mc-social-golfers-l4-s0/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..73977815b7b6094a8491075b6dc2ae1293e44930 --- /dev/null +++ b/tasks/construct-mc-social-golfers-l4-s0/tests/check.py @@ -0,0 +1,25 @@ +"""Social golfer problem (MathConstraint social_golfers, CSPLib prob010, CC-BY-4.0): each week partition +the g*s players into g groups of size s; no two players share a group in more than one week.""" +from run import Invalid, int_list + + +def check(inst, ans): + g, s, w = inst["n_groups"], inst["group_size"], inst["n_weeks"] + P = g * s + sched = ans.get("schedule") + if not isinstance(sched, list) or len(sched) != w: + raise Invalid(f"schedule must be a list of {w} weeks") + met = set() + for wk, row in enumerate(sched): + row = int_list(row, P, 0, g - 1, f"week {wk}") + groups = [[p for p in range(P) if row[p] == grp] for grp in range(g)] + for grp, mem in enumerate(groups): + if len(mem) != s: + raise Invalid(f"week {wk}: group {grp} has {len(mem)} players, need {s}") + for i in range(s): + for j in range(i + 1, s): + pr = (mem[i], mem[j]) + if pr in met: + raise Invalid(f"players {pr} play together in more than one week") + met.add(pr) + return None, {} diff --git a/tasks/construct-mc-social-golfers-l4-s0/tests/instance.json b/tasks/construct-mc-social-golfers-l4-s0/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..b5bb15ce6f0e59ce258b2adcc5ebf820a6d8297e --- /dev/null +++ b/tasks/construct-mc-social-golfers-l4-s0/tests/instance.json @@ -0,0 +1 @@ +{"n_groups": 8, "group_size": 3, "n_weeks": 8, "family": "mc_social_golfers", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-social-golfers-l4-s0/tests/run.py b/tasks/construct-mc-social-golfers-l4-s0/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-social-golfers-l4-s0/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-social-golfers-l4-s0/tests/test.sh b/tasks/construct-mc-social-golfers-l4-s0/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-social-golfers-l4-s0/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-vertex-cover-l4-s1/environment/Dockerfile b/tasks/construct-mc-vertex-cover-l4-s1/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-vertex-cover-l4-s1/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-vertex-cover-l4-s1/environment/instance.json b/tasks/construct-mc-vertex-cover-l4-s1/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..62c318a99646a6fa433beb3b3f6c5b84f5e58ae4 --- /dev/null +++ b/tasks/construct-mc-vertex-cover-l4-s1/environment/instance.json @@ -0,0 +1 @@ +{"n": 60, "k": 41, "edges": [[0, 4], [0, 9], [0, 31], [0, 32], [0, 35], [0, 41], [0, 45], [0, 50], [0, 54], [1, 19], [1, 20], [1, 26], [1, 29], [1, 37], [1, 40], [1, 46], [1, 52], [1, 53], [2, 3], [2, 10], [2, 17], [2, 20], [2, 21], [2, 29], [2, 32], [2, 33], [2, 34], [2, 36], [2, 46], [2, 47], [3, 4], [3, 18], [3, 19], [3, 25], [3, 30], [3, 31], [3, 35], [3, 36], [3, 44], [3, 47], [3, 55], [3, 56], [4, 13], [4, 18], [4, 25], [4, 28], [4, 35], [4, 38], [4, 47], [4, 51], [5, 13], [5, 14], [5, 18], [5, 19], [5, 21], [5, 28], [5, 30], [5, 31], [5, 36], [5, 37], [5, 45], [5, 46], [5, 52], [5, 54], [5, 56], [6, 12], [6, 13], [6, 14], [6, 33], [6, 35], [6, 42], [6, 44], [6, 50], [6, 53], [6, 59], [7, 9], [7, 11], [7, 17], [7, 18], [7, 20], [7, 30], [7, 31], [7, 42], [7, 48], [7, 53], [8, 10], [8, 19], [8, 21], [8, 22], [8, 44], [8, 55], [8, 57], [9, 11], [9, 21], [9, 24], [9, 31], [9, 41], [9, 48], [9, 49], [9, 51], [9, 54], [9, 57], [10, 11], [10, 24], [10, 27], [10, 41], [10, 47], [10, 52], [10, 55], [10, 58], [11, 26], [11, 40], [11, 52], [11, 57], [12, 25], [12, 31], [12, 32], [12, 33], [12, 34], [12, 46], [12, 48], [12, 51], [12, 56], [13, 26], [13, 27], [13, 31], [13, 32], [13, 39], [13, 43], [13, 45], [13, 46], [13, 53], [13, 58], [14, 32], [14, 34], [14, 36], [14, 37], [14, 47], [14, 49], [14, 51], [14, 53], [15, 20], [15, 51], [15, 57], [16, 40], [16, 51], [16, 59], [17, 21], [17, 22], [17, 25], [17, 37], [17, 40], [17, 41], [17, 42], [17, 43], [17, 45], [17, 49], [17, 54], [17, 55], [17, 58], [18, 25], [18, 33], [18, 34], [18, 37], [18, 42], [18, 44], [18, 47], [18, 48], [18, 54], [18, 57], [19, 35], [19, 36], [19, 38], [19, 39], [19, 49], [19, 51], [19, 55], [19, 56], [19, 58], [20, 21], [20, 23], [20, 24], [20, 29], [20, 33], [20, 36], [20, 45], [20, 47], [20, 58], [20, 59], [21, 28], [21, 29], [21, 30], [21, 37], [21, 45], [21, 51], [21, 53], [21, 59], [22, 30], [22, 37], [22, 39], [22, 41], [22, 58], [23, 27], [23, 40], [23, 53], [23, 57], [24, 45], [24, 55], [25, 30], [25, 34], [25, 35], [25, 53], [25, 57], [26, 33], [26, 34], [26, 51], [26, 53], [26, 56], [26, 57], [27, 30], [27, 39], [27, 45], [27, 54], [27, 58], [27, 59], [28, 32], [28, 43], [28, 57], [29, 30], [29, 34], [29, 41], [29, 53], [29, 55], [29, 58], [30, 33], [30, 37], [30, 38], [30, 41], [30, 48], [30, 51], [30, 55], [31, 33], [31, 35], [31, 43], [32, 41], [32, 48], [32, 50], [32, 52], [32, 57], [32, 59], [33, 37], [33, 42], [33, 45], [33, 48], [33, 51], [33, 53], [33, 55], [33, 57], [34, 35], [34, 38], [34, 47], [34, 51], [34, 54], [35, 37], [35, 39], [35, 49], [35, 50], [35, 58], [36, 38], [36, 41], [36, 50], [36, 59], [37, 40], [37, 48], [37, 50], [37, 57], [38, 45], [38, 46], [38, 50], [38, 57], [39, 55], [40, 41], [40, 57], [41, 52], [41, 53], [41, 57], [42, 45], [42, 48], [42, 51], [43, 44], [43, 46], [43, 54], [43, 56], [44, 55], [45, 50], [45, 57], [45, 59], [46, 49], [46, 57], [47, 48], [48, 53], [48, 55], [49, 51], [49, 54], [50, 56], [50, 58], [50, 59], [51, 57], [51, 58], [52, 54], [53, 57], [54, 55], [54, 57], [55, 56], [55, 57], [55, 59], [57, 58]], "family": "mc_vertex_cover", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-vertex-cover-l4-s1/solution/solve.sh b/tasks/construct-mc-vertex-cover-l4-s1/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..bcebb8b4f36d60ac16d31ac993ddcfc3f14c1f19 --- /dev/null +++ b/tasks/construct-mc-vertex-cover-l4-s1/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"cover": [0, 3, 4, 5, 6, 7, 9, 10, 12, 13, 16, 17, 18, 19, 20, 21, 22, 26, 27, 29, 30, 32, 33, 34, 35, 36, 37, 40, 42, 43, 44, 45, 46, 47, 49, 50, 51, 52, 53, 55, 57]} +RLMATH_EOF diff --git a/tasks/construct-mc-vertex-cover-l4-s1/tests/check.py b/tasks/construct-mc-vertex-cover-l4-s1/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..e3accb3da1c773fd2126b8b5b0a97b099e29c83b --- /dev/null +++ b/tasks/construct-mc-vertex-cover-l4-s1/tests/check.py @@ -0,0 +1,16 @@ +"""Vertex cover of size <= k in a given graph (MathConstraint vertex_cover, CC-BY-4.0).""" +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["n"], inst["k"] + S = int_list(ans.get("cover"), None, 0, n - 1, "cover") + if len(set(S)) != len(S): + raise Invalid("repeated vertex") + if len(S) > k: + raise Invalid(f"cover has {len(S)} vertices, at most {k} allowed") + C = set(S) + for u, v in inst["edges"]: + if u not in C and v not in C: + raise Invalid(f"edge ({u},{v}) is not covered") + return None, {"size": len(S)} diff --git a/tasks/construct-mc-vertex-cover-l4-s1/tests/instance.json b/tasks/construct-mc-vertex-cover-l4-s1/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..62c318a99646a6fa433beb3b3f6c5b84f5e58ae4 --- /dev/null +++ b/tasks/construct-mc-vertex-cover-l4-s1/tests/instance.json @@ -0,0 +1 @@ +{"n": 60, "k": 41, "edges": [[0, 4], [0, 9], [0, 31], [0, 32], [0, 35], [0, 41], [0, 45], [0, 50], [0, 54], [1, 19], [1, 20], [1, 26], [1, 29], [1, 37], [1, 40], [1, 46], [1, 52], [1, 53], [2, 3], [2, 10], [2, 17], [2, 20], [2, 21], [2, 29], [2, 32], [2, 33], [2, 34], [2, 36], [2, 46], [2, 47], [3, 4], [3, 18], [3, 19], [3, 25], [3, 30], [3, 31], [3, 35], [3, 36], [3, 44], [3, 47], [3, 55], [3, 56], [4, 13], [4, 18], [4, 25], [4, 28], [4, 35], [4, 38], [4, 47], [4, 51], [5, 13], [5, 14], [5, 18], [5, 19], [5, 21], [5, 28], [5, 30], [5, 31], [5, 36], [5, 37], [5, 45], [5, 46], [5, 52], [5, 54], [5, 56], [6, 12], [6, 13], [6, 14], [6, 33], [6, 35], [6, 42], [6, 44], [6, 50], [6, 53], [6, 59], [7, 9], [7, 11], [7, 17], [7, 18], [7, 20], [7, 30], [7, 31], [7, 42], [7, 48], [7, 53], [8, 10], [8, 19], [8, 21], [8, 22], [8, 44], [8, 55], [8, 57], [9, 11], [9, 21], [9, 24], [9, 31], [9, 41], [9, 48], [9, 49], [9, 51], [9, 54], [9, 57], [10, 11], [10, 24], [10, 27], [10, 41], [10, 47], [10, 52], [10, 55], [10, 58], [11, 26], [11, 40], [11, 52], [11, 57], [12, 25], [12, 31], [12, 32], [12, 33], [12, 34], [12, 46], [12, 48], [12, 51], [12, 56], [13, 26], [13, 27], [13, 31], [13, 32], [13, 39], [13, 43], [13, 45], [13, 46], [13, 53], [13, 58], [14, 32], [14, 34], [14, 36], [14, 37], [14, 47], [14, 49], [14, 51], [14, 53], [15, 20], [15, 51], [15, 57], [16, 40], [16, 51], [16, 59], [17, 21], [17, 22], [17, 25], [17, 37], [17, 40], [17, 41], [17, 42], [17, 43], [17, 45], [17, 49], [17, 54], [17, 55], [17, 58], [18, 25], [18, 33], [18, 34], [18, 37], [18, 42], [18, 44], [18, 47], [18, 48], [18, 54], [18, 57], [19, 35], [19, 36], [19, 38], [19, 39], [19, 49], [19, 51], [19, 55], [19, 56], [19, 58], [20, 21], [20, 23], [20, 24], [20, 29], [20, 33], [20, 36], [20, 45], [20, 47], [20, 58], [20, 59], [21, 28], [21, 29], [21, 30], [21, 37], [21, 45], [21, 51], [21, 53], [21, 59], [22, 30], [22, 37], [22, 39], [22, 41], [22, 58], [23, 27], [23, 40], [23, 53], [23, 57], [24, 45], [24, 55], [25, 30], [25, 34], [25, 35], [25, 53], [25, 57], [26, 33], [26, 34], [26, 51], [26, 53], [26, 56], [26, 57], [27, 30], [27, 39], [27, 45], [27, 54], [27, 58], [27, 59], [28, 32], [28, 43], [28, 57], [29, 30], [29, 34], [29, 41], [29, 53], [29, 55], [29, 58], [30, 33], [30, 37], [30, 38], [30, 41], [30, 48], [30, 51], [30, 55], [31, 33], [31, 35], [31, 43], [32, 41], [32, 48], [32, 50], [32, 52], [32, 57], [32, 59], [33, 37], [33, 42], [33, 45], [33, 48], [33, 51], [33, 53], [33, 55], [33, 57], [34, 35], [34, 38], [34, 47], [34, 51], [34, 54], [35, 37], [35, 39], [35, 49], [35, 50], [35, 58], [36, 38], [36, 41], [36, 50], [36, 59], [37, 40], [37, 48], [37, 50], [37, 57], [38, 45], [38, 46], [38, 50], [38, 57], [39, 55], [40, 41], [40, 57], [41, 52], [41, 53], [41, 57], [42, 45], [42, 48], [42, 51], [43, 44], [43, 46], [43, 54], [43, 56], [44, 55], [45, 50], [45, 57], [45, 59], [46, 49], [46, 57], [47, 48], [48, 53], [48, 55], [49, 51], [49, 54], [50, 56], [50, 58], [50, 59], [51, 57], [51, 58], [52, 54], [53, 57], [54, 55], [54, 57], [55, 56], [55, 57], [55, 59], [57, 58]], "family": "mc_vertex_cover", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-vertex-cover-l4-s1/tests/run.py b/tasks/construct-mc-vertex-cover-l4-s1/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-vertex-cover-l4-s1/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-vertex-cover-l4-s1/tests/test.sh b/tasks/construct-mc-vertex-cover-l4-s1/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-vertex-cover-l4-s1/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-vertex-cover-l4-s6/environment/Dockerfile b/tasks/construct-mc-vertex-cover-l4-s6/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-vertex-cover-l4-s6/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-vertex-cover-l4-s6/environment/instance.json b/tasks/construct-mc-vertex-cover-l4-s6/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..f3efa94990208500690fafef34ae0e156846730f --- /dev/null +++ b/tasks/construct-mc-vertex-cover-l4-s6/environment/instance.json @@ -0,0 +1 @@ +{"n": 60, "k": 41, "edges": [[0, 9], [0, 14], [0, 15], [0, 24], [0, 26], [0, 28], [0, 33], [0, 35], [0, 38], [0, 39], [0, 52], [0, 55], [0, 58], [1, 3], [1, 9], [1, 14], [1, 15], [1, 20], [1, 23], [1, 24], [1, 30], [1, 33], [1, 35], [1, 42], [1, 43], [1, 48], [1, 58], [1, 59], [2, 9], [2, 14], [2, 19], [2, 23], [2, 24], [2, 33], [2, 51], [3, 12], [3, 24], [3, 34], [3, 52], [3, 53], [3, 58], [4, 10], [4, 14], [4, 26], [4, 35], [4, 38], [4, 47], [5, 9], [5, 12], [5, 13], [5, 17], [5, 19], [5, 23], [5, 28], [5, 45], [5, 51], [5, 55], [5, 57], [5, 58], [6, 7], [6, 8], [6, 11], [6, 16], [6, 22], [6, 27], [6, 35], [6, 36], [6, 38], [6, 47], [6, 51], [7, 18], [7, 26], [7, 32], [7, 35], [7, 37], [7, 49], [7, 55], [8, 25], [8, 29], [8, 39], [8, 57], [9, 14], [9, 27], [9, 31], [9, 34], [9, 36], [9, 41], [9, 43], [9, 49], [9, 51], [9, 56], [10, 37], [10, 39], [10, 45], [10, 48], [10, 53], [10, 54], [10, 55], [11, 14], [11, 16], [11, 34], [12, 22], [12, 27], [12, 28], [12, 37], [12, 40], [12, 52], [12, 58], [13, 17], [13, 34], [13, 35], [13, 50], [13, 56], [14, 15], [14, 26], [14, 33], [14, 35], [14, 39], [14, 47], [14, 53], [15, 19], [15, 23], [15, 28], [15, 33], [15, 57], [16, 22], [16, 25], [16, 38], [16, 40], [16, 47], [16, 54], [16, 56], [17, 31], [17, 40], [17, 42], [17, 49], [17, 50], [17, 53], [17, 54], [18, 40], [19, 32], [19, 35], [19, 42], [19, 45], [19, 47], [19, 52], [19, 55], [20, 26], [20, 32], [20, 38], [20, 39], [21, 24], [21, 25], [21, 27], [21, 30], [21, 38], [21, 41], [21, 48], [22, 24], [22, 25], [22, 49], [22, 52], [22, 56], [22, 58], [23, 25], [23, 26], [23, 40], [23, 51], [23, 56], [23, 59], [24, 25], [24, 26], [24, 36], [24, 46], [24, 55], [24, 59], [25, 38], [25, 39], [25, 45], [25, 48], [25, 55], [26, 28], [26, 29], [26, 58], [27, 31], [27, 37], [27, 40], [27, 46], [27, 57], [28, 30], [28, 32], [28, 50], [28, 52], [28, 54], [29, 31], [29, 38], [30, 39], [30, 57], [30, 58], [30, 59], [31, 44], [31, 49], [31, 51], [31, 54], [32, 40], [32, 44], [32, 45], [33, 38], [33, 41], [33, 51], [34, 41], [34, 45], [34, 52], [34, 57], [35, 38], [35, 39], [35, 40], [35, 51], [35, 57], [36, 41], [36, 51], [36, 52], [37, 39], [37, 45], [37, 51], [37, 58], [38, 41], [38, 45], [38, 52], [38, 58], [39, 56], [40, 43], [40, 46], [40, 59], [41, 46], [41, 54], [41, 59], [42, 59], [43, 45], [43, 47], [43, 58], [44, 50], [44, 52], [44, 56], [44, 57], [45, 52], [45, 54], [46, 55], [47, 52], [47, 57], [48, 58], [49, 55], [49, 58], [50, 59], [51, 52], [51, 53], [51, 55], [51, 59], [52, 54], [57, 59]], "family": "mc_vertex_cover", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-vertex-cover-l4-s6/solution/solve.sh b/tasks/construct-mc-vertex-cover-l4-s6/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..92a289028b2955376738df1136c742727a709a96 --- /dev/null +++ b/tasks/construct-mc-vertex-cover-l4-s6/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"cover": [0, 1, 4, 5, 6, 7, 9, 10, 12, 13, 14, 16, 17, 19, 20, 21, 23, 24, 25, 27, 28, 29, 31, 33, 34, 38, 39, 40, 41, 44, 45, 46, 47, 49, 51, 52, 53, 56, 57, 58, 59]} +RLMATH_EOF diff --git a/tasks/construct-mc-vertex-cover-l4-s6/tests/check.py b/tasks/construct-mc-vertex-cover-l4-s6/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..e3accb3da1c773fd2126b8b5b0a97b099e29c83b --- /dev/null +++ b/tasks/construct-mc-vertex-cover-l4-s6/tests/check.py @@ -0,0 +1,16 @@ +"""Vertex cover of size <= k in a given graph (MathConstraint vertex_cover, CC-BY-4.0).""" +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["n"], inst["k"] + S = int_list(ans.get("cover"), None, 0, n - 1, "cover") + if len(set(S)) != len(S): + raise Invalid("repeated vertex") + if len(S) > k: + raise Invalid(f"cover has {len(S)} vertices, at most {k} allowed") + C = set(S) + for u, v in inst["edges"]: + if u not in C and v not in C: + raise Invalid(f"edge ({u},{v}) is not covered") + return None, {"size": len(S)} diff --git a/tasks/construct-mc-vertex-cover-l4-s6/tests/instance.json b/tasks/construct-mc-vertex-cover-l4-s6/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..f3efa94990208500690fafef34ae0e156846730f --- /dev/null +++ b/tasks/construct-mc-vertex-cover-l4-s6/tests/instance.json @@ -0,0 +1 @@ +{"n": 60, "k": 41, "edges": [[0, 9], [0, 14], [0, 15], [0, 24], [0, 26], [0, 28], [0, 33], [0, 35], [0, 38], [0, 39], [0, 52], [0, 55], [0, 58], [1, 3], [1, 9], [1, 14], [1, 15], [1, 20], [1, 23], [1, 24], [1, 30], [1, 33], [1, 35], [1, 42], [1, 43], [1, 48], [1, 58], [1, 59], [2, 9], [2, 14], [2, 19], [2, 23], [2, 24], [2, 33], [2, 51], [3, 12], [3, 24], [3, 34], [3, 52], [3, 53], [3, 58], [4, 10], [4, 14], [4, 26], [4, 35], [4, 38], [4, 47], [5, 9], [5, 12], [5, 13], [5, 17], [5, 19], [5, 23], [5, 28], [5, 45], [5, 51], [5, 55], [5, 57], [5, 58], [6, 7], [6, 8], [6, 11], [6, 16], [6, 22], [6, 27], [6, 35], [6, 36], [6, 38], [6, 47], [6, 51], [7, 18], [7, 26], [7, 32], [7, 35], [7, 37], [7, 49], [7, 55], [8, 25], [8, 29], [8, 39], [8, 57], [9, 14], [9, 27], [9, 31], [9, 34], [9, 36], [9, 41], [9, 43], [9, 49], [9, 51], [9, 56], [10, 37], [10, 39], [10, 45], [10, 48], [10, 53], [10, 54], [10, 55], [11, 14], [11, 16], [11, 34], [12, 22], [12, 27], [12, 28], [12, 37], [12, 40], [12, 52], [12, 58], [13, 17], [13, 34], [13, 35], [13, 50], [13, 56], [14, 15], [14, 26], [14, 33], [14, 35], [14, 39], [14, 47], [14, 53], [15, 19], [15, 23], [15, 28], [15, 33], [15, 57], [16, 22], [16, 25], [16, 38], [16, 40], [16, 47], [16, 54], [16, 56], [17, 31], [17, 40], [17, 42], [17, 49], [17, 50], [17, 53], [17, 54], [18, 40], [19, 32], [19, 35], [19, 42], [19, 45], [19, 47], [19, 52], [19, 55], [20, 26], [20, 32], [20, 38], [20, 39], [21, 24], [21, 25], [21, 27], [21, 30], [21, 38], [21, 41], [21, 48], [22, 24], [22, 25], [22, 49], [22, 52], [22, 56], [22, 58], [23, 25], [23, 26], [23, 40], [23, 51], [23, 56], [23, 59], [24, 25], [24, 26], [24, 36], [24, 46], [24, 55], [24, 59], [25, 38], [25, 39], [25, 45], [25, 48], [25, 55], [26, 28], [26, 29], [26, 58], [27, 31], [27, 37], [27, 40], [27, 46], [27, 57], [28, 30], [28, 32], [28, 50], [28, 52], [28, 54], [29, 31], [29, 38], [30, 39], [30, 57], [30, 58], [30, 59], [31, 44], [31, 49], [31, 51], [31, 54], [32, 40], [32, 44], [32, 45], [33, 38], [33, 41], [33, 51], [34, 41], [34, 45], [34, 52], [34, 57], [35, 38], [35, 39], [35, 40], [35, 51], [35, 57], [36, 41], [36, 51], [36, 52], [37, 39], [37, 45], [37, 51], [37, 58], [38, 41], [38, 45], [38, 52], [38, 58], [39, 56], [40, 43], [40, 46], [40, 59], [41, 46], [41, 54], [41, 59], [42, 59], [43, 45], [43, 47], [43, 58], [44, 50], [44, 52], [44, 56], [44, 57], [45, 52], [45, 54], [46, 55], [47, 52], [47, 57], [48, 58], [49, 55], [49, 58], [50, 59], [51, 52], [51, 53], [51, 55], [51, 59], [52, 54], [57, 59]], "family": "mc_vertex_cover", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-vertex-cover-l4-s6/tests/run.py b/tasks/construct-mc-vertex-cover-l4-s6/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-vertex-cover-l4-s6/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-vertex-cover-l4-s6/tests/test.sh b/tasks/construct-mc-vertex-cover-l4-s6/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-vertex-cover-l4-s6/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-mc-vertex-cover-l4-s8/environment/Dockerfile b/tasks/construct-mc-vertex-cover-l4-s8/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-mc-vertex-cover-l4-s8/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-mc-vertex-cover-l4-s8/environment/instance.json b/tasks/construct-mc-vertex-cover-l4-s8/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..3ccbe9d40f5c75d98ed1502444efcb899f98ea66 --- /dev/null +++ b/tasks/construct-mc-vertex-cover-l4-s8/environment/instance.json @@ -0,0 +1 @@ +{"n": 60, "k": 41, "edges": [[0, 4], [0, 11], [0, 12], [0, 21], [0, 25], [0, 29], [0, 47], [1, 3], [1, 9], [1, 10], [1, 18], [1, 26], [1, 31], [1, 38], [1, 41], [1, 42], [1, 43], [1, 48], [1, 49], [1, 58], [1, 59], [2, 4], [2, 15], [2, 19], [2, 29], [2, 38], [2, 42], [3, 7], [3, 8], [3, 9], [3, 10], [3, 11], [3, 18], [3, 22], [3, 25], [3, 31], [3, 40], [3, 44], [4, 6], [4, 23], [4, 27], [4, 32], [4, 40], [4, 42], [4, 50], [4, 54], [4, 55], [4, 58], [5, 10], [5, 13], [5, 15], [5, 19], [5, 22], [5, 30], [5, 33], [5, 42], [5, 48], [5, 49], [5, 50], [6, 7], [6, 8], [6, 14], [6, 18], [6, 26], [6, 28], [6, 31], [6, 37], [6, 40], [6, 41], [6, 45], [7, 17], [7, 37], [7, 46], [7, 48], [7, 55], [7, 56], [7, 58], [8, 12], [8, 22], [8, 23], [8, 24], [8, 34], [8, 36], [8, 38], [8, 49], [8, 58], [9, 10], [9, 17], [9, 21], [9, 24], [9, 25], [9, 27], [9, 28], [9, 30], [9, 32], [9, 33], [9, 40], [9, 49], [9, 56], [10, 11], [10, 15], [10, 25], [10, 33], [10, 38], [10, 39], [10, 40], [10, 47], [10, 55], [11, 18], [11, 22], [11, 25], [11, 43], [11, 52], [11, 56], [12, 21], [12, 22], [12, 23], [12, 26], [12, 30], [12, 31], [12, 34], [12, 37], [12, 43], [12, 46], [12, 48], [12, 59], [13, 15], [13, 20], [13, 21], [13, 22], [13, 26], [13, 31], [13, 42], [13, 43], [13, 56], [13, 58], [13, 59], [14, 37], [14, 51], [14, 52], [14, 54], [14, 58], [15, 19], [15, 23], [15, 29], [15, 30], [15, 33], [15, 40], [15, 41], [15, 48], [15, 53], [15, 55], [15, 59], [16, 29], [16, 33], [16, 37], [16, 41], [16, 43], [16, 58], [17, 18], [17, 22], [17, 25], [17, 32], [17, 36], [17, 38], [17, 41], [17, 44], [17, 46], [17, 49], [17, 51], [17, 52], [17, 54], [17, 59], [18, 19], [18, 23], [18, 31], [18, 35], [18, 39], [18, 41], [18, 46], [18, 57], [19, 20], [19, 24], [19, 39], [19, 41], [19, 51], [19, 52], [19, 56], [19, 58], [20, 23], [20, 25], [20, 31], [20, 36], [20, 44], [20, 51], [20, 56], [20, 58], [21, 22], [21, 23], [21, 27], [21, 29], [21, 32], [21, 48], [21, 49], [21, 52], [21, 54], [21, 57], [22, 27], [22, 30], [22, 31], [22, 34], [22, 38], [22, 39], [22, 42], [22, 43], [22, 49], [22, 58], [22, 59], [23, 25], [23, 38], [23, 41], [23, 45], [24, 47], [25, 28], [25, 36], [25, 40], [25, 46], [25, 50], [25, 51], [25, 59], [26, 31], [26, 33], [26, 34], [26, 43], [26, 45], [26, 51], [26, 53], [27, 37], [27, 42], [27, 58], [28, 33], [28, 38], [28, 43], [28, 55], [29, 33], [29, 34], [29, 38], [29, 42], [29, 55], [30, 39], [30, 48], [30, 52], [30, 54], [30, 55], [30, 57], [30, 59], [31, 33], [31, 37], [31, 41], [31, 43], [31, 49], [31, 50], [31, 53], [32, 33], [32, 35], [32, 41], [32, 54], [32, 55], [33, 34], [33, 35], [33, 36], [33, 42], [33, 45], [33, 47], [33, 55], [34, 35], [34, 47], [34, 50], [35, 40], [35, 44], [35, 45], [36, 48], [36, 52], [36, 54], [37, 38], [37, 39], [37, 40], [37, 47], [37, 51], [37, 58], [38, 39], [38, 41], [38, 42], [38, 48], [38, 52], [38, 53], [38, 55], [38, 57], [40, 50], [40, 55], [41, 50], [41, 53], [42, 45], [42, 46], [42, 47], [42, 52], [42, 57], [42, 58], [43, 44], [43, 45], [43, 57], [43, 58], [44, 47], [44, 52], [44, 58], [45, 47], [45, 48], [45, 50], [45, 55], [46, 52], [46, 54], [48, 56], [49, 53], [50, 53], [53, 59], [54, 59], [55, 59]], "family": "mc_vertex_cover", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-vertex-cover-l4-s8/solution/solve.sh b/tasks/construct-mc-vertex-cover-l4-s8/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..eaf1144d5f87ad5e543e3a76351f3c6d38da29ff --- /dev/null +++ b/tasks/construct-mc-vertex-cover-l4-s8/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"cover": [1, 3, 4, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 17, 18, 19, 20, 21, 22, 23, 25, 26, 29, 30, 33, 35, 37, 38, 41, 42, 43, 47, 48, 49, 50, 52, 53, 54, 55, 56, 58]} +RLMATH_EOF diff --git a/tasks/construct-mc-vertex-cover-l4-s8/tests/check.py b/tasks/construct-mc-vertex-cover-l4-s8/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..e3accb3da1c773fd2126b8b5b0a97b099e29c83b --- /dev/null +++ b/tasks/construct-mc-vertex-cover-l4-s8/tests/check.py @@ -0,0 +1,16 @@ +"""Vertex cover of size <= k in a given graph (MathConstraint vertex_cover, CC-BY-4.0).""" +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["n"], inst["k"] + S = int_list(ans.get("cover"), None, 0, n - 1, "cover") + if len(set(S)) != len(S): + raise Invalid("repeated vertex") + if len(S) > k: + raise Invalid(f"cover has {len(S)} vertices, at most {k} allowed") + C = set(S) + for u, v in inst["edges"]: + if u not in C and v not in C: + raise Invalid(f"edge ({u},{v}) is not covered") + return None, {"size": len(S)} diff --git a/tasks/construct-mc-vertex-cover-l4-s8/tests/instance.json b/tasks/construct-mc-vertex-cover-l4-s8/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..3ccbe9d40f5c75d98ed1502444efcb899f98ea66 --- /dev/null +++ b/tasks/construct-mc-vertex-cover-l4-s8/tests/instance.json @@ -0,0 +1 @@ +{"n": 60, "k": 41, "edges": [[0, 4], [0, 11], [0, 12], [0, 21], [0, 25], [0, 29], [0, 47], [1, 3], [1, 9], [1, 10], [1, 18], [1, 26], [1, 31], [1, 38], [1, 41], [1, 42], [1, 43], [1, 48], [1, 49], [1, 58], [1, 59], [2, 4], [2, 15], [2, 19], [2, 29], [2, 38], [2, 42], [3, 7], [3, 8], [3, 9], [3, 10], [3, 11], [3, 18], [3, 22], [3, 25], [3, 31], [3, 40], [3, 44], [4, 6], [4, 23], [4, 27], [4, 32], [4, 40], [4, 42], [4, 50], [4, 54], [4, 55], [4, 58], [5, 10], [5, 13], [5, 15], [5, 19], [5, 22], [5, 30], [5, 33], [5, 42], [5, 48], [5, 49], [5, 50], [6, 7], [6, 8], [6, 14], [6, 18], [6, 26], [6, 28], [6, 31], [6, 37], [6, 40], [6, 41], [6, 45], [7, 17], [7, 37], [7, 46], [7, 48], [7, 55], [7, 56], [7, 58], [8, 12], [8, 22], [8, 23], [8, 24], [8, 34], [8, 36], [8, 38], [8, 49], [8, 58], [9, 10], [9, 17], [9, 21], [9, 24], [9, 25], [9, 27], [9, 28], [9, 30], [9, 32], [9, 33], [9, 40], [9, 49], [9, 56], [10, 11], [10, 15], [10, 25], [10, 33], [10, 38], [10, 39], [10, 40], [10, 47], [10, 55], [11, 18], [11, 22], [11, 25], [11, 43], [11, 52], [11, 56], [12, 21], [12, 22], [12, 23], [12, 26], [12, 30], [12, 31], [12, 34], [12, 37], [12, 43], [12, 46], [12, 48], [12, 59], [13, 15], [13, 20], [13, 21], [13, 22], [13, 26], [13, 31], [13, 42], [13, 43], [13, 56], [13, 58], [13, 59], [14, 37], [14, 51], [14, 52], [14, 54], [14, 58], [15, 19], [15, 23], [15, 29], [15, 30], [15, 33], [15, 40], [15, 41], [15, 48], [15, 53], [15, 55], [15, 59], [16, 29], [16, 33], [16, 37], [16, 41], [16, 43], [16, 58], [17, 18], [17, 22], [17, 25], [17, 32], [17, 36], [17, 38], [17, 41], [17, 44], [17, 46], [17, 49], [17, 51], [17, 52], [17, 54], [17, 59], [18, 19], [18, 23], [18, 31], [18, 35], [18, 39], [18, 41], [18, 46], [18, 57], [19, 20], [19, 24], [19, 39], [19, 41], [19, 51], [19, 52], [19, 56], [19, 58], [20, 23], [20, 25], [20, 31], [20, 36], [20, 44], [20, 51], [20, 56], [20, 58], [21, 22], [21, 23], [21, 27], [21, 29], [21, 32], [21, 48], [21, 49], [21, 52], [21, 54], [21, 57], [22, 27], [22, 30], [22, 31], [22, 34], [22, 38], [22, 39], [22, 42], [22, 43], [22, 49], [22, 58], [22, 59], [23, 25], [23, 38], [23, 41], [23, 45], [24, 47], [25, 28], [25, 36], [25, 40], [25, 46], [25, 50], [25, 51], [25, 59], [26, 31], [26, 33], [26, 34], [26, 43], [26, 45], [26, 51], [26, 53], [27, 37], [27, 42], [27, 58], [28, 33], [28, 38], [28, 43], [28, 55], [29, 33], [29, 34], [29, 38], [29, 42], [29, 55], [30, 39], [30, 48], [30, 52], [30, 54], [30, 55], [30, 57], [30, 59], [31, 33], [31, 37], [31, 41], [31, 43], [31, 49], [31, 50], [31, 53], [32, 33], [32, 35], [32, 41], [32, 54], [32, 55], [33, 34], [33, 35], [33, 36], [33, 42], [33, 45], [33, 47], [33, 55], [34, 35], [34, 47], [34, 50], [35, 40], [35, 44], [35, 45], [36, 48], [36, 52], [36, 54], [37, 38], [37, 39], [37, 40], [37, 47], [37, 51], [37, 58], [38, 39], [38, 41], [38, 42], [38, 48], [38, 52], [38, 53], [38, 55], [38, 57], [40, 50], [40, 55], [41, 50], [41, 53], [42, 45], [42, 46], [42, 47], [42, 52], [42, 57], [42, 58], [43, 44], [43, 45], [43, 57], [43, 58], [44, 47], [44, 52], [44, 58], [45, 47], [45, 48], [45, 50], [45, 55], [46, 52], [46, 54], [48, 56], [49, 53], [50, 53], [53, 59], [54, 59], [55, 59]], "family": "mc_vertex_cover", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-mc-vertex-cover-l4-s8/tests/run.py b/tasks/construct-mc-vertex-cover-l4-s8/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-mc-vertex-cover-l4-s8/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-mc-vertex-cover-l4-s8/tests/test.sh b/tasks/construct-mc-vertex-cover-l4-s8/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-mc-vertex-cover-l4-s8/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-nppc-3col-l5-s1/solution/solve.sh b/tasks/construct-nppc-3col-l5-s1/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..9a44f0477c9ffe3632ac83e93b635b552f3ea87f --- /dev/null +++ b/tasks/construct-nppc-3col-l5-s1/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"coloring": [2, 0, 2, 1, 1, 2, 2, 0, 1, 2, 0, 0, 0, 2, 1, 1, 0, 0, 2, 0, 0, 1, 0, 0, 1, 1, 0, 2, 2, 1, 0, 2, 2, 0, 1, 0, 0, 1, 2, 1, 1, 2, 2, 0, 2, 2, 1, 0, 1, 1, 1, 1, 0, 2, 1, 2, 0, 2, 2, 1]} +RLMATH_EOF diff --git a/tasks/construct-nppc-3col-l5-s1/tests/check.py b/tasks/construct-nppc-3col-l5-s1/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..72362ed9180250b6c53ce0c71867ca476ac2af20 --- /dev/null +++ b/tasks/construct-nppc-3col-l5-s1/tests/check.py @@ -0,0 +1,12 @@ +"""Proper 3-colouring of a given graph. Accepts any valid colouring.""" +from run import Invalid, int_list + + +def check(inst, ans): + n = inst["num_nodes"] + # upstream NPPC verifier skips the range/length check, so an all-distinct colouring passed it + c = int_list(ans.get("coloring"), n, 0, 2, "coloring") + for u, v in inst["edges"]: + if c[u] == c[v]: + raise Invalid(f"edge ({u},{v}) is monochromatic") + return None, {} diff --git a/tasks/construct-nppc-3col-l5-s1/tests/instance.json b/tasks/construct-nppc-3col-l5-s1/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..336cc3987e6738b5e294e2184c994ac9a56047b2 --- /dev/null +++ b/tasks/construct-nppc-3col-l5-s1/tests/instance.json @@ -0,0 +1 @@ +{"num_nodes": 60, "edges": [[0, 23], [0, 29], [0, 33], [0, 54], [0, 56], [1, 2], [1, 25], [1, 32], [1, 46], [1, 54], [1, 55], [1, 58], [2, 8], [2, 10], [2, 12], [2, 21], [2, 40], [2, 46], [2, 59], [3, 7], [3, 10], [3, 19], [3, 20], [3, 23], [3, 52], [4, 6], [4, 19], [4, 26], [4, 47], [5, 7], [5, 11], [5, 20], [5, 21], [5, 29], [5, 36], [5, 46], [6, 7], [6, 16], [6, 24], [6, 25], [6, 54], [7, 31], [7, 46], [7, 49], [7, 57], [7, 58], [7, 59], [8, 22], [8, 42], [8, 43], [9, 12], [9, 20], [9, 23], [9, 26], [9, 30], [9, 34], [9, 36], [9, 40], [9, 46], [10, 24], [10, 41], [11, 40], [12, 24], [12, 25], [12, 32], [12, 37], [12, 44], [12, 50], [12, 59], [13, 20], [13, 30], [13, 33], [13, 34], [13, 36], [13, 48], [14, 16], [14, 18], [14, 43], [14, 52], [15, 16], [15, 18], [15, 19], [15, 28], [15, 33], [15, 38], [15, 44], [15, 53], [16, 21], [16, 25], [16, 29], [16, 45], [16, 50], [17, 31], [17, 44], [17, 45], [17, 53], [18, 20], [19, 28], [19, 29], [19, 34], [19, 50], [19, 54], [20, 21], [20, 25], [20, 32], [20, 41], [20, 42], [20, 45], [20, 46], [20, 51], [20, 58], [21, 45], [22, 45], [22, 46], [22, 49], [22, 57], [23, 40], [23, 44], [23, 55], [24, 32], [24, 57], [25, 27], [25, 44], [25, 55], [25, 57], [26, 32], [26, 39], [26, 42], [26, 54], [26, 55], [26, 58], [26, 59], [27, 30], [27, 35], [27, 46], [27, 56], [28, 47], [28, 48], [29, 31], [29, 32], [29, 36], [29, 44], [29, 45], [30, 32], [30, 34], [30, 55], [31, 46], [31, 47], [31, 54], [32, 39], [33, 39], [33, 40], [33, 58], [33, 59], [34, 44], [35, 49], [35, 50], [35, 51], [36, 42], [36, 46], [36, 53], [36, 57], [36, 58], [37, 43], [37, 47], [37, 52], [38, 43], [38, 51], [40, 57], [41, 47], [41, 49], [42, 46], [42, 47], [42, 52], [43, 48], [43, 50], [44, 49], [44, 56], [45, 46], [45, 47], [45, 50], [46, 47], [46, 53], [46, 55], [46, 58], [47, 49], [47, 54], [47, 57], [47, 58], [48, 56], [48, 57], [49, 53], [49, 56], [51, 56], [51, 58], [52, 57], [53, 54], [53, 59], [54, 57], [54, 58]], "family": "nppc_three_coloring", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-3col-l5-s1/tests/run.py b/tasks/construct-nppc-3col-l5-s1/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-nppc-3col-l5-s1/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-nppc-3col-l5-s1/tests/test.sh b/tasks/construct-nppc-3col-l5-s1/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-nppc-3col-l5-s1/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-nppc-bandwidth-l2-s3/environment/Dockerfile b/tasks/construct-nppc-bandwidth-l2-s3/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-nppc-bandwidth-l2-s3/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-nppc-bandwidth-l2-s3/environment/instance.json b/tasks/construct-nppc-bandwidth-l2-s3/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..f89a2afaea67cfbf0b38516112864b024b611802 --- /dev/null +++ b/tasks/construct-nppc-bandwidth-l2-s3/environment/instance.json @@ -0,0 +1 @@ +{"num_nodes": 8, "bandwidth": 3, "edges": [[0, 1], [0, 2], [1, 2], [2, 5], [3, 4], [4, 6], [5, 7], [6, 7]], "family": "nppc_bandwidth", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-bandwidth-l2-s3/solution/solve.sh b/tasks/construct-nppc-bandwidth-l2-s3/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..52d8133becc87fa99dc32a934c3fea913c4549e6 --- /dev/null +++ b/tasks/construct-nppc-bandwidth-l2-s3/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"layout": [1, 4, 2, 7, 6, 0, 5, 3]} +RLMATH_EOF diff --git a/tasks/construct-nppc-bandwidth-l2-s3/tests/check.py b/tasks/construct-nppc-bandwidth-l2-s3/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..0f847cded257e6c404063dfafde33fa44163afa2 --- /dev/null +++ b/tasks/construct-nppc-bandwidth-l2-s3/tests/check.py @@ -0,0 +1,14 @@ +"""Bandwidth <= b: layout must be a permutation of 0..n-1 with |p[u]-p[v]| <= b on every edge.""" +from run import Invalid, int_list + + +def check(inst, ans): + n, b = inst["num_nodes"], inst["bandwidth"] + # upstream NPPC verifier compares sorted(layout) to range(n), which also accepts floats/bools + p = int_list(ans.get("layout"), n, 0, n - 1, "layout") + if len(set(p)) != n: + raise Invalid("layout is not a permutation of 0..n-1") + for u, v in inst["edges"]: + if abs(p[u] - p[v]) > b: + raise Invalid(f"edge ({u},{v}) has stretch {abs(p[u] - p[v])} > {b}") + return None, {} diff --git a/tasks/construct-nppc-bandwidth-l2-s3/tests/instance.json b/tasks/construct-nppc-bandwidth-l2-s3/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..f89a2afaea67cfbf0b38516112864b024b611802 --- /dev/null +++ b/tasks/construct-nppc-bandwidth-l2-s3/tests/instance.json @@ -0,0 +1 @@ +{"num_nodes": 8, "bandwidth": 3, "edges": [[0, 1], [0, 2], [1, 2], [2, 5], [3, 4], [4, 6], [5, 7], [6, 7]], "family": "nppc_bandwidth", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-bandwidth-l2-s3/tests/run.py b/tasks/construct-nppc-bandwidth-l2-s3/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-nppc-bandwidth-l2-s3/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-nppc-bandwidth-l2-s3/tests/test.sh b/tasks/construct-nppc-bandwidth-l2-s3/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-nppc-bandwidth-l2-s3/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-nppc-bandwidth-l2-s4/environment/Dockerfile b/tasks/construct-nppc-bandwidth-l2-s4/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-nppc-bandwidth-l2-s4/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-nppc-bandwidth-l2-s4/environment/instance.json b/tasks/construct-nppc-bandwidth-l2-s4/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..87470d24713f66185b316f5726973011a2e2ab14 --- /dev/null +++ b/tasks/construct-nppc-bandwidth-l2-s4/environment/instance.json @@ -0,0 +1 @@ +{"num_nodes": 8, "bandwidth": 3, "edges": [[0, 1], [1, 2], [2, 4], [3, 4], [3, 6], [4, 5], [4, 7], [5, 6]], "family": "nppc_bandwidth", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-bandwidth-l2-s4/solution/solve.sh b/tasks/construct-nppc-bandwidth-l2-s4/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..5eb97d1ee6c786f5f99b5689a53c0c54e3eafd6d --- /dev/null +++ b/tasks/construct-nppc-bandwidth-l2-s4/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"layout": [4, 7, 5, 1, 3, 0, 2, 6]} +RLMATH_EOF diff --git a/tasks/construct-nppc-bandwidth-l2-s4/tests/check.py b/tasks/construct-nppc-bandwidth-l2-s4/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..0f847cded257e6c404063dfafde33fa44163afa2 --- /dev/null +++ b/tasks/construct-nppc-bandwidth-l2-s4/tests/check.py @@ -0,0 +1,14 @@ +"""Bandwidth <= b: layout must be a permutation of 0..n-1 with |p[u]-p[v]| <= b on every edge.""" +from run import Invalid, int_list + + +def check(inst, ans): + n, b = inst["num_nodes"], inst["bandwidth"] + # upstream NPPC verifier compares sorted(layout) to range(n), which also accepts floats/bools + p = int_list(ans.get("layout"), n, 0, n - 1, "layout") + if len(set(p)) != n: + raise Invalid("layout is not a permutation of 0..n-1") + for u, v in inst["edges"]: + if abs(p[u] - p[v]) > b: + raise Invalid(f"edge ({u},{v}) has stretch {abs(p[u] - p[v])} > {b}") + return None, {} diff --git a/tasks/construct-nppc-bandwidth-l2-s4/tests/instance.json b/tasks/construct-nppc-bandwidth-l2-s4/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..87470d24713f66185b316f5726973011a2e2ab14 --- /dev/null +++ b/tasks/construct-nppc-bandwidth-l2-s4/tests/instance.json @@ -0,0 +1 @@ +{"num_nodes": 8, "bandwidth": 3, "edges": [[0, 1], [1, 2], [2, 4], [3, 4], [3, 6], [4, 5], [4, 7], [5, 6]], "family": "nppc_bandwidth", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-bandwidth-l2-s4/tests/run.py b/tasks/construct-nppc-bandwidth-l2-s4/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-nppc-bandwidth-l2-s4/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-nppc-bandwidth-l2-s4/tests/test.sh b/tasks/construct-nppc-bandwidth-l2-s4/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-nppc-bandwidth-l2-s4/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-nppc-bandwidth-l6-s2/environment/Dockerfile b/tasks/construct-nppc-bandwidth-l6-s2/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-nppc-bandwidth-l6-s2/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-nppc-bandwidth-l6-s2/environment/instance.json b/tasks/construct-nppc-bandwidth-l6-s2/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..73ffea9636df7cef080b17129a1857dfaf77ece8 --- /dev/null +++ b/tasks/construct-nppc-bandwidth-l6-s2/environment/instance.json @@ -0,0 +1 @@ +{"num_nodes": 80, "bandwidth": 5, "edges": [[0, 8], [0, 9], [0, 22], [0, 59], [1, 7], [1, 44], [1, 66], [2, 6], [2, 15], [2, 16], [2, 28], [2, 46], [2, 51], [2, 64], [2, 71], [2, 72], [3, 14], [3, 34], [3, 55], [4, 7], [4, 11], [4, 36], [4, 47], [4, 66], [5, 6], [5, 15], [5, 24], [5, 51], [5, 63], [5, 78], [6, 15], [6, 16], [6, 24], [6, 51], [6, 69], [6, 71], [6, 78], [7, 11], [7, 12], [7, 40], [7, 66], [7, 74], [8, 9], [8, 22], [8, 23], [8, 70], [8, 74], [8, 76], [9, 22], [9, 27], [9, 37], [9, 53], [9, 62], [10, 13], [10, 19], [10, 35], [10, 56], [10, 57], [10, 79], [11, 12], [11, 17], [11, 47], [11, 74], [11, 76], [12, 17], [12, 36], [12, 40], [12, 47], [13, 14], [13, 32], [13, 35], [13, 48], [13, 57], [14, 31], [14, 56], [14, 79], [15, 16], [15, 24], [15, 28], [15, 71], [15, 72], [15, 75], [16, 28], [16, 51], [16, 71], [16, 75], [17, 44], [17, 47], [17, 66], [17, 76], [18, 20], [18, 34], [18, 50], [18, 54], [18, 55], [18, 65], [19, 29], [19, 31], [19, 48], [19, 67], [19, 79], [20, 34], [20, 42], [20, 54], [20, 55], [21, 26], [21, 43], [21, 49], [21, 58], [21, 61], [21, 68], [22, 23], [22, 44], [23, 27], [23, 44], [23, 53], [23, 62], [23, 70], [24, 25], [24, 51], [24, 69], [24, 71], [25, 33], [26, 29], [26, 30], [26, 38], [26, 45], [26, 67], [26, 68], [27, 37], [27, 41], [27, 53], [27, 59], [28, 46], [28, 64], [28, 71], [28, 72], [28, 77], [29, 30], [29, 38], [29, 45], [29, 49], [29, 61], [29, 67], [30, 31], [30, 38], [30, 49], [31, 32], [32, 35], [32, 56], [33, 60], [33, 63], [33, 69], [33, 78], [34, 42], [34, 55], [34, 57], [34, 65], [35, 42], [35, 57], [36, 39], [36, 40], [36, 43], [36, 58], [36, 68], [37, 41], [37, 53], [37, 77], [38, 39], [38, 43], [39, 40], [39, 47], [39, 58], [40, 43], [40, 47], [40, 58], [40, 66], [41, 46], [41, 52], [41, 77], [42, 55], [42, 65], [43, 49], [43, 61], [44, 62], [44, 73], [44, 76], [45, 48], [45, 67], [46, 52], [46, 72], [46, 75], [47, 58], [48, 67], [49, 61], [50, 54], [50, 55], [51, 63], [51, 71], [52, 53], [52, 64], [52, 70], [53, 59], [53, 64], [53, 70], [54, 55], [55, 65], [56, 57], [56, 65], [57, 65], [58, 66], [59, 70], [59, 77], [60, 63], [60, 69], [60, 78], [61, 67], [62, 73], [62, 74], [62, 76], [63, 69], [64, 72], [64, 75], [64, 77], [66, 73], [69, 71], [72, 75], [73, 74], [73, 76], [74, 76], [75, 77]], "family": "nppc_bandwidth", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-bandwidth-l6-s2/solution/solve.sh b/tasks/construct-nppc-bandwidth-l6-s2/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..e7ad1274ddabe04245900016c2df81764c471565 --- /dev/null +++ b/tasks/construct-nppc-bandwidth-l6-s2/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"layout": [50, 43, 66, 7, 35, 72, 71, 39, 49, 52, 14, 40, 37, 15, 12, 68, 67, 41, 1, 18, 4, 28, 48, 51, 73, 78, 24, 53, 65, 22, 21, 16, 11, 77, 5, 13, 32, 57, 26, 31, 34, 58, 8, 30, 46, 20, 62, 36, 19, 25, 0, 69, 59, 56, 2, 3, 9, 10, 33, 55, 79, 27, 47, 74, 61, 6, 38, 23, 29, 75, 54, 70, 63, 42, 44, 64, 45, 60, 76, 17]} +RLMATH_EOF diff --git a/tasks/construct-nppc-bandwidth-l6-s2/tests/check.py b/tasks/construct-nppc-bandwidth-l6-s2/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..0f847cded257e6c404063dfafde33fa44163afa2 --- /dev/null +++ b/tasks/construct-nppc-bandwidth-l6-s2/tests/check.py @@ -0,0 +1,14 @@ +"""Bandwidth <= b: layout must be a permutation of 0..n-1 with |p[u]-p[v]| <= b on every edge.""" +from run import Invalid, int_list + + +def check(inst, ans): + n, b = inst["num_nodes"], inst["bandwidth"] + # upstream NPPC verifier compares sorted(layout) to range(n), which also accepts floats/bools + p = int_list(ans.get("layout"), n, 0, n - 1, "layout") + if len(set(p)) != n: + raise Invalid("layout is not a permutation of 0..n-1") + for u, v in inst["edges"]: + if abs(p[u] - p[v]) > b: + raise Invalid(f"edge ({u},{v}) has stretch {abs(p[u] - p[v])} > {b}") + return None, {} diff --git a/tasks/construct-nppc-bandwidth-l6-s2/tests/instance.json b/tasks/construct-nppc-bandwidth-l6-s2/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..73ffea9636df7cef080b17129a1857dfaf77ece8 --- /dev/null +++ b/tasks/construct-nppc-bandwidth-l6-s2/tests/instance.json @@ -0,0 +1 @@ +{"num_nodes": 80, "bandwidth": 5, "edges": [[0, 8], [0, 9], [0, 22], [0, 59], [1, 7], [1, 44], [1, 66], [2, 6], [2, 15], [2, 16], [2, 28], [2, 46], [2, 51], [2, 64], [2, 71], [2, 72], [3, 14], [3, 34], [3, 55], [4, 7], [4, 11], [4, 36], [4, 47], [4, 66], [5, 6], [5, 15], [5, 24], [5, 51], [5, 63], [5, 78], [6, 15], [6, 16], [6, 24], [6, 51], [6, 69], [6, 71], [6, 78], [7, 11], [7, 12], [7, 40], [7, 66], [7, 74], [8, 9], [8, 22], [8, 23], [8, 70], [8, 74], [8, 76], [9, 22], [9, 27], [9, 37], [9, 53], [9, 62], [10, 13], [10, 19], [10, 35], [10, 56], [10, 57], [10, 79], [11, 12], [11, 17], [11, 47], [11, 74], [11, 76], [12, 17], [12, 36], [12, 40], [12, 47], [13, 14], [13, 32], [13, 35], [13, 48], [13, 57], [14, 31], [14, 56], [14, 79], [15, 16], [15, 24], [15, 28], [15, 71], [15, 72], [15, 75], [16, 28], [16, 51], [16, 71], [16, 75], [17, 44], [17, 47], [17, 66], [17, 76], [18, 20], [18, 34], [18, 50], [18, 54], [18, 55], [18, 65], [19, 29], [19, 31], [19, 48], [19, 67], [19, 79], [20, 34], [20, 42], [20, 54], [20, 55], [21, 26], [21, 43], [21, 49], [21, 58], [21, 61], [21, 68], [22, 23], [22, 44], [23, 27], [23, 44], [23, 53], [23, 62], [23, 70], [24, 25], [24, 51], [24, 69], [24, 71], [25, 33], [26, 29], [26, 30], [26, 38], [26, 45], [26, 67], [26, 68], [27, 37], [27, 41], [27, 53], [27, 59], [28, 46], [28, 64], [28, 71], [28, 72], [28, 77], [29, 30], [29, 38], [29, 45], [29, 49], [29, 61], [29, 67], [30, 31], [30, 38], [30, 49], [31, 32], [32, 35], [32, 56], [33, 60], [33, 63], [33, 69], [33, 78], [34, 42], [34, 55], [34, 57], [34, 65], [35, 42], [35, 57], [36, 39], [36, 40], [36, 43], [36, 58], [36, 68], [37, 41], [37, 53], [37, 77], [38, 39], [38, 43], [39, 40], [39, 47], [39, 58], [40, 43], [40, 47], [40, 58], [40, 66], [41, 46], [41, 52], [41, 77], [42, 55], [42, 65], [43, 49], [43, 61], [44, 62], [44, 73], [44, 76], [45, 48], [45, 67], [46, 52], [46, 72], [46, 75], [47, 58], [48, 67], [49, 61], [50, 54], [50, 55], [51, 63], [51, 71], [52, 53], [52, 64], [52, 70], [53, 59], [53, 64], [53, 70], [54, 55], [55, 65], [56, 57], [56, 65], [57, 65], [58, 66], [59, 70], [59, 77], [60, 63], [60, 69], [60, 78], [61, 67], [62, 73], [62, 74], [62, 76], [63, 69], [64, 72], [64, 75], [64, 77], [66, 73], [69, 71], [72, 75], [73, 74], [73, 76], [74, 76], [75, 77]], "family": "nppc_bandwidth", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-bandwidth-l6-s2/tests/run.py b/tasks/construct-nppc-bandwidth-l6-s2/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-nppc-bandwidth-l6-s2/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-nppc-bandwidth-l6-s2/tests/test.sh b/tasks/construct-nppc-bandwidth-l6-s2/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-nppc-bandwidth-l6-s2/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-nppc-bandwidth-l6-s5/environment/Dockerfile b/tasks/construct-nppc-bandwidth-l6-s5/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-nppc-bandwidth-l6-s5/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-nppc-bandwidth-l6-s5/environment/instance.json b/tasks/construct-nppc-bandwidth-l6-s5/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..f0af505265cec9fb6dda6d987efd6112de29eb64 --- /dev/null +++ b/tasks/construct-nppc-bandwidth-l6-s5/environment/instance.json @@ -0,0 +1 @@ +{"num_nodes": 80, "bandwidth": 5, "edges": [[0, 5], [0, 20], [0, 30], [0, 55], [0, 60], [0, 71], [0, 73], [1, 9], [1, 12], [1, 53], [1, 67], [2, 13], [2, 25], [2, 52], [2, 56], [3, 7], [3, 8], [3, 42], [3, 51], [4, 8], [4, 14], [4, 31], [4, 41], [4, 48], [4, 49], [4, 74], [5, 6], [5, 22], [5, 38], [5, 44], [5, 71], [6, 7], [6, 38], [6, 42], [6, 51], [6, 60], [6, 71], [7, 22], [7, 39], [7, 48], [7, 74], [8, 14], [8, 39], [8, 63], [8, 74], [9, 10], [9, 12], [9, 57], [9, 68], [10, 11], [10, 36], [10, 37], [10, 56], [10, 57], [11, 13], [11, 15], [11, 27], [11, 52], [12, 15], [12, 32], [12, 37], [13, 27], [13, 52], [13, 56], [13, 57], [13, 65], [13, 77], [14, 17], [14, 48], [14, 50], [15, 27], [15, 37], [15, 53], [15, 57], [15, 67], [16, 18], [16, 21], [16, 33], [16, 45], [16, 61], [16, 79], [17, 24], [17, 25], [17, 31], [17, 49], [17, 69], [18, 21], [18, 23], [18, 33], [18, 45], [18, 59], [19, 28], [19, 34], [19, 54], [19, 70], [20, 26], [20, 30], [20, 55], [20, 60], [20, 61], [21, 23], [22, 38], [22, 39], [22, 42], [22, 44], [22, 51], [22, 66], [23, 33], [23, 46], [23, 47], [23, 72], [24, 25], [24, 31], [24, 49], [24, 64], [25, 31], [25, 52], [25, 56], [25, 69], [26, 30], [26, 45], [27, 37], [27, 77], [28, 29], [28, 40], [28, 54], [28, 76], [29, 34], [29, 40], [29, 54], [29, 70], [29, 75], [30, 55], [30, 73], [31, 41], [31, 49], [31, 63], [31, 69], [32, 53], [32, 67], [32, 68], [33, 45], [33, 46], [33, 59], [33, 72], [34, 58], [34, 75], [35, 40], [35, 43], [35, 79], [36, 52], [36, 56], [36, 57], [36, 64], [36, 65], [36, 77], [37, 57], [38, 42], [38, 44], [38, 66], [38, 71], [39, 41], [39, 63], [39, 74], [40, 43], [41, 48], [41, 49], [41, 50], [41, 74], [42, 44], [42, 66], [42, 71], [43, 46], [43, 54], [43, 72], [43, 76], [44, 51], [44, 71], [45, 46], [45, 59], [45, 61], [45, 79], [46, 47], [46, 79], [47, 54], [47, 79], [48, 63], [49, 50], [49, 63], [50, 64], [50, 69], [51, 66], [51, 74], [52, 56], [52, 65], [52, 69], [53, 67], [53, 68], [54, 70], [54, 76], [55, 59], [55, 60], [55, 61], [55, 73], [56, 64], [57, 68], [57, 77], [58, 70], [58, 75], [59, 61], [60, 62], [60, 73], [61, 73], [62, 71], [63, 74], [64, 65], [65, 69], [66, 74], [67, 68], [70, 75], [70, 78], [71, 73], [72, 79], [75, 76], [76, 78]], "family": "nppc_bandwidth", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-bandwidth-l6-s5/solution/solve.sh b/tasks/construct-nppc-bandwidth-l6-s5/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..cb7d1c6e432f77ad2dd242b7240e9a0433eb67a9 --- /dev/null +++ b/tasks/construct-nppc-bandwidth-l6-s5/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"layout": [30, 78, 60, 43, 50, 34, 36, 41, 47, 73, 68, 67, 75, 65, 51, 72, 22, 56, 21, 4, 28, 19, 39, 16, 55, 58, 25, 70, 8, 7, 26, 53, 79, 18, 3, 12, 64, 71, 37, 44, 11, 49, 38, 10, 35, 20, 15, 14, 46, 52, 54, 40, 62, 77, 9, 27, 63, 69, 0, 23, 31, 24, 32, 48, 59, 61, 42, 76, 74, 57, 5, 33, 13, 29, 45, 2, 6, 66, 1, 17]} +RLMATH_EOF diff --git a/tasks/construct-nppc-bandwidth-l6-s5/tests/check.py b/tasks/construct-nppc-bandwidth-l6-s5/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..0f847cded257e6c404063dfafde33fa44163afa2 --- /dev/null +++ b/tasks/construct-nppc-bandwidth-l6-s5/tests/check.py @@ -0,0 +1,14 @@ +"""Bandwidth <= b: layout must be a permutation of 0..n-1 with |p[u]-p[v]| <= b on every edge.""" +from run import Invalid, int_list + + +def check(inst, ans): + n, b = inst["num_nodes"], inst["bandwidth"] + # upstream NPPC verifier compares sorted(layout) to range(n), which also accepts floats/bools + p = int_list(ans.get("layout"), n, 0, n - 1, "layout") + if len(set(p)) != n: + raise Invalid("layout is not a permutation of 0..n-1") + for u, v in inst["edges"]: + if abs(p[u] - p[v]) > b: + raise Invalid(f"edge ({u},{v}) has stretch {abs(p[u] - p[v])} > {b}") + return None, {} diff --git a/tasks/construct-nppc-bandwidth-l6-s5/tests/instance.json b/tasks/construct-nppc-bandwidth-l6-s5/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..f0af505265cec9fb6dda6d987efd6112de29eb64 --- /dev/null +++ b/tasks/construct-nppc-bandwidth-l6-s5/tests/instance.json @@ -0,0 +1 @@ +{"num_nodes": 80, "bandwidth": 5, "edges": [[0, 5], [0, 20], [0, 30], [0, 55], [0, 60], [0, 71], [0, 73], [1, 9], [1, 12], [1, 53], [1, 67], [2, 13], [2, 25], [2, 52], [2, 56], [3, 7], [3, 8], [3, 42], [3, 51], [4, 8], [4, 14], [4, 31], [4, 41], [4, 48], [4, 49], [4, 74], [5, 6], [5, 22], [5, 38], [5, 44], [5, 71], [6, 7], [6, 38], [6, 42], [6, 51], [6, 60], [6, 71], [7, 22], [7, 39], [7, 48], [7, 74], [8, 14], [8, 39], [8, 63], [8, 74], [9, 10], [9, 12], [9, 57], [9, 68], [10, 11], [10, 36], [10, 37], [10, 56], [10, 57], [11, 13], [11, 15], [11, 27], [11, 52], [12, 15], [12, 32], [12, 37], [13, 27], [13, 52], [13, 56], [13, 57], [13, 65], [13, 77], [14, 17], [14, 48], [14, 50], [15, 27], [15, 37], [15, 53], [15, 57], [15, 67], [16, 18], [16, 21], [16, 33], [16, 45], [16, 61], [16, 79], [17, 24], [17, 25], [17, 31], [17, 49], [17, 69], [18, 21], [18, 23], [18, 33], [18, 45], [18, 59], [19, 28], [19, 34], [19, 54], [19, 70], [20, 26], [20, 30], [20, 55], [20, 60], [20, 61], [21, 23], [22, 38], [22, 39], [22, 42], [22, 44], [22, 51], [22, 66], [23, 33], [23, 46], [23, 47], [23, 72], [24, 25], [24, 31], [24, 49], [24, 64], [25, 31], [25, 52], [25, 56], [25, 69], [26, 30], [26, 45], [27, 37], [27, 77], [28, 29], [28, 40], [28, 54], [28, 76], [29, 34], [29, 40], [29, 54], [29, 70], [29, 75], [30, 55], [30, 73], [31, 41], [31, 49], [31, 63], [31, 69], [32, 53], [32, 67], [32, 68], [33, 45], [33, 46], [33, 59], [33, 72], [34, 58], [34, 75], [35, 40], [35, 43], [35, 79], [36, 52], [36, 56], [36, 57], [36, 64], [36, 65], [36, 77], [37, 57], [38, 42], [38, 44], [38, 66], [38, 71], [39, 41], [39, 63], [39, 74], [40, 43], [41, 48], [41, 49], [41, 50], [41, 74], [42, 44], [42, 66], [42, 71], [43, 46], [43, 54], [43, 72], [43, 76], [44, 51], [44, 71], [45, 46], [45, 59], [45, 61], [45, 79], [46, 47], [46, 79], [47, 54], [47, 79], [48, 63], [49, 50], [49, 63], [50, 64], [50, 69], [51, 66], [51, 74], [52, 56], [52, 65], [52, 69], [53, 67], [53, 68], [54, 70], [54, 76], [55, 59], [55, 60], [55, 61], [55, 73], [56, 64], [57, 68], [57, 77], [58, 70], [58, 75], [59, 61], [60, 62], [60, 73], [61, 73], [62, 71], [63, 74], [64, 65], [65, 69], [66, 74], [67, 68], [70, 75], [70, 78], [71, 73], [72, 79], [75, 76], [76, 78]], "family": "nppc_bandwidth", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-bandwidth-l6-s5/tests/run.py b/tasks/construct-nppc-bandwidth-l6-s5/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-nppc-bandwidth-l6-s5/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-nppc-bandwidth-l6-s5/tests/test.sh b/tasks/construct-nppc-bandwidth-l6-s5/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-nppc-bandwidth-l6-s5/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-nppc-clique-l3-s3/environment/Dockerfile b/tasks/construct-nppc-clique-l3-s3/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-nppc-clique-l3-s3/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-nppc-clique-l3-s3/environment/instance.json b/tasks/construct-nppc-clique-l3-s3/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..c9ec821ef99d3f76cc563dadb99a237c5bb92fdc --- /dev/null +++ b/tasks/construct-nppc-clique-l3-s3/environment/instance.json @@ -0,0 +1 @@ +{"num_nodes": 20, "k": 10, "edges": [[0, 1], [0, 2], [0, 3], [0, 5], [0, 6], [0, 7], [0, 9], [0, 10], [0, 13], [0, 14], [0, 16], [0, 17], [0, 18], [0, 19], [1, 2], [1, 4], [1, 5], [1, 7], [1, 10], [1, 12], [1, 13], [1, 16], [1, 17], [1, 19], [2, 3], [2, 4], [2, 5], [2, 7], [2, 9], [2, 10], [2, 11], [2, 13], [2, 15], [2, 17], [2, 18], [2, 19], [3, 4], [3, 5], [3, 6], [3, 7], [3, 9], [3, 10], [3, 11], [3, 12], [3, 17], [3, 18], [3, 19], [4, 5], [4, 6], [4, 7], [4, 9], [4, 10], [4, 13], [4, 17], [4, 18], [4, 19], [5, 6], [5, 7], [5, 8], [5, 9], [5, 10], [5, 11], [5, 12], [5, 15], [5, 16], [5, 17], [5, 18], [5, 19], [6, 7], [6, 8], [6, 12], [6, 13], [6, 15], [6, 16], [6, 17], [7, 9], [7, 10], [7, 11], [7, 14], [7, 15], [7, 16], [7, 17], [7, 18], [7, 19], [8, 9], [8, 11], [8, 13], [8, 14], [8, 15], [8, 16], [9, 10], [9, 12], [9, 13], [9, 15], [9, 17], [9, 18], [9, 19], [10, 13], [10, 17], [10, 18], [10, 19], [11, 12], [11, 16], [11, 17], [11, 19], [12, 13], [12, 14], [12, 16], [12, 17], [12, 18], [12, 19], [13, 15], [13, 16], [13, 18], [14, 15], [14, 19], [15, 18], [15, 19], [16, 17], [16, 18], [16, 19], [17, 18], [17, 19], [18, 19]], "family": "nppc_clique", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-clique-l3-s3/solution/solve.sh b/tasks/construct-nppc-clique-l3-s3/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..342c9260dd899b47d6b80c10eff9ffcb2cc3d8a1 --- /dev/null +++ b/tasks/construct-nppc-clique-l3-s3/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"clique": [0, 2, 3, 5, 7, 9, 10, 17, 18, 19]} +RLMATH_EOF diff --git a/tasks/construct-nppc-clique-l3-s3/tests/check.py b/tasks/construct-nppc-clique-l3-s3/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..98eb4fc9097fcfa31988cf0a8b79280cec2b7980 --- /dev/null +++ b/tasks/construct-nppc-clique-l3-s3/tests/check.py @@ -0,0 +1,19 @@ +"""Clique of size >= k. Accepts any valid clique.""" +import itertools + +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["num_nodes"], inst["k"] + c = int_list(ans.get("clique"), None, 0, n - 1, "clique") + # upstream NPPC verifier checks len(list) >= k but only tests pairs u < v, so [v, v, ..., v] passed + if len(set(c)) != len(c): + raise Invalid("clique contains duplicates") + if len(c) < k: + raise Invalid(f"clique has {len(c)} < {k} vertices") + es = {(min(u, v), max(u, v)) for u, v in inst["edges"]} + for u, v in itertools.combinations(sorted(c), 2): + if (u, v) not in es: + raise Invalid(f"no edge between {u} and {v}") + return None, {"size": len(c)} diff --git a/tasks/construct-nppc-clique-l3-s3/tests/instance.json b/tasks/construct-nppc-clique-l3-s3/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..c9ec821ef99d3f76cc563dadb99a237c5bb92fdc --- /dev/null +++ b/tasks/construct-nppc-clique-l3-s3/tests/instance.json @@ -0,0 +1 @@ +{"num_nodes": 20, "k": 10, "edges": [[0, 1], [0, 2], [0, 3], [0, 5], [0, 6], [0, 7], [0, 9], [0, 10], [0, 13], [0, 14], [0, 16], [0, 17], [0, 18], [0, 19], [1, 2], [1, 4], [1, 5], [1, 7], [1, 10], [1, 12], [1, 13], [1, 16], [1, 17], [1, 19], [2, 3], [2, 4], [2, 5], [2, 7], [2, 9], [2, 10], [2, 11], [2, 13], [2, 15], [2, 17], [2, 18], [2, 19], [3, 4], [3, 5], [3, 6], [3, 7], [3, 9], [3, 10], [3, 11], [3, 12], [3, 17], [3, 18], [3, 19], [4, 5], [4, 6], [4, 7], [4, 9], [4, 10], [4, 13], [4, 17], [4, 18], [4, 19], [5, 6], [5, 7], [5, 8], [5, 9], [5, 10], [5, 11], [5, 12], [5, 15], [5, 16], [5, 17], [5, 18], [5, 19], [6, 7], [6, 8], [6, 12], [6, 13], [6, 15], [6, 16], [6, 17], [7, 9], [7, 10], [7, 11], [7, 14], [7, 15], [7, 16], [7, 17], [7, 18], [7, 19], [8, 9], [8, 11], [8, 13], [8, 14], [8, 15], [8, 16], [9, 10], [9, 12], [9, 13], [9, 15], [9, 17], [9, 18], [9, 19], [10, 13], [10, 17], [10, 18], [10, 19], [11, 12], [11, 16], [11, 17], [11, 19], [12, 13], [12, 14], [12, 16], [12, 17], [12, 18], [12, 19], [13, 15], [13, 16], [13, 18], [14, 15], [14, 19], [15, 18], [15, 19], [16, 17], [16, 18], [16, 19], [17, 18], [17, 19], [18, 19]], "family": "nppc_clique", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-clique-l3-s3/tests/run.py b/tasks/construct-nppc-clique-l3-s3/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-nppc-clique-l3-s3/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-nppc-clique-l3-s3/tests/test.sh b/tasks/construct-nppc-clique-l3-s3/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-nppc-clique-l3-s3/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-nppc-clique-l3-s4/environment/Dockerfile b/tasks/construct-nppc-clique-l3-s4/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-nppc-clique-l3-s4/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-nppc-clique-l3-s4/environment/instance.json b/tasks/construct-nppc-clique-l3-s4/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..ed27984fdda0e5f5c584158a2269a59d2a1ff09e --- /dev/null +++ b/tasks/construct-nppc-clique-l3-s4/environment/instance.json @@ -0,0 +1 @@ +{"num_nodes": 20, "k": 10, "edges": [[0, 1], [0, 2], [0, 3], [0, 5], [0, 7], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [1, 2], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 14], [1, 15], [1, 16], [2, 3], [2, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 13], [2, 14], [2, 15], [2, 16], [2, 18], [2, 19], [3, 5], [3, 6], [3, 7], [3, 8], [3, 9], [3, 10], [3, 12], [3, 13], [3, 14], [3, 15], [3, 16], [3, 17], [3, 18], [3, 19], [4, 5], [4, 6], [4, 9], [4, 10], [4, 12], [4, 15], [4, 17], [5, 6], [5, 7], [5, 8], [5, 9], [5, 10], [5, 11], [5, 12], [5, 13], [5, 14], [5, 15], [5, 16], [5, 18], [5, 19], [6, 7], [6, 8], [6, 9], [6, 11], [6, 14], [6, 15], [6, 16], [6, 17], [7, 10], [7, 11], [7, 13], [7, 14], [7, 15], [7, 16], [7, 17], [7, 18], [8, 9], [8, 10], [8, 11], [8, 12], [8, 13], [8, 15], [8, 18], [9, 10], [9, 11], [9, 13], [9, 14], [9, 15], [9, 16], [9, 17], [9, 19], [10, 11], [10, 12], [10, 13], [10, 14], [10, 15], [10, 16], [10, 18], [11, 13], [11, 18], [12, 13], [12, 15], [12, 17], [12, 18], [12, 19], [13, 14], [13, 15], [13, 16], [13, 18], [13, 19], [14, 15], [14, 16], [14, 18], [15, 16], [15, 18], [15, 19], [16, 19]], "family": "nppc_clique", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-clique-l3-s4/solution/solve.sh b/tasks/construct-nppc-clique-l3-s4/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..d041a6d901d504932d63f14f16b7a04101226faf --- /dev/null +++ b/tasks/construct-nppc-clique-l3-s4/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"clique": [0, 2, 3, 5, 7, 10, 13, 14, 15, 18]} +RLMATH_EOF diff --git a/tasks/construct-nppc-clique-l3-s4/tests/check.py b/tasks/construct-nppc-clique-l3-s4/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..98eb4fc9097fcfa31988cf0a8b79280cec2b7980 --- /dev/null +++ b/tasks/construct-nppc-clique-l3-s4/tests/check.py @@ -0,0 +1,19 @@ +"""Clique of size >= k. Accepts any valid clique.""" +import itertools + +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["num_nodes"], inst["k"] + c = int_list(ans.get("clique"), None, 0, n - 1, "clique") + # upstream NPPC verifier checks len(list) >= k but only tests pairs u < v, so [v, v, ..., v] passed + if len(set(c)) != len(c): + raise Invalid("clique contains duplicates") + if len(c) < k: + raise Invalid(f"clique has {len(c)} < {k} vertices") + es = {(min(u, v), max(u, v)) for u, v in inst["edges"]} + for u, v in itertools.combinations(sorted(c), 2): + if (u, v) not in es: + raise Invalid(f"no edge between {u} and {v}") + return None, {"size": len(c)} diff --git a/tasks/construct-nppc-clique-l3-s4/tests/instance.json b/tasks/construct-nppc-clique-l3-s4/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..ed27984fdda0e5f5c584158a2269a59d2a1ff09e --- /dev/null +++ b/tasks/construct-nppc-clique-l3-s4/tests/instance.json @@ -0,0 +1 @@ +{"num_nodes": 20, "k": 10, "edges": [[0, 1], [0, 2], [0, 3], [0, 5], [0, 7], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [1, 2], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 14], [1, 15], [1, 16], [2, 3], [2, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 13], [2, 14], [2, 15], [2, 16], [2, 18], [2, 19], [3, 5], [3, 6], [3, 7], [3, 8], [3, 9], [3, 10], [3, 12], [3, 13], [3, 14], [3, 15], [3, 16], [3, 17], [3, 18], [3, 19], [4, 5], [4, 6], [4, 9], [4, 10], [4, 12], [4, 15], [4, 17], [5, 6], [5, 7], [5, 8], [5, 9], [5, 10], [5, 11], [5, 12], [5, 13], [5, 14], [5, 15], [5, 16], [5, 18], [5, 19], [6, 7], [6, 8], [6, 9], [6, 11], [6, 14], [6, 15], [6, 16], [6, 17], [7, 10], [7, 11], [7, 13], [7, 14], [7, 15], [7, 16], [7, 17], [7, 18], [8, 9], [8, 10], [8, 11], [8, 12], [8, 13], [8, 15], [8, 18], [9, 10], [9, 11], [9, 13], [9, 14], [9, 15], [9, 16], [9, 17], [9, 19], [10, 11], [10, 12], [10, 13], [10, 14], [10, 15], [10, 16], [10, 18], [11, 13], [11, 18], [12, 13], [12, 15], [12, 17], [12, 18], [12, 19], [13, 14], [13, 15], [13, 16], [13, 18], [13, 19], [14, 15], [14, 16], [14, 18], [15, 16], [15, 18], [15, 19], [16, 19]], "family": "nppc_clique", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-clique-l3-s4/tests/run.py b/tasks/construct-nppc-clique-l3-s4/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-nppc-clique-l3-s4/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-nppc-clique-l3-s4/tests/test.sh b/tasks/construct-nppc-clique-l3-s4/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-nppc-clique-l3-s4/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-nppc-dominating-set-l3-s3/environment/Dockerfile b/tasks/construct-nppc-dominating-set-l3-s3/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-nppc-dominating-set-l3-s3/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-nppc-dominating-set-l3-s3/environment/instance.json b/tasks/construct-nppc-dominating-set-l3-s3/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..4d63b54f66cfd9e245ea383fce045114b413d0ce --- /dev/null +++ b/tasks/construct-nppc-dominating-set-l3-s3/environment/instance.json @@ -0,0 +1 @@ +{"num_nodes": 50, "k": 20, "edges": [[0, 2], [0, 3], [0, 5], [0, 9], [0, 12], [0, 21], [0, 24], [0, 30], [0, 32], [0, 34], [0, 38], [0, 39], [0, 42], [0, 44], [0, 45], [0, 48], [1, 4], [1, 5], [1, 6], [1, 8], [1, 9], [1, 14], [1, 15], [1, 16], [1, 17], [1, 24], [1, 25], [1, 29], [1, 30], [1, 31], [1, 33], [1, 38], [1, 42], [1, 44], [1, 49], [2, 5], [2, 7], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 29], [2, 30], [2, 35], [2, 37], [3, 5], [3, 6], [3, 17], [3, 18], [3, 20], [3, 23], [3, 27], [3, 35], [3, 37], [3, 44], [3, 45], [3, 46], [4, 11], [4, 20], [4, 21], [4, 23], [4, 25], [4, 36], [4, 37], [4, 39], [4, 43], [4, 44], [5, 13], [5, 15], [5, 21], [5, 23], [5, 24], [5, 25], [5, 26], [5, 29], [5, 38], [5, 39], [5, 42], [5, 44], [5, 45], [5, 46], [6, 8], [6, 11], [6, 19], [6, 21], [6, 24], [6, 30], [6, 31], [6, 34], [6, 40], [6, 45], [7, 9], [7, 11], [7, 12], [7, 16], [7, 19], [7, 21], [7, 22], [7, 24], [7, 32], [7, 47], [7, 48], [8, 12], [8, 13], [8, 18], [8, 19], [8, 25], [8, 30], [8, 31], [8, 38], [8, 39], [8, 41], [8, 46], [8, 47], [8, 49], [9, 11], [9, 12], [9, 14], [9, 16], [9, 19], [9, 20], [9, 23], [9, 25], [9, 29], [9, 30], [9, 35], [9, 36], [9, 37], [9, 39], [9, 43], [9, 46], [9, 48], [9, 49], [10, 11], [10, 16], [10, 26], [10, 31], [10, 32], [10, 38], [10, 40], [10, 41], [10, 45], [10, 48], [11, 13], [11, 16], [11, 19], [11, 21], [11, 24], [11, 36], [11, 37], [11, 38], [11, 42], [11, 45], [11, 46], [12, 14], [12, 18], [12, 22], [12, 28], [12, 30], [12, 34], [12, 37], [12, 43], [13, 14], [13, 22], [13, 24], [13, 26], [13, 28], [13, 29], [13, 31], [13, 33], [13, 34], [13, 36], [13, 42], [14, 17], [14, 18], [14, 24], [14, 30], [14, 39], [14, 42], [15, 21], [15, 22], [15, 27], [15, 31], [15, 36], [15, 38], [15, 39], [15, 40], [15, 42], [16, 19], [16, 20], [16, 22], [16, 23], [16, 26], [16, 27], [16, 31], [16, 32], [16, 34], [16, 46], [16, 49], [17, 18], [17, 21], [17, 22], [17, 26], [17, 27], [17, 30], [17, 31], [17, 32], [17, 35], [17, 40], [17, 41], [17, 44], [17, 46], [18, 22], [18, 27], [18, 30], [18, 31], [18, 32], [18, 41], [18, 43], [19, 20], [19, 22], [19, 25], [19, 28], [19, 31], [19, 42], [19, 43], [19, 44], [20, 22], [20, 23], [20, 34], [20, 35], [20, 36], [20, 37], [20, 38], [20, 49], [21, 24], [21, 25], [21, 27], [21, 31], [21, 32], [21, 34], [21, 36], [21, 37], [21, 39], [21, 40], [22, 23], [22, 25], [22, 34], [22, 36], [22, 38], [22, 39], [22, 44], [22, 46], [23, 24], [23, 29], [23, 32], [23, 34], [23, 36], [23, 38], [23, 39], [24, 25], [24, 27], [24, 28], [24, 29], [24, 31], [24, 33], [24, 34], [24, 38], [24, 39], [24, 40], [24, 44], [24, 45], [24, 46], [25, 27], [25, 28], [25, 30], [25, 31], [25, 32], [25, 34], [25, 35], [25, 38], [25, 40], [25, 42], [25, 44], [25, 47], [26, 30], [26, 31], [26, 33], [26, 35], [26, 45], [27, 32], [27, 34], [27, 39], [27, 40], [27, 41], [27, 43], [27, 44], [27, 46], [27, 49], [28, 31], [28, 35], [28, 37], [28, 38], [28, 45], [28, 47], [29, 30], [29, 32], [29, 33], [29, 34], [29, 36], [29, 37], [29, 39], [29, 40], [29, 45], [29, 46], [29, 47], [29, 48], [30, 31], [30, 32], [30, 33], [30, 36], [30, 40], [30, 42], [30, 44], [30, 47], [31, 32], [31, 34], [31, 38], [31, 39], [31, 40], [31, 43], [31, 45], [31, 47], [31, 48], [32, 33], [32, 34], [32, 38], [32, 49], [33, 36], [33, 39], [33, 41], [33, 44], [33, 46], [34, 37], [34, 43], [35, 36], [35, 41], [35, 43], [36, 37], [36, 39], [36, 48], [37, 44], [37, 48], [38, 40], [38, 41], [38, 43], [38, 44], [38, 46], [38, 47], [38, 48], [39, 40], [39, 41], [39, 48], [40, 48], [40, 49], [41, 47], [42, 44], [42, 46], [43, 44], [43, 45], [44, 48], [45, 49], [46, 47]], "family": "nppc_dominating_set", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-dominating-set-l3-s3/solution/solve.sh b/tasks/construct-nppc-dominating-set-l3-s3/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..a0b210f4ab41a09377a4cd00d9949311f4a42967 --- /dev/null +++ b/tasks/construct-nppc-dominating-set-l3-s3/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"dominating_set": [1, 9, 10, 13, 16, 21, 23, 24, 26, 30, 31, 33, 35, 36, 37, 38, 42, 45, 46, 49]} +RLMATH_EOF diff --git a/tasks/construct-nppc-dominating-set-l3-s3/tests/check.py b/tasks/construct-nppc-dominating-set-l3-s3/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..0677a7bcbccb02297d022ffa4b5dd15da6371bff --- /dev/null +++ b/tasks/construct-nppc-dominating-set-l3-s3/tests/check.py @@ -0,0 +1,23 @@ +"""Dominating set of size <= k. Accepts any valid dominating set.""" +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["num_nodes"], inst["k"] + # upstream NPPC verifier has no type/range checks (out-of-range labels and floats are silently used) + d = int_list(ans.get("dominating_set"), None, 0, n - 1, "dominating_set") + if len(set(d)) != len(d): + raise Invalid("dominating_set contains duplicates") + if not d or len(d) > k: + raise Invalid(f"dominating_set must have 1..{k} vertices, got {len(d)}") + dom = set(d) + s = set(d) + for u, v in inst["edges"]: + if u in s: + dom.add(v) + if v in s: + dom.add(u) + if len(dom) != n: + miss = min(set(range(n)) - dom) + raise Invalid(f"vertex {miss} is not dominated") + return None, {"size": len(d)} diff --git a/tasks/construct-nppc-dominating-set-l3-s3/tests/instance.json b/tasks/construct-nppc-dominating-set-l3-s3/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..4d63b54f66cfd9e245ea383fce045114b413d0ce --- /dev/null +++ b/tasks/construct-nppc-dominating-set-l3-s3/tests/instance.json @@ -0,0 +1 @@ +{"num_nodes": 50, "k": 20, "edges": [[0, 2], [0, 3], [0, 5], [0, 9], [0, 12], [0, 21], [0, 24], [0, 30], [0, 32], [0, 34], [0, 38], [0, 39], [0, 42], [0, 44], [0, 45], [0, 48], [1, 4], [1, 5], [1, 6], [1, 8], [1, 9], [1, 14], [1, 15], [1, 16], [1, 17], [1, 24], [1, 25], [1, 29], [1, 30], [1, 31], [1, 33], [1, 38], [1, 42], [1, 44], [1, 49], [2, 5], [2, 7], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 29], [2, 30], [2, 35], [2, 37], [3, 5], [3, 6], [3, 17], [3, 18], [3, 20], [3, 23], [3, 27], [3, 35], [3, 37], [3, 44], [3, 45], [3, 46], [4, 11], [4, 20], [4, 21], [4, 23], [4, 25], [4, 36], [4, 37], [4, 39], [4, 43], [4, 44], [5, 13], [5, 15], [5, 21], [5, 23], [5, 24], [5, 25], [5, 26], [5, 29], [5, 38], [5, 39], [5, 42], [5, 44], [5, 45], [5, 46], [6, 8], [6, 11], [6, 19], [6, 21], [6, 24], [6, 30], [6, 31], [6, 34], [6, 40], [6, 45], [7, 9], [7, 11], [7, 12], [7, 16], [7, 19], [7, 21], [7, 22], [7, 24], [7, 32], [7, 47], [7, 48], [8, 12], [8, 13], [8, 18], [8, 19], [8, 25], [8, 30], [8, 31], [8, 38], [8, 39], [8, 41], [8, 46], [8, 47], [8, 49], [9, 11], [9, 12], [9, 14], [9, 16], [9, 19], [9, 20], [9, 23], [9, 25], [9, 29], [9, 30], [9, 35], [9, 36], [9, 37], [9, 39], [9, 43], [9, 46], [9, 48], [9, 49], [10, 11], [10, 16], [10, 26], [10, 31], [10, 32], [10, 38], [10, 40], [10, 41], [10, 45], [10, 48], [11, 13], [11, 16], [11, 19], [11, 21], [11, 24], [11, 36], [11, 37], [11, 38], [11, 42], [11, 45], [11, 46], [12, 14], [12, 18], [12, 22], [12, 28], [12, 30], [12, 34], [12, 37], [12, 43], [13, 14], [13, 22], [13, 24], [13, 26], [13, 28], [13, 29], [13, 31], [13, 33], [13, 34], [13, 36], [13, 42], [14, 17], [14, 18], [14, 24], [14, 30], [14, 39], [14, 42], [15, 21], [15, 22], [15, 27], [15, 31], [15, 36], [15, 38], [15, 39], [15, 40], [15, 42], [16, 19], [16, 20], [16, 22], [16, 23], [16, 26], [16, 27], [16, 31], [16, 32], [16, 34], [16, 46], [16, 49], [17, 18], [17, 21], [17, 22], [17, 26], [17, 27], [17, 30], [17, 31], [17, 32], [17, 35], [17, 40], [17, 41], [17, 44], [17, 46], [18, 22], [18, 27], [18, 30], [18, 31], [18, 32], [18, 41], [18, 43], [19, 20], [19, 22], [19, 25], [19, 28], [19, 31], [19, 42], [19, 43], [19, 44], [20, 22], [20, 23], [20, 34], [20, 35], [20, 36], [20, 37], [20, 38], [20, 49], [21, 24], [21, 25], [21, 27], [21, 31], [21, 32], [21, 34], [21, 36], [21, 37], [21, 39], [21, 40], [22, 23], [22, 25], [22, 34], [22, 36], [22, 38], [22, 39], [22, 44], [22, 46], [23, 24], [23, 29], [23, 32], [23, 34], [23, 36], [23, 38], [23, 39], [24, 25], [24, 27], [24, 28], [24, 29], [24, 31], [24, 33], [24, 34], [24, 38], [24, 39], [24, 40], [24, 44], [24, 45], [24, 46], [25, 27], [25, 28], [25, 30], [25, 31], [25, 32], [25, 34], [25, 35], [25, 38], [25, 40], [25, 42], [25, 44], [25, 47], [26, 30], [26, 31], [26, 33], [26, 35], [26, 45], [27, 32], [27, 34], [27, 39], [27, 40], [27, 41], [27, 43], [27, 44], [27, 46], [27, 49], [28, 31], [28, 35], [28, 37], [28, 38], [28, 45], [28, 47], [29, 30], [29, 32], [29, 33], [29, 34], [29, 36], [29, 37], [29, 39], [29, 40], [29, 45], [29, 46], [29, 47], [29, 48], [30, 31], [30, 32], [30, 33], [30, 36], [30, 40], [30, 42], [30, 44], [30, 47], [31, 32], [31, 34], [31, 38], [31, 39], [31, 40], [31, 43], [31, 45], [31, 47], [31, 48], [32, 33], [32, 34], [32, 38], [32, 49], [33, 36], [33, 39], [33, 41], [33, 44], [33, 46], [34, 37], [34, 43], [35, 36], [35, 41], [35, 43], [36, 37], [36, 39], [36, 48], [37, 44], [37, 48], [38, 40], [38, 41], [38, 43], [38, 44], [38, 46], [38, 47], [38, 48], [39, 40], [39, 41], [39, 48], [40, 48], [40, 49], [41, 47], [42, 44], [42, 46], [43, 44], [43, 45], [44, 48], [45, 49], [46, 47]], "family": "nppc_dominating_set", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-dominating-set-l3-s3/tests/run.py b/tasks/construct-nppc-dominating-set-l3-s3/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-nppc-dominating-set-l3-s3/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-nppc-dominating-set-l3-s3/tests/test.sh b/tasks/construct-nppc-dominating-set-l3-s3/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-nppc-dominating-set-l3-s3/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-nppc-independent-set-l2-s3/environment/Dockerfile b/tasks/construct-nppc-independent-set-l2-s3/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-nppc-independent-set-l2-s3/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-nppc-independent-set-l2-s3/environment/instance.json b/tasks/construct-nppc-independent-set-l2-s3/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..ac310750a1b11d1a5df617c735bdcab5ca6928b3 --- /dev/null +++ b/tasks/construct-nppc-independent-set-l2-s3/environment/instance.json @@ -0,0 +1 @@ +{"num_nodes": 16, "k": 8, "edges": [[0, 1], [0, 6], [1, 2], [1, 3], [1, 4], [1, 6], [1, 8], [1, 10], [1, 13], [1, 15], [2, 3], [2, 6], [2, 12], [2, 13], [3, 9], [3, 10], [4, 5], [4, 10], [4, 12], [4, 13], [4, 14], [4, 15], [5, 6], [5, 9], [5, 10], [5, 11], [6, 9], [6, 13], [6, 14], [7, 9], [8, 10], [8, 13], [9, 10], [9, 12], [9, 15], [10, 11], [10, 13], [11, 12], [11, 15]], "family": "nppc_independent_set", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-independent-set-l2-s3/solution/solve.sh b/tasks/construct-nppc-independent-set-l2-s3/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..6f50dc91d485e7cdcb6736e983a3ccb35720881f --- /dev/null +++ b/tasks/construct-nppc-independent-set-l2-s3/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"independent_set": [0, 3, 5, 7, 8, 12, 14, 15]} +RLMATH_EOF diff --git a/tasks/construct-nppc-independent-set-l2-s3/tests/check.py b/tasks/construct-nppc-independent-set-l2-s3/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..92279a931488c7f39c08a3b11162b3f54a9c662a --- /dev/null +++ b/tasks/construct-nppc-independent-set-l2-s3/tests/check.py @@ -0,0 +1,19 @@ +"""Independent set of size >= k. Accepts any valid independent set.""" +import itertools + +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["num_nodes"], inst["k"] + s = int_list(ans.get("independent_set"), None, 0, n - 1, "independent_set") + # upstream NPPC verifier checks len(list) >= size but only tests pairs u < v, so [v]*k passed + if len(set(s)) != len(s): + raise Invalid("independent_set contains duplicates") + if len(s) < k: + raise Invalid(f"independent_set has {len(s)} < {k} vertices") + es = {(min(u, v), max(u, v)) for u, v in inst["edges"]} + for u, v in itertools.combinations(sorted(s), 2): + if (u, v) in es: + raise Invalid(f"edge between {u} and {v}") + return None, {"size": len(s)} diff --git a/tasks/construct-nppc-independent-set-l2-s3/tests/instance.json b/tasks/construct-nppc-independent-set-l2-s3/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..ac310750a1b11d1a5df617c735bdcab5ca6928b3 --- /dev/null +++ b/tasks/construct-nppc-independent-set-l2-s3/tests/instance.json @@ -0,0 +1 @@ +{"num_nodes": 16, "k": 8, "edges": [[0, 1], [0, 6], [1, 2], [1, 3], [1, 4], [1, 6], [1, 8], [1, 10], [1, 13], [1, 15], [2, 3], [2, 6], [2, 12], [2, 13], [3, 9], [3, 10], [4, 5], [4, 10], [4, 12], [4, 13], [4, 14], [4, 15], [5, 6], [5, 9], [5, 10], [5, 11], [6, 9], [6, 13], [6, 14], [7, 9], [8, 10], [8, 13], [9, 10], [9, 12], [9, 15], [10, 11], [10, 13], [11, 12], [11, 15]], "family": "nppc_independent_set", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-independent-set-l2-s3/tests/run.py b/tasks/construct-nppc-independent-set-l2-s3/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-nppc-independent-set-l2-s3/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-nppc-independent-set-l2-s3/tests/test.sh b/tasks/construct-nppc-independent-set-l2-s3/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-nppc-independent-set-l2-s3/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-nppc-independent-set-l2-s4/environment/Dockerfile b/tasks/construct-nppc-independent-set-l2-s4/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-nppc-independent-set-l2-s4/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-nppc-independent-set-l2-s4/environment/instance.json b/tasks/construct-nppc-independent-set-l2-s4/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..ed6830d2654b01da2aeee76ecbdd601eb8fae764 --- /dev/null +++ b/tasks/construct-nppc-independent-set-l2-s4/environment/instance.json @@ -0,0 +1 @@ +{"num_nodes": 16, "k": 8, "edges": [[0, 1], [0, 7], [0, 8], [0, 9], [0, 11], [0, 12], [1, 2], [1, 3], [1, 4], [1, 7], [1, 9], [1, 11], [1, 12], [1, 13], [1, 15], [2, 4], [2, 8], [2, 9], [2, 11], [2, 12], [2, 15], [3, 7], [3, 8], [3, 9], [3, 14], [4, 7], [4, 9], [4, 14], [5, 10], [5, 11], [5, 12], [5, 14], [6, 7], [6, 8], [7, 8], [7, 9], [7, 11], [7, 12], [8, 12], [9, 12], [9, 13], [9, 14], [11, 14], [12, 14], [13, 14], [14, 15]], "family": "nppc_independent_set", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-independent-set-l2-s4/solution/solve.sh b/tasks/construct-nppc-independent-set-l2-s4/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..e651d1d898db85866fb65db34947ed7b382953ec --- /dev/null +++ b/tasks/construct-nppc-independent-set-l2-s4/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"independent_set": [3, 4, 6, 10, 11, 12, 13, 15]} +RLMATH_EOF diff --git a/tasks/construct-nppc-independent-set-l2-s4/tests/check.py b/tasks/construct-nppc-independent-set-l2-s4/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..92279a931488c7f39c08a3b11162b3f54a9c662a --- /dev/null +++ b/tasks/construct-nppc-independent-set-l2-s4/tests/check.py @@ -0,0 +1,19 @@ +"""Independent set of size >= k. Accepts any valid independent set.""" +import itertools + +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["num_nodes"], inst["k"] + s = int_list(ans.get("independent_set"), None, 0, n - 1, "independent_set") + # upstream NPPC verifier checks len(list) >= size but only tests pairs u < v, so [v]*k passed + if len(set(s)) != len(s): + raise Invalid("independent_set contains duplicates") + if len(s) < k: + raise Invalid(f"independent_set has {len(s)} < {k} vertices") + es = {(min(u, v), max(u, v)) for u, v in inst["edges"]} + for u, v in itertools.combinations(sorted(s), 2): + if (u, v) in es: + raise Invalid(f"edge between {u} and {v}") + return None, {"size": len(s)} diff --git a/tasks/construct-nppc-independent-set-l2-s4/tests/instance.json b/tasks/construct-nppc-independent-set-l2-s4/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..ed6830d2654b01da2aeee76ecbdd601eb8fae764 --- /dev/null +++ b/tasks/construct-nppc-independent-set-l2-s4/tests/instance.json @@ -0,0 +1 @@ +{"num_nodes": 16, "k": 8, "edges": [[0, 1], [0, 7], [0, 8], [0, 9], [0, 11], [0, 12], [1, 2], [1, 3], [1, 4], [1, 7], [1, 9], [1, 11], [1, 12], [1, 13], [1, 15], [2, 4], [2, 8], [2, 9], [2, 11], [2, 12], [2, 15], [3, 7], [3, 8], [3, 9], [3, 14], [4, 7], [4, 9], [4, 14], [5, 10], [5, 11], [5, 12], [5, 14], [6, 7], [6, 8], [7, 8], [7, 9], [7, 11], [7, 12], [8, 12], [9, 12], [9, 13], [9, 14], [11, 14], [12, 14], [13, 14], [14, 15]], "family": "nppc_independent_set", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-independent-set-l2-s4/tests/run.py b/tasks/construct-nppc-independent-set-l2-s4/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-nppc-independent-set-l2-s4/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-nppc-independent-set-l2-s4/tests/test.sh b/tasks/construct-nppc-independent-set-l2-s4/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-nppc-independent-set-l2-s4/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-nppc-independent-set-l6-s2/environment/Dockerfile b/tasks/construct-nppc-independent-set-l6-s2/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-nppc-independent-set-l6-s2/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-nppc-independent-set-l6-s2/environment/instance.json b/tasks/construct-nppc-independent-set-l6-s2/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..f9f81517a16c7ae8719937bf96fa98b83757e4d5 --- /dev/null +++ b/tasks/construct-nppc-independent-set-l6-s2/environment/instance.json @@ -0,0 +1 @@ +{"num_nodes": 100, "k": 30, "edges": [[0, 11], [0, 14], [0, 19], [0, 22], [0, 24], [0, 25], [0, 27], [0, 28], [0, 32], [0, 43], [0, 44], [0, 47], [0, 48], [0, 54], [0, 58], [0, 65], [0, 71], [0, 72], [0, 73], [0, 74], [0, 75], [0, 77], [0, 79], [0, 80], [0, 82], [0, 83], [0, 87], [0, 89], [0, 90], [0, 95], [1, 5], [1, 16], [1, 24], [1, 28], [1, 37], [1, 38], [1, 46], [1, 58], [1, 60], [1, 65], [1, 67], [1, 71], [1, 79], [1, 87], [1, 88], [1, 90], [1, 96], [2, 4], [2, 6], [2, 10], [2, 12], [2, 16], [2, 17], [2, 18], [2, 19], [2, 20], [2, 24], [2, 31], [2, 32], [2, 33], [2, 37], [2, 40], [2, 41], [2, 47], [2, 48], [2, 50], [2, 60], [2, 73], [2, 78], [2, 84], [2, 87], [2, 91], [2, 93], [2, 94], [2, 95], [2, 96], [3, 6], [3, 9], [3, 11], [3, 12], [3, 15], [3, 18], [3, 19], [3, 20], [3, 23], [3, 25], [3, 40], [3, 43], [3, 45], [3, 47], [3, 51], [3, 58], [3, 60], [3, 61], [3, 65], [3, 67], [3, 70], [3, 71], [3, 72], [3, 76], [3, 78], [3, 83], [3, 87], [3, 92], [3, 93], [3, 94], [3, 97], [3, 98], [3, 99], [4, 5], [4, 8], [4, 9], [4, 10], [4, 11], [4, 17], [4, 21], [4, 24], [4, 25], [4, 26], [4, 30], [4, 31], [4, 32], [4, 37], [4, 38], [4, 43], [4, 45], [4, 48], [4, 54], [4, 63], [4, 67], [4, 69], [4, 77], [4, 78], [4, 79], [4, 84], [4, 86], [4, 87], [4, 88], [4, 90], [4, 97], [4, 99], [5, 7], [5, 8], [5, 11], [5, 18], [5, 19], [5, 22], [5, 24], [5, 29], [5, 35], [5, 37], [5, 42], [5, 49], [5, 51], [5, 53], [5, 54], [5, 69], [5, 70], [5, 71], [5, 77], [5, 78], [5, 79], [5, 81], [5, 92], [6, 12], [6, 13], [6, 15], [6, 17], [6, 21], [6, 37], [6, 43], [6, 50], [6, 51], [6, 54], [6, 58], [6, 60], [6, 66], [6, 67], [6, 68], [6, 72], [6, 74], [6, 93], [6, 94], [6, 96], [6, 97], [7, 8], [7, 12], [7, 13], [7, 15], [7, 28], [7, 43], [7, 44], [7, 51], [7, 58], [7, 60], [7, 62], [7, 65], [7, 71], [7, 72], [7, 74], [7, 75], [7, 79], [7, 82], [7, 88], [7, 98], [8, 11], [8, 13], [8, 17], [8, 18], [8, 25], [8, 28], [8, 35], [8, 36], [8, 37], [8, 42], [8, 43], [8, 50], [8, 51], [8, 52], [8, 56], [8, 59], [8, 62], [8, 63], [8, 65], [8, 69], [8, 70], [8, 71], [8, 76], [8, 80], [8, 86], [8, 89], [8, 92], [8, 97], [8, 98], [8, 99], [9, 12], [9, 15], [9, 18], [9, 23], [9, 24], [9, 35], [9, 39], [9, 40], [9, 45], [9, 62], [9, 67], [9, 71], [9, 75], [9, 77], [9, 81], [9, 82], [9, 84], [9, 89], [10, 11], [10, 15], [10, 30], [10, 32], [10, 44], [10, 51], [10, 56], [10, 62], [10, 67], [10, 68], [10, 70], [10, 81], [10, 88], [10, 90], [10, 94], [10, 97], [11, 14], [11, 19], [11, 20], [11, 24], [11, 26], [11, 28], [11, 34], [11, 35], [11, 36], [11, 37], [11, 40], [11, 41], [11, 43], [11, 50], [11, 51], [11, 53], [11, 55], [11, 59], [11, 62], [11, 66], [11, 67], [11, 75], [11, 76], [11, 77], [11, 78], [11, 79], [11, 81], [11, 87], [12, 16], [12, 21], [12, 33], [12, 37], [12, 38], [12, 41], [12, 42], [12, 43], [12, 46], [12, 49], [12, 51], [12, 54], [12, 57], [12, 58], [12, 61], [12, 68], [12, 69], [12, 75], [12, 76], [12, 77], [12, 85], [12, 86], [12, 88], [12, 89], [12, 90], [12, 97], [12, 98], [13, 16], [13, 18], [13, 19], [13, 24], [13, 26], [13, 32], [13, 35], [13, 39], [13, 41], [13, 45], [13, 50], [13, 52], [13, 53], [13, 56], [13, 58], [13, 62], [13, 69], [13, 71], [13, 73], [13, 75], [13, 79], [13, 81], [13, 87], [13, 90], [13, 92], [13, 98], [14, 16], [14, 30], [14, 44], [14, 49], [14, 50], [14, 58], [14, 60], [14, 66], [14, 68], [14, 77], [14, 78], [14, 81], [14, 95], [14, 97], [14, 98], [15, 16], [15, 19], [15, 20], [15, 22], [15, 23], [15, 25], [15, 26], [15, 30], [15, 35], [15, 41], [15, 49], [15, 50], [15, 55], [15, 60], [15, 63], [15, 67], [15, 72], [15, 78], [15, 80], [15, 81], [15, 82], [15, 85], [15, 88], [15, 92], [15, 97], [15, 98], [16, 17], [16, 18], [16, 19], [16, 22], [16, 25], [16, 27], [16, 34], [16, 35], [16, 36], [16, 37], [16, 45], [16, 46], [16, 48], [16, 49], [16, 60], [16, 61], [16, 63], [16, 66], [16, 73], [16, 76], [16, 79], [16, 86], [16, 93], [16, 95], [16, 96], [16, 99], [17, 20], [17, 22], [17, 27], [17, 29], [17, 32], [17, 34], [17, 40], [17, 41], [17, 42], [17, 44], [17, 46], [17, 50], [17, 51], [17, 55], [17, 60], [17, 69], [17, 71], [17, 73], [17, 74], [17, 78], [17, 84], [17, 92], [17, 95], [18, 23], [18, 25], [18, 29], [18, 33], [18, 35], [18, 41], [18, 42], [18, 47], [18, 52], [18, 53], [18, 64], [18, 67], [18, 70], [18, 85], [18, 92], [18, 96], [19, 22], [19, 23], [19, 31], [19, 32], [19, 34], [19, 37], [19, 41], [19, 42], [19, 45], [19, 48], [19, 50], [19, 51], [19, 53], [19, 54], [19, 55], [19, 56], [19, 57], [19, 58], [19, 65], [19, 67], [19, 73], [19, 74], [19, 76], [19, 77], [19, 78], [19, 79], [19, 81], [19, 84], [19, 85], [19, 88], [19, 92], [19, 96], [19, 98], [20, 21], [20, 23], [20, 32], [20, 37], [20, 39], [20, 40], [20, 43], [20, 44], [20, 50], [20, 54], [20, 56], [20, 60], [20, 65], [20, 68], [20, 70], [20, 90], [20, 94], [20, 97], [20, 98], [21, 27], [21, 32], [21, 34], [21, 35], [21, 36], [21, 37], [21, 38], [21, 39], [21, 43], [21, 45], [21, 46], [21, 48], [21, 50], [21, 52], [21, 60], [21, 64], [21, 65], [21, 66], [21, 76], [21, 85], [22, 29], [22, 32], [22, 36], [22, 40], [22, 43], [22, 45], [22, 46], [22, 50], [22, 56], [22, 57], [22, 58], [22, 59], [22, 61], [22, 65], [22, 66], [22, 74], [22, 75], [22, 80], [22, 81], [22, 83], [22, 87], [22, 90], [22, 91], [22, 92], [23, 25], [23, 34], [23, 35], [23, 38], [23, 39], [23, 40], [23, 42], [23, 45], [23, 48], [23, 50], [23, 54], [23, 57], [23, 68], [23, 69], [23, 73], [23, 74], [23, 78], [23, 85], [23, 86], [23, 87], [23, 88], [23, 89], [23, 94], [23, 95], [23, 97], [24, 32], [24, 33], [24, 36], [24, 37], [24, 38], [24, 39], [24, 43], [24, 44], [24, 45], [24, 50], [24, 52], [24, 55], [24, 60], [24, 61], [24, 63], [24, 65], [24, 72], [24, 76], [24, 81], [24, 94], [24, 96], [24, 99], [25, 30], [25, 32], [25, 34], [25, 36], [25, 40], [25, 44], [25, 45], [25, 50], [25, 61], [25, 63], [25, 66], [25, 68], [25, 70], [25, 71], [25, 79], [25, 81], [25, 85], [25, 88], [25, 90], [25, 93], [25, 94], [25, 96], [26, 38], [26, 39], [26, 50], [26, 52], [26, 58], [26, 66], [26, 67], [26, 70], [26, 73], [26, 77], [26, 87], [26, 90], [26, 93], [26, 94], [26, 98], [27, 39], [27, 49], [27, 51], [27, 52], [27, 62], [27, 75], [27, 79], [27, 81], [27, 84], [27, 87], [27, 88], [27, 90], [27, 94], [27, 96], [27, 97], [27, 98], [28, 30], [28, 32], [28, 34], [28, 36], [28, 37], [28, 38], [28, 41], [28, 43], [28, 47], [28, 50], [28, 55], [28, 61], [28, 62], [28, 64], [28, 71], [28, 73], [28, 79], [28, 80], [28, 85], [28, 86], [28, 87], [28, 90], [28, 94], [28, 95], [28, 96], [28, 99], [29, 39], [29, 43], [29, 46], [29, 56], [29, 66], [29, 72], [29, 73], [29, 82], [29, 93], [29, 94], [29, 98], [30, 31], [30, 32], [30, 34], [30, 37], [30, 38], [30, 40], [30, 44], [30, 45], [30, 46], [30, 48], [30, 52], [30, 53], [30, 54], [30, 58], [30, 59], [30, 60], [30, 65], [30, 66], [30, 80], [30, 90], [30, 94], [30, 95], [30, 97], [31, 32], [31, 35], [31, 37], [31, 38], [31, 44], [31, 49], [31, 51], [31, 52], [31, 54], [31, 60], [31, 67], [31, 81], [31, 83], [31, 87], [31, 89], [31, 90], [32, 37], [32, 39], [32, 41], [32, 42], [32, 44], [32, 46], [32, 48], [32, 51], [32, 53], [32, 55], [32, 57], [32, 61], [32, 62], [32, 66], [32, 69], [32, 70], [32, 72], [32, 76], [32, 77], [32, 89], [32, 91], [32, 93], [32, 94], [32, 98], [33, 40], [33, 45], [33, 59], [33, 71], [33, 75], [33, 77], [33, 79], [33, 87], [33, 88], [33, 94], [33, 97], [34, 35], [34, 37], [34, 38], [34, 43], [34, 44], [34, 45], [34, 50], [34, 66], [34, 67], [34, 70], [34, 75], [34, 78], [34, 89], [34, 95], [34, 99], [35, 42], [35, 45], [35, 49], [35, 50], [35, 52], [35, 53], [35, 58], [35, 63], [35, 64], [35, 67], [35, 77], [35, 78], [35, 81], [35, 82], [35, 89], [35, 92], [35, 94], [35, 97], [35, 98], [36, 37], [36, 38], [36, 46], [36, 50], [36, 51], [36, 56], [36, 59], [36, 65], [36, 67], [36, 71], [36, 73], [36, 81], [36, 84], [36, 93], [36, 97], [36, 99], [37, 39], [37, 44], [37, 45], [37, 46], [37, 50], [37, 53], [37, 54], [37, 57], [37, 58], [37, 60], [37, 63], [37, 64], [37, 65], [37, 67], [37, 69], [37, 74], [37, 79], [37, 81], [37, 82], [37, 84], [37, 87], [37, 88], [37, 94], [37, 96], [38, 41], [38, 42], [38, 44], [38, 49], [38, 54], [38, 56], [38, 58], [38, 59], [38, 62], [38, 70], [38, 73], [38, 77], [38, 78], [38, 84], [38, 89], [38, 94], [39, 43], [39, 45], [39, 57], [39, 59], [39, 63], [39, 66], [39, 67], [39, 68], [39, 70], [39, 74], [39, 75], [39, 77], [39, 78], [39, 80], [39, 81], [39, 85], [39, 88], [39, 95], [39, 96], [39, 99], [40, 49], [40, 50], [40, 52], [40, 56], [40, 57], [40, 58], [40, 59], [40, 60], [40, 61], [40, 72], [40, 75], [40, 78], [40, 79], [40, 84], [40, 88], [40, 89], [40, 91], [40, 94], [40, 95], [40, 96], [41, 42], [41, 46], [41, 50], [41, 51], [41, 56], [41, 62], [41, 71], [41, 73], [41, 77], [41, 78], [41, 79], [41, 83], [41, 96], [41, 97], [41, 98], [41, 99], [42, 46], [42, 47], [42, 48], [42, 51], [42, 52], [42, 56], [42, 57], [42, 61], [42, 73], [42, 78], [42, 84], [42, 86], [42, 90], [42, 92], [42, 93], [42, 98], [42, 99], [43, 44], [43, 50], [43, 52], [43, 53], [43, 54], [43, 59], [43, 64], [43, 65], [43, 67], [43, 69], [43, 71], [43, 73], [43, 74], [43, 75], [43, 77], [43, 81], [43, 93], [43, 97], [43, 98], [43, 99], [44, 47], [44, 49], [44, 52], [44, 53], [44, 63], [44, 68], [44, 69], [44, 70], [44, 71], [44, 73], [44, 74], [44, 76], [44, 83], [44, 86], [44, 87], [44, 89], [44, 94], [44, 95], [44, 99], [45, 46], [45, 49], [45, 56], [45, 57], [45, 58], [45, 63], [45, 68], [45, 71], [45, 74], [45, 78], [45, 79], [45, 85], [45, 92], [45, 96], [46, 51], [46, 57], [46, 58], [46, 63], [46, 66], [46, 68], [46, 72], [46, 85], [46, 86], [46, 88], [46, 94], [47, 49], [47, 52], [47, 58], [47, 60], [47, 68], [47, 73], [47, 89], [47, 93], [47, 94], [47, 98], [48, 52], [48, 54], [48, 56], [48, 60], [48, 65], [48, 68], [48, 70], [48, 75], [48, 77], [48, 78], [48, 79], [48, 87], [48, 93], [49, 55], [49, 56], [49, 61], [49, 62], [49, 68], [49, 73], [49, 76], [49, 80], [49, 82], [49, 87], [49, 88], [49, 91], [49, 98], [50, 52], [50, 56], [50, 57], [50, 62], [50, 70], [50, 71], [50, 73], [50, 79], [50, 82], [50, 86], [50, 88], [50, 90], [50, 93], [50, 94], [50, 96], [51, 55], [51, 56], [51, 58], [51, 59], [51, 63], [51, 72], [51, 73], [51, 79], [51, 80], [51, 83], [51, 89], [52, 57], [52, 59], [52, 60], [52, 62], [52, 63], [52, 65], [52, 67], [52, 69], [52, 73], [52, 75], [52, 76], [52, 78], [52, 79], [52, 80], [52, 83], [52, 85], [52, 89], [52, 93], [52, 94], [52, 96], [52, 97], [53, 56], [53, 58], [53, 66], [53, 67], [53, 70], [53, 71], [53, 75], [53, 78], [53, 79], [53, 82], [53, 87], [53, 90], [53, 95], [53, 98], [54, 64], [54, 66], [54, 68], [54, 75], [54, 79], [54, 80], [54, 81], [54, 84], [54, 88], [54, 89], [54, 90], [54, 93], [54, 96], [55, 58], [55, 66], [55, 70], [55, 71], [55, 72], [55, 74], [55, 82], [55, 84], [55, 89], [55, 90], [55, 93], [55, 94], [55, 96], [55, 97], [56, 61], [56, 69], [56, 72], [56, 75], [56, 77], [56, 78], [56, 80], [56, 83], [56, 86], [56, 87], [56, 89], [56, 91], [56, 93], [56, 96], [56, 97], [57, 58], [57, 59], [57, 60], [57, 75], [57, 78], [57, 81], [57, 87], [57, 89], [57, 95], [57, 98], [58, 75], [58, 77], [58, 82], [58, 93], [58, 95], [59, 64], [59, 68], [59, 73], [59, 76], [59, 81], [59, 84], [59, 85], [59, 88], [59, 95], [59, 96], [60, 63], [60, 67], [60, 69], [60, 72], [60, 73], [60, 76], [60, 77], [60, 81], [60, 85], [60, 89], [60, 94], [60, 95], [60, 96], [60, 98], [61, 62], [61, 67], [61, 71], [61, 73], [61, 78], [61, 81], [61, 83], [61, 93], [62, 68], [62, 81], [62, 84], [62, 86], [62, 90], [62, 96], [62, 97], [63, 72], [63, 73], [63, 74], [63, 77], [63, 93], [63, 94], [63, 97], [63, 99], [64, 72], [64, 74], [64, 75], [64, 78], [64, 81], [64, 83], [64, 90], [64, 93], [64, 94], [64, 95], [64, 96], [64, 99], [65, 69], [65, 72], [65, 73], [65, 77], [65, 78], [65, 80], [65, 81], [65, 82], [65, 83], [65, 91], [65, 92], [65, 94], [65, 98], [66, 67], [66, 77], [66, 78], [66, 87], [66, 89], [66, 91], [66, 93], [66, 95], [67, 70], [67, 71], [67, 73], [67, 79], [67, 86], [67, 92], [68, 69], [68, 73], [68, 76], [68, 78], [68, 90], [68, 94], [68, 98], [68, 99], [69, 75], [69, 96], [70, 71], [70, 74], [70, 83], [70, 84], [70, 92], [70, 94], [70, 97], [70, 98], [70, 99], [71, 72], [71, 74], [71, 77], [71, 78], [71, 79], [71, 84], [71, 85], [71, 86], [71, 92], [71, 95], [71, 99], [72, 73], [72, 79], [72, 83], [72, 84], [72, 85], [72, 86], [72, 87], [72, 91], [72, 94], [72, 95], [73, 78], [73, 80], [73, 84], [73, 90], [73, 93], [73, 96], [73, 99], [74, 76], [74, 79], [74, 82], [74, 94], [74, 95], [74, 96], [74, 97], [75, 76], [75, 78], [75, 79], [75, 82], [75, 89], [75, 93], [75, 95], [76, 78], [76, 83], [76, 84], [76, 95], [76, 97], [77, 81], [77, 83], [77, 85], [77, 88], [77, 89], [77, 97], [78, 88], [78, 89], [78, 95], [78, 97], [78, 99], [79, 85], [79, 94], [80, 81], [80, 82], [80, 89], [80, 90], [80, 95], [81, 86], [81, 90], [81, 92], [81, 93], [82, 86], [82, 87], [82, 90], [82, 93], [83, 93], [83, 98], [84, 86], [84, 88], [84, 89], [84, 93], [84, 96], [85, 89], [85, 93], [85, 95], [85, 96], [86, 88], [86, 93], [86, 98], [87, 95], [87, 96], [87, 97], [87, 98], [88, 90], [88, 93], [88, 97], [89, 96], [89, 98], [90, 92], [90, 99], [91, 93], [91, 96], [93, 96], [93, 98], [93, 99], [95, 96], [95, 97], [95, 99], [96, 98], [97, 99]], "family": "nppc_independent_set", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-independent-set-l6-s2/solution/solve.sh b/tasks/construct-nppc-independent-set-l6-s2/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..e2a6768b6d31f4647c16a94b68f39bd78f193a26 --- /dev/null +++ b/tasks/construct-nppc-independent-set-l6-s2/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"independent_set": [1, 6, 7, 9, 10, 14, 20, 26, 27, 29, 31, 33, 34, 36, 41, 47, 48, 53, 55, 57, 61, 63, 64, 69, 76, 80, 85, 86, 91, 92]} +RLMATH_EOF diff --git a/tasks/construct-nppc-independent-set-l6-s2/tests/check.py b/tasks/construct-nppc-independent-set-l6-s2/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..92279a931488c7f39c08a3b11162b3f54a9c662a --- /dev/null +++ b/tasks/construct-nppc-independent-set-l6-s2/tests/check.py @@ -0,0 +1,19 @@ +"""Independent set of size >= k. Accepts any valid independent set.""" +import itertools + +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["num_nodes"], inst["k"] + s = int_list(ans.get("independent_set"), None, 0, n - 1, "independent_set") + # upstream NPPC verifier checks len(list) >= size but only tests pairs u < v, so [v]*k passed + if len(set(s)) != len(s): + raise Invalid("independent_set contains duplicates") + if len(s) < k: + raise Invalid(f"independent_set has {len(s)} < {k} vertices") + es = {(min(u, v), max(u, v)) for u, v in inst["edges"]} + for u, v in itertools.combinations(sorted(s), 2): + if (u, v) in es: + raise Invalid(f"edge between {u} and {v}") + return None, {"size": len(s)} diff --git a/tasks/construct-nppc-independent-set-l6-s2/tests/instance.json b/tasks/construct-nppc-independent-set-l6-s2/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..f9f81517a16c7ae8719937bf96fa98b83757e4d5 --- /dev/null +++ b/tasks/construct-nppc-independent-set-l6-s2/tests/instance.json @@ -0,0 +1 @@ +{"num_nodes": 100, "k": 30, "edges": [[0, 11], [0, 14], [0, 19], [0, 22], [0, 24], [0, 25], [0, 27], [0, 28], [0, 32], [0, 43], [0, 44], [0, 47], [0, 48], [0, 54], [0, 58], [0, 65], [0, 71], [0, 72], [0, 73], [0, 74], [0, 75], [0, 77], [0, 79], [0, 80], [0, 82], [0, 83], [0, 87], [0, 89], [0, 90], [0, 95], [1, 5], [1, 16], [1, 24], [1, 28], [1, 37], [1, 38], [1, 46], [1, 58], [1, 60], [1, 65], [1, 67], [1, 71], [1, 79], [1, 87], [1, 88], [1, 90], [1, 96], [2, 4], [2, 6], [2, 10], [2, 12], [2, 16], [2, 17], [2, 18], [2, 19], [2, 20], [2, 24], [2, 31], [2, 32], [2, 33], [2, 37], [2, 40], [2, 41], [2, 47], [2, 48], [2, 50], [2, 60], [2, 73], [2, 78], [2, 84], [2, 87], [2, 91], [2, 93], [2, 94], [2, 95], [2, 96], [3, 6], [3, 9], [3, 11], [3, 12], [3, 15], [3, 18], [3, 19], [3, 20], [3, 23], [3, 25], [3, 40], [3, 43], [3, 45], [3, 47], [3, 51], [3, 58], [3, 60], [3, 61], [3, 65], [3, 67], [3, 70], [3, 71], [3, 72], [3, 76], [3, 78], [3, 83], [3, 87], [3, 92], [3, 93], [3, 94], [3, 97], [3, 98], [3, 99], [4, 5], [4, 8], [4, 9], [4, 10], [4, 11], [4, 17], [4, 21], [4, 24], [4, 25], [4, 26], [4, 30], [4, 31], [4, 32], [4, 37], [4, 38], [4, 43], [4, 45], [4, 48], [4, 54], [4, 63], [4, 67], [4, 69], [4, 77], [4, 78], [4, 79], [4, 84], [4, 86], [4, 87], [4, 88], [4, 90], [4, 97], [4, 99], [5, 7], [5, 8], [5, 11], [5, 18], [5, 19], [5, 22], [5, 24], [5, 29], [5, 35], [5, 37], [5, 42], [5, 49], [5, 51], [5, 53], [5, 54], [5, 69], [5, 70], [5, 71], [5, 77], [5, 78], [5, 79], [5, 81], [5, 92], [6, 12], [6, 13], [6, 15], [6, 17], [6, 21], [6, 37], [6, 43], [6, 50], [6, 51], [6, 54], [6, 58], [6, 60], [6, 66], [6, 67], [6, 68], [6, 72], [6, 74], [6, 93], [6, 94], [6, 96], [6, 97], [7, 8], [7, 12], [7, 13], [7, 15], [7, 28], [7, 43], [7, 44], [7, 51], [7, 58], [7, 60], [7, 62], [7, 65], [7, 71], [7, 72], [7, 74], [7, 75], [7, 79], [7, 82], [7, 88], [7, 98], [8, 11], [8, 13], [8, 17], [8, 18], [8, 25], [8, 28], [8, 35], [8, 36], [8, 37], [8, 42], [8, 43], [8, 50], [8, 51], [8, 52], [8, 56], [8, 59], [8, 62], [8, 63], [8, 65], [8, 69], [8, 70], [8, 71], [8, 76], [8, 80], [8, 86], [8, 89], [8, 92], [8, 97], [8, 98], [8, 99], [9, 12], [9, 15], [9, 18], [9, 23], [9, 24], [9, 35], [9, 39], [9, 40], [9, 45], [9, 62], [9, 67], [9, 71], [9, 75], [9, 77], [9, 81], [9, 82], [9, 84], [9, 89], [10, 11], [10, 15], [10, 30], [10, 32], [10, 44], [10, 51], [10, 56], [10, 62], [10, 67], [10, 68], [10, 70], [10, 81], [10, 88], [10, 90], [10, 94], [10, 97], [11, 14], [11, 19], [11, 20], [11, 24], [11, 26], [11, 28], [11, 34], [11, 35], [11, 36], [11, 37], [11, 40], [11, 41], [11, 43], [11, 50], [11, 51], [11, 53], [11, 55], [11, 59], [11, 62], [11, 66], [11, 67], [11, 75], [11, 76], [11, 77], [11, 78], [11, 79], [11, 81], [11, 87], [12, 16], [12, 21], [12, 33], [12, 37], [12, 38], [12, 41], [12, 42], [12, 43], [12, 46], [12, 49], [12, 51], [12, 54], [12, 57], [12, 58], [12, 61], [12, 68], [12, 69], [12, 75], [12, 76], [12, 77], [12, 85], [12, 86], [12, 88], [12, 89], [12, 90], [12, 97], [12, 98], [13, 16], [13, 18], [13, 19], [13, 24], [13, 26], [13, 32], [13, 35], [13, 39], [13, 41], [13, 45], [13, 50], [13, 52], [13, 53], [13, 56], [13, 58], [13, 62], [13, 69], [13, 71], [13, 73], [13, 75], [13, 79], [13, 81], [13, 87], [13, 90], [13, 92], [13, 98], [14, 16], [14, 30], [14, 44], [14, 49], [14, 50], [14, 58], [14, 60], [14, 66], [14, 68], [14, 77], [14, 78], [14, 81], [14, 95], [14, 97], [14, 98], [15, 16], [15, 19], [15, 20], [15, 22], [15, 23], [15, 25], [15, 26], [15, 30], [15, 35], [15, 41], [15, 49], [15, 50], [15, 55], [15, 60], [15, 63], [15, 67], [15, 72], [15, 78], [15, 80], [15, 81], [15, 82], [15, 85], [15, 88], [15, 92], [15, 97], [15, 98], [16, 17], [16, 18], [16, 19], [16, 22], [16, 25], [16, 27], [16, 34], [16, 35], [16, 36], [16, 37], [16, 45], [16, 46], [16, 48], [16, 49], [16, 60], [16, 61], [16, 63], [16, 66], [16, 73], [16, 76], [16, 79], [16, 86], [16, 93], [16, 95], [16, 96], [16, 99], [17, 20], [17, 22], [17, 27], [17, 29], [17, 32], [17, 34], [17, 40], [17, 41], [17, 42], [17, 44], [17, 46], [17, 50], [17, 51], [17, 55], [17, 60], [17, 69], [17, 71], [17, 73], [17, 74], [17, 78], [17, 84], [17, 92], [17, 95], [18, 23], [18, 25], [18, 29], [18, 33], [18, 35], [18, 41], [18, 42], [18, 47], [18, 52], [18, 53], [18, 64], [18, 67], [18, 70], [18, 85], [18, 92], [18, 96], [19, 22], [19, 23], [19, 31], [19, 32], [19, 34], [19, 37], [19, 41], [19, 42], [19, 45], [19, 48], [19, 50], [19, 51], [19, 53], [19, 54], [19, 55], [19, 56], [19, 57], [19, 58], [19, 65], [19, 67], [19, 73], [19, 74], [19, 76], [19, 77], [19, 78], [19, 79], [19, 81], [19, 84], [19, 85], [19, 88], [19, 92], [19, 96], [19, 98], [20, 21], [20, 23], [20, 32], [20, 37], [20, 39], [20, 40], [20, 43], [20, 44], [20, 50], [20, 54], [20, 56], [20, 60], [20, 65], [20, 68], [20, 70], [20, 90], [20, 94], [20, 97], [20, 98], [21, 27], [21, 32], [21, 34], [21, 35], [21, 36], [21, 37], [21, 38], [21, 39], [21, 43], [21, 45], [21, 46], [21, 48], [21, 50], [21, 52], [21, 60], [21, 64], [21, 65], [21, 66], [21, 76], [21, 85], [22, 29], [22, 32], [22, 36], [22, 40], [22, 43], [22, 45], [22, 46], [22, 50], [22, 56], [22, 57], [22, 58], [22, 59], [22, 61], [22, 65], [22, 66], [22, 74], [22, 75], [22, 80], [22, 81], [22, 83], [22, 87], [22, 90], [22, 91], [22, 92], [23, 25], [23, 34], [23, 35], [23, 38], [23, 39], [23, 40], [23, 42], [23, 45], [23, 48], [23, 50], [23, 54], [23, 57], [23, 68], [23, 69], [23, 73], [23, 74], [23, 78], [23, 85], [23, 86], [23, 87], [23, 88], [23, 89], [23, 94], [23, 95], [23, 97], [24, 32], [24, 33], [24, 36], [24, 37], [24, 38], [24, 39], [24, 43], [24, 44], [24, 45], [24, 50], [24, 52], [24, 55], [24, 60], [24, 61], [24, 63], [24, 65], [24, 72], [24, 76], [24, 81], [24, 94], [24, 96], [24, 99], [25, 30], [25, 32], [25, 34], [25, 36], [25, 40], [25, 44], [25, 45], [25, 50], [25, 61], [25, 63], [25, 66], [25, 68], [25, 70], [25, 71], [25, 79], [25, 81], [25, 85], [25, 88], [25, 90], [25, 93], [25, 94], [25, 96], [26, 38], [26, 39], [26, 50], [26, 52], [26, 58], [26, 66], [26, 67], [26, 70], [26, 73], [26, 77], [26, 87], [26, 90], [26, 93], [26, 94], [26, 98], [27, 39], [27, 49], [27, 51], [27, 52], [27, 62], [27, 75], [27, 79], [27, 81], [27, 84], [27, 87], [27, 88], [27, 90], [27, 94], [27, 96], [27, 97], [27, 98], [28, 30], [28, 32], [28, 34], [28, 36], [28, 37], [28, 38], [28, 41], [28, 43], [28, 47], [28, 50], [28, 55], [28, 61], [28, 62], [28, 64], [28, 71], [28, 73], [28, 79], [28, 80], [28, 85], [28, 86], [28, 87], [28, 90], [28, 94], [28, 95], [28, 96], [28, 99], [29, 39], [29, 43], [29, 46], [29, 56], [29, 66], [29, 72], [29, 73], [29, 82], [29, 93], [29, 94], [29, 98], [30, 31], [30, 32], [30, 34], [30, 37], [30, 38], [30, 40], [30, 44], [30, 45], [30, 46], [30, 48], [30, 52], [30, 53], [30, 54], [30, 58], [30, 59], [30, 60], [30, 65], [30, 66], [30, 80], [30, 90], [30, 94], [30, 95], [30, 97], [31, 32], [31, 35], [31, 37], [31, 38], [31, 44], [31, 49], [31, 51], [31, 52], [31, 54], [31, 60], [31, 67], [31, 81], [31, 83], [31, 87], [31, 89], [31, 90], [32, 37], [32, 39], [32, 41], [32, 42], [32, 44], [32, 46], [32, 48], [32, 51], [32, 53], [32, 55], [32, 57], [32, 61], [32, 62], [32, 66], [32, 69], [32, 70], [32, 72], [32, 76], [32, 77], [32, 89], [32, 91], [32, 93], [32, 94], [32, 98], [33, 40], [33, 45], [33, 59], [33, 71], [33, 75], [33, 77], [33, 79], [33, 87], [33, 88], [33, 94], [33, 97], [34, 35], [34, 37], [34, 38], [34, 43], [34, 44], [34, 45], [34, 50], [34, 66], [34, 67], [34, 70], [34, 75], [34, 78], [34, 89], [34, 95], [34, 99], [35, 42], [35, 45], [35, 49], [35, 50], [35, 52], [35, 53], [35, 58], [35, 63], [35, 64], [35, 67], [35, 77], [35, 78], [35, 81], [35, 82], [35, 89], [35, 92], [35, 94], [35, 97], [35, 98], [36, 37], [36, 38], [36, 46], [36, 50], [36, 51], [36, 56], [36, 59], [36, 65], [36, 67], [36, 71], [36, 73], [36, 81], [36, 84], [36, 93], [36, 97], [36, 99], [37, 39], [37, 44], [37, 45], [37, 46], [37, 50], [37, 53], [37, 54], [37, 57], [37, 58], [37, 60], [37, 63], [37, 64], [37, 65], [37, 67], [37, 69], [37, 74], [37, 79], [37, 81], [37, 82], [37, 84], [37, 87], [37, 88], [37, 94], [37, 96], [38, 41], [38, 42], [38, 44], [38, 49], [38, 54], [38, 56], [38, 58], [38, 59], [38, 62], [38, 70], [38, 73], [38, 77], [38, 78], [38, 84], [38, 89], [38, 94], [39, 43], [39, 45], [39, 57], [39, 59], [39, 63], [39, 66], [39, 67], [39, 68], [39, 70], [39, 74], [39, 75], [39, 77], [39, 78], [39, 80], [39, 81], [39, 85], [39, 88], [39, 95], [39, 96], [39, 99], [40, 49], [40, 50], [40, 52], [40, 56], [40, 57], [40, 58], [40, 59], [40, 60], [40, 61], [40, 72], [40, 75], [40, 78], [40, 79], [40, 84], [40, 88], [40, 89], [40, 91], [40, 94], [40, 95], [40, 96], [41, 42], [41, 46], [41, 50], [41, 51], [41, 56], [41, 62], [41, 71], [41, 73], [41, 77], [41, 78], [41, 79], [41, 83], [41, 96], [41, 97], [41, 98], [41, 99], [42, 46], [42, 47], [42, 48], [42, 51], [42, 52], [42, 56], [42, 57], [42, 61], [42, 73], [42, 78], [42, 84], [42, 86], [42, 90], [42, 92], [42, 93], [42, 98], [42, 99], [43, 44], [43, 50], [43, 52], [43, 53], [43, 54], [43, 59], [43, 64], [43, 65], [43, 67], [43, 69], [43, 71], [43, 73], [43, 74], [43, 75], [43, 77], [43, 81], [43, 93], [43, 97], [43, 98], [43, 99], [44, 47], [44, 49], [44, 52], [44, 53], [44, 63], [44, 68], [44, 69], [44, 70], [44, 71], [44, 73], [44, 74], [44, 76], [44, 83], [44, 86], [44, 87], [44, 89], [44, 94], [44, 95], [44, 99], [45, 46], [45, 49], [45, 56], [45, 57], [45, 58], [45, 63], [45, 68], [45, 71], [45, 74], [45, 78], [45, 79], [45, 85], [45, 92], [45, 96], [46, 51], [46, 57], [46, 58], [46, 63], [46, 66], [46, 68], [46, 72], [46, 85], [46, 86], [46, 88], [46, 94], [47, 49], [47, 52], [47, 58], [47, 60], [47, 68], [47, 73], [47, 89], [47, 93], [47, 94], [47, 98], [48, 52], [48, 54], [48, 56], [48, 60], [48, 65], [48, 68], [48, 70], [48, 75], [48, 77], [48, 78], [48, 79], [48, 87], [48, 93], [49, 55], [49, 56], [49, 61], [49, 62], [49, 68], [49, 73], [49, 76], [49, 80], [49, 82], [49, 87], [49, 88], [49, 91], [49, 98], [50, 52], [50, 56], [50, 57], [50, 62], [50, 70], [50, 71], [50, 73], [50, 79], [50, 82], [50, 86], [50, 88], [50, 90], [50, 93], [50, 94], [50, 96], [51, 55], [51, 56], [51, 58], [51, 59], [51, 63], [51, 72], [51, 73], [51, 79], [51, 80], [51, 83], [51, 89], [52, 57], [52, 59], [52, 60], [52, 62], [52, 63], [52, 65], [52, 67], [52, 69], [52, 73], [52, 75], [52, 76], [52, 78], [52, 79], [52, 80], [52, 83], [52, 85], [52, 89], [52, 93], [52, 94], [52, 96], [52, 97], [53, 56], [53, 58], [53, 66], [53, 67], [53, 70], [53, 71], [53, 75], [53, 78], [53, 79], [53, 82], [53, 87], [53, 90], [53, 95], [53, 98], [54, 64], [54, 66], [54, 68], [54, 75], [54, 79], [54, 80], [54, 81], [54, 84], [54, 88], [54, 89], [54, 90], [54, 93], [54, 96], [55, 58], [55, 66], [55, 70], [55, 71], [55, 72], [55, 74], [55, 82], [55, 84], [55, 89], [55, 90], [55, 93], [55, 94], [55, 96], [55, 97], [56, 61], [56, 69], [56, 72], [56, 75], [56, 77], [56, 78], [56, 80], [56, 83], [56, 86], [56, 87], [56, 89], [56, 91], [56, 93], [56, 96], [56, 97], [57, 58], [57, 59], [57, 60], [57, 75], [57, 78], [57, 81], [57, 87], [57, 89], [57, 95], [57, 98], [58, 75], [58, 77], [58, 82], [58, 93], [58, 95], [59, 64], [59, 68], [59, 73], [59, 76], [59, 81], [59, 84], [59, 85], [59, 88], [59, 95], [59, 96], [60, 63], [60, 67], [60, 69], [60, 72], [60, 73], [60, 76], [60, 77], [60, 81], [60, 85], [60, 89], [60, 94], [60, 95], [60, 96], [60, 98], [61, 62], [61, 67], [61, 71], [61, 73], [61, 78], [61, 81], [61, 83], [61, 93], [62, 68], [62, 81], [62, 84], [62, 86], [62, 90], [62, 96], [62, 97], [63, 72], [63, 73], [63, 74], [63, 77], [63, 93], [63, 94], [63, 97], [63, 99], [64, 72], [64, 74], [64, 75], [64, 78], [64, 81], [64, 83], [64, 90], [64, 93], [64, 94], [64, 95], [64, 96], [64, 99], [65, 69], [65, 72], [65, 73], [65, 77], [65, 78], [65, 80], [65, 81], [65, 82], [65, 83], [65, 91], [65, 92], [65, 94], [65, 98], [66, 67], [66, 77], [66, 78], [66, 87], [66, 89], [66, 91], [66, 93], [66, 95], [67, 70], [67, 71], [67, 73], [67, 79], [67, 86], [67, 92], [68, 69], [68, 73], [68, 76], [68, 78], [68, 90], [68, 94], [68, 98], [68, 99], [69, 75], [69, 96], [70, 71], [70, 74], [70, 83], [70, 84], [70, 92], [70, 94], [70, 97], [70, 98], [70, 99], [71, 72], [71, 74], [71, 77], [71, 78], [71, 79], [71, 84], [71, 85], [71, 86], [71, 92], [71, 95], [71, 99], [72, 73], [72, 79], [72, 83], [72, 84], [72, 85], [72, 86], [72, 87], [72, 91], [72, 94], [72, 95], [73, 78], [73, 80], [73, 84], [73, 90], [73, 93], [73, 96], [73, 99], [74, 76], [74, 79], [74, 82], [74, 94], [74, 95], [74, 96], [74, 97], [75, 76], [75, 78], [75, 79], [75, 82], [75, 89], [75, 93], [75, 95], [76, 78], [76, 83], [76, 84], [76, 95], [76, 97], [77, 81], [77, 83], [77, 85], [77, 88], [77, 89], [77, 97], [78, 88], [78, 89], [78, 95], [78, 97], [78, 99], [79, 85], [79, 94], [80, 81], [80, 82], [80, 89], [80, 90], [80, 95], [81, 86], [81, 90], [81, 92], [81, 93], [82, 86], [82, 87], [82, 90], [82, 93], [83, 93], [83, 98], [84, 86], [84, 88], [84, 89], [84, 93], [84, 96], [85, 89], [85, 93], [85, 95], [85, 96], [86, 88], [86, 93], [86, 98], [87, 95], [87, 96], [87, 97], [87, 98], [88, 90], [88, 93], [88, 97], [89, 96], [89, 98], [90, 92], [90, 99], [91, 93], [91, 96], [93, 96], [93, 98], [93, 99], [95, 96], [95, 97], [95, 99], [96, 98], [97, 99]], "family": "nppc_independent_set", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-independent-set-l6-s2/tests/run.py b/tasks/construct-nppc-independent-set-l6-s2/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-nppc-independent-set-l6-s2/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-nppc-independent-set-l6-s2/tests/test.sh b/tasks/construct-nppc-independent-set-l6-s2/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-nppc-independent-set-l6-s2/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-nppc-independent-set-l6-s5/environment/Dockerfile b/tasks/construct-nppc-independent-set-l6-s5/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-nppc-independent-set-l6-s5/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-nppc-independent-set-l6-s5/environment/instance.json b/tasks/construct-nppc-independent-set-l6-s5/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..b7ff6351b7ebf26a63181b428be2f5fea1f7d788 --- /dev/null +++ b/tasks/construct-nppc-independent-set-l6-s5/environment/instance.json @@ -0,0 +1 @@ +{"num_nodes": 100, "k": 30, "edges": [[0, 4], [0, 7], [0, 8], [0, 12], [0, 15], [0, 20], [0, 22], [0, 24], [0, 25], [0, 34], [0, 42], [0, 45], [0, 47], [0, 50], [0, 51], [0, 55], [0, 60], [0, 62], [0, 67], [0, 69], [0, 73], [0, 76], [0, 79], [0, 82], [0, 88], [0, 94], [1, 2], [1, 4], [1, 11], [1, 12], [1, 15], [1, 16], [1, 17], [1, 18], [1, 20], [1, 34], [1, 36], [1, 38], [1, 43], [1, 48], [1, 49], [1, 50], [1, 52], [1, 55], [1, 56], [1, 60], [1, 64], [1, 68], [1, 73], [1, 75], [1, 76], [1, 78], [1, 80], [1, 81], [1, 88], [1, 89], [1, 95], [1, 96], [1, 99], [2, 3], [2, 6], [2, 7], [2, 10], [2, 13], [2, 16], [2, 19], [2, 20], [2, 21], [2, 23], [2, 27], [2, 35], [2, 40], [2, 48], [2, 50], [2, 52], [2, 53], [2, 57], [2, 58], [2, 66], [2, 71], [2, 72], [2, 76], [2, 81], [2, 92], [2, 93], [2, 94], [2, 95], [2, 98], [2, 99], [3, 5], [3, 8], [3, 9], [3, 11], [3, 21], [3, 22], [3, 25], [3, 26], [3, 37], [3, 38], [3, 40], [3, 50], [3, 53], [3, 55], [3, 58], [3, 60], [3, 61], [3, 62], [3, 63], [3, 64], [3, 85], [3, 86], [3, 87], [3, 88], [3, 90], [3, 93], [3, 97], [4, 7], [4, 9], [4, 10], [4, 12], [4, 18], [4, 24], [4, 25], [4, 26], [4, 29], [4, 35], [4, 41], [4, 44], [4, 45], [4, 46], [4, 47], [4, 51], [4, 53], [4, 60], [4, 61], [4, 63], [4, 66], [4, 69], [4, 73], [4, 74], [4, 78], [4, 82], [4, 83], [4, 87], [4, 93], [4, 94], [4, 96], [4, 98], [5, 6], [5, 7], [5, 14], [5, 15], [5, 18], [5, 24], [5, 26], [5, 28], [5, 29], [5, 37], [5, 38], [5, 39], [5, 42], [5, 51], [5, 52], [5, 53], [5, 55], [5, 56], [5, 61], [5, 62], [5, 70], [5, 71], [5, 73], [5, 82], [5, 87], [5, 95], [6, 7], [6, 11], [6, 13], [6, 14], [6, 16], [6, 23], [6, 25], [6, 26], [6, 27], [6, 32], [6, 35], [6, 36], [6, 38], [6, 39], [6, 40], [6, 44], [6, 46], [6, 47], [6, 48], [6, 52], [6, 54], [6, 57], [6, 63], [6, 65], [6, 76], [6, 77], [6, 79], [6, 80], [6, 81], [6, 84], [6, 85], [6, 86], [6, 87], [6, 89], [6, 90], [6, 94], [6, 95], [6, 97], [7, 9], [7, 16], [7, 18], [7, 20], [7, 21], [7, 22], [7, 25], [7, 28], [7, 29], [7, 32], [7, 35], [7, 36], [7, 43], [7, 44], [7, 48], [7, 53], [7, 57], [7, 58], [7, 60], [7, 61], [7, 64], [7, 73], [7, 74], [7, 76], [7, 80], [7, 87], [7, 88], [7, 91], [7, 92], [7, 94], [7, 97], [8, 15], [8, 16], [8, 23], [8, 24], [8, 27], [8, 35], [8, 38], [8, 39], [8, 40], [8, 43], [8, 46], [8, 49], [8, 51], [8, 52], [8, 53], [8, 55], [8, 62], [8, 67], [8, 69], [8, 78], [8, 79], [8, 82], [8, 85], [8, 86], [8, 87], [8, 90], [9, 12], [9, 17], [9, 29], [9, 30], [9, 36], [9, 38], [9, 39], [9, 42], [9, 46], [9, 47], [9, 53], [9, 57], [9, 58], [9, 64], [9, 70], [9, 72], [9, 74], [9, 75], [9, 77], [9, 80], [9, 95], [9, 99], [10, 14], [10, 20], [10, 23], [10, 25], [10, 38], [10, 40], [10, 50], [10, 51], [10, 58], [10, 62], [10, 64], [10, 67], [10, 73], [10, 83], [10, 98], [10, 99], [11, 15], [11, 16], [11, 18], [11, 19], [11, 22], [11, 24], [11, 25], [11, 32], [11, 34], [11, 41], [11, 45], [11, 47], [11, 48], [11, 49], [11, 51], [11, 52], [11, 57], [11, 61], [11, 62], [11, 64], [11, 65], [11, 66], [11, 67], [11, 71], [11, 72], [11, 76], [11, 78], [11, 79], [11, 80], [11, 81], [11, 90], [11, 95], [12, 14], [12, 17], [12, 18], [12, 20], [12, 21], [12, 25], [12, 27], [12, 31], [12, 34], [12, 35], [12, 37], [12, 39], [12, 40], [12, 51], [12, 52], [12, 55], [12, 57], [12, 60], [12, 67], [12, 75], [12, 78], [12, 81], [12, 83], [12, 84], [12, 87], [12, 88], [12, 96], [13, 15], [13, 18], [13, 28], [13, 35], [13, 39], [13, 46], [13, 51], [13, 55], [13, 56], [13, 58], [13, 65], [13, 73], [13, 75], [13, 76], [13, 85], [13, 96], [14, 15], [14, 19], [14, 26], [14, 32], [14, 34], [14, 37], [14, 38], [14, 42], [14, 43], [14, 46], [14, 47], [14, 48], [14, 50], [14, 52], [14, 57], [14, 58], [14, 61], [14, 66], [14, 71], [14, 81], [14, 82], [14, 92], [14, 94], [14, 97], [15, 17], [15, 21], [15, 22], [15, 25], [15, 29], [15, 34], [15, 38], [15, 41], [15, 43], [15, 46], [15, 48], [15, 50], [15, 53], [15, 54], [15, 55], [15, 58], [15, 59], [15, 60], [15, 61], [15, 64], [15, 66], [15, 75], [15, 76], [15, 77], [15, 79], [15, 82], [15, 83], [15, 86], [15, 87], [15, 96], [15, 98], [16, 17], [16, 18], [16, 24], [16, 29], [16, 41], [16, 42], [16, 47], [16, 50], [16, 53], [16, 55], [16, 58], [16, 61], [16, 63], [16, 64], [16, 80], [16, 83], [16, 95], [16, 96], [16, 97], [16, 99], [17, 21], [17, 22], [17, 26], [17, 27], [17, 28], [17, 33], [17, 35], [17, 36], [17, 40], [17, 41], [17, 42], [17, 48], [17, 51], [17, 55], [17, 56], [17, 61], [17, 66], [17, 71], [17, 76], [17, 79], [17, 81], [17, 83], [17, 90], [17, 92], [17, 94], [18, 20], [18, 22], [18, 24], [18, 25], [18, 31], [18, 35], [18, 36], [18, 37], [18, 40], [18, 43], [18, 46], [18, 49], [18, 50], [18, 61], [18, 66], [18, 69], [18, 71], [18, 80], [18, 87], [18, 89], [18, 90], [18, 94], [18, 95], [18, 98], [19, 32], [19, 34], [19, 35], [19, 36], [19, 38], [19, 41], [19, 48], [19, 50], [19, 52], [19, 56], [19, 58], [19, 62], [19, 63], [19, 64], [19, 65], [19, 81], [19, 82], [19, 91], [19, 92], [19, 96], [20, 21], [20, 27], [20, 28], [20, 41], [20, 43], [20, 44], [20, 45], [20, 47], [20, 48], [20, 49], [20, 50], [20, 51], [20, 55], [20, 59], [20, 65], [20, 69], [20, 70], [20, 71], [20, 72], [20, 74], [20, 75], [20, 88], [20, 90], [20, 91], [21, 44], [21, 51], [21, 55], [21, 58], [21, 71], [21, 72], [21, 73], [21, 74], [21, 83], [21, 87], [21, 92], [21, 97], [22, 28], [22, 31], [22, 33], [22, 37], [22, 39], [22, 40], [22, 41], [22, 43], [22, 49], [22, 52], [22, 55], [22, 56], [22, 60], [22, 61], [22, 63], [22, 66], [22, 70], [22, 71], [22, 78], [22, 83], [22, 87], [22, 88], [22, 99], [23, 24], [23, 25], [23, 26], [23, 30], [23, 32], [23, 33], [23, 34], [23, 39], [23, 40], [23, 41], [23, 45], [23, 59], [23, 60], [23, 63], [23, 64], [23, 69], [23, 70], [23, 75], [23, 79], [23, 82], [23, 85], [23, 93], [23, 96], [23, 99], [24, 25], [24, 35], [24, 36], [24, 37], [24, 42], [24, 43], [24, 44], [24, 49], [24, 54], [24, 55], [24, 57], [24, 58], [24, 68], [24, 74], [24, 82], [24, 91], [24, 97], [25, 27], [25, 32], [25, 33], [25, 37], [25, 42], [25, 45], [25, 52], [25, 54], [25, 55], [25, 56], [25, 61], [25, 62], [25, 63], [25, 69], [25, 70], [25, 71], [25, 72], [25, 74], [25, 80], [25, 82], [25, 84], [25, 85], [25, 89], [25, 92], [25, 95], [26, 27], [26, 30], [26, 33], [26, 64], [26, 68], [26, 70], [26, 73], [26, 74], [26, 75], [26, 78], [26, 80], [26, 81], [26, 83], [26, 84], [26, 85], [26, 86], [26, 94], [26, 97], [26, 99], [27, 47], [27, 53], [27, 62], [27, 71], [27, 72], [27, 73], [27, 82], [27, 83], [27, 95], [27, 99], [28, 29], [28, 35], [28, 41], [28, 44], [28, 46], [28, 50], [28, 51], [28, 52], [28, 56], [28, 61], [28, 65], [28, 69], [28, 72], [28, 79], [28, 89], [28, 92], [28, 93], [28, 94], [28, 96], [29, 38], [29, 40], [29, 41], [29, 42], [29, 52], [29, 53], [29, 63], [29, 68], [29, 78], [29, 81], [29, 84], [29, 86], [29, 87], [29, 92], [29, 95], [29, 96], [29, 97], [30, 36], [30, 48], [30, 52], [30, 53], [30, 64], [30, 65], [30, 66], [30, 71], [30, 74], [30, 78], [30, 94], [31, 37], [31, 39], [31, 40], [31, 42], [31, 52], [31, 56], [31, 61], [31, 74], [31, 95], [31, 98], [31, 99], [32, 35], [32, 39], [32, 40], [32, 42], [32, 47], [32, 50], [32, 51], [32, 57], [32, 62], [32, 65], [32, 82], [32, 83], [33, 37], [33, 40], [33, 47], [33, 50], [33, 52], [33, 55], [33, 57], [33, 58], [33, 63], [33, 97], [34, 35], [34, 46], [34, 53], [34, 56], [34, 59], [34, 61], [34, 67], [34, 71], [34, 87], [34, 89], [34, 92], [34, 96], [35, 40], [35, 41], [35, 42], [35, 49], [35, 53], [35, 54], [35, 57], [35, 59], [35, 60], [35, 67], [35, 71], [35, 72], [35, 76], [35, 77], [35, 79], [35, 82], [35, 89], [35, 94], [35, 97], [35, 98], [36, 38], [36, 41], [36, 43], [36, 46], [36, 49], [36, 53], [36, 63], [36, 66], [36, 68], [36, 74], [36, 76], [36, 77], [36, 84], [36, 87], [36, 88], [36, 94], [36, 95], [37, 41], [37, 44], [37, 45], [37, 49], [37, 50], [37, 51], [37, 53], [37, 55], [37, 56], [37, 57], [37, 64], [37, 65], [37, 69], [37, 73], [37, 74], [37, 76], [37, 77], [37, 78], [37, 81], [37, 87], [37, 88], [37, 93], [37, 94], [37, 98], [38, 41], [38, 47], [38, 50], [38, 52], [38, 53], [38, 59], [38, 71], [38, 73], [38, 77], [38, 78], [38, 79], [38, 84], [38, 85], [38, 86], [38, 87], [38, 89], [38, 91], [38, 94], [38, 95], [38, 98], [39, 43], [39, 46], [39, 47], [39, 48], [39, 54], [39, 57], [39, 58], [39, 59], [39, 65], [39, 70], [39, 71], [39, 73], [39, 76], [39, 80], [39, 84], [39, 86], [39, 89], [39, 93], [39, 95], [39, 98], [40, 46], [40, 48], [40, 53], [40, 60], [40, 61], [40, 63], [40, 67], [40, 68], [40, 69], [40, 70], [40, 86], [40, 87], [40, 88], [40, 91], [40, 92], [40, 96], [40, 97], [41, 43], [41, 44], [41, 50], [41, 52], [41, 54], [41, 55], [41, 56], [41, 60], [41, 64], [41, 68], [41, 71], [41, 73], [41, 76], [41, 83], [41, 84], [41, 89], [41, 92], [41, 93], [41, 97], [41, 99], [42, 43], [42, 47], [42, 48], [42, 52], [42, 54], [42, 55], [42, 62], [42, 64], [42, 65], [42, 68], [42, 70], [42, 71], [42, 77], [42, 82], [42, 83], [42, 87], [42, 89], [42, 95], [43, 47], [43, 67], [43, 72], [43, 75], [43, 76], [43, 82], [43, 87], [43, 89], [43, 92], [43, 96], [44, 51], [44, 53], [44, 60], [44, 62], [44, 71], [44, 73], [44, 82], [44, 83], [44, 87], [45, 46], [45, 52], [45, 55], [45, 57], [45, 59], [45, 62], [45, 63], [45, 73], [45, 75], [45, 77], [45, 83], [45, 89], [46, 49], [46, 52], [46, 55], [46, 59], [46, 65], [46, 66], [46, 73], [46, 76], [46, 79], [46, 82], [46, 96], [47, 48], [47, 58], [47, 61], [47, 64], [47, 65], [47, 73], [47, 77], [47, 82], [47, 84], [47, 85], [47, 86], [47, 88], [47, 90], [47, 93], [47, 98], [48, 53], [48, 56], [48, 64], [48, 75], [48, 82], [48, 85], [48, 92], [48, 97], [48, 99], [49, 57], [49, 64], [49, 73], [49, 92], [50, 52], [50, 55], [50, 58], [50, 61], [50, 63], [50, 73], [50, 74], [50, 76], [50, 80], [50, 86], [50, 93], [50, 96], [51, 52], [51, 55], [51, 63], [51, 73], [51, 79], [51, 81], [51, 82], [51, 83], [51, 86], [51, 91], [51, 95], [52, 54], [52, 59], [52, 61], [52, 63], [52, 67], [52, 68], [52, 79], [52, 82], [52, 87], [52, 98], [52, 99], [53, 56], [53, 57], [53, 60], [53, 63], [53, 64], [53, 66], [53, 67], [53, 80], [53, 81], [53, 82], [53, 83], [53, 84], [53, 97], [54, 58], [54, 59], [54, 63], [54, 67], [54, 72], [54, 82], [54, 83], [54, 92], [54, 95], [54, 98], [55, 68], [55, 69], [55, 75], [55, 77], [55, 78], [55, 87], [55, 90], [55, 93], [55, 97], [55, 99], [56, 58], [56, 60], [56, 62], [56, 64], [56, 68], [56, 73], [56, 74], [56, 79], [56, 82], [56, 84], [56, 85], [56, 88], [56, 93], [56, 97], [57, 63], [57, 67], [57, 70], [57, 71], [57, 72], [57, 73], [57, 75], [57, 80], [57, 82], [57, 84], [57, 97], [57, 98], [58, 59], [58, 62], [58, 63], [58, 64], [58, 65], [58, 66], [58, 71], [58, 72], [58, 81], [58, 84], [58, 87], [58, 91], [58, 97], [58, 98], [58, 99], [59, 61], [59, 63], [59, 66], [59, 67], [59, 69], [59, 70], [59, 71], [59, 73], [59, 79], [59, 80], [59, 86], [59, 90], [59, 91], [59, 93], [59, 95], [59, 99], [60, 70], [60, 72], [60, 80], [60, 83], [60, 85], [60, 87], [60, 89], [60, 95], [60, 97], [60, 98], [61, 64], [61, 67], [61, 68], [61, 71], [61, 75], [61, 81], [61, 85], [61, 89], [61, 93], [61, 96], [61, 98], [61, 99], [62, 64], [62, 67], [62, 73], [62, 75], [62, 82], [62, 83], [62, 88], [62, 89], [62, 97], [62, 99], [63, 64], [63, 65], [63, 68], [63, 69], [63, 71], [63, 73], [63, 74], [63, 76], [63, 78], [63, 83], [63, 84], [63, 85], [63, 89], [63, 93], [63, 95], [63, 96], [63, 98], [64, 65], [64, 67], [64, 72], [64, 76], [64, 81], [64, 87], [64, 94], [64, 96], [64, 99], [65, 75], [65, 79], [65, 80], [65, 82], [65, 83], [65, 85], [65, 88], [65, 89], [65, 93], [65, 95], [66, 67], [66, 70], [66, 77], [66, 82], [66, 83], [66, 95], [67, 75], [67, 76], [67, 78], [67, 87], [67, 89], [67, 91], [67, 92], [67, 97], [67, 99], [68, 74], [68, 75], [68, 83], [68, 85], [68, 87], [68, 89], [69, 70], [69, 73], [69, 77], [69, 95], [69, 96], [69, 99], [70, 71], [70, 73], [70, 75], [70, 76], [70, 84], [70, 86], [70, 92], [70, 93], [70, 98], [71, 72], [71, 74], [71, 79], [71, 91], [71, 93], [71, 94], [71, 96], [72, 73], [72, 80], [72, 81], [72, 82], [72, 89], [72, 90], [72, 92], [72, 97], [72, 99], [73, 81], [73, 87], [73, 98], [74, 78], [74, 83], [74, 84], [74, 88], [74, 89], [74, 92], [74, 95], [74, 97], [74, 98], [75, 76], [75, 80], [75, 87], [75, 89], [75, 94], [75, 96], [75, 98], [76, 77], [76, 81], [76, 84], [76, 85], [76, 86], [76, 87], [76, 90], [76, 96], [76, 99], [77, 82], [77, 89], [77, 96], [77, 98], [78, 82], [78, 89], [78, 92], [78, 96], [78, 97], [78, 99], [79, 87], [79, 92], [79, 99], [80, 82], [80, 85], [80, 87], [80, 89], [80, 90], [80, 95], [80, 99], [81, 82], [81, 89], [81, 92], [81, 99], [82, 84], [82, 85], [82, 87], [82, 91], [82, 96], [83, 84], [83, 88], [83, 90], [83, 93], [83, 94], [83, 98], [83, 99], [84, 87], [84, 89], [84, 92], [85, 91], [85, 94], [85, 97], [86, 96], [87, 89], [87, 92], [87, 94], [87, 95], [88, 89], [89, 97], [90, 99], [91, 92], [91, 96], [91, 97], [92, 96], [93, 95], [93, 98], [94, 96], [95, 99], [97, 98], [98, 99]], "family": "nppc_independent_set", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-independent-set-l6-s5/solution/solve.sh b/tasks/construct-nppc-independent-set-l6-s5/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..270de5fb3fcc054f692a030f1268f09012da1766 --- /dev/null +++ b/tasks/construct-nppc-independent-set-l6-s5/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"independent_set": [5, 9, 10, 13, 16, 21, 27, 31, 32, 33, 34, 43, 45, 48, 49, 54, 60, 66, 68, 69, 78, 79, 81, 84, 86, 88, 90, 91, 93, 94]} +RLMATH_EOF diff --git a/tasks/construct-nppc-independent-set-l6-s5/tests/check.py b/tasks/construct-nppc-independent-set-l6-s5/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..92279a931488c7f39c08a3b11162b3f54a9c662a --- /dev/null +++ b/tasks/construct-nppc-independent-set-l6-s5/tests/check.py @@ -0,0 +1,19 @@ +"""Independent set of size >= k. Accepts any valid independent set.""" +import itertools + +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["num_nodes"], inst["k"] + s = int_list(ans.get("independent_set"), None, 0, n - 1, "independent_set") + # upstream NPPC verifier checks len(list) >= size but only tests pairs u < v, so [v]*k passed + if len(set(s)) != len(s): + raise Invalid("independent_set contains duplicates") + if len(s) < k: + raise Invalid(f"independent_set has {len(s)} < {k} vertices") + es = {(min(u, v), max(u, v)) for u, v in inst["edges"]} + for u, v in itertools.combinations(sorted(s), 2): + if (u, v) in es: + raise Invalid(f"edge between {u} and {v}") + return None, {"size": len(s)} diff --git a/tasks/construct-nppc-independent-set-l6-s5/tests/instance.json b/tasks/construct-nppc-independent-set-l6-s5/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..b7ff6351b7ebf26a63181b428be2f5fea1f7d788 --- /dev/null +++ b/tasks/construct-nppc-independent-set-l6-s5/tests/instance.json @@ -0,0 +1 @@ +{"num_nodes": 100, "k": 30, "edges": [[0, 4], [0, 7], [0, 8], [0, 12], [0, 15], [0, 20], [0, 22], [0, 24], [0, 25], [0, 34], [0, 42], [0, 45], [0, 47], [0, 50], [0, 51], [0, 55], [0, 60], [0, 62], [0, 67], [0, 69], [0, 73], [0, 76], [0, 79], [0, 82], [0, 88], [0, 94], [1, 2], [1, 4], [1, 11], [1, 12], [1, 15], [1, 16], [1, 17], [1, 18], [1, 20], [1, 34], [1, 36], [1, 38], [1, 43], [1, 48], [1, 49], [1, 50], [1, 52], [1, 55], [1, 56], [1, 60], [1, 64], [1, 68], [1, 73], [1, 75], [1, 76], [1, 78], [1, 80], [1, 81], [1, 88], [1, 89], [1, 95], [1, 96], [1, 99], [2, 3], [2, 6], [2, 7], [2, 10], [2, 13], [2, 16], [2, 19], [2, 20], [2, 21], [2, 23], [2, 27], [2, 35], [2, 40], [2, 48], [2, 50], [2, 52], [2, 53], [2, 57], [2, 58], [2, 66], [2, 71], [2, 72], [2, 76], [2, 81], [2, 92], [2, 93], [2, 94], [2, 95], [2, 98], [2, 99], [3, 5], [3, 8], [3, 9], [3, 11], [3, 21], [3, 22], [3, 25], [3, 26], [3, 37], [3, 38], [3, 40], [3, 50], [3, 53], [3, 55], [3, 58], [3, 60], [3, 61], [3, 62], [3, 63], [3, 64], [3, 85], [3, 86], [3, 87], [3, 88], [3, 90], [3, 93], [3, 97], [4, 7], [4, 9], [4, 10], [4, 12], [4, 18], [4, 24], [4, 25], [4, 26], [4, 29], [4, 35], [4, 41], [4, 44], [4, 45], [4, 46], [4, 47], [4, 51], [4, 53], [4, 60], [4, 61], [4, 63], [4, 66], [4, 69], [4, 73], [4, 74], [4, 78], [4, 82], [4, 83], [4, 87], [4, 93], [4, 94], [4, 96], [4, 98], [5, 6], [5, 7], [5, 14], [5, 15], [5, 18], [5, 24], [5, 26], [5, 28], [5, 29], [5, 37], [5, 38], [5, 39], [5, 42], [5, 51], [5, 52], [5, 53], [5, 55], [5, 56], [5, 61], [5, 62], [5, 70], [5, 71], [5, 73], [5, 82], [5, 87], [5, 95], [6, 7], [6, 11], [6, 13], [6, 14], [6, 16], [6, 23], [6, 25], [6, 26], [6, 27], [6, 32], [6, 35], [6, 36], [6, 38], [6, 39], [6, 40], [6, 44], [6, 46], [6, 47], [6, 48], [6, 52], [6, 54], [6, 57], [6, 63], [6, 65], [6, 76], [6, 77], [6, 79], [6, 80], [6, 81], [6, 84], [6, 85], [6, 86], [6, 87], [6, 89], [6, 90], [6, 94], [6, 95], [6, 97], [7, 9], [7, 16], [7, 18], [7, 20], [7, 21], [7, 22], [7, 25], [7, 28], [7, 29], [7, 32], [7, 35], [7, 36], [7, 43], [7, 44], [7, 48], [7, 53], [7, 57], [7, 58], [7, 60], [7, 61], [7, 64], [7, 73], [7, 74], [7, 76], [7, 80], [7, 87], [7, 88], [7, 91], [7, 92], [7, 94], [7, 97], [8, 15], [8, 16], [8, 23], [8, 24], [8, 27], [8, 35], [8, 38], [8, 39], [8, 40], [8, 43], [8, 46], [8, 49], [8, 51], [8, 52], [8, 53], [8, 55], [8, 62], [8, 67], [8, 69], [8, 78], [8, 79], [8, 82], [8, 85], [8, 86], [8, 87], [8, 90], [9, 12], [9, 17], [9, 29], [9, 30], [9, 36], [9, 38], [9, 39], [9, 42], [9, 46], [9, 47], [9, 53], [9, 57], [9, 58], [9, 64], [9, 70], [9, 72], [9, 74], [9, 75], [9, 77], [9, 80], [9, 95], [9, 99], [10, 14], [10, 20], [10, 23], [10, 25], [10, 38], [10, 40], [10, 50], [10, 51], [10, 58], [10, 62], [10, 64], [10, 67], [10, 73], [10, 83], [10, 98], [10, 99], [11, 15], [11, 16], [11, 18], [11, 19], [11, 22], [11, 24], [11, 25], [11, 32], [11, 34], [11, 41], [11, 45], [11, 47], [11, 48], [11, 49], [11, 51], [11, 52], [11, 57], [11, 61], [11, 62], [11, 64], [11, 65], [11, 66], [11, 67], [11, 71], [11, 72], [11, 76], [11, 78], [11, 79], [11, 80], [11, 81], [11, 90], [11, 95], [12, 14], [12, 17], [12, 18], [12, 20], [12, 21], [12, 25], [12, 27], [12, 31], [12, 34], [12, 35], [12, 37], [12, 39], [12, 40], [12, 51], [12, 52], [12, 55], [12, 57], [12, 60], [12, 67], [12, 75], [12, 78], [12, 81], [12, 83], [12, 84], [12, 87], [12, 88], [12, 96], [13, 15], [13, 18], [13, 28], [13, 35], [13, 39], [13, 46], [13, 51], [13, 55], [13, 56], [13, 58], [13, 65], [13, 73], [13, 75], [13, 76], [13, 85], [13, 96], [14, 15], [14, 19], [14, 26], [14, 32], [14, 34], [14, 37], [14, 38], [14, 42], [14, 43], [14, 46], [14, 47], [14, 48], [14, 50], [14, 52], [14, 57], [14, 58], [14, 61], [14, 66], [14, 71], [14, 81], [14, 82], [14, 92], [14, 94], [14, 97], [15, 17], [15, 21], [15, 22], [15, 25], [15, 29], [15, 34], [15, 38], [15, 41], [15, 43], [15, 46], [15, 48], [15, 50], [15, 53], [15, 54], [15, 55], [15, 58], [15, 59], [15, 60], [15, 61], [15, 64], [15, 66], [15, 75], [15, 76], [15, 77], [15, 79], [15, 82], [15, 83], [15, 86], [15, 87], [15, 96], [15, 98], [16, 17], [16, 18], [16, 24], [16, 29], [16, 41], [16, 42], [16, 47], [16, 50], [16, 53], [16, 55], [16, 58], [16, 61], [16, 63], [16, 64], [16, 80], [16, 83], [16, 95], [16, 96], [16, 97], [16, 99], [17, 21], [17, 22], [17, 26], [17, 27], [17, 28], [17, 33], [17, 35], [17, 36], [17, 40], [17, 41], [17, 42], [17, 48], [17, 51], [17, 55], [17, 56], [17, 61], [17, 66], [17, 71], [17, 76], [17, 79], [17, 81], [17, 83], [17, 90], [17, 92], [17, 94], [18, 20], [18, 22], [18, 24], [18, 25], [18, 31], [18, 35], [18, 36], [18, 37], [18, 40], [18, 43], [18, 46], [18, 49], [18, 50], [18, 61], [18, 66], [18, 69], [18, 71], [18, 80], [18, 87], [18, 89], [18, 90], [18, 94], [18, 95], [18, 98], [19, 32], [19, 34], [19, 35], [19, 36], [19, 38], [19, 41], [19, 48], [19, 50], [19, 52], [19, 56], [19, 58], [19, 62], [19, 63], [19, 64], [19, 65], [19, 81], [19, 82], [19, 91], [19, 92], [19, 96], [20, 21], [20, 27], [20, 28], [20, 41], [20, 43], [20, 44], [20, 45], [20, 47], [20, 48], [20, 49], [20, 50], [20, 51], [20, 55], [20, 59], [20, 65], [20, 69], [20, 70], [20, 71], [20, 72], [20, 74], [20, 75], [20, 88], [20, 90], [20, 91], [21, 44], [21, 51], [21, 55], [21, 58], [21, 71], [21, 72], [21, 73], [21, 74], [21, 83], [21, 87], [21, 92], [21, 97], [22, 28], [22, 31], [22, 33], [22, 37], [22, 39], [22, 40], [22, 41], [22, 43], [22, 49], [22, 52], [22, 55], [22, 56], [22, 60], [22, 61], [22, 63], [22, 66], [22, 70], [22, 71], [22, 78], [22, 83], [22, 87], [22, 88], [22, 99], [23, 24], [23, 25], [23, 26], [23, 30], [23, 32], [23, 33], [23, 34], [23, 39], [23, 40], [23, 41], [23, 45], [23, 59], [23, 60], [23, 63], [23, 64], [23, 69], [23, 70], [23, 75], [23, 79], [23, 82], [23, 85], [23, 93], [23, 96], [23, 99], [24, 25], [24, 35], [24, 36], [24, 37], [24, 42], [24, 43], [24, 44], [24, 49], [24, 54], [24, 55], [24, 57], [24, 58], [24, 68], [24, 74], [24, 82], [24, 91], [24, 97], [25, 27], [25, 32], [25, 33], [25, 37], [25, 42], [25, 45], [25, 52], [25, 54], [25, 55], [25, 56], [25, 61], [25, 62], [25, 63], [25, 69], [25, 70], [25, 71], [25, 72], [25, 74], [25, 80], [25, 82], [25, 84], [25, 85], [25, 89], [25, 92], [25, 95], [26, 27], [26, 30], [26, 33], [26, 64], [26, 68], [26, 70], [26, 73], [26, 74], [26, 75], [26, 78], [26, 80], [26, 81], [26, 83], [26, 84], [26, 85], [26, 86], [26, 94], [26, 97], [26, 99], [27, 47], [27, 53], [27, 62], [27, 71], [27, 72], [27, 73], [27, 82], [27, 83], [27, 95], [27, 99], [28, 29], [28, 35], [28, 41], [28, 44], [28, 46], [28, 50], [28, 51], [28, 52], [28, 56], [28, 61], [28, 65], [28, 69], [28, 72], [28, 79], [28, 89], [28, 92], [28, 93], [28, 94], [28, 96], [29, 38], [29, 40], [29, 41], [29, 42], [29, 52], [29, 53], [29, 63], [29, 68], [29, 78], [29, 81], [29, 84], [29, 86], [29, 87], [29, 92], [29, 95], [29, 96], [29, 97], [30, 36], [30, 48], [30, 52], [30, 53], [30, 64], [30, 65], [30, 66], [30, 71], [30, 74], [30, 78], [30, 94], [31, 37], [31, 39], [31, 40], [31, 42], [31, 52], [31, 56], [31, 61], [31, 74], [31, 95], [31, 98], [31, 99], [32, 35], [32, 39], [32, 40], [32, 42], [32, 47], [32, 50], [32, 51], [32, 57], [32, 62], [32, 65], [32, 82], [32, 83], [33, 37], [33, 40], [33, 47], [33, 50], [33, 52], [33, 55], [33, 57], [33, 58], [33, 63], [33, 97], [34, 35], [34, 46], [34, 53], [34, 56], [34, 59], [34, 61], [34, 67], [34, 71], [34, 87], [34, 89], [34, 92], [34, 96], [35, 40], [35, 41], [35, 42], [35, 49], [35, 53], [35, 54], [35, 57], [35, 59], [35, 60], [35, 67], [35, 71], [35, 72], [35, 76], [35, 77], [35, 79], [35, 82], [35, 89], [35, 94], [35, 97], [35, 98], [36, 38], [36, 41], [36, 43], [36, 46], [36, 49], [36, 53], [36, 63], [36, 66], [36, 68], [36, 74], [36, 76], [36, 77], [36, 84], [36, 87], [36, 88], [36, 94], [36, 95], [37, 41], [37, 44], [37, 45], [37, 49], [37, 50], [37, 51], [37, 53], [37, 55], [37, 56], [37, 57], [37, 64], [37, 65], [37, 69], [37, 73], [37, 74], [37, 76], [37, 77], [37, 78], [37, 81], [37, 87], [37, 88], [37, 93], [37, 94], [37, 98], [38, 41], [38, 47], [38, 50], [38, 52], [38, 53], [38, 59], [38, 71], [38, 73], [38, 77], [38, 78], [38, 79], [38, 84], [38, 85], [38, 86], [38, 87], [38, 89], [38, 91], [38, 94], [38, 95], [38, 98], [39, 43], [39, 46], [39, 47], [39, 48], [39, 54], [39, 57], [39, 58], [39, 59], [39, 65], [39, 70], [39, 71], [39, 73], [39, 76], [39, 80], [39, 84], [39, 86], [39, 89], [39, 93], [39, 95], [39, 98], [40, 46], [40, 48], [40, 53], [40, 60], [40, 61], [40, 63], [40, 67], [40, 68], [40, 69], [40, 70], [40, 86], [40, 87], [40, 88], [40, 91], [40, 92], [40, 96], [40, 97], [41, 43], [41, 44], [41, 50], [41, 52], [41, 54], [41, 55], [41, 56], [41, 60], [41, 64], [41, 68], [41, 71], [41, 73], [41, 76], [41, 83], [41, 84], [41, 89], [41, 92], [41, 93], [41, 97], [41, 99], [42, 43], [42, 47], [42, 48], [42, 52], [42, 54], [42, 55], [42, 62], [42, 64], [42, 65], [42, 68], [42, 70], [42, 71], [42, 77], [42, 82], [42, 83], [42, 87], [42, 89], [42, 95], [43, 47], [43, 67], [43, 72], [43, 75], [43, 76], [43, 82], [43, 87], [43, 89], [43, 92], [43, 96], [44, 51], [44, 53], [44, 60], [44, 62], [44, 71], [44, 73], [44, 82], [44, 83], [44, 87], [45, 46], [45, 52], [45, 55], [45, 57], [45, 59], [45, 62], [45, 63], [45, 73], [45, 75], [45, 77], [45, 83], [45, 89], [46, 49], [46, 52], [46, 55], [46, 59], [46, 65], [46, 66], [46, 73], [46, 76], [46, 79], [46, 82], [46, 96], [47, 48], [47, 58], [47, 61], [47, 64], [47, 65], [47, 73], [47, 77], [47, 82], [47, 84], [47, 85], [47, 86], [47, 88], [47, 90], [47, 93], [47, 98], [48, 53], [48, 56], [48, 64], [48, 75], [48, 82], [48, 85], [48, 92], [48, 97], [48, 99], [49, 57], [49, 64], [49, 73], [49, 92], [50, 52], [50, 55], [50, 58], [50, 61], [50, 63], [50, 73], [50, 74], [50, 76], [50, 80], [50, 86], [50, 93], [50, 96], [51, 52], [51, 55], [51, 63], [51, 73], [51, 79], [51, 81], [51, 82], [51, 83], [51, 86], [51, 91], [51, 95], [52, 54], [52, 59], [52, 61], [52, 63], [52, 67], [52, 68], [52, 79], [52, 82], [52, 87], [52, 98], [52, 99], [53, 56], [53, 57], [53, 60], [53, 63], [53, 64], [53, 66], [53, 67], [53, 80], [53, 81], [53, 82], [53, 83], [53, 84], [53, 97], [54, 58], [54, 59], [54, 63], [54, 67], [54, 72], [54, 82], [54, 83], [54, 92], [54, 95], [54, 98], [55, 68], [55, 69], [55, 75], [55, 77], [55, 78], [55, 87], [55, 90], [55, 93], [55, 97], [55, 99], [56, 58], [56, 60], [56, 62], [56, 64], [56, 68], [56, 73], [56, 74], [56, 79], [56, 82], [56, 84], [56, 85], [56, 88], [56, 93], [56, 97], [57, 63], [57, 67], [57, 70], [57, 71], [57, 72], [57, 73], [57, 75], [57, 80], [57, 82], [57, 84], [57, 97], [57, 98], [58, 59], [58, 62], [58, 63], [58, 64], [58, 65], [58, 66], [58, 71], [58, 72], [58, 81], [58, 84], [58, 87], [58, 91], [58, 97], [58, 98], [58, 99], [59, 61], [59, 63], [59, 66], [59, 67], [59, 69], [59, 70], [59, 71], [59, 73], [59, 79], [59, 80], [59, 86], [59, 90], [59, 91], [59, 93], [59, 95], [59, 99], [60, 70], [60, 72], [60, 80], [60, 83], [60, 85], [60, 87], [60, 89], [60, 95], [60, 97], [60, 98], [61, 64], [61, 67], [61, 68], [61, 71], [61, 75], [61, 81], [61, 85], [61, 89], [61, 93], [61, 96], [61, 98], [61, 99], [62, 64], [62, 67], [62, 73], [62, 75], [62, 82], [62, 83], [62, 88], [62, 89], [62, 97], [62, 99], [63, 64], [63, 65], [63, 68], [63, 69], [63, 71], [63, 73], [63, 74], [63, 76], [63, 78], [63, 83], [63, 84], [63, 85], [63, 89], [63, 93], [63, 95], [63, 96], [63, 98], [64, 65], [64, 67], [64, 72], [64, 76], [64, 81], [64, 87], [64, 94], [64, 96], [64, 99], [65, 75], [65, 79], [65, 80], [65, 82], [65, 83], [65, 85], [65, 88], [65, 89], [65, 93], [65, 95], [66, 67], [66, 70], [66, 77], [66, 82], [66, 83], [66, 95], [67, 75], [67, 76], [67, 78], [67, 87], [67, 89], [67, 91], [67, 92], [67, 97], [67, 99], [68, 74], [68, 75], [68, 83], [68, 85], [68, 87], [68, 89], [69, 70], [69, 73], [69, 77], [69, 95], [69, 96], [69, 99], [70, 71], [70, 73], [70, 75], [70, 76], [70, 84], [70, 86], [70, 92], [70, 93], [70, 98], [71, 72], [71, 74], [71, 79], [71, 91], [71, 93], [71, 94], [71, 96], [72, 73], [72, 80], [72, 81], [72, 82], [72, 89], [72, 90], [72, 92], [72, 97], [72, 99], [73, 81], [73, 87], [73, 98], [74, 78], [74, 83], [74, 84], [74, 88], [74, 89], [74, 92], [74, 95], [74, 97], [74, 98], [75, 76], [75, 80], [75, 87], [75, 89], [75, 94], [75, 96], [75, 98], [76, 77], [76, 81], [76, 84], [76, 85], [76, 86], [76, 87], [76, 90], [76, 96], [76, 99], [77, 82], [77, 89], [77, 96], [77, 98], [78, 82], [78, 89], [78, 92], [78, 96], [78, 97], [78, 99], [79, 87], [79, 92], [79, 99], [80, 82], [80, 85], [80, 87], [80, 89], [80, 90], [80, 95], [80, 99], [81, 82], [81, 89], [81, 92], [81, 99], [82, 84], [82, 85], [82, 87], [82, 91], [82, 96], [83, 84], [83, 88], [83, 90], [83, 93], [83, 94], [83, 98], [83, 99], [84, 87], [84, 89], [84, 92], [85, 91], [85, 94], [85, 97], [86, 96], [87, 89], [87, 92], [87, 94], [87, 95], [88, 89], [89, 97], [90, 99], [91, 92], [91, 96], [91, 97], [92, 96], [93, 95], [93, 98], [94, 96], [95, 99], [97, 98], [98, 99]], "family": "nppc_independent_set", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-independent-set-l6-s5/tests/run.py b/tasks/construct-nppc-independent-set-l6-s5/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-nppc-independent-set-l6-s5/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-nppc-independent-set-l6-s5/tests/test.sh b/tasks/construct-nppc-independent-set-l6-s5/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-nppc-independent-set-l6-s5/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-nppc-quad-diophantine-l3-s2/environment/Dockerfile b/tasks/construct-nppc-quad-diophantine-l3-s2/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-nppc-quad-diophantine-l3-s2/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-nppc-quad-diophantine-l3-s2/environment/instance.json b/tasks/construct-nppc-quad-diophantine-l3-s2/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..eccc100a107fb862de6d77598297e5b1bbbf8655 --- /dev/null +++ b/tasks/construct-nppc-quad-diophantine-l3-s2/environment/instance.json @@ -0,0 +1 @@ +{"a": 1340, "b": 1357, "c": 72985104990, "family": "nppc_quad_diophantine", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-quad-diophantine-l3-s2/solution/solve.sh b/tasks/construct-nppc-quad-diophantine-l3-s2/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..a708bc80d2c8aad62b9cf81ff72baf2c8a784fa5 --- /dev/null +++ b/tasks/construct-nppc-quad-diophantine-l3-s2/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"x": 7380, "y": 2070} +RLMATH_EOF diff --git a/tasks/construct-nppc-quad-diophantine-l3-s2/tests/check.py b/tasks/construct-nppc-quad-diophantine-l3-s2/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..88989d2a8839b089c9b07dd2d3c26c21bfdca58c --- /dev/null +++ b/tasks/construct-nppc-quad-diophantine-l3-s2/tests/check.py @@ -0,0 +1,11 @@ +"""a*x^2 + b*y = c in positive integers. Accepts any solution (exact integer arithmetic).""" +from run import Invalid, as_int + + +def check(inst, ans): + # upstream NPPC verifier only checks x > 0 and y > 0, so non-integer (float) x, y were accepted + x = as_int(ans.get("x"), "x", lo=1) + y = as_int(ans.get("y"), "y", lo=1) + if inst["a"] * x * x + inst["b"] * y != inst["c"]: + raise Invalid("a*x^2 + b*y != c") + return None, {} diff --git a/tasks/construct-nppc-quad-diophantine-l3-s2/tests/instance.json b/tasks/construct-nppc-quad-diophantine-l3-s2/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..eccc100a107fb862de6d77598297e5b1bbbf8655 --- /dev/null +++ b/tasks/construct-nppc-quad-diophantine-l3-s2/tests/instance.json @@ -0,0 +1 @@ +{"a": 1340, "b": 1357, "c": 72985104990, "family": "nppc_quad_diophantine", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-quad-diophantine-l3-s2/tests/run.py b/tasks/construct-nppc-quad-diophantine-l3-s2/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-nppc-quad-diophantine-l3-s2/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-nppc-quad-diophantine-l3-s2/tests/test.sh b/tasks/construct-nppc-quad-diophantine-l3-s2/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-nppc-quad-diophantine-l3-s2/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-nppc-quad-diophantine-l3-s5/environment/Dockerfile b/tasks/construct-nppc-quad-diophantine-l3-s5/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-nppc-quad-diophantine-l3-s5/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-nppc-quad-diophantine-l3-s5/environment/instance.json b/tasks/construct-nppc-quad-diophantine-l3-s5/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..52faa141764dc15bc2bf56faa3ef15c541ac1717 --- /dev/null +++ b/tasks/construct-nppc-quad-diophantine-l3-s5/environment/instance.json @@ -0,0 +1 @@ +{"a": 6397, "b": 1378, "c": 181462489146, "family": "nppc_quad_diophantine", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-quad-diophantine-l3-s5/solution/solve.sh b/tasks/construct-nppc-quad-diophantine-l3-s5/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..e2d32515178984dc1873f0147f4675dc3202b0ac --- /dev/null +++ b/tasks/construct-nppc-quad-diophantine-l3-s5/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"x": 5326, "y": 2483} +RLMATH_EOF diff --git a/tasks/construct-nppc-quad-diophantine-l3-s5/tests/check.py b/tasks/construct-nppc-quad-diophantine-l3-s5/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..88989d2a8839b089c9b07dd2d3c26c21bfdca58c --- /dev/null +++ b/tasks/construct-nppc-quad-diophantine-l3-s5/tests/check.py @@ -0,0 +1,11 @@ +"""a*x^2 + b*y = c in positive integers. Accepts any solution (exact integer arithmetic).""" +from run import Invalid, as_int + + +def check(inst, ans): + # upstream NPPC verifier only checks x > 0 and y > 0, so non-integer (float) x, y were accepted + x = as_int(ans.get("x"), "x", lo=1) + y = as_int(ans.get("y"), "y", lo=1) + if inst["a"] * x * x + inst["b"] * y != inst["c"]: + raise Invalid("a*x^2 + b*y != c") + return None, {} diff --git a/tasks/construct-nppc-quad-diophantine-l3-s5/tests/instance.json b/tasks/construct-nppc-quad-diophantine-l3-s5/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..52faa141764dc15bc2bf56faa3ef15c541ac1717 --- /dev/null +++ b/tasks/construct-nppc-quad-diophantine-l3-s5/tests/instance.json @@ -0,0 +1 @@ +{"a": 6397, "b": 1378, "c": 181462489146, "family": "nppc_quad_diophantine", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-quad-diophantine-l3-s5/tests/run.py b/tasks/construct-nppc-quad-diophantine-l3-s5/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-nppc-quad-diophantine-l3-s5/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-nppc-quad-diophantine-l3-s5/tests/test.sh b/tasks/construct-nppc-quad-diophantine-l3-s5/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-nppc-quad-diophantine-l3-s5/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-nppc-quadratic-congruence-l3-s2/environment/Dockerfile b/tasks/construct-nppc-quadratic-congruence-l3-s2/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-nppc-quadratic-congruence-l3-s2/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-nppc-quadratic-congruence-l3-s2/environment/instance.json b/tasks/construct-nppc-quadratic-congruence-l3-s2/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..fca0ace6206513a6d6ecfb9632d50438821e1590 --- /dev/null +++ b/tasks/construct-nppc-quadratic-congruence-l3-s2/environment/instance.json @@ -0,0 +1 @@ +{"a": 12614, "b": 79129, "c": 91967, "family": "nppc_quadratic_congruence", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-quadratic-congruence-l3-s2/solution/solve.sh b/tasks/construct-nppc-quadratic-congruence-l3-s2/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..c337c6f37bceba6f33ce68c613cf1b03b6893a0f --- /dev/null +++ b/tasks/construct-nppc-quadratic-congruence-l3-s2/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"x": 40704} +RLMATH_EOF diff --git a/tasks/construct-nppc-quadratic-congruence-l3-s2/tests/check.py b/tasks/construct-nppc-quadratic-congruence-l3-s2/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..1a751c071a276ca0aae7fb05bfdcd7b6e0c6d3a6 --- /dev/null +++ b/tasks/construct-nppc-quadratic-congruence-l3-s2/tests/check.py @@ -0,0 +1,11 @@ +"""Quadratic congruence: integer x with 1 <= x < c and x^2 = a (mod b). Accepts any such x.""" +from run import Invalid, as_int + + +def check(inst, ans): + # upstream NPPC verifier did int(x) (accepting "12", 12.9 -> 12) and only checked x < c, so negative x + # (e.g. -r for any root r) and x = 0 passed and the bound c was meaningless + x = as_int(ans.get("x"), "x", lo=1, hi=inst["c"] - 1) + if x * x % inst["b"] != inst["a"]: + raise Invalid("x^2 mod b != a") + return None, {} diff --git a/tasks/construct-nppc-quadratic-congruence-l3-s2/tests/instance.json b/tasks/construct-nppc-quadratic-congruence-l3-s2/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..fca0ace6206513a6d6ecfb9632d50438821e1590 --- /dev/null +++ b/tasks/construct-nppc-quadratic-congruence-l3-s2/tests/instance.json @@ -0,0 +1 @@ +{"a": 12614, "b": 79129, "c": 91967, "family": "nppc_quadratic_congruence", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-quadratic-congruence-l3-s2/tests/run.py b/tasks/construct-nppc-quadratic-congruence-l3-s2/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-nppc-quadratic-congruence-l3-s2/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-nppc-quadratic-congruence-l3-s2/tests/test.sh b/tasks/construct-nppc-quadratic-congruence-l3-s2/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-nppc-quadratic-congruence-l3-s2/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-nppc-quadratic-congruence-l3-s5/environment/Dockerfile b/tasks/construct-nppc-quadratic-congruence-l3-s5/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-nppc-quadratic-congruence-l3-s5/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-nppc-quadratic-congruence-l3-s5/environment/instance.json b/tasks/construct-nppc-quadratic-congruence-l3-s5/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..68b457675d86fec5a37775fc4d7e6faab4175f9c --- /dev/null +++ b/tasks/construct-nppc-quadratic-congruence-l3-s5/environment/instance.json @@ -0,0 +1 @@ +{"a": 17712, "b": 30562, "c": 83779, "family": "nppc_quadratic_congruence", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-quadratic-congruence-l3-s5/solution/solve.sh b/tasks/construct-nppc-quadratic-congruence-l3-s5/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..43a376cae6517206a06e791569415400d53d2509 --- /dev/null +++ b/tasks/construct-nppc-quadratic-congruence-l3-s5/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"x": 34198} +RLMATH_EOF diff --git a/tasks/construct-nppc-quadratic-congruence-l3-s5/tests/check.py b/tasks/construct-nppc-quadratic-congruence-l3-s5/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..1a751c071a276ca0aae7fb05bfdcd7b6e0c6d3a6 --- /dev/null +++ b/tasks/construct-nppc-quadratic-congruence-l3-s5/tests/check.py @@ -0,0 +1,11 @@ +"""Quadratic congruence: integer x with 1 <= x < c and x^2 = a (mod b). Accepts any such x.""" +from run import Invalid, as_int + + +def check(inst, ans): + # upstream NPPC verifier did int(x) (accepting "12", 12.9 -> 12) and only checked x < c, so negative x + # (e.g. -r for any root r) and x = 0 passed and the bound c was meaningless + x = as_int(ans.get("x"), "x", lo=1, hi=inst["c"] - 1) + if x * x % inst["b"] != inst["a"]: + raise Invalid("x^2 mod b != a") + return None, {} diff --git a/tasks/construct-nppc-quadratic-congruence-l3-s5/tests/instance.json b/tasks/construct-nppc-quadratic-congruence-l3-s5/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..68b457675d86fec5a37775fc4d7e6faab4175f9c --- /dev/null +++ b/tasks/construct-nppc-quadratic-congruence-l3-s5/tests/instance.json @@ -0,0 +1 @@ +{"a": 17712, "b": 30562, "c": 83779, "family": "nppc_quadratic_congruence", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-quadratic-congruence-l3-s5/tests/run.py b/tasks/construct-nppc-quadratic-congruence-l3-s5/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-nppc-quadratic-congruence-l3-s5/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-nppc-quadratic-congruence-l3-s5/tests/test.sh b/tasks/construct-nppc-quadratic-congruence-l3-s5/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-nppc-quadratic-congruence-l3-s5/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-nppc-vertex-cover-l1-s0/environment/Dockerfile b/tasks/construct-nppc-vertex-cover-l1-s0/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-nppc-vertex-cover-l1-s0/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-nppc-vertex-cover-l1-s0/environment/instance.json b/tasks/construct-nppc-vertex-cover-l1-s0/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..7426ff1035671bc8d0e5fd2609bc99d485d4ab01 --- /dev/null +++ b/tasks/construct-nppc-vertex-cover-l1-s0/environment/instance.json @@ -0,0 +1 @@ +{"num_nodes": 8, "k": 3, "edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 7], [2, 3], [2, 5], [2, 6], [2, 7], [3, 7], [5, 7]], "family": "nppc_vertex_cover", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-vertex-cover-l1-s0/solution/solve.sh b/tasks/construct-nppc-vertex-cover-l1-s0/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..1abe2c6edf73cbf47056a3ec09e740b3277ed976 --- /dev/null +++ b/tasks/construct-nppc-vertex-cover-l1-s0/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"cover": [0, 2, 7]} +RLMATH_EOF diff --git a/tasks/construct-nppc-vertex-cover-l1-s0/tests/check.py b/tasks/construct-nppc-vertex-cover-l1-s0/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..d8ed740cc660c4837d941a8d70ea394c3bc9f69e --- /dev/null +++ b/tasks/construct-nppc-vertex-cover-l1-s0/tests/check.py @@ -0,0 +1,18 @@ +"""Vertex cover of size <= k. Accepts any valid cover.""" +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["num_nodes"], inst["k"] + # upstream NPPC verifier converts to a set without type checks (floats/bools slip through and + # duplicates are silently merged); here entries must be distinct ints in range + c = int_list(ans.get("cover"), None, 0, n - 1, "cover") + if len(set(c)) != len(c): + raise Invalid("cover contains duplicates") + if len(c) > k: + raise Invalid(f"cover has {len(c)} > {k} vertices") + s = set(c) + for u, v in inst["edges"]: + if u not in s and v not in s: + raise Invalid(f"edge ({u},{v}) not covered") + return None, {"size": len(c)} diff --git a/tasks/construct-nppc-vertex-cover-l1-s0/tests/instance.json b/tasks/construct-nppc-vertex-cover-l1-s0/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..7426ff1035671bc8d0e5fd2609bc99d485d4ab01 --- /dev/null +++ b/tasks/construct-nppc-vertex-cover-l1-s0/tests/instance.json @@ -0,0 +1 @@ +{"num_nodes": 8, "k": 3, "edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 7], [2, 3], [2, 5], [2, 6], [2, 7], [3, 7], [5, 7]], "family": "nppc_vertex_cover", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-vertex-cover-l1-s0/tests/run.py b/tasks/construct-nppc-vertex-cover-l1-s0/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-nppc-vertex-cover-l1-s0/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-nppc-vertex-cover-l1-s0/tests/test.sh b/tasks/construct-nppc-vertex-cover-l1-s0/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-nppc-vertex-cover-l1-s0/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-nppc-vertex-cover-l1-s7/environment/Dockerfile b/tasks/construct-nppc-vertex-cover-l1-s7/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-nppc-vertex-cover-l1-s7/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-nppc-vertex-cover-l1-s7/environment/instance.json b/tasks/construct-nppc-vertex-cover-l1-s7/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..509f4a29ca7f3ea310300224e808a3e4e7d23679 --- /dev/null +++ b/tasks/construct-nppc-vertex-cover-l1-s7/environment/instance.json @@ -0,0 +1 @@ +{"num_nodes": 8, "k": 3, "edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 7], [2, 5], [2, 6], [3, 5], [4, 5], [5, 6], [5, 7]], "family": "nppc_vertex_cover", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-vertex-cover-l1-s7/solution/solve.sh b/tasks/construct-nppc-vertex-cover-l1-s7/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..98f7ca78b318e4302c52c7582703ce82f2faff9b --- /dev/null +++ b/tasks/construct-nppc-vertex-cover-l1-s7/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"cover": [1, 5, 6]} +RLMATH_EOF diff --git a/tasks/construct-nppc-vertex-cover-l1-s7/tests/check.py b/tasks/construct-nppc-vertex-cover-l1-s7/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..d8ed740cc660c4837d941a8d70ea394c3bc9f69e --- /dev/null +++ b/tasks/construct-nppc-vertex-cover-l1-s7/tests/check.py @@ -0,0 +1,18 @@ +"""Vertex cover of size <= k. Accepts any valid cover.""" +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["num_nodes"], inst["k"] + # upstream NPPC verifier converts to a set without type checks (floats/bools slip through and + # duplicates are silently merged); here entries must be distinct ints in range + c = int_list(ans.get("cover"), None, 0, n - 1, "cover") + if len(set(c)) != len(c): + raise Invalid("cover contains duplicates") + if len(c) > k: + raise Invalid(f"cover has {len(c)} > {k} vertices") + s = set(c) + for u, v in inst["edges"]: + if u not in s and v not in s: + raise Invalid(f"edge ({u},{v}) not covered") + return None, {"size": len(c)} diff --git a/tasks/construct-nppc-vertex-cover-l1-s7/tests/instance.json b/tasks/construct-nppc-vertex-cover-l1-s7/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..509f4a29ca7f3ea310300224e808a3e4e7d23679 --- /dev/null +++ b/tasks/construct-nppc-vertex-cover-l1-s7/tests/instance.json @@ -0,0 +1 @@ +{"num_nodes": 8, "k": 3, "edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 7], [2, 5], [2, 6], [3, 5], [4, 5], [5, 6], [5, 7]], "family": "nppc_vertex_cover", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-vertex-cover-l1-s7/tests/run.py b/tasks/construct-nppc-vertex-cover-l1-s7/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-nppc-vertex-cover-l1-s7/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-nppc-vertex-cover-l1-s7/tests/test.sh b/tasks/construct-nppc-vertex-cover-l1-s7/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-nppc-vertex-cover-l1-s7/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-nppc-vertex-cover-l1-s9/environment/Dockerfile b/tasks/construct-nppc-vertex-cover-l1-s9/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-nppc-vertex-cover-l1-s9/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-nppc-vertex-cover-l1-s9/environment/instance.json b/tasks/construct-nppc-vertex-cover-l1-s9/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..c03231de3573c0a8909dd318a470b4209545dc44 --- /dev/null +++ b/tasks/construct-nppc-vertex-cover-l1-s9/environment/instance.json @@ -0,0 +1 @@ +{"num_nodes": 8, "k": 3, "edges": [[0, 4], [0, 7], [1, 7], [2, 5], [2, 7], [3, 4], [3, 5], [3, 7], [4, 5], [4, 7], [5, 7], [6, 7]], "family": "nppc_vertex_cover", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-vertex-cover-l1-s9/solution/solve.sh b/tasks/construct-nppc-vertex-cover-l1-s9/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..f05df1c033664c58accb6ef52d8ad8f41db246c8 --- /dev/null +++ b/tasks/construct-nppc-vertex-cover-l1-s9/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"cover": [4, 5, 7]} +RLMATH_EOF diff --git a/tasks/construct-nppc-vertex-cover-l1-s9/tests/check.py b/tasks/construct-nppc-vertex-cover-l1-s9/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..d8ed740cc660c4837d941a8d70ea394c3bc9f69e --- /dev/null +++ b/tasks/construct-nppc-vertex-cover-l1-s9/tests/check.py @@ -0,0 +1,18 @@ +"""Vertex cover of size <= k. Accepts any valid cover.""" +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["num_nodes"], inst["k"] + # upstream NPPC verifier converts to a set without type checks (floats/bools slip through and + # duplicates are silently merged); here entries must be distinct ints in range + c = int_list(ans.get("cover"), None, 0, n - 1, "cover") + if len(set(c)) != len(c): + raise Invalid("cover contains duplicates") + if len(c) > k: + raise Invalid(f"cover has {len(c)} > {k} vertices") + s = set(c) + for u, v in inst["edges"]: + if u not in s and v not in s: + raise Invalid(f"edge ({u},{v}) not covered") + return None, {"size": len(c)} diff --git a/tasks/construct-nppc-vertex-cover-l1-s9/tests/instance.json b/tasks/construct-nppc-vertex-cover-l1-s9/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..c03231de3573c0a8909dd318a470b4209545dc44 --- /dev/null +++ b/tasks/construct-nppc-vertex-cover-l1-s9/tests/instance.json @@ -0,0 +1 @@ +{"num_nodes": 8, "k": 3, "edges": [[0, 4], [0, 7], [1, 7], [2, 5], [2, 7], [3, 4], [3, 5], [3, 7], [4, 5], [4, 7], [5, 7], [6, 7]], "family": "nppc_vertex_cover", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-vertex-cover-l1-s9/tests/run.py b/tasks/construct-nppc-vertex-cover-l1-s9/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-nppc-vertex-cover-l1-s9/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-nppc-vertex-cover-l1-s9/tests/test.sh b/tasks/construct-nppc-vertex-cover-l1-s9/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-nppc-vertex-cover-l1-s9/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-nppc-vertex-cover-l5-s1/environment/Dockerfile b/tasks/construct-nppc-vertex-cover-l5-s1/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-nppc-vertex-cover-l5-s1/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-nppc-vertex-cover-l5-s1/environment/instance.json b/tasks/construct-nppc-vertex-cover-l5-s1/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..89f134f0a6cff9310109e782597ed5f43d770d12 --- /dev/null +++ b/tasks/construct-nppc-vertex-cover-l5-s1/environment/instance.json @@ -0,0 +1 @@ +{"num_nodes": 80, "k": 40, "edges": [[0, 2], [0, 5], [0, 7], [0, 8], [0, 10], [0, 12], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 33], [0, 35], [0, 38], [0, 39], [0, 40], [0, 41], [0, 42], [0, 43], [0, 45], [0, 46], [0, 47], [0, 48], [0, 51], [0, 52], [0, 54], [0, 55], [0, 56], [0, 57], [0, 59], [0, 60], [0, 61], [0, 62], [0, 63], [0, 64], [0, 65], [0, 66], [0, 67], [0, 68], [0, 69], [0, 70], [0, 72], [0, 74], [0, 78], [0, 79], [1, 3], [1, 4], [1, 5], [1, 6], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 16], [1, 19], [1, 20], [1, 22], [1, 23], [1, 25], [1, 26], [1, 27], [1, 28], [1, 29], [1, 32], [1, 33], [1, 35], [1, 36], [1, 37], [1, 38], [1, 41], [1, 42], [1, 43], [1, 44], [1, 45], [1, 46], [1, 48], [1, 49], [1, 51], [1, 52], [1, 53], [1, 54], [1, 55], [1, 56], [1, 57], [1, 59], [1, 61], [1, 62], [1, 66], [1, 67], [1, 68], [1, 69], [1, 72], [1, 73], [1, 74], [1, 75], [1, 76], [1, 77], [1, 79], [2, 3], [2, 9], [2, 10], [2, 16], [2, 18], [2, 20], [2, 29], [2, 35], [2, 37], [2, 47], [2, 48], [2, 52], [2, 59], [2, 68], [2, 71], [2, 78], [2, 79], [3, 4], [3, 5], [3, 6], [3, 8], [3, 9], [3, 10], [3, 12], [3, 13], [3, 14], [3, 15], [3, 16], [3, 18], [3, 20], [3, 22], [3, 23], [3, 24], [3, 25], [3, 26], [3, 27], [3, 29], [3, 30], [3, 32], [3, 33], [3, 35], [3, 36], [3, 37], [3, 38], [3, 40], [3, 42], [3, 43], [3, 44], [3, 45], [3, 47], [3, 48], [3, 51], [3, 52], [3, 54], [3, 55], [3, 56], [3, 59], [3, 60], [3, 64], [3, 65], [3, 66], [3, 67], [3, 69], [3, 70], [3, 71], [3, 72], [3, 74], [3, 75], [3, 76], [3, 77], [3, 78], [3, 79], [4, 5], [4, 6], [4, 8], [4, 14], [4, 16], [4, 17], [4, 18], [4, 22], [4, 27], [4, 28], [4, 29], [4, 32], [4, 33], [4, 34], [4, 35], [4, 36], [4, 37], [4, 38], [4, 39], [4, 41], [4, 42], [4, 43], [4, 44], [4, 45], [4, 47], [4, 50], [4, 51], [4, 52], [4, 56], [4, 58], [4, 60], [4, 61], [4, 64], [4, 65], [4, 66], [4, 67], [4, 68], [4, 69], [4, 71], [4, 72], [4, 74], [4, 75], [4, 78], [4, 79], [5, 7], [5, 9], [5, 10], [5, 11], [5, 12], [5, 13], [5, 14], [5, 15], [5, 16], [5, 19], [5, 21], [5, 22], [5, 23], [5, 24], [5, 25], [5, 28], [5, 33], [5, 36], [5, 37], [5, 38], [5, 39], [5, 40], [5, 42], [5, 44], [5, 45], [5, 46], [5, 48], [5, 51], [5, 54], [5, 56], [5, 58], [5, 59], [5, 62], [5, 63], [5, 65], [5, 66], [5, 68], [5, 70], [5, 71], [5, 72], [5, 73], [5, 74], [5, 75], [5, 76], [5, 77], [5, 78], [5, 79], [6, 9], [6, 10], [6, 20], [6, 32], [6, 35], [6, 36], [6, 43], [6, 51], [6, 56], [6, 59], [6, 68], [6, 69], [6, 70], [6, 71], [6, 72], [6, 74], [6, 75], [6, 78], [7, 8], [7, 16], [7, 21], [7, 29], [7, 32], [7, 35], [7, 37], [7, 38], [7, 42], [7, 48], [7, 51], [7, 52], [7, 59], [7, 62], [7, 65], [7, 69], [7, 71], [7, 72], [7, 75], [7, 79], [8, 12], [8, 14], [8, 16], [8, 17], [8, 20], [8, 21], [8, 22], [8, 23], [8, 24], [8, 25], [8, 28], [8, 29], [8, 31], [8, 32], [8, 34], [8, 35], [8, 36], [8, 37], [8, 38], [8, 41], [8, 42], [8, 43], [8, 45], [8, 46], [8, 47], [8, 48], [8, 50], [8, 52], [8, 55], [8, 56], [8, 57], [8, 58], [8, 59], [8, 62], [8, 64], [8, 65], [8, 66], [8, 70], [8, 71], [8, 74], [8, 75], [8, 76], [8, 77], [8, 78], [8, 79], [9, 10], [9, 12], [9, 13], [9, 16], [9, 17], [9, 18], [9, 19], [9, 20], [9, 21], [9, 23], [9, 24], [9, 25], [9, 26], [9, 27], [9, 29], [9, 32], [9, 34], [9, 35], [9, 36], [9, 38], [9, 39], [9, 41], [9, 42], [9, 43], [9, 47], [9, 48], [9, 49], [9, 51], [9, 52], [9, 55], [9, 58], [9, 59], [9, 60], [9, 63], [9, 65], [9, 66], [9, 68], [9, 69], [9, 70], [9, 71], [9, 72], [9, 73], [9, 74], [9, 75], [9, 78], [9, 79], [10, 11], [10, 13], [10, 14], [10, 15], [10, 16], [10, 18], [10, 20], [10, 22], [10, 26], [10, 28], [10, 29], [10, 34], [10, 35], [10, 36], [10, 37], [10, 38], [10, 42], [10, 43], [10, 44], [10, 45], [10, 46], [10, 48], [10, 51], [10, 54], [10, 55], [10, 57], [10, 58], [10, 60], [10, 61], [10, 62], [10, 63], [10, 64], [10, 65], [10, 68], [10, 70], [10, 71], [10, 73], [10, 75], [10, 78], [10, 79], [11, 16], [11, 17], [11, 18], [11, 35], [11, 37], [11, 42], [11, 43], [11, 48], [11, 51], [11, 52], [11, 66], [11, 68], [11, 69], [11, 70], [11, 74], [11, 78], [11, 79], [12, 15], [12, 16], [12, 18], [12, 20], [12, 21], [12, 35], [12, 43], [12, 48], [12, 56], [12, 59], [12, 62], [12, 68], [12, 71], [12, 72], [12, 74], [13, 21], [13, 29], [13, 32], [13, 35], [13, 36], [13, 37], [13, 38], [13, 43], [13, 56], [13, 62], [13, 65], [13, 66], [13, 68], [13, 69], [13, 70], [13, 72], [13, 74], [14, 15], [14, 16], [14, 17], [14, 18], [14, 35], [14, 37], [14, 42], [14, 43], [14, 47], [14, 51], [14, 56], [14, 68], [14, 69], [14, 70], [14, 71], [14, 74], [14, 78], [15, 16], [15, 17], [15, 18], [15, 19], [15, 20], [15, 21], [15, 25], [15, 27], [15, 28], [15, 32], [15, 35], [15, 36], [15, 39], [15, 41], [15, 42], [15, 44], [15, 46], [15, 47], [15, 48], [15, 49], [15, 51], [15, 52], [15, 56], [15, 57], [15, 59], [15, 60], [15, 62], [15, 63], [15, 64], [15, 65], [15, 66], [15, 69], [15, 70], [15, 71], [15, 72], [15, 74], [15, 75], [15, 77], [15, 78], [15, 79], [16, 17], [16, 20], [16, 21], [16, 22], [16, 23], [16, 26], [16, 28], [16, 30], [16, 33], [16, 34], [16, 35], [16, 36], [16, 37], [16, 38], [16, 39], [16, 41], [16, 42], [16, 43], [16, 45], [16, 47], [16, 48], [16, 51], [16, 52], [16, 53], [16, 54], [16, 55], [16, 56], [16, 57], [16, 59], [16, 61], [16, 63], [16, 65], [16, 66], [16, 67], [16, 68], [16, 70], [16, 71], [16, 74], [16, 75], [16, 76], [16, 77], [16, 78], [17, 18], [17, 20], [17, 21], [17, 22], [17, 30], [17, 31], [17, 32], [17, 33], [17, 34], [17, 35], [17, 36], [17, 37], [17, 38], [17, 42], [17, 44], [17, 45], [17, 48], [17, 50], [17, 51], [17, 52], [17, 53], [17, 55], [17, 56], [17, 57], [17, 60], [17, 63], [17, 64], [17, 65], [17, 66], [17, 69], [17, 72], [17, 74], [17, 75], [17, 78], [18, 21], [18, 25], [18, 26], [18, 29], [18, 30], [18, 32], [18, 33], [18, 34], [18, 35], [18, 36], [18, 37], [18, 38], [18, 40], [18, 42], [18, 43], [18, 44], [18, 45], [18, 47], [18, 49], [18, 53], [18, 55], [18, 56], [18, 57], [18, 58], [18, 61], [18, 62], [18, 63], [18, 64], [18, 65], [18, 68], [18, 69], [18, 70], [18, 71], [18, 72], [18, 75], [18, 78], [18, 79], [19, 35], [19, 37], [19, 38], [19, 43], [19, 47], [19, 51], [19, 56], [19, 59], [19, 62], [19, 65], [19, 68], [19, 69], [19, 70], [19, 72], [19, 74], [19, 75], [20, 21], [20, 22], [20, 25], [20, 26], [20, 29], [20, 30], [20, 31], [20, 32], [20, 34], [20, 35], [20, 36], [20, 38], [20, 40], [20, 41], [20, 42], [20, 43], [20, 44], [20, 45], [20, 48], [20, 49], [20, 50], [20, 52], [20, 53], [20, 54], [20, 55], [20, 56], [20, 62], [20, 65], [20, 66], [20, 68], [20, 69], [20, 70], [20, 71], [20, 72], [20, 73], [20, 74], [20, 76], [20, 77], [20, 78], [21, 22], [21, 23], [21, 25], [21, 28], [21, 29], [21, 31], [21, 32], [21, 33], [21, 35], [21, 38], [21, 42], [21, 43], [21, 47], [21, 48], [21, 50], [21, 51], [21, 52], [21, 53], [21, 55], [21, 56], [21, 57], [21, 58], [21, 59], [21, 60], [21, 63], [21, 64], [21, 65], [21, 66], [21, 68], [21, 70], [21, 75], [21, 76], [21, 77], [21, 78], [21, 79], [22, 29], [22, 43], [22, 51], [22, 65], [22, 69], [22, 71], [22, 72], [22, 74], [22, 75], [23, 32], [23, 35], [23, 37], [23, 48], [23, 51], [23, 52], [23, 59], [23, 62], [23, 65], [23, 68], [23, 69], [23, 70], [23, 72], [23, 74], [23, 78], [24, 32], [24, 35], [24, 36], [24, 38], [24, 43], [24, 47], [24, 48], [24, 51], [24, 56], [24, 59], [24, 68], [24, 70], [24, 74], [24, 75], [24, 78], [25, 29], [25, 36], [25, 43], [25, 47], [25, 52], [25, 59], [25, 62], [25, 65], [25, 69], [25, 71], [25, 74], [25, 78], [26, 32], [26, 35], [26, 36], [26, 37], [26, 38], [26, 47], [26, 48], [26, 51], [26, 52], [26, 59], [26, 62], [26, 68], [26, 71], [26, 72], [26, 74], [27, 29], [27, 32], [27, 35], [27, 38], [27, 42], [27, 47], [27, 48], [27, 56], [27, 59], [27, 69], [27, 72], [27, 74], [27, 75], [27, 78], [27, 79], [28, 29], [28, 32], [28, 37], [28, 42], [28, 43], [28, 51], [28, 56], [28, 69], [28, 70], [28, 71], [28, 72], [28, 74], [28, 75], [28, 78], [28, 79], [29, 35], [29, 36], [29, 37], [29, 39], [29, 41], [29, 43], [29, 45], [29, 47], [29, 48], [29, 51], [29, 56], [29, 57], [29, 58], [29, 59], [29, 60], [29, 61], [29, 62], [29, 63], [29, 64], [29, 66], [29, 68], [29, 69], [29, 71], [29, 72], [29, 74], [29, 75], [29, 77], [29, 78], [30, 36], [30, 37], [30, 42], [30, 43], [30, 47], [30, 52], [30, 62], [30, 65], [30, 66], [30, 68], [30, 69], [30, 70], [30, 72], [30, 75], [30, 78], [31, 32], [31, 35], [31, 36], [31, 37], [31, 42], [31, 47], [31, 48], [31, 59], [31, 62], [31, 66], [31, 69], [31, 70], [31, 71], [31, 75], [31, 78], [31, 79], [32, 33], [32, 34], [32, 36], [32, 38], [32, 39], [32, 40], [32, 41], [32, 42], [32, 43], [32, 45], [32, 47], [32, 48], [32, 52], [32, 53], [32, 55], [32, 56], [32, 58], [32, 59], [32, 60], [32, 62], [32, 63], [32, 64], [32, 65], [32, 66], [32, 68], [32, 69], [32, 70], [32, 71], [32, 72], [32, 73], [32, 74], [32, 76], [32, 77], [32, 78], [32, 79], [33, 51], [33, 59], [33, 65], [33, 66], [33, 68], [33, 69], [33, 70], [33, 74], [33, 78], [34, 36], [34, 42], [34, 43], [34, 47], [34, 48], [34, 52], [34, 56], [34, 70], [34, 72], [35, 36], [35, 37], [35, 40], [35, 41], [35, 42], [35, 43], [35, 46], [35, 49], [35, 50], [35, 51], [35, 53], [35, 54], [35, 55], [35, 56], [35, 57], [35, 61], [35, 62], [35, 63], [35, 64], [35, 65], [35, 67], [35, 68], [35, 69], [35, 70], [35, 71], [35, 72], [35, 75], [35, 77], [35, 78], [35, 79], [36, 37], [36, 40], [36, 42], [36, 43], [36, 45], [36, 47], [36, 48], [36, 50], [36, 53], [36, 56], [36, 59], [36, 61], [36, 62], [36, 63], [36, 64], [36, 65], [36, 68], [36, 69], [36, 70], [36, 71], [36, 74], [36, 75], [36, 77], [36, 78], [36, 79], [37, 38], [37, 39], [37, 40], [37, 41], [37, 42], [37, 43], [37, 47], [37, 49], [37, 50], [37, 51], [37, 52], [37, 54], [37, 56], [37, 57], [37, 58], [37, 59], [37, 62], [37, 64], [37, 66], [37, 67], [37, 68], [37, 69], [37, 70], [37, 72], [37, 74], [37, 75], [37, 76], [37, 77], [37, 79], [38, 40], [38, 42], [38, 43], [38, 45], [38, 47], [38, 48], [38, 50], [38, 51], [38, 52], [38, 53], [38, 54], [38, 55], [38, 56], [38, 57], [38, 61], [38, 63], [38, 64], [38, 65], [38, 67], [38, 68], [38, 69], [38, 70], [38, 71], [38, 74], [38, 75], [38, 77], [38, 78], [38, 79], [39, 42], [39, 43], [39, 48], [39, 56], [39, 59], [39, 62], [39, 66], [39, 68], [39, 70], [39, 72], [39, 78], [40, 47], [40, 48], [40, 52], [40, 56], [40, 59], [40, 65], [40, 68], [40, 72], [40, 74], [40, 75], [40, 79], [41, 42], [41, 43], [41, 47], [41, 48], [41, 51], [41, 52], [41, 56], [41, 65], [41, 66], [41, 68], [41, 69], [41, 70], [41, 71], [41, 74], [41, 75], [41, 78], [41, 79], [42, 44], [42, 46], [42, 47], [42, 48], [42, 50], [42, 51], [42, 52], [42, 53], [42, 54], [42, 55], [42, 56], [42, 59], [42, 60], [42, 61], [42, 62], [42, 65], [42, 66], [42, 67], [42, 68], [42, 69], [42, 70], [42, 71], [42, 74], [42, 75], [42, 76], [42, 77], [42, 79], [43, 44], [43, 45], [43, 48], [43, 49], [43, 51], [43, 55], [43, 56], [43, 59], [43, 61], [43, 62], [43, 66], [43, 68], [43, 69], [43, 71], [43, 72], [43, 73], [43, 75], [43, 76], [43, 78], [43, 79], [44, 47], [44, 48], [44, 56], [44, 59], [44, 65], [44, 68], [44, 70], [44, 74], [44, 75], [44, 79], [45, 48], [45, 52], [45, 65], [45, 66], [45, 68], [45, 70], [45, 71], [45, 72], [45, 79], [46, 47], [46, 56], [46, 62], [46, 66], [46, 68], [46, 71], [47, 48], [47, 49], [47, 50], [47, 51], [47, 52], [47, 54], [47, 56], [47, 57], [47, 59], [47, 60], [47, 62], [47, 63], [47, 65], [47, 66], [47, 67], [47, 68], [47, 69], [47, 71], [47, 72], [47, 75], [47, 76], [47, 77], [47, 78], [47, 79], [48, 51], [48, 52], [48, 54], [48, 56], [48, 59], [48, 61], [48, 66], [48, 68], [48, 69], [48, 70], [48, 71], [48, 72], [48, 74], [48, 75], [48, 77], [48, 78], [48, 79], [49, 51], [49, 52], [49, 65], [49, 69], [49, 71], [49, 74], [49, 75], [49, 78], [50, 56], [50, 59], [50, 62], [50, 65], [50, 66], [50, 72], [50, 74], [51, 52], [51, 53], [51, 54], [51, 55], [51, 56], [51, 59], [51, 61], [51, 62], [51, 64], [51, 65], [51, 66], [51, 68], [51, 70], [51, 72], [51, 74], [51, 76], [51, 77], [51, 78], [52, 53], [52, 54], [52, 56], [52, 57], [52, 58], [52, 62], [52, 63], [52, 64], [52, 65], [52, 66], [52, 68], [52, 69], [52, 71], [52, 72], [52, 74], [52, 78], [52, 79], [53, 59], [53, 68], [53, 69], [53, 71], [53, 74], [53, 75], [53, 79], [54, 56], [54, 59], [54, 65], [54, 66], [54, 68], [54, 72], [54, 74], [54, 78], [55, 65], [55, 66], [55, 71], [55, 72], [55, 78], [56, 57], [56, 60], [56, 64], [56, 65], [56, 66], [56, 68], [56, 69], [56, 70], [56, 71], [56, 72], [56, 74], [56, 75], [56, 79], [57, 59], [57, 62], [57, 65], [57, 66], [57, 68], [57, 69], [57, 71], [57, 72], [57, 74], [57, 75], [57, 78], [57, 79], [58, 62], [58, 68], [58, 69], [58, 72], [58, 74], [58, 78], [59, 61], [59, 62], [59, 63], [59, 65], [59, 66], [59, 67], [59, 69], [59, 72], [59, 74], [59, 75], [60, 62], [60, 65], [60, 66], [60, 68], [60, 71], [60, 72], [60, 74], [60, 78], [61, 65], [61, 66], [61, 69], [61, 70], [61, 72], [61, 75], [61, 78], [62, 65], [62, 66], [62, 67], [62, 68], [62, 69], [62, 70], [62, 71], [62, 74], [62, 76], [62, 77], [62, 79], [63, 66], [63, 69], [63, 70], [63, 72], [63, 74], [63, 75], [63, 78], [63, 79], [64, 65], [64, 66], [64, 71], [64, 72], [64, 79], [65, 66], [65, 68], [65, 70], [65, 71], [65, 72], [65, 73], [65, 74], [65, 75], [65, 78], [65, 79], [66, 68], [66, 70], [66, 71], [66, 72], [66, 73], [66, 74], [66, 77], [66, 78], [66, 79], [67, 68], [67, 69], [67, 72], [67, 74], [67, 75], [67, 78], [67, 79], [68, 69], [68, 71], [68, 72], [68, 74], [68, 76], [68, 77], [68, 78], [69, 70], [69, 71], [69, 72], [69, 75], [69, 76], [69, 79], [70, 71], [70, 72], [70, 73], [70, 74], [70, 76], [70, 78], [70, 79], [71, 72], [71, 75], [71, 77], [71, 78], [72, 73], [72, 74], [72, 76], [72, 77], [72, 79], [73, 74], [73, 75], [73, 78], [74, 75], [74, 77], [74, 78], [74, 79], [76, 78], [77, 79], [78, 79]], "family": "nppc_vertex_cover", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-vertex-cover-l5-s1/solution/solve.sh b/tasks/construct-nppc-vertex-cover-l5-s1/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..187eddd0effd32edec24229d1bb78ee106aa4472 --- /dev/null +++ b/tasks/construct-nppc-vertex-cover-l5-s1/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"cover": [0, 1, 3, 4, 5, 8, 9, 10, 15, 16, 17, 18, 20, 21, 29, 32, 35, 36, 37, 38, 42, 43, 47, 48, 51, 52, 56, 59, 62, 65, 66, 68, 69, 70, 71, 72, 74, 75, 78, 79]} +RLMATH_EOF diff --git a/tasks/construct-nppc-vertex-cover-l5-s1/tests/check.py b/tasks/construct-nppc-vertex-cover-l5-s1/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..d8ed740cc660c4837d941a8d70ea394c3bc9f69e --- /dev/null +++ b/tasks/construct-nppc-vertex-cover-l5-s1/tests/check.py @@ -0,0 +1,18 @@ +"""Vertex cover of size <= k. Accepts any valid cover.""" +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["num_nodes"], inst["k"] + # upstream NPPC verifier converts to a set without type checks (floats/bools slip through and + # duplicates are silently merged); here entries must be distinct ints in range + c = int_list(ans.get("cover"), None, 0, n - 1, "cover") + if len(set(c)) != len(c): + raise Invalid("cover contains duplicates") + if len(c) > k: + raise Invalid(f"cover has {len(c)} > {k} vertices") + s = set(c) + for u, v in inst["edges"]: + if u not in s and v not in s: + raise Invalid(f"edge ({u},{v}) not covered") + return None, {"size": len(c)} diff --git a/tasks/construct-nppc-vertex-cover-l5-s1/tests/instance.json b/tasks/construct-nppc-vertex-cover-l5-s1/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..89f134f0a6cff9310109e782597ed5f43d770d12 --- /dev/null +++ b/tasks/construct-nppc-vertex-cover-l5-s1/tests/instance.json @@ -0,0 +1 @@ +{"num_nodes": 80, "k": 40, "edges": [[0, 2], [0, 5], [0, 7], [0, 8], [0, 10], [0, 12], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 33], [0, 35], [0, 38], [0, 39], [0, 40], [0, 41], [0, 42], [0, 43], [0, 45], [0, 46], [0, 47], [0, 48], [0, 51], [0, 52], [0, 54], [0, 55], [0, 56], [0, 57], [0, 59], [0, 60], [0, 61], [0, 62], [0, 63], [0, 64], [0, 65], [0, 66], [0, 67], [0, 68], [0, 69], [0, 70], [0, 72], [0, 74], [0, 78], [0, 79], [1, 3], [1, 4], [1, 5], [1, 6], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 16], [1, 19], [1, 20], [1, 22], [1, 23], [1, 25], [1, 26], [1, 27], [1, 28], [1, 29], [1, 32], [1, 33], [1, 35], [1, 36], [1, 37], [1, 38], [1, 41], [1, 42], [1, 43], [1, 44], [1, 45], [1, 46], [1, 48], [1, 49], [1, 51], [1, 52], [1, 53], [1, 54], [1, 55], [1, 56], [1, 57], [1, 59], [1, 61], [1, 62], [1, 66], [1, 67], [1, 68], [1, 69], [1, 72], [1, 73], [1, 74], [1, 75], [1, 76], [1, 77], [1, 79], [2, 3], [2, 9], [2, 10], [2, 16], [2, 18], [2, 20], [2, 29], [2, 35], [2, 37], [2, 47], [2, 48], [2, 52], [2, 59], [2, 68], [2, 71], [2, 78], [2, 79], [3, 4], [3, 5], [3, 6], [3, 8], [3, 9], [3, 10], [3, 12], [3, 13], [3, 14], [3, 15], [3, 16], [3, 18], [3, 20], [3, 22], [3, 23], [3, 24], [3, 25], [3, 26], [3, 27], [3, 29], [3, 30], [3, 32], [3, 33], [3, 35], [3, 36], [3, 37], [3, 38], [3, 40], [3, 42], [3, 43], [3, 44], [3, 45], [3, 47], [3, 48], [3, 51], [3, 52], [3, 54], [3, 55], [3, 56], [3, 59], [3, 60], [3, 64], [3, 65], [3, 66], [3, 67], [3, 69], [3, 70], [3, 71], [3, 72], [3, 74], [3, 75], [3, 76], [3, 77], [3, 78], [3, 79], [4, 5], [4, 6], [4, 8], [4, 14], [4, 16], [4, 17], [4, 18], [4, 22], [4, 27], [4, 28], [4, 29], [4, 32], [4, 33], [4, 34], [4, 35], [4, 36], [4, 37], [4, 38], [4, 39], [4, 41], [4, 42], [4, 43], [4, 44], [4, 45], [4, 47], [4, 50], [4, 51], [4, 52], [4, 56], [4, 58], [4, 60], [4, 61], [4, 64], [4, 65], [4, 66], [4, 67], [4, 68], [4, 69], [4, 71], [4, 72], [4, 74], [4, 75], [4, 78], [4, 79], [5, 7], [5, 9], [5, 10], [5, 11], [5, 12], [5, 13], [5, 14], [5, 15], [5, 16], [5, 19], [5, 21], [5, 22], [5, 23], [5, 24], [5, 25], [5, 28], [5, 33], [5, 36], [5, 37], [5, 38], [5, 39], [5, 40], [5, 42], [5, 44], [5, 45], [5, 46], [5, 48], [5, 51], [5, 54], [5, 56], [5, 58], [5, 59], [5, 62], [5, 63], [5, 65], [5, 66], [5, 68], [5, 70], [5, 71], [5, 72], [5, 73], [5, 74], [5, 75], [5, 76], [5, 77], [5, 78], [5, 79], [6, 9], [6, 10], [6, 20], [6, 32], [6, 35], [6, 36], [6, 43], [6, 51], [6, 56], [6, 59], [6, 68], [6, 69], [6, 70], [6, 71], [6, 72], [6, 74], [6, 75], [6, 78], [7, 8], [7, 16], [7, 21], [7, 29], [7, 32], [7, 35], [7, 37], [7, 38], [7, 42], [7, 48], [7, 51], [7, 52], [7, 59], [7, 62], [7, 65], [7, 69], [7, 71], [7, 72], [7, 75], [7, 79], [8, 12], [8, 14], [8, 16], [8, 17], [8, 20], [8, 21], [8, 22], [8, 23], [8, 24], [8, 25], [8, 28], [8, 29], [8, 31], [8, 32], [8, 34], [8, 35], [8, 36], [8, 37], [8, 38], [8, 41], [8, 42], [8, 43], [8, 45], [8, 46], [8, 47], [8, 48], [8, 50], [8, 52], [8, 55], [8, 56], [8, 57], [8, 58], [8, 59], [8, 62], [8, 64], [8, 65], [8, 66], [8, 70], [8, 71], [8, 74], [8, 75], [8, 76], [8, 77], [8, 78], [8, 79], [9, 10], [9, 12], [9, 13], [9, 16], [9, 17], [9, 18], [9, 19], [9, 20], [9, 21], [9, 23], [9, 24], [9, 25], [9, 26], [9, 27], [9, 29], [9, 32], [9, 34], [9, 35], [9, 36], [9, 38], [9, 39], [9, 41], [9, 42], [9, 43], [9, 47], [9, 48], [9, 49], [9, 51], [9, 52], [9, 55], [9, 58], [9, 59], [9, 60], [9, 63], [9, 65], [9, 66], [9, 68], [9, 69], [9, 70], [9, 71], [9, 72], [9, 73], [9, 74], [9, 75], [9, 78], [9, 79], [10, 11], [10, 13], [10, 14], [10, 15], [10, 16], [10, 18], [10, 20], [10, 22], [10, 26], [10, 28], [10, 29], [10, 34], [10, 35], [10, 36], [10, 37], [10, 38], [10, 42], [10, 43], [10, 44], [10, 45], [10, 46], [10, 48], [10, 51], [10, 54], [10, 55], [10, 57], [10, 58], [10, 60], [10, 61], [10, 62], [10, 63], [10, 64], [10, 65], [10, 68], [10, 70], [10, 71], [10, 73], [10, 75], [10, 78], [10, 79], [11, 16], [11, 17], [11, 18], [11, 35], [11, 37], [11, 42], [11, 43], [11, 48], [11, 51], [11, 52], [11, 66], [11, 68], [11, 69], [11, 70], [11, 74], [11, 78], [11, 79], [12, 15], [12, 16], [12, 18], [12, 20], [12, 21], [12, 35], [12, 43], [12, 48], [12, 56], [12, 59], [12, 62], [12, 68], [12, 71], [12, 72], [12, 74], [13, 21], [13, 29], [13, 32], [13, 35], [13, 36], [13, 37], [13, 38], [13, 43], [13, 56], [13, 62], [13, 65], [13, 66], [13, 68], [13, 69], [13, 70], [13, 72], [13, 74], [14, 15], [14, 16], [14, 17], [14, 18], [14, 35], [14, 37], [14, 42], [14, 43], [14, 47], [14, 51], [14, 56], [14, 68], [14, 69], [14, 70], [14, 71], [14, 74], [14, 78], [15, 16], [15, 17], [15, 18], [15, 19], [15, 20], [15, 21], [15, 25], [15, 27], [15, 28], [15, 32], [15, 35], [15, 36], [15, 39], [15, 41], [15, 42], [15, 44], [15, 46], [15, 47], [15, 48], [15, 49], [15, 51], [15, 52], [15, 56], [15, 57], [15, 59], [15, 60], [15, 62], [15, 63], [15, 64], [15, 65], [15, 66], [15, 69], [15, 70], [15, 71], [15, 72], [15, 74], [15, 75], [15, 77], [15, 78], [15, 79], [16, 17], [16, 20], [16, 21], [16, 22], [16, 23], [16, 26], [16, 28], [16, 30], [16, 33], [16, 34], [16, 35], [16, 36], [16, 37], [16, 38], [16, 39], [16, 41], [16, 42], [16, 43], [16, 45], [16, 47], [16, 48], [16, 51], [16, 52], [16, 53], [16, 54], [16, 55], [16, 56], [16, 57], [16, 59], [16, 61], [16, 63], [16, 65], [16, 66], [16, 67], [16, 68], [16, 70], [16, 71], [16, 74], [16, 75], [16, 76], [16, 77], [16, 78], [17, 18], [17, 20], [17, 21], [17, 22], [17, 30], [17, 31], [17, 32], [17, 33], [17, 34], [17, 35], [17, 36], [17, 37], [17, 38], [17, 42], [17, 44], [17, 45], [17, 48], [17, 50], [17, 51], [17, 52], [17, 53], [17, 55], [17, 56], [17, 57], [17, 60], [17, 63], [17, 64], [17, 65], [17, 66], [17, 69], [17, 72], [17, 74], [17, 75], [17, 78], [18, 21], [18, 25], [18, 26], [18, 29], [18, 30], [18, 32], [18, 33], [18, 34], [18, 35], [18, 36], [18, 37], [18, 38], [18, 40], [18, 42], [18, 43], [18, 44], [18, 45], [18, 47], [18, 49], [18, 53], [18, 55], [18, 56], [18, 57], [18, 58], [18, 61], [18, 62], [18, 63], [18, 64], [18, 65], [18, 68], [18, 69], [18, 70], [18, 71], [18, 72], [18, 75], [18, 78], [18, 79], [19, 35], [19, 37], [19, 38], [19, 43], [19, 47], [19, 51], [19, 56], [19, 59], [19, 62], [19, 65], [19, 68], [19, 69], [19, 70], [19, 72], [19, 74], [19, 75], [20, 21], [20, 22], [20, 25], [20, 26], [20, 29], [20, 30], [20, 31], [20, 32], [20, 34], [20, 35], [20, 36], [20, 38], [20, 40], [20, 41], [20, 42], [20, 43], [20, 44], [20, 45], [20, 48], [20, 49], [20, 50], [20, 52], [20, 53], [20, 54], [20, 55], [20, 56], [20, 62], [20, 65], [20, 66], [20, 68], [20, 69], [20, 70], [20, 71], [20, 72], [20, 73], [20, 74], [20, 76], [20, 77], [20, 78], [21, 22], [21, 23], [21, 25], [21, 28], [21, 29], [21, 31], [21, 32], [21, 33], [21, 35], [21, 38], [21, 42], [21, 43], [21, 47], [21, 48], [21, 50], [21, 51], [21, 52], [21, 53], [21, 55], [21, 56], [21, 57], [21, 58], [21, 59], [21, 60], [21, 63], [21, 64], [21, 65], [21, 66], [21, 68], [21, 70], [21, 75], [21, 76], [21, 77], [21, 78], [21, 79], [22, 29], [22, 43], [22, 51], [22, 65], [22, 69], [22, 71], [22, 72], [22, 74], [22, 75], [23, 32], [23, 35], [23, 37], [23, 48], [23, 51], [23, 52], [23, 59], [23, 62], [23, 65], [23, 68], [23, 69], [23, 70], [23, 72], [23, 74], [23, 78], [24, 32], [24, 35], [24, 36], [24, 38], [24, 43], [24, 47], [24, 48], [24, 51], [24, 56], [24, 59], [24, 68], [24, 70], [24, 74], [24, 75], [24, 78], [25, 29], [25, 36], [25, 43], [25, 47], [25, 52], [25, 59], [25, 62], [25, 65], [25, 69], [25, 71], [25, 74], [25, 78], [26, 32], [26, 35], [26, 36], [26, 37], [26, 38], [26, 47], [26, 48], [26, 51], [26, 52], [26, 59], [26, 62], [26, 68], [26, 71], [26, 72], [26, 74], [27, 29], [27, 32], [27, 35], [27, 38], [27, 42], [27, 47], [27, 48], [27, 56], [27, 59], [27, 69], [27, 72], [27, 74], [27, 75], [27, 78], [27, 79], [28, 29], [28, 32], [28, 37], [28, 42], [28, 43], [28, 51], [28, 56], [28, 69], [28, 70], [28, 71], [28, 72], [28, 74], [28, 75], [28, 78], [28, 79], [29, 35], [29, 36], [29, 37], [29, 39], [29, 41], [29, 43], [29, 45], [29, 47], [29, 48], [29, 51], [29, 56], [29, 57], [29, 58], [29, 59], [29, 60], [29, 61], [29, 62], [29, 63], [29, 64], [29, 66], [29, 68], [29, 69], [29, 71], [29, 72], [29, 74], [29, 75], [29, 77], [29, 78], [30, 36], [30, 37], [30, 42], [30, 43], [30, 47], [30, 52], [30, 62], [30, 65], [30, 66], [30, 68], [30, 69], [30, 70], [30, 72], [30, 75], [30, 78], [31, 32], [31, 35], [31, 36], [31, 37], [31, 42], [31, 47], [31, 48], [31, 59], [31, 62], [31, 66], [31, 69], [31, 70], [31, 71], [31, 75], [31, 78], [31, 79], [32, 33], [32, 34], [32, 36], [32, 38], [32, 39], [32, 40], [32, 41], [32, 42], [32, 43], [32, 45], [32, 47], [32, 48], [32, 52], [32, 53], [32, 55], [32, 56], [32, 58], [32, 59], [32, 60], [32, 62], [32, 63], [32, 64], [32, 65], [32, 66], [32, 68], [32, 69], [32, 70], [32, 71], [32, 72], [32, 73], [32, 74], [32, 76], [32, 77], [32, 78], [32, 79], [33, 51], [33, 59], [33, 65], [33, 66], [33, 68], [33, 69], [33, 70], [33, 74], [33, 78], [34, 36], [34, 42], [34, 43], [34, 47], [34, 48], [34, 52], [34, 56], [34, 70], [34, 72], [35, 36], [35, 37], [35, 40], [35, 41], [35, 42], [35, 43], [35, 46], [35, 49], [35, 50], [35, 51], [35, 53], [35, 54], [35, 55], [35, 56], [35, 57], [35, 61], [35, 62], [35, 63], [35, 64], [35, 65], [35, 67], [35, 68], [35, 69], [35, 70], [35, 71], [35, 72], [35, 75], [35, 77], [35, 78], [35, 79], [36, 37], [36, 40], [36, 42], [36, 43], [36, 45], [36, 47], [36, 48], [36, 50], [36, 53], [36, 56], [36, 59], [36, 61], [36, 62], [36, 63], [36, 64], [36, 65], [36, 68], [36, 69], [36, 70], [36, 71], [36, 74], [36, 75], [36, 77], [36, 78], [36, 79], [37, 38], [37, 39], [37, 40], [37, 41], [37, 42], [37, 43], [37, 47], [37, 49], [37, 50], [37, 51], [37, 52], [37, 54], [37, 56], [37, 57], [37, 58], [37, 59], [37, 62], [37, 64], [37, 66], [37, 67], [37, 68], [37, 69], [37, 70], [37, 72], [37, 74], [37, 75], [37, 76], [37, 77], [37, 79], [38, 40], [38, 42], [38, 43], [38, 45], [38, 47], [38, 48], [38, 50], [38, 51], [38, 52], [38, 53], [38, 54], [38, 55], [38, 56], [38, 57], [38, 61], [38, 63], [38, 64], [38, 65], [38, 67], [38, 68], [38, 69], [38, 70], [38, 71], [38, 74], [38, 75], [38, 77], [38, 78], [38, 79], [39, 42], [39, 43], [39, 48], [39, 56], [39, 59], [39, 62], [39, 66], [39, 68], [39, 70], [39, 72], [39, 78], [40, 47], [40, 48], [40, 52], [40, 56], [40, 59], [40, 65], [40, 68], [40, 72], [40, 74], [40, 75], [40, 79], [41, 42], [41, 43], [41, 47], [41, 48], [41, 51], [41, 52], [41, 56], [41, 65], [41, 66], [41, 68], [41, 69], [41, 70], [41, 71], [41, 74], [41, 75], [41, 78], [41, 79], [42, 44], [42, 46], [42, 47], [42, 48], [42, 50], [42, 51], [42, 52], [42, 53], [42, 54], [42, 55], [42, 56], [42, 59], [42, 60], [42, 61], [42, 62], [42, 65], [42, 66], [42, 67], [42, 68], [42, 69], [42, 70], [42, 71], [42, 74], [42, 75], [42, 76], [42, 77], [42, 79], [43, 44], [43, 45], [43, 48], [43, 49], [43, 51], [43, 55], [43, 56], [43, 59], [43, 61], [43, 62], [43, 66], [43, 68], [43, 69], [43, 71], [43, 72], [43, 73], [43, 75], [43, 76], [43, 78], [43, 79], [44, 47], [44, 48], [44, 56], [44, 59], [44, 65], [44, 68], [44, 70], [44, 74], [44, 75], [44, 79], [45, 48], [45, 52], [45, 65], [45, 66], [45, 68], [45, 70], [45, 71], [45, 72], [45, 79], [46, 47], [46, 56], [46, 62], [46, 66], [46, 68], [46, 71], [47, 48], [47, 49], [47, 50], [47, 51], [47, 52], [47, 54], [47, 56], [47, 57], [47, 59], [47, 60], [47, 62], [47, 63], [47, 65], [47, 66], [47, 67], [47, 68], [47, 69], [47, 71], [47, 72], [47, 75], [47, 76], [47, 77], [47, 78], [47, 79], [48, 51], [48, 52], [48, 54], [48, 56], [48, 59], [48, 61], [48, 66], [48, 68], [48, 69], [48, 70], [48, 71], [48, 72], [48, 74], [48, 75], [48, 77], [48, 78], [48, 79], [49, 51], [49, 52], [49, 65], [49, 69], [49, 71], [49, 74], [49, 75], [49, 78], [50, 56], [50, 59], [50, 62], [50, 65], [50, 66], [50, 72], [50, 74], [51, 52], [51, 53], [51, 54], [51, 55], [51, 56], [51, 59], [51, 61], [51, 62], [51, 64], [51, 65], [51, 66], [51, 68], [51, 70], [51, 72], [51, 74], [51, 76], [51, 77], [51, 78], [52, 53], [52, 54], [52, 56], [52, 57], [52, 58], [52, 62], [52, 63], [52, 64], [52, 65], [52, 66], [52, 68], [52, 69], [52, 71], [52, 72], [52, 74], [52, 78], [52, 79], [53, 59], [53, 68], [53, 69], [53, 71], [53, 74], [53, 75], [53, 79], [54, 56], [54, 59], [54, 65], [54, 66], [54, 68], [54, 72], [54, 74], [54, 78], [55, 65], [55, 66], [55, 71], [55, 72], [55, 78], [56, 57], [56, 60], [56, 64], [56, 65], [56, 66], [56, 68], [56, 69], [56, 70], [56, 71], [56, 72], [56, 74], [56, 75], [56, 79], [57, 59], [57, 62], [57, 65], [57, 66], [57, 68], [57, 69], [57, 71], [57, 72], [57, 74], [57, 75], [57, 78], [57, 79], [58, 62], [58, 68], [58, 69], [58, 72], [58, 74], [58, 78], [59, 61], [59, 62], [59, 63], [59, 65], [59, 66], [59, 67], [59, 69], [59, 72], [59, 74], [59, 75], [60, 62], [60, 65], [60, 66], [60, 68], [60, 71], [60, 72], [60, 74], [60, 78], [61, 65], [61, 66], [61, 69], [61, 70], [61, 72], [61, 75], [61, 78], [62, 65], [62, 66], [62, 67], [62, 68], [62, 69], [62, 70], [62, 71], [62, 74], [62, 76], [62, 77], [62, 79], [63, 66], [63, 69], [63, 70], [63, 72], [63, 74], [63, 75], [63, 78], [63, 79], [64, 65], [64, 66], [64, 71], [64, 72], [64, 79], [65, 66], [65, 68], [65, 70], [65, 71], [65, 72], [65, 73], [65, 74], [65, 75], [65, 78], [65, 79], [66, 68], [66, 70], [66, 71], [66, 72], [66, 73], [66, 74], [66, 77], [66, 78], [66, 79], [67, 68], [67, 69], [67, 72], [67, 74], [67, 75], [67, 78], [67, 79], [68, 69], [68, 71], [68, 72], [68, 74], [68, 76], [68, 77], [68, 78], [69, 70], [69, 71], [69, 72], [69, 75], [69, 76], [69, 79], [70, 71], [70, 72], [70, 73], [70, 74], [70, 76], [70, 78], [70, 79], [71, 72], [71, 75], [71, 77], [71, 78], [72, 73], [72, 74], [72, 76], [72, 77], [72, 79], [73, 74], [73, 75], [73, 78], [74, 75], [74, 77], [74, 78], [74, 79], [76, 78], [77, 79], [78, 79]], "family": "nppc_vertex_cover", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-vertex-cover-l5-s1/tests/run.py b/tasks/construct-nppc-vertex-cover-l5-s1/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-nppc-vertex-cover-l5-s1/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-nppc-vertex-cover-l5-s1/tests/test.sh b/tasks/construct-nppc-vertex-cover-l5-s1/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-nppc-vertex-cover-l5-s1/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-nppc-vertex-cover-l5-s6/environment/Dockerfile b/tasks/construct-nppc-vertex-cover-l5-s6/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-nppc-vertex-cover-l5-s6/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-nppc-vertex-cover-l5-s6/environment/instance.json b/tasks/construct-nppc-vertex-cover-l5-s6/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..3bea60f260f31633c1abdf0852260ddc1ef3de27 --- /dev/null +++ b/tasks/construct-nppc-vertex-cover-l5-s6/environment/instance.json @@ -0,0 +1 @@ +{"num_nodes": 80, "k": 40, "edges": [[0, 1], [0, 4], [0, 5], [0, 12], [0, 16], [0, 21], [0, 32], [0, 34], [0, 42], [0, 45], [0, 50], [0, 51], [0, 55], [0, 62], [0, 63], [0, 65], [0, 69], [0, 72], [1, 3], [1, 4], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 13], [1, 14], [1, 15], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 25], [1, 26], [1, 27], [1, 30], [1, 31], [1, 32], [1, 34], [1, 35], [1, 36], [1, 37], [1, 38], [1, 39], [1, 41], [1, 42], [1, 44], [1, 45], [1, 47], [1, 49], [1, 50], [1, 54], [1, 55], [1, 56], [1, 57], [1, 60], [1, 61], [1, 62], [1, 64], [1, 65], [1, 66], [1, 67], [1, 68], [1, 72], [1, 74], [1, 76], [1, 77], [1, 79], [2, 4], [2, 8], [2, 13], [2, 18], [2, 21], [2, 27], [2, 32], [2, 34], [2, 38], [2, 41], [2, 46], [2, 50], [2, 51], [2, 56], [2, 57], [2, 63], [2, 64], [2, 67], [2, 69], [2, 70], [2, 74], [3, 4], [3, 5], [3, 9], [3, 13], [3, 16], [3, 18], [3, 23], [3, 32], [3, 38], [3, 41], [3, 44], [3, 45], [3, 46], [3, 50], [3, 51], [3, 52], [3, 55], [3, 56], [3, 57], [3, 65], [3, 67], [3, 68], [3, 69], [3, 70], [3, 72], [3, 75], [3, 77], [4, 5], [4, 7], [4, 8], [4, 9], [4, 12], [4, 13], [4, 18], [4, 23], [4, 25], [4, 27], [4, 30], [4, 32], [4, 33], [4, 34], [4, 35], [4, 36], [4, 38], [4, 39], [4, 40], [4, 44], [4, 45], [4, 46], [4, 48], [4, 49], [4, 51], [4, 52], [4, 54], [4, 55], [4, 56], [4, 58], [4, 60], [4, 62], [4, 66], [4, 67], [4, 68], [4, 69], [4, 71], [4, 72], [4, 73], [4, 74], [4, 75], [4, 76], [4, 77], [4, 78], [5, 6], [5, 8], [5, 11], [5, 12], [5, 13], [5, 14], [5, 16], [5, 17], [5, 19], [5, 21], [5, 22], [5, 23], [5, 24], [5, 26], [5, 27], [5, 30], [5, 31], [5, 32], [5, 33], [5, 34], [5, 35], [5, 36], [5, 38], [5, 41], [5, 42], [5, 44], [5, 45], [5, 47], [5, 49], [5, 50], [5, 51], [5, 52], [5, 55], [5, 56], [5, 57], [5, 58], [5, 59], [5, 61], [5, 63], [5, 64], [5, 65], [5, 66], [5, 67], [5, 69], [5, 71], [5, 72], [5, 73], [5, 74], [5, 76], [5, 77], [5, 78], [6, 12], [6, 14], [6, 18], [6, 21], [6, 23], [6, 27], [6, 36], [6, 41], [6, 45], [6, 46], [6, 50], [6, 51], [6, 52], [6, 55], [6, 62], [6, 63], [6, 65], [6, 67], [6, 70], [6, 75], [7, 9], [7, 21], [7, 23], [7, 34], [7, 36], [7, 38], [7, 44], [7, 45], [7, 50], [7, 51], [7, 52], [7, 55], [7, 56], [7, 63], [7, 64], [7, 68], [7, 70], [7, 74], [7, 75], [7, 77], [8, 9], [8, 12], [8, 13], [8, 14], [8, 15], [8, 16], [8, 17], [8, 18], [8, 19], [8, 20], [8, 21], [8, 22], [8, 23], [8, 28], [8, 29], [8, 32], [8, 34], [8, 37], [8, 42], [8, 44], [8, 45], [8, 46], [8, 48], [8, 50], [8, 51], [8, 52], [8, 53], [8, 55], [8, 56], [8, 61], [8, 62], [8, 63], [8, 64], [8, 66], [8, 67], [8, 68], [8, 69], [8, 70], [8, 72], [8, 73], [8, 75], [8, 77], [8, 78], [9, 10], [9, 11], [9, 13], [9, 14], [9, 15], [9, 16], [9, 17], [9, 18], [9, 20], [9, 21], [9, 22], [9, 24], [9, 26], [9, 27], [9, 33], [9, 34], [9, 35], [9, 36], [9, 41], [9, 42], [9, 43], [9, 44], [9, 45], [9, 46], [9, 47], [9, 49], [9, 50], [9, 51], [9, 52], [9, 55], [9, 56], [9, 57], [9, 58], [9, 59], [9, 60], [9, 61], [9, 63], [9, 64], [9, 65], [9, 67], [9, 68], [9, 69], [9, 70], [9, 71], [9, 72], [9, 73], [9, 74], [9, 75], [9, 76], [9, 77], [9, 78], [10, 12], [10, 13], [10, 14], [10, 16], [10, 18], [10, 23], [10, 27], [10, 32], [10, 36], [10, 38], [10, 45], [10, 50], [10, 51], [10, 52], [10, 56], [10, 62], [10, 63], [10, 70], [10, 72], [10, 75], [11, 12], [11, 16], [11, 27], [11, 32], [11, 36], [11, 38], [11, 41], [11, 42], [11, 44], [11, 46], [11, 52], [11, 55], [11, 62], [11, 64], [11, 65], [11, 68], [11, 74], [12, 13], [12, 15], [12, 16], [12, 18], [12, 19], [12, 20], [12, 22], [12, 23], [12, 25], [12, 26], [12, 27], [12, 31], [12, 32], [12, 34], [12, 36], [12, 38], [12, 41], [12, 43], [12, 46], [12, 47], [12, 49], [12, 50], [12, 51], [12, 52], [12, 54], [12, 55], [12, 56], [12, 57], [12, 59], [12, 60], [12, 61], [12, 62], [12, 63], [12, 65], [12, 66], [12, 67], [12, 68], [12, 70], [12, 71], [12, 72], [12, 75], [12, 76], [12, 77], [12, 78], [12, 79], [13, 14], [13, 15], [13, 16], [13, 18], [13, 19], [13, 20], [13, 26], [13, 27], [13, 30], [13, 31], [13, 32], [13, 34], [13, 35], [13, 36], [13, 37], [13, 39], [13, 41], [13, 42], [13, 44], [13, 45], [13, 49], [13, 53], [13, 54], [13, 55], [13, 56], [13, 57], [13, 59], [13, 60], [13, 64], [13, 66], [13, 67], [13, 68], [13, 69], [13, 70], [13, 71], [13, 72], [13, 75], [13, 77], [13, 79], [14, 15], [14, 16], [14, 19], [14, 20], [14, 21], [14, 23], [14, 24], [14, 25], [14, 27], [14, 31], [14, 32], [14, 33], [14, 34], [14, 37], [14, 38], [14, 39], [14, 42], [14, 43], [14, 46], [14, 48], [14, 49], [14, 50], [14, 52], [14, 53], [14, 56], [14, 58], [14, 59], [14, 60], [14, 62], [14, 64], [14, 65], [14, 68], [14, 69], [14, 71], [14, 72], [14, 73], [14, 74], [14, 75], [14, 76], [14, 77], [14, 78], [14, 79], [15, 18], [15, 23], [15, 27], [15, 34], [15, 36], [15, 44], [15, 46], [15, 52], [15, 56], [15, 57], [15, 63], [15, 65], [15, 68], [15, 70], [15, 72], [16, 20], [16, 21], [16, 22], [16, 27], [16, 30], [16, 31], [16, 32], [16, 33], [16, 34], [16, 35], [16, 36], [16, 37], [16, 38], [16, 39], [16, 40], [16, 41], [16, 42], [16, 43], [16, 44], [16, 45], [16, 46], [16, 48], [16, 50], [16, 51], [16, 52], [16, 53], [16, 55], [16, 56], [16, 58], [16, 59], [16, 62], [16, 63], [16, 65], [16, 66], [16, 68], [16, 69], [16, 70], [16, 72], [16, 74], [16, 75], [16, 76], [16, 77], [16, 79], [17, 18], [17, 27], [17, 32], [17, 42], [17, 44], [17, 50], [17, 51], [17, 52], [17, 55], [17, 56], [17, 63], [17, 65], [17, 67], [17, 69], [17, 75], [18, 21], [18, 22], [18, 25], [18, 27], [18, 29], [18, 31], [18, 32], [18, 33], [18, 34], [18, 35], [18, 36], [18, 37], [18, 38], [18, 41], [18, 42], [18, 44], [18, 45], [18, 46], [18, 48], [18, 49], [18, 50], [18, 53], [18, 55], [18, 56], [18, 57], [18, 58], [18, 59], [18, 62], [18, 63], [18, 64], [18, 65], [18, 66], [18, 67], [18, 69], [18, 70], [18, 71], [18, 74], [18, 75], [18, 76], [18, 77], [18, 78], [18, 79], [19, 21], [19, 32], [19, 34], [19, 36], [19, 41], [19, 44], [19, 45], [19, 46], [19, 50], [19, 55], [19, 56], [19, 57], [19, 64], [19, 67], [19, 69], [19, 74], [19, 75], [19, 77], [20, 34], [20, 38], [20, 41], [20, 44], [20, 46], [20, 50], [20, 52], [20, 57], [20, 62], [20, 64], [20, 65], [20, 67], [20, 68], [20, 72], [20, 74], [20, 77], [21, 23], [21, 25], [21, 28], [21, 29], [21, 31], [21, 33], [21, 34], [21, 35], [21, 36], [21, 41], [21, 42], [21, 43], [21, 44], [21, 45], [21, 46], [21, 47], [21, 49], [21, 50], [21, 51], [21, 52], [21, 54], [21, 55], [21, 58], [21, 59], [21, 61], [21, 63], [21, 64], [21, 65], [21, 66], [21, 67], [21, 68], [21, 69], [21, 70], [21, 71], [21, 72], [21, 73], [21, 75], [21, 77], [22, 32], [22, 36], [22, 38], [22, 41], [22, 42], [22, 44], [22, 52], [22, 62], [22, 63], [22, 64], [22, 65], [22, 67], [22, 69], [22, 72], [22, 77], [23, 25], [23, 26], [23, 29], [23, 31], [23, 32], [23, 35], [23, 38], [23, 40], [23, 41], [23, 42], [23, 43], [23, 44], [23, 45], [23, 47], [23, 48], [23, 49], [23, 50], [23, 51], [23, 52], [23, 54], [23, 57], [23, 62], [23, 64], [23, 65], [23, 66], [23, 67], [23, 69], [23, 70], [23, 71], [23, 74], [23, 75], [24, 27], [24, 32], [24, 36], [24, 38], [24, 42], [24, 44], [24, 45], [24, 46], [24, 62], [24, 64], [24, 67], [24, 68], [24, 69], [24, 70], [24, 72], [24, 74], [24, 77], [25, 36], [25, 38], [25, 41], [25, 42], [25, 45], [25, 50], [25, 56], [25, 62], [25, 63], [25, 65], [25, 68], [25, 69], [25, 70], [25, 72], [26, 27], [26, 34], [26, 42], [26, 44], [26, 55], [26, 57], [26, 65], [26, 67], [26, 68], [26, 72], [26, 74], [27, 28], [27, 29], [27, 30], [27, 31], [27, 32], [27, 33], [27, 36], [27, 37], [27, 39], [27, 42], [27, 46], [27, 48], [27, 50], [27, 51], [27, 52], [27, 54], [27, 55], [27, 56], [27, 57], [27, 62], [27, 63], [27, 64], [27, 68], [27, 69], [27, 70], [27, 72], [27, 73], [27, 74], [27, 77], [27, 78], [27, 79], [28, 38], [28, 41], [28, 46], [28, 50], [28, 52], [28, 57], [28, 62], [28, 63], [28, 64], [28, 65], [28, 67], [28, 70], [28, 72], [28, 74], [28, 75], [28, 77], [29, 32], [29, 34], [29, 41], [29, 42], [29, 44], [29, 46], [29, 51], [29, 52], [29, 55], [29, 57], [29, 67], [29, 70], [29, 72], [29, 75], [30, 32], [30, 36], [30, 42], [30, 51], [30, 55], [30, 62], [30, 63], [30, 64], [30, 65], [30, 67], [30, 72], [30, 74], [30, 75], [31, 38], [31, 45], [31, 51], [31, 52], [31, 55], [31, 56], [31, 65], [31, 67], [31, 69], [31, 72], [31, 74], [31, 75], [31, 77], [32, 35], [32, 36], [32, 37], [32, 38], [32, 41], [32, 42], [32, 43], [32, 44], [32, 45], [32, 46], [32, 50], [32, 51], [32, 52], [32, 55], [32, 56], [32, 57], [32, 58], [32, 59], [32, 61], [32, 62], [32, 63], [32, 64], [32, 65], [32, 67], [32, 69], [32, 70], [32, 72], [32, 74], [32, 75], [32, 79], [33, 34], [33, 41], [33, 42], [33, 46], [33, 56], [33, 64], [33, 67], [33, 68], [33, 72], [33, 74], [33, 77], [34, 38], [34, 39], [34, 40], [34, 41], [34, 43], [34, 45], [34, 47], [34, 48], [34, 51], [34, 52], [34, 53], [34, 54], [34, 55], [34, 56], [34, 59], [34, 60], [34, 61], [34, 62], [34, 63], [34, 64], [34, 66], [34, 67], [34, 68], [34, 69], [34, 70], [34, 71], [34, 72], [34, 73], [34, 75], [34, 79], [35, 36], [35, 41], [35, 46], [35, 50], [35, 52], [35, 55], [35, 56], [35, 57], [35, 64], [35, 67], [35, 70], [35, 72], [36, 37], [36, 38], [36, 40], [36, 41], [36, 42], [36, 44], [36, 45], [36, 48], [36, 50], [36, 51], [36, 52], [36, 53], [36, 55], [36, 57], [36, 60], [36, 62], [36, 63], [36, 65], [36, 66], [36, 67], [36, 68], [36, 69], [36, 71], [36, 72], [36, 73], [36, 75], [36, 76], [36, 77], [36, 78], [36, 79], [37, 41], [37, 45], [37, 46], [37, 50], [37, 56], [37, 62], [37, 67], [37, 77], [38, 41], [38, 42], [38, 45], [38, 47], [38, 48], [38, 50], [38, 51], [38, 52], [38, 53], [38, 54], [38, 55], [38, 56], [38, 58], [38, 60], [38, 61], [38, 69], [38, 71], [38, 74], [38, 75], [38, 77], [38, 78], [39, 41], [39, 45], [39, 46], [39, 50], [39, 51], [39, 55], [39, 56], [39, 57], [39, 62], [39, 67], [39, 68], [39, 69], [39, 70], [39, 72], [40, 44], [40, 45], [40, 50], [40, 55], [40, 56], [40, 57], [40, 62], [40, 64], [40, 67], [40, 68], [40, 69], [40, 75], [41, 42], [41, 43], [41, 44], [41, 45], [41, 46], [41, 47], [41, 48], [41, 49], [41, 52], [41, 53], [41, 54], [41, 55], [41, 56], [41, 57], [41, 59], [41, 61], [41, 62], [41, 63], [41, 65], [41, 67], [41, 68], [41, 69], [41, 70], [41, 72], [41, 73], [41, 74], [41, 75], [41, 77], [42, 46], [42, 47], [42, 48], [42, 49], [42, 50], [42, 51], [42, 52], [42, 54], [42, 55], [42, 56], [42, 58], [42, 59], [42, 60], [42, 63], [42, 65], [42, 68], [42, 69], [42, 70], [42, 72], [42, 74], [42, 78], [43, 45], [43, 50], [43, 55], [43, 57], [43, 74], [43, 75], [44, 45], [44, 50], [44, 52], [44, 53], [44, 55], [44, 56], [44, 57], [44, 60], [44, 63], [44, 64], [44, 65], [44, 68], [44, 69], [44, 70], [44, 72], [44, 73], [44, 74], [44, 77], [44, 79], [45, 47], [45, 49], [45, 50], [45, 51], [45, 52], [45, 53], [45, 54], [45, 56], [45, 57], [45, 58], [45, 62], [45, 64], [45, 65], [45, 67], [45, 70], [45, 71], [45, 72], [45, 73], [45, 74], [45, 75], [45, 77], [46, 47], [46, 51], [46, 56], [46, 57], [46, 59], [46, 60], [46, 61], [46, 62], [46, 63], [46, 64], [46, 67], [46, 68], [46, 69], [46, 70], [46, 71], [46, 73], [46, 74], [46, 76], [46, 77], [46, 78], [46, 79], [47, 50], [47, 52], [47, 56], [47, 63], [47, 70], [47, 72], [47, 75], [48, 52], [48, 55], [48, 62], [48, 64], [48, 65], [48, 68], [48, 69], [48, 70], [48, 72], [48, 75], [49, 50], [49, 51], [49, 52], [49, 55], [49, 57], [49, 62], [49, 63], [49, 70], [49, 75], [49, 77], [50, 51], [50, 53], [50, 54], [50, 55], [50, 56], [50, 57], [50, 58], [50, 59], [50, 62], [50, 63], [50, 64], [50, 65], [50, 67], [50, 68], [50, 70], [50, 71], [50, 72], [50, 74], [50, 77], [50, 79], [51, 53], [51, 54], [51, 55], [51, 56], [51, 58], [51, 61], [51, 62], [51, 63], [51, 64], [51, 66], [51, 67], [51, 68], [51, 70], [51, 72], [51, 74], [51, 75], [51, 76], [51, 77], [51, 78], [52, 54], [52, 55], [52, 56], [52, 60], [52, 62], [52, 63], [52, 64], [52, 65], [52, 67], [52, 68], [52, 69], [52, 70], [52, 73], [52, 74], [52, 75], [52, 77], [52, 78], [52, 79], [53, 55], [53, 57], [53, 67], [53, 72], [53, 77], [54, 55], [54, 56], [54, 62], [54, 64], [54, 67], [54, 68], [54, 70], [54, 74], [55, 56], [55, 57], [55, 58], [55, 59], [55, 62], [55, 66], [55, 67], [55, 68], [55, 70], [55, 72], [55, 74], [55, 77], [55, 78], [56, 57], [56, 58], [56, 62], [56, 64], [56, 65], [56, 67], [56, 68], [56, 69], [56, 70], [56, 71], [56, 72], [56, 74], [56, 77], [56, 78], [57, 58], [57, 64], [57, 65], [57, 66], [57, 67], [57, 71], [57, 72], [57, 73], [57, 74], [57, 75], [57, 78], [57, 79], [58, 64], [58, 65], [58, 69], [58, 70], [58, 74], [59, 64], [59, 68], [60, 63], [60, 64], [60, 65], [60, 67], [60, 69], [60, 70], [60, 72], [60, 75], [61, 62], [61, 63], [61, 64], [61, 68], [61, 72], [61, 74], [61, 77], [62, 63], [62, 65], [62, 66], [62, 67], [62, 68], [62, 69], [62, 71], [62, 73], [62, 74], [62, 75], [62, 77], [62, 78], [63, 64], [63, 65], [63, 68], [63, 70], [63, 72], [63, 73], [63, 74], [63, 75], [63, 76], [64, 65], [64, 66], [64, 67], [64, 68], [64, 69], [64, 70], [64, 71], [64, 73], [64, 75], [64, 76], [64, 77], [65, 66], [65, 67], [65, 68], [65, 69], [65, 70], [65, 71], [65, 73], [65, 75], [65, 77], [65, 78], [66, 67], [66, 72], [66, 74], [67, 68], [67, 72], [67, 74], [67, 75], [67, 76], [67, 77], [67, 78], [68, 70], [68, 75], [69, 70], [69, 75], [69, 76], [69, 77], [70, 72], [70, 74], [70, 75], [70, 78], [71, 72], [71, 77], [72, 73], [72, 75], [72, 77], [72, 78], [72, 79], [73, 75], [74, 76], [74, 78], [74, 79], [75, 76], [75, 77], [75, 78], [76, 77], [77, 78], [77, 79]], "family": "nppc_vertex_cover", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-vertex-cover-l5-s6/solution/solve.sh b/tasks/construct-nppc-vertex-cover-l5-s6/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..f0914680d02e52ebe1595f138ea4b48ef872a64e --- /dev/null +++ b/tasks/construct-nppc-vertex-cover-l5-s6/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"cover": [1, 4, 5, 8, 9, 12, 13, 14, 16, 18, 21, 23, 27, 32, 34, 36, 38, 41, 42, 44, 45, 46, 50, 51, 52, 55, 56, 57, 62, 63, 64, 65, 67, 68, 69, 70, 72, 74, 75, 77]} +RLMATH_EOF diff --git a/tasks/construct-nppc-vertex-cover-l5-s6/tests/check.py b/tasks/construct-nppc-vertex-cover-l5-s6/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..d8ed740cc660c4837d941a8d70ea394c3bc9f69e --- /dev/null +++ b/tasks/construct-nppc-vertex-cover-l5-s6/tests/check.py @@ -0,0 +1,18 @@ +"""Vertex cover of size <= k. Accepts any valid cover.""" +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["num_nodes"], inst["k"] + # upstream NPPC verifier converts to a set without type checks (floats/bools slip through and + # duplicates are silently merged); here entries must be distinct ints in range + c = int_list(ans.get("cover"), None, 0, n - 1, "cover") + if len(set(c)) != len(c): + raise Invalid("cover contains duplicates") + if len(c) > k: + raise Invalid(f"cover has {len(c)} > {k} vertices") + s = set(c) + for u, v in inst["edges"]: + if u not in s and v not in s: + raise Invalid(f"edge ({u},{v}) not covered") + return None, {"size": len(c)} diff --git a/tasks/construct-nppc-vertex-cover-l5-s6/tests/instance.json b/tasks/construct-nppc-vertex-cover-l5-s6/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..3bea60f260f31633c1abdf0852260ddc1ef3de27 --- /dev/null +++ b/tasks/construct-nppc-vertex-cover-l5-s6/tests/instance.json @@ -0,0 +1 @@ +{"num_nodes": 80, "k": 40, "edges": [[0, 1], [0, 4], [0, 5], [0, 12], [0, 16], [0, 21], [0, 32], [0, 34], [0, 42], [0, 45], [0, 50], [0, 51], [0, 55], [0, 62], [0, 63], [0, 65], [0, 69], [0, 72], [1, 3], [1, 4], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 13], [1, 14], [1, 15], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 25], [1, 26], [1, 27], [1, 30], [1, 31], [1, 32], [1, 34], [1, 35], [1, 36], [1, 37], [1, 38], [1, 39], [1, 41], [1, 42], [1, 44], [1, 45], [1, 47], [1, 49], [1, 50], [1, 54], [1, 55], [1, 56], [1, 57], [1, 60], [1, 61], [1, 62], [1, 64], [1, 65], [1, 66], [1, 67], [1, 68], [1, 72], [1, 74], [1, 76], [1, 77], [1, 79], [2, 4], [2, 8], [2, 13], [2, 18], [2, 21], [2, 27], [2, 32], [2, 34], [2, 38], [2, 41], [2, 46], [2, 50], [2, 51], [2, 56], [2, 57], [2, 63], [2, 64], [2, 67], [2, 69], [2, 70], [2, 74], [3, 4], [3, 5], [3, 9], [3, 13], [3, 16], [3, 18], [3, 23], [3, 32], [3, 38], [3, 41], [3, 44], [3, 45], [3, 46], [3, 50], [3, 51], [3, 52], [3, 55], [3, 56], [3, 57], [3, 65], [3, 67], [3, 68], [3, 69], [3, 70], [3, 72], [3, 75], [3, 77], [4, 5], [4, 7], [4, 8], [4, 9], [4, 12], [4, 13], [4, 18], [4, 23], [4, 25], [4, 27], [4, 30], [4, 32], [4, 33], [4, 34], [4, 35], [4, 36], [4, 38], [4, 39], [4, 40], [4, 44], [4, 45], [4, 46], [4, 48], [4, 49], [4, 51], [4, 52], [4, 54], [4, 55], [4, 56], [4, 58], [4, 60], [4, 62], [4, 66], [4, 67], [4, 68], [4, 69], [4, 71], [4, 72], [4, 73], [4, 74], [4, 75], [4, 76], [4, 77], [4, 78], [5, 6], [5, 8], [5, 11], [5, 12], [5, 13], [5, 14], [5, 16], [5, 17], [5, 19], [5, 21], [5, 22], [5, 23], [5, 24], [5, 26], [5, 27], [5, 30], [5, 31], [5, 32], [5, 33], [5, 34], [5, 35], [5, 36], [5, 38], [5, 41], [5, 42], [5, 44], [5, 45], [5, 47], [5, 49], [5, 50], [5, 51], [5, 52], [5, 55], [5, 56], [5, 57], [5, 58], [5, 59], [5, 61], [5, 63], [5, 64], [5, 65], [5, 66], [5, 67], [5, 69], [5, 71], [5, 72], [5, 73], [5, 74], [5, 76], [5, 77], [5, 78], [6, 12], [6, 14], [6, 18], [6, 21], [6, 23], [6, 27], [6, 36], [6, 41], [6, 45], [6, 46], [6, 50], [6, 51], [6, 52], [6, 55], [6, 62], [6, 63], [6, 65], [6, 67], [6, 70], [6, 75], [7, 9], [7, 21], [7, 23], [7, 34], [7, 36], [7, 38], [7, 44], [7, 45], [7, 50], [7, 51], [7, 52], [7, 55], [7, 56], [7, 63], [7, 64], [7, 68], [7, 70], [7, 74], [7, 75], [7, 77], [8, 9], [8, 12], [8, 13], [8, 14], [8, 15], [8, 16], [8, 17], [8, 18], [8, 19], [8, 20], [8, 21], [8, 22], [8, 23], [8, 28], [8, 29], [8, 32], [8, 34], [8, 37], [8, 42], [8, 44], [8, 45], [8, 46], [8, 48], [8, 50], [8, 51], [8, 52], [8, 53], [8, 55], [8, 56], [8, 61], [8, 62], [8, 63], [8, 64], [8, 66], [8, 67], [8, 68], [8, 69], [8, 70], [8, 72], [8, 73], [8, 75], [8, 77], [8, 78], [9, 10], [9, 11], [9, 13], [9, 14], [9, 15], [9, 16], [9, 17], [9, 18], [9, 20], [9, 21], [9, 22], [9, 24], [9, 26], [9, 27], [9, 33], [9, 34], [9, 35], [9, 36], [9, 41], [9, 42], [9, 43], [9, 44], [9, 45], [9, 46], [9, 47], [9, 49], [9, 50], [9, 51], [9, 52], [9, 55], [9, 56], [9, 57], [9, 58], [9, 59], [9, 60], [9, 61], [9, 63], [9, 64], [9, 65], [9, 67], [9, 68], [9, 69], [9, 70], [9, 71], [9, 72], [9, 73], [9, 74], [9, 75], [9, 76], [9, 77], [9, 78], [10, 12], [10, 13], [10, 14], [10, 16], [10, 18], [10, 23], [10, 27], [10, 32], [10, 36], [10, 38], [10, 45], [10, 50], [10, 51], [10, 52], [10, 56], [10, 62], [10, 63], [10, 70], [10, 72], [10, 75], [11, 12], [11, 16], [11, 27], [11, 32], [11, 36], [11, 38], [11, 41], [11, 42], [11, 44], [11, 46], [11, 52], [11, 55], [11, 62], [11, 64], [11, 65], [11, 68], [11, 74], [12, 13], [12, 15], [12, 16], [12, 18], [12, 19], [12, 20], [12, 22], [12, 23], [12, 25], [12, 26], [12, 27], [12, 31], [12, 32], [12, 34], [12, 36], [12, 38], [12, 41], [12, 43], [12, 46], [12, 47], [12, 49], [12, 50], [12, 51], [12, 52], [12, 54], [12, 55], [12, 56], [12, 57], [12, 59], [12, 60], [12, 61], [12, 62], [12, 63], [12, 65], [12, 66], [12, 67], [12, 68], [12, 70], [12, 71], [12, 72], [12, 75], [12, 76], [12, 77], [12, 78], [12, 79], [13, 14], [13, 15], [13, 16], [13, 18], [13, 19], [13, 20], [13, 26], [13, 27], [13, 30], [13, 31], [13, 32], [13, 34], [13, 35], [13, 36], [13, 37], [13, 39], [13, 41], [13, 42], [13, 44], [13, 45], [13, 49], [13, 53], [13, 54], [13, 55], [13, 56], [13, 57], [13, 59], [13, 60], [13, 64], [13, 66], [13, 67], [13, 68], [13, 69], [13, 70], [13, 71], [13, 72], [13, 75], [13, 77], [13, 79], [14, 15], [14, 16], [14, 19], [14, 20], [14, 21], [14, 23], [14, 24], [14, 25], [14, 27], [14, 31], [14, 32], [14, 33], [14, 34], [14, 37], [14, 38], [14, 39], [14, 42], [14, 43], [14, 46], [14, 48], [14, 49], [14, 50], [14, 52], [14, 53], [14, 56], [14, 58], [14, 59], [14, 60], [14, 62], [14, 64], [14, 65], [14, 68], [14, 69], [14, 71], [14, 72], [14, 73], [14, 74], [14, 75], [14, 76], [14, 77], [14, 78], [14, 79], [15, 18], [15, 23], [15, 27], [15, 34], [15, 36], [15, 44], [15, 46], [15, 52], [15, 56], [15, 57], [15, 63], [15, 65], [15, 68], [15, 70], [15, 72], [16, 20], [16, 21], [16, 22], [16, 27], [16, 30], [16, 31], [16, 32], [16, 33], [16, 34], [16, 35], [16, 36], [16, 37], [16, 38], [16, 39], [16, 40], [16, 41], [16, 42], [16, 43], [16, 44], [16, 45], [16, 46], [16, 48], [16, 50], [16, 51], [16, 52], [16, 53], [16, 55], [16, 56], [16, 58], [16, 59], [16, 62], [16, 63], [16, 65], [16, 66], [16, 68], [16, 69], [16, 70], [16, 72], [16, 74], [16, 75], [16, 76], [16, 77], [16, 79], [17, 18], [17, 27], [17, 32], [17, 42], [17, 44], [17, 50], [17, 51], [17, 52], [17, 55], [17, 56], [17, 63], [17, 65], [17, 67], [17, 69], [17, 75], [18, 21], [18, 22], [18, 25], [18, 27], [18, 29], [18, 31], [18, 32], [18, 33], [18, 34], [18, 35], [18, 36], [18, 37], [18, 38], [18, 41], [18, 42], [18, 44], [18, 45], [18, 46], [18, 48], [18, 49], [18, 50], [18, 53], [18, 55], [18, 56], [18, 57], [18, 58], [18, 59], [18, 62], [18, 63], [18, 64], [18, 65], [18, 66], [18, 67], [18, 69], [18, 70], [18, 71], [18, 74], [18, 75], [18, 76], [18, 77], [18, 78], [18, 79], [19, 21], [19, 32], [19, 34], [19, 36], [19, 41], [19, 44], [19, 45], [19, 46], [19, 50], [19, 55], [19, 56], [19, 57], [19, 64], [19, 67], [19, 69], [19, 74], [19, 75], [19, 77], [20, 34], [20, 38], [20, 41], [20, 44], [20, 46], [20, 50], [20, 52], [20, 57], [20, 62], [20, 64], [20, 65], [20, 67], [20, 68], [20, 72], [20, 74], [20, 77], [21, 23], [21, 25], [21, 28], [21, 29], [21, 31], [21, 33], [21, 34], [21, 35], [21, 36], [21, 41], [21, 42], [21, 43], [21, 44], [21, 45], [21, 46], [21, 47], [21, 49], [21, 50], [21, 51], [21, 52], [21, 54], [21, 55], [21, 58], [21, 59], [21, 61], [21, 63], [21, 64], [21, 65], [21, 66], [21, 67], [21, 68], [21, 69], [21, 70], [21, 71], [21, 72], [21, 73], [21, 75], [21, 77], [22, 32], [22, 36], [22, 38], [22, 41], [22, 42], [22, 44], [22, 52], [22, 62], [22, 63], [22, 64], [22, 65], [22, 67], [22, 69], [22, 72], [22, 77], [23, 25], [23, 26], [23, 29], [23, 31], [23, 32], [23, 35], [23, 38], [23, 40], [23, 41], [23, 42], [23, 43], [23, 44], [23, 45], [23, 47], [23, 48], [23, 49], [23, 50], [23, 51], [23, 52], [23, 54], [23, 57], [23, 62], [23, 64], [23, 65], [23, 66], [23, 67], [23, 69], [23, 70], [23, 71], [23, 74], [23, 75], [24, 27], [24, 32], [24, 36], [24, 38], [24, 42], [24, 44], [24, 45], [24, 46], [24, 62], [24, 64], [24, 67], [24, 68], [24, 69], [24, 70], [24, 72], [24, 74], [24, 77], [25, 36], [25, 38], [25, 41], [25, 42], [25, 45], [25, 50], [25, 56], [25, 62], [25, 63], [25, 65], [25, 68], [25, 69], [25, 70], [25, 72], [26, 27], [26, 34], [26, 42], [26, 44], [26, 55], [26, 57], [26, 65], [26, 67], [26, 68], [26, 72], [26, 74], [27, 28], [27, 29], [27, 30], [27, 31], [27, 32], [27, 33], [27, 36], [27, 37], [27, 39], [27, 42], [27, 46], [27, 48], [27, 50], [27, 51], [27, 52], [27, 54], [27, 55], [27, 56], [27, 57], [27, 62], [27, 63], [27, 64], [27, 68], [27, 69], [27, 70], [27, 72], [27, 73], [27, 74], [27, 77], [27, 78], [27, 79], [28, 38], [28, 41], [28, 46], [28, 50], [28, 52], [28, 57], [28, 62], [28, 63], [28, 64], [28, 65], [28, 67], [28, 70], [28, 72], [28, 74], [28, 75], [28, 77], [29, 32], [29, 34], [29, 41], [29, 42], [29, 44], [29, 46], [29, 51], [29, 52], [29, 55], [29, 57], [29, 67], [29, 70], [29, 72], [29, 75], [30, 32], [30, 36], [30, 42], [30, 51], [30, 55], [30, 62], [30, 63], [30, 64], [30, 65], [30, 67], [30, 72], [30, 74], [30, 75], [31, 38], [31, 45], [31, 51], [31, 52], [31, 55], [31, 56], [31, 65], [31, 67], [31, 69], [31, 72], [31, 74], [31, 75], [31, 77], [32, 35], [32, 36], [32, 37], [32, 38], [32, 41], [32, 42], [32, 43], [32, 44], [32, 45], [32, 46], [32, 50], [32, 51], [32, 52], [32, 55], [32, 56], [32, 57], [32, 58], [32, 59], [32, 61], [32, 62], [32, 63], [32, 64], [32, 65], [32, 67], [32, 69], [32, 70], [32, 72], [32, 74], [32, 75], [32, 79], [33, 34], [33, 41], [33, 42], [33, 46], [33, 56], [33, 64], [33, 67], [33, 68], [33, 72], [33, 74], [33, 77], [34, 38], [34, 39], [34, 40], [34, 41], [34, 43], [34, 45], [34, 47], [34, 48], [34, 51], [34, 52], [34, 53], [34, 54], [34, 55], [34, 56], [34, 59], [34, 60], [34, 61], [34, 62], [34, 63], [34, 64], [34, 66], [34, 67], [34, 68], [34, 69], [34, 70], [34, 71], [34, 72], [34, 73], [34, 75], [34, 79], [35, 36], [35, 41], [35, 46], [35, 50], [35, 52], [35, 55], [35, 56], [35, 57], [35, 64], [35, 67], [35, 70], [35, 72], [36, 37], [36, 38], [36, 40], [36, 41], [36, 42], [36, 44], [36, 45], [36, 48], [36, 50], [36, 51], [36, 52], [36, 53], [36, 55], [36, 57], [36, 60], [36, 62], [36, 63], [36, 65], [36, 66], [36, 67], [36, 68], [36, 69], [36, 71], [36, 72], [36, 73], [36, 75], [36, 76], [36, 77], [36, 78], [36, 79], [37, 41], [37, 45], [37, 46], [37, 50], [37, 56], [37, 62], [37, 67], [37, 77], [38, 41], [38, 42], [38, 45], [38, 47], [38, 48], [38, 50], [38, 51], [38, 52], [38, 53], [38, 54], [38, 55], [38, 56], [38, 58], [38, 60], [38, 61], [38, 69], [38, 71], [38, 74], [38, 75], [38, 77], [38, 78], [39, 41], [39, 45], [39, 46], [39, 50], [39, 51], [39, 55], [39, 56], [39, 57], [39, 62], [39, 67], [39, 68], [39, 69], [39, 70], [39, 72], [40, 44], [40, 45], [40, 50], [40, 55], [40, 56], [40, 57], [40, 62], [40, 64], [40, 67], [40, 68], [40, 69], [40, 75], [41, 42], [41, 43], [41, 44], [41, 45], [41, 46], [41, 47], [41, 48], [41, 49], [41, 52], [41, 53], [41, 54], [41, 55], [41, 56], [41, 57], [41, 59], [41, 61], [41, 62], [41, 63], [41, 65], [41, 67], [41, 68], [41, 69], [41, 70], [41, 72], [41, 73], [41, 74], [41, 75], [41, 77], [42, 46], [42, 47], [42, 48], [42, 49], [42, 50], [42, 51], [42, 52], [42, 54], [42, 55], [42, 56], [42, 58], [42, 59], [42, 60], [42, 63], [42, 65], [42, 68], [42, 69], [42, 70], [42, 72], [42, 74], [42, 78], [43, 45], [43, 50], [43, 55], [43, 57], [43, 74], [43, 75], [44, 45], [44, 50], [44, 52], [44, 53], [44, 55], [44, 56], [44, 57], [44, 60], [44, 63], [44, 64], [44, 65], [44, 68], [44, 69], [44, 70], [44, 72], [44, 73], [44, 74], [44, 77], [44, 79], [45, 47], [45, 49], [45, 50], [45, 51], [45, 52], [45, 53], [45, 54], [45, 56], [45, 57], [45, 58], [45, 62], [45, 64], [45, 65], [45, 67], [45, 70], [45, 71], [45, 72], [45, 73], [45, 74], [45, 75], [45, 77], [46, 47], [46, 51], [46, 56], [46, 57], [46, 59], [46, 60], [46, 61], [46, 62], [46, 63], [46, 64], [46, 67], [46, 68], [46, 69], [46, 70], [46, 71], [46, 73], [46, 74], [46, 76], [46, 77], [46, 78], [46, 79], [47, 50], [47, 52], [47, 56], [47, 63], [47, 70], [47, 72], [47, 75], [48, 52], [48, 55], [48, 62], [48, 64], [48, 65], [48, 68], [48, 69], [48, 70], [48, 72], [48, 75], [49, 50], [49, 51], [49, 52], [49, 55], [49, 57], [49, 62], [49, 63], [49, 70], [49, 75], [49, 77], [50, 51], [50, 53], [50, 54], [50, 55], [50, 56], [50, 57], [50, 58], [50, 59], [50, 62], [50, 63], [50, 64], [50, 65], [50, 67], [50, 68], [50, 70], [50, 71], [50, 72], [50, 74], [50, 77], [50, 79], [51, 53], [51, 54], [51, 55], [51, 56], [51, 58], [51, 61], [51, 62], [51, 63], [51, 64], [51, 66], [51, 67], [51, 68], [51, 70], [51, 72], [51, 74], [51, 75], [51, 76], [51, 77], [51, 78], [52, 54], [52, 55], [52, 56], [52, 60], [52, 62], [52, 63], [52, 64], [52, 65], [52, 67], [52, 68], [52, 69], [52, 70], [52, 73], [52, 74], [52, 75], [52, 77], [52, 78], [52, 79], [53, 55], [53, 57], [53, 67], [53, 72], [53, 77], [54, 55], [54, 56], [54, 62], [54, 64], [54, 67], [54, 68], [54, 70], [54, 74], [55, 56], [55, 57], [55, 58], [55, 59], [55, 62], [55, 66], [55, 67], [55, 68], [55, 70], [55, 72], [55, 74], [55, 77], [55, 78], [56, 57], [56, 58], [56, 62], [56, 64], [56, 65], [56, 67], [56, 68], [56, 69], [56, 70], [56, 71], [56, 72], [56, 74], [56, 77], [56, 78], [57, 58], [57, 64], [57, 65], [57, 66], [57, 67], [57, 71], [57, 72], [57, 73], [57, 74], [57, 75], [57, 78], [57, 79], [58, 64], [58, 65], [58, 69], [58, 70], [58, 74], [59, 64], [59, 68], [60, 63], [60, 64], [60, 65], [60, 67], [60, 69], [60, 70], [60, 72], [60, 75], [61, 62], [61, 63], [61, 64], [61, 68], [61, 72], [61, 74], [61, 77], [62, 63], [62, 65], [62, 66], [62, 67], [62, 68], [62, 69], [62, 71], [62, 73], [62, 74], [62, 75], [62, 77], [62, 78], [63, 64], [63, 65], [63, 68], [63, 70], [63, 72], [63, 73], [63, 74], [63, 75], [63, 76], [64, 65], [64, 66], [64, 67], [64, 68], [64, 69], [64, 70], [64, 71], [64, 73], [64, 75], [64, 76], [64, 77], [65, 66], [65, 67], [65, 68], [65, 69], [65, 70], [65, 71], [65, 73], [65, 75], [65, 77], [65, 78], [66, 67], [66, 72], [66, 74], [67, 68], [67, 72], [67, 74], [67, 75], [67, 76], [67, 77], [67, 78], [68, 70], [68, 75], [69, 70], [69, 75], [69, 76], [69, 77], [70, 72], [70, 74], [70, 75], [70, 78], [71, 72], [71, 77], [72, 73], [72, 75], [72, 77], [72, 78], [72, 79], [73, 75], [74, 76], [74, 78], [74, 79], [75, 76], [75, 77], [75, 78], [76, 77], [77, 78], [77, 79]], "family": "nppc_vertex_cover", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-vertex-cover-l5-s6/tests/run.py b/tasks/construct-nppc-vertex-cover-l5-s6/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-nppc-vertex-cover-l5-s6/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-nppc-vertex-cover-l5-s6/tests/test.sh b/tasks/construct-nppc-vertex-cover-l5-s6/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-nppc-vertex-cover-l5-s6/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-nppc-vertex-cover-l5-s8/environment/Dockerfile b/tasks/construct-nppc-vertex-cover-l5-s8/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-nppc-vertex-cover-l5-s8/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-nppc-vertex-cover-l5-s8/environment/instance.json b/tasks/construct-nppc-vertex-cover-l5-s8/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..787368bb1523a703b796a3b18a8d6eb95c8a0c32 --- /dev/null +++ b/tasks/construct-nppc-vertex-cover-l5-s8/environment/instance.json @@ -0,0 +1 @@ +{"num_nodes": 80, "k": 40, "edges": [[0, 2], [0, 5], [0, 6], [0, 14], [0, 21], [0, 23], [0, 28], [0, 38], [0, 40], [0, 51], [0, 59], [0, 63], [0, 66], [0, 68], [0, 69], [0, 70], [0, 72], [1, 3], [1, 9], [1, 10], [1, 22], [1, 23], [1, 25], [1, 28], [1, 47], [1, 49], [1, 59], [1, 66], [1, 67], [1, 68], [1, 69], [1, 71], [1, 72], [1, 78], [1, 79], [2, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 13], [2, 15], [2, 17], [2, 20], [2, 21], [2, 22], [2, 23], [2, 24], [2, 26], [2, 27], [2, 28], [2, 30], [2, 33], [2, 34], [2, 37], [2, 38], [2, 39], [2, 41], [2, 42], [2, 43], [2, 47], [2, 48], [2, 49], [2, 50], [2, 51], [2, 56], [2, 58], [2, 59], [2, 60], [2, 61], [2, 62], [2, 63], [2, 64], [2, 65], [2, 66], [2, 67], [2, 68], [2, 69], [2, 70], [2, 71], [2, 73], [2, 74], [2, 76], [2, 79], [3, 4], [3, 5], [3, 7], [3, 8], [3, 9], [3, 10], [3, 11], [3, 13], [3, 14], [3, 16], [3, 19], [3, 21], [3, 24], [3, 26], [3, 27], [3, 28], [3, 29], [3, 30], [3, 31], [3, 33], [3, 36], [3, 37], [3, 38], [3, 39], [3, 41], [3, 46], [3, 47], [3, 49], [3, 50], [3, 53], [3, 54], [3, 55], [3, 59], [3, 60], [3, 61], [3, 66], [3, 67], [3, 68], [3, 69], [3, 70], [3, 71], [3, 72], [3, 74], [3, 76], [3, 78], [3, 79], [4, 5], [4, 6], [4, 7], [4, 8], [4, 9], [4, 10], [4, 14], [4, 15], [4, 17], [4, 18], [4, 19], [4, 21], [4, 22], [4, 23], [4, 25], [4, 26], [4, 29], [4, 32], [4, 33], [4, 37], [4, 38], [4, 39], [4, 40], [4, 41], [4, 43], [4, 44], [4, 45], [4, 46], [4, 47], [4, 49], [4, 52], [4, 54], [4, 55], [4, 58], [4, 59], [4, 61], [4, 62], [4, 63], [4, 64], [4, 65], [4, 69], [4, 70], [4, 71], [4, 72], [4, 75], [4, 77], [4, 78], [4, 79], [5, 6], [5, 7], [5, 8], [5, 11], [5, 12], [5, 13], [5, 14], [5, 15], [5, 20], [5, 21], [5, 22], [5, 23], [5, 24], [5, 25], [5, 27], [5, 28], [5, 30], [5, 33], [5, 34], [5, 37], [5, 38], [5, 39], [5, 40], [5, 41], [5, 43], [5, 44], [5, 47], [5, 50], [5, 51], [5, 52], [5, 53], [5, 54], [5, 55], [5, 56], [5, 58], [5, 59], [5, 61], [5, 63], [5, 64], [5, 65], [5, 66], [5, 67], [5, 68], [5, 69], [5, 70], [5, 72], [5, 74], [5, 75], [5, 76], [5, 78], [5, 79], [6, 7], [6, 8], [6, 9], [6, 10], [6, 12], [6, 16], [6, 17], [6, 18], [6, 19], [6, 21], [6, 22], [6, 24], [6, 25], [6, 26], [6, 27], [6, 29], [6, 30], [6, 32], [6, 33], [6, 38], [6, 39], [6, 40], [6, 42], [6, 44], [6, 45], [6, 46], [6, 47], [6, 51], [6, 52], [6, 53], [6, 56], [6, 58], [6, 61], [6, 63], [6, 65], [6, 66], [6, 67], [6, 68], [6, 70], [6, 71], [6, 72], [6, 73], [6, 74], [6, 76], [6, 79], [7, 9], [7, 10], [7, 11], [7, 12], [7, 14], [7, 16], [7, 17], [7, 19], [7, 20], [7, 21], [7, 22], [7, 23], [7, 24], [7, 27], [7, 28], [7, 30], [7, 31], [7, 33], [7, 34], [7, 35], [7, 36], [7, 38], [7, 40], [7, 43], [7, 45], [7, 46], [7, 48], [7, 49], [7, 52], [7, 53], [7, 58], [7, 59], [7, 60], [7, 61], [7, 63], [7, 66], [7, 67], [7, 68], [7, 69], [7, 70], [7, 71], [7, 73], [7, 74], [7, 76], [7, 77], [7, 78], [7, 79], [8, 9], [8, 11], [8, 12], [8, 14], [8, 15], [8, 16], [8, 18], [8, 19], [8, 21], [8, 22], [8, 23], [8, 24], [8, 25], [8, 26], [8, 27], [8, 28], [8, 29], [8, 31], [8, 33], [8, 34], [8, 36], [8, 37], [8, 40], [8, 42], [8, 45], [8, 46], [8, 47], [8, 48], [8, 50], [8, 51], [8, 52], [8, 54], [8, 55], [8, 56], [8, 58], [8, 59], [8, 61], [8, 63], [8, 65], [8, 66], [8, 67], [8, 68], [8, 69], [8, 70], [8, 71], [8, 72], [8, 74], [8, 75], [8, 77], [8, 78], [8, 79], [9, 10], [9, 11], [9, 15], [9, 16], [9, 21], [9, 22], [9, 23], [9, 24], [9, 25], [9, 27], [9, 28], [9, 29], [9, 30], [9, 31], [9, 34], [9, 35], [9, 36], [9, 37], [9, 38], [9, 39], [9, 40], [9, 41], [9, 42], [9, 43], [9, 44], [9, 45], [9, 47], [9, 48], [9, 49], [9, 50], [9, 51], [9, 53], [9, 55], [9, 56], [9, 57], [9, 59], [9, 60], [9, 61], [9, 63], [9, 64], [9, 67], [9, 68], [9, 69], [9, 71], [9, 72], [9, 73], [9, 74], [9, 75], [9, 78], [9, 79], [10, 12], [10, 18], [10, 20], [10, 21], [10, 22], [10, 23], [10, 24], [10, 26], [10, 28], [10, 29], [10, 30], [10, 31], [10, 32], [10, 33], [10, 35], [10, 36], [10, 37], [10, 38], [10, 39], [10, 40], [10, 43], [10, 46], [10, 47], [10, 49], [10, 51], [10, 52], [10, 53], [10, 55], [10, 56], [10, 60], [10, 61], [10, 62], [10, 63], [10, 64], [10, 66], [10, 67], [10, 68], [10, 69], [10, 70], [10, 71], [10, 74], [10, 75], [10, 77], [10, 78], [10, 79], [11, 22], [11, 23], [11, 28], [11, 30], [11, 33], [11, 37], [11, 38], [11, 40], [11, 43], [11, 47], [11, 50], [11, 51], [11, 59], [11, 67], [11, 68], [11, 69], [11, 71], [11, 74], [11, 75], [12, 27], [12, 37], [12, 39], [12, 40], [12, 49], [12, 50], [12, 51], [12, 63], [12, 69], [12, 70], [12, 72], [12, 74], [12, 79], [13, 22], [13, 23], [13, 25], [13, 27], [13, 28], [13, 30], [13, 43], [13, 51], [13, 67], [13, 72], [13, 79], [14, 15], [14, 16], [14, 19], [14, 20], [14, 21], [14, 22], [14, 23], [14, 26], [14, 27], [14, 28], [14, 30], [14, 31], [14, 33], [14, 37], [14, 38], [14, 39], [14, 40], [14, 42], [14, 43], [14, 48], [14, 49], [14, 51], [14, 53], [14, 54], [14, 56], [14, 57], [14, 58], [14, 59], [14, 60], [14, 61], [14, 63], [14, 65], [14, 68], [14, 70], [14, 71], [14, 72], [14, 74], [14, 75], [14, 76], [14, 78], [14, 79], [15, 21], [15, 27], [15, 28], [15, 43], [15, 50], [15, 51], [15, 59], [15, 63], [15, 67], [15, 68], [15, 69], [15, 70], [15, 74], [15, 78], [15, 79], [16, 27], [16, 28], [16, 38], [16, 40], [16, 47], [16, 51], [16, 63], [16, 68], [16, 74], [16, 75], [16, 79], [17, 21], [17, 22], [17, 30], [17, 38], [17, 47], [17, 50], [17, 66], [17, 67], [17, 68], [17, 70], [17, 72], [17, 74], [17, 75], [17, 78], [18, 23], [18, 33], [18, 37], [18, 40], [18, 47], [18, 59], [18, 63], [18, 66], [18, 69], [18, 70], [18, 72], [18, 78], [18, 79], [19, 21], [19, 22], [19, 30], [19, 38], [19, 40], [19, 47], [19, 49], [19, 67], [19, 68], [19, 70], [19, 72], [19, 74], [19, 75], [20, 22], [20, 23], [20, 25], [20, 28], [20, 30], [20, 37], [20, 38], [20, 39], [20, 43], [20, 50], [20, 51], [20, 59], [20, 63], [20, 66], [20, 69], [20, 70], [20, 71], [20, 72], [20, 79], [21, 22], [21, 23], [21, 25], [21, 26], [21, 27], [21, 29], [21, 30], [21, 31], [21, 33], [21, 34], [21, 35], [21, 37], [21, 38], [21, 40], [21, 41], [21, 42], [21, 46], [21, 47], [21, 48], [21, 50], [21, 51], [21, 52], [21, 53], [21, 55], [21, 56], [21, 59], [21, 60], [21, 61], [21, 64], [21, 67], [21, 68], [21, 69], [21, 73], [21, 74], [21, 75], [21, 76], [21, 77], [21, 79], [22, 26], [22, 28], [22, 30], [22, 31], [22, 33], [22, 35], [22, 37], [22, 40], [22, 41], [22, 42], [22, 43], [22, 44], [22, 46], [22, 47], [22, 48], [22, 49], [22, 50], [22, 51], [22, 52], [22, 55], [22, 56], [22, 58], [22, 59], [22, 61], [22, 62], [22, 63], [22, 65], [22, 66], [22, 68], [22, 69], [22, 70], [22, 71], [22, 72], [22, 74], [22, 75], [22, 76], [22, 77], [22, 79], [23, 25], [23, 26], [23, 27], [23, 30], [23, 32], [23, 33], [23, 35], [23, 37], [23, 38], [23, 39], [23, 40], [23, 43], [23, 44], [23, 47], [23, 49], [23, 51], [23, 55], [23, 56], [23, 58], [23, 59], [23, 60], [23, 62], [23, 63], [23, 66], [23, 67], [23, 68], [23, 69], [23, 70], [23, 71], [23, 74], [23, 75], [23, 77], [23, 78], [23, 79], [24, 27], [24, 28], [24, 30], [24, 37], [24, 38], [24, 39], [24, 40], [24, 47], [24, 49], [24, 51], [24, 59], [24, 63], [24, 66], [24, 67], [24, 68], [24, 69], [24, 70], [24, 71], [24, 72], [24, 75], [24, 79], [25, 26], [25, 29], [25, 30], [25, 31], [25, 33], [25, 37], [25, 38], [25, 39], [25, 40], [25, 42], [25, 47], [25, 49], [25, 50], [25, 52], [25, 53], [25, 54], [25, 55], [25, 56], [25, 58], [25, 59], [25, 60], [25, 62], [25, 63], [25, 64], [25, 65], [25, 66], [25, 67], [25, 68], [25, 69], [25, 70], [25, 73], [25, 75], [25, 76], [25, 77], [25, 78], [26, 33], [26, 39], [26, 50], [26, 63], [26, 69], [26, 70], [26, 71], [26, 72], [26, 79], [27, 28], [27, 29], [27, 30], [27, 31], [27, 32], [27, 33], [27, 35], [27, 36], [27, 38], [27, 39], [27, 40], [27, 42], [27, 43], [27, 44], [27, 46], [27, 47], [27, 48], [27, 50], [27, 51], [27, 52], [27, 53], [27, 55], [27, 57], [27, 59], [27, 62], [27, 63], [27, 64], [27, 65], [27, 66], [27, 69], [27, 70], [27, 72], [27, 76], [27, 77], [27, 78], [27, 79], [28, 30], [28, 31], [28, 32], [28, 33], [28, 34], [28, 37], [28, 39], [28, 40], [28, 42], [28, 43], [28, 44], [28, 46], [28, 47], [28, 49], [28, 51], [28, 53], [28, 56], [28, 57], [28, 58], [28, 62], [28, 63], [28, 67], [28, 68], [28, 69], [28, 70], [28, 71], [28, 72], [28, 73], [28, 74], [28, 75], [28, 77], [28, 78], [28, 79], [29, 37], [29, 38], [29, 39], [29, 43], [29, 49], [29, 51], [29, 59], [29, 63], [29, 66], [29, 67], [29, 68], [29, 70], [29, 71], [29, 72], [29, 75], [29, 78], [30, 32], [30, 33], [30, 35], [30, 37], [30, 38], [30, 44], [30, 46], [30, 47], [30, 48], [30, 49], [30, 50], [30, 51], [30, 58], [30, 59], [30, 61], [30, 62], [30, 63], [30, 65], [30, 67], [30, 69], [30, 70], [30, 72], [30, 73], [30, 74], [30, 78], [30, 79], [31, 33], [31, 38], [31, 39], [31, 43], [31, 47], [31, 51], [31, 66], [31, 70], [31, 74], [31, 78], [31, 79], [32, 33], [32, 39], [32, 43], [32, 49], [32, 50], [32, 63], [32, 72], [32, 75], [32, 78], [32, 79], [33, 36], [33, 37], [33, 38], [33, 39], [33, 40], [33, 43], [33, 44], [33, 45], [33, 47], [33, 48], [33, 49], [33, 51], [33, 52], [33, 54], [33, 57], [33, 59], [33, 60], [33, 62], [33, 63], [33, 64], [33, 65], [33, 67], [33, 68], [33, 69], [33, 72], [33, 76], [33, 77], [33, 79], [34, 37], [34, 39], [34, 40], [34, 43], [34, 47], [34, 49], [34, 51], [34, 59], [34, 63], [34, 66], [34, 71], [34, 72], [34, 75], [34, 78], [34, 79], [35, 38], [35, 40], [35, 49], [35, 50], [35, 51], [35, 63], [35, 70], [35, 72], [36, 37], [36, 38], [36, 43], [36, 47], [36, 49], [36, 50], [36, 51], [36, 59], [36, 63], [36, 67], [36, 71], [36, 79], [37, 38], [37, 41], [37, 43], [37, 44], [37, 46], [37, 47], [37, 48], [37, 49], [37, 50], [37, 52], [37, 55], [37, 56], [37, 62], [37, 63], [37, 64], [37, 65], [37, 66], [37, 67], [37, 68], [37, 69], [37, 71], [37, 72], [37, 73], [37, 74], [37, 75], [37, 76], [37, 77], [37, 78], [38, 39], [38, 40], [38, 41], [38, 43], [38, 44], [38, 47], [38, 49], [38, 50], [38, 51], [38, 52], [38, 54], [38, 56], [38, 57], [38, 58], [38, 59], [38, 61], [38, 62], [38, 63], [38, 66], [38, 67], [38, 69], [38, 70], [38, 71], [38, 72], [38, 73], [38, 75], [38, 78], [38, 79], [39, 40], [39, 43], [39, 47], [39, 48], [39, 49], [39, 50], [39, 51], [39, 53], [39, 54], [39, 55], [39, 59], [39, 60], [39, 63], [39, 64], [39, 66], [39, 67], [39, 68], [39, 69], [39, 70], [39, 71], [39, 73], [39, 77], [39, 78], [39, 79], [40, 41], [40, 45], [40, 46], [40, 47], [40, 49], [40, 50], [40, 53], [40, 54], [40, 56], [40, 60], [40, 61], [40, 62], [40, 64], [40, 65], [40, 67], [40, 68], [40, 70], [40, 71], [40, 72], [40, 73], [40, 74], [40, 77], [40, 78], [41, 43], [41, 47], [41, 59], [41, 63], [41, 69], [41, 72], [41, 74], [41, 79], [42, 43], [42, 47], [42, 49], [42, 66], [42, 67], [42, 68], [42, 69], [42, 70], [42, 71], [42, 72], [43, 44], [43, 45], [43, 49], [43, 50], [43, 51], [43, 52], [43, 54], [43, 59], [43, 60], [43, 62], [43, 63], [43, 64], [43, 65], [43, 66], [43, 67], [43, 68], [43, 69], [43, 71], [43, 74], [43, 75], [43, 76], [43, 77], [43, 79], [44, 49], [44, 59], [44, 63], [44, 66], [44, 71], [44, 72], [44, 75], [45, 47], [45, 50], [45, 59], [45, 63], [45, 66], [45, 68], [45, 69], [45, 70], [45, 71], [45, 75], [45, 78], [46, 47], [46, 50], [46, 69], [46, 70], [46, 71], [46, 78], [46, 79], [47, 49], [47, 50], [47, 51], [47, 52], [47, 55], [47, 56], [47, 58], [47, 61], [47, 62], [47, 63], [47, 64], [47, 65], [47, 66], [47, 67], [47, 68], [47, 69], [47, 70], [47, 71], [47, 72], [47, 74], [47, 75], [47, 76], [47, 78], [47, 79], [48, 49], [48, 50], [48, 51], [48, 66], [48, 68], [48, 69], [48, 70], [48, 74], [48, 75], [48, 78], [49, 50], [49, 51], [49, 54], [49, 55], [49, 56], [49, 59], [49, 60], [49, 61], [49, 63], [49, 65], [49, 66], [49, 67], [49, 68], [49, 69], [49, 70], [49, 71], [49, 72], [49, 74], [49, 75], [49, 76], [49, 78], [49, 79], [50, 54], [50, 55], [50, 57], [50, 58], [50, 59], [50, 60], [50, 62], [50, 63], [50, 64], [50, 65], [50, 66], [50, 67], [50, 68], [50, 69], [50, 70], [50, 71], [50, 72], [50, 74], [50, 75], [50, 77], [50, 78], [50, 79], [51, 53], [51, 54], [51, 55], [51, 56], [51, 60], [51, 61], [51, 62], [51, 65], [51, 66], [51, 67], [51, 68], [51, 70], [51, 72], [51, 74], [51, 75], [51, 76], [52, 63], [52, 67], [52, 68], [52, 69], [52, 72], [52, 74], [52, 75], [52, 78], [53, 59], [53, 63], [53, 66], [53, 69], [53, 70], [53, 72], [53, 74], [54, 69], [54, 75], [54, 78], [55, 59], [55, 63], [55, 66], [55, 67], [55, 68], [55, 71], [55, 72], [55, 74], [55, 79], [56, 63], [56, 66], [56, 68], [56, 69], [56, 74], [56, 75], [57, 63], [57, 67], [57, 68], [57, 69], [57, 70], [57, 78], [58, 59], [58, 63], [58, 66], [58, 67], [58, 68], [58, 69], [58, 70], [58, 71], [59, 62], [59, 63], [59, 64], [59, 65], [59, 66], [59, 67], [59, 68], [59, 69], [59, 70], [59, 71], [59, 72], [59, 73], [59, 74], [59, 75], [59, 78], [60, 63], [60, 66], [60, 74], [60, 75], [61, 67], [61, 68], [61, 69], [61, 71], [61, 74], [61, 75], [61, 78], [61, 79], [62, 63], [62, 66], [62, 68], [62, 71], [62, 75], [63, 64], [63, 65], [63, 66], [63, 67], [63, 68], [63, 69], [63, 72], [63, 73], [63, 74], [63, 75], [63, 76], [63, 77], [64, 68], [64, 70], [64, 71], [64, 72], [64, 75], [64, 78], [64, 79], [65, 70], [65, 72], [65, 75], [65, 78], [65, 79], [66, 68], [66, 70], [66, 71], [66, 73], [66, 74], [66, 77], [66, 78], [67, 68], [67, 69], [67, 70], [67, 73], [67, 74], [67, 75], [67, 76], [68, 69], [68, 70], [68, 71], [68, 72], [68, 73], [68, 74], [68, 75], [68, 76], [68, 78], [69, 70], [69, 71], [69, 72], [69, 74], [69, 78], [69, 79], [70, 71], [70, 75], [70, 76], [70, 79], [71, 72], [71, 73], [71, 74], [71, 75], [71, 77], [71, 78], [72, 73], [72, 75], [72, 77], [72, 78], [72, 79], [73, 75], [73, 78], [74, 75], [74, 76], [74, 77], [74, 78], [74, 79], [75, 76], [75, 77], [75, 78], [75, 79], [76, 78], [76, 79], [78, 79]], "family": "nppc_vertex_cover", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-vertex-cover-l5-s8/solution/solve.sh b/tasks/construct-nppc-vertex-cover-l5-s8/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..2e3fe1ca3fbad1e179a6077d24771b85797b415d --- /dev/null +++ b/tasks/construct-nppc-vertex-cover-l5-s8/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"cover": [2, 3, 4, 5, 6, 7, 8, 9, 10, 14, 21, 22, 23, 25, 27, 28, 30, 33, 37, 38, 39, 40, 43, 47, 49, 50, 51, 59, 63, 66, 67, 68, 69, 70, 71, 72, 74, 75, 78, 79]} +RLMATH_EOF diff --git a/tasks/construct-nppc-vertex-cover-l5-s8/tests/check.py b/tasks/construct-nppc-vertex-cover-l5-s8/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..d8ed740cc660c4837d941a8d70ea394c3bc9f69e --- /dev/null +++ b/tasks/construct-nppc-vertex-cover-l5-s8/tests/check.py @@ -0,0 +1,18 @@ +"""Vertex cover of size <= k. Accepts any valid cover.""" +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["num_nodes"], inst["k"] + # upstream NPPC verifier converts to a set without type checks (floats/bools slip through and + # duplicates are silently merged); here entries must be distinct ints in range + c = int_list(ans.get("cover"), None, 0, n - 1, "cover") + if len(set(c)) != len(c): + raise Invalid("cover contains duplicates") + if len(c) > k: + raise Invalid(f"cover has {len(c)} > {k} vertices") + s = set(c) + for u, v in inst["edges"]: + if u not in s and v not in s: + raise Invalid(f"edge ({u},{v}) not covered") + return None, {"size": len(c)} diff --git a/tasks/construct-nppc-vertex-cover-l5-s8/tests/instance.json b/tasks/construct-nppc-vertex-cover-l5-s8/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..787368bb1523a703b796a3b18a8d6eb95c8a0c32 --- /dev/null +++ b/tasks/construct-nppc-vertex-cover-l5-s8/tests/instance.json @@ -0,0 +1 @@ +{"num_nodes": 80, "k": 40, "edges": [[0, 2], [0, 5], [0, 6], [0, 14], [0, 21], [0, 23], [0, 28], [0, 38], [0, 40], [0, 51], [0, 59], [0, 63], [0, 66], [0, 68], [0, 69], [0, 70], [0, 72], [1, 3], [1, 9], [1, 10], [1, 22], [1, 23], [1, 25], [1, 28], [1, 47], [1, 49], [1, 59], [1, 66], [1, 67], [1, 68], [1, 69], [1, 71], [1, 72], [1, 78], [1, 79], [2, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 13], [2, 15], [2, 17], [2, 20], [2, 21], [2, 22], [2, 23], [2, 24], [2, 26], [2, 27], [2, 28], [2, 30], [2, 33], [2, 34], [2, 37], [2, 38], [2, 39], [2, 41], [2, 42], [2, 43], [2, 47], [2, 48], [2, 49], [2, 50], [2, 51], [2, 56], [2, 58], [2, 59], [2, 60], [2, 61], [2, 62], [2, 63], [2, 64], [2, 65], [2, 66], [2, 67], [2, 68], [2, 69], [2, 70], [2, 71], [2, 73], [2, 74], [2, 76], [2, 79], [3, 4], [3, 5], [3, 7], [3, 8], [3, 9], [3, 10], [3, 11], [3, 13], [3, 14], [3, 16], [3, 19], [3, 21], [3, 24], [3, 26], [3, 27], [3, 28], [3, 29], [3, 30], [3, 31], [3, 33], [3, 36], [3, 37], [3, 38], [3, 39], [3, 41], [3, 46], [3, 47], [3, 49], [3, 50], [3, 53], [3, 54], [3, 55], [3, 59], [3, 60], [3, 61], [3, 66], [3, 67], [3, 68], [3, 69], [3, 70], [3, 71], [3, 72], [3, 74], [3, 76], [3, 78], [3, 79], [4, 5], [4, 6], [4, 7], [4, 8], [4, 9], [4, 10], [4, 14], [4, 15], [4, 17], [4, 18], [4, 19], [4, 21], [4, 22], [4, 23], [4, 25], [4, 26], [4, 29], [4, 32], [4, 33], [4, 37], [4, 38], [4, 39], [4, 40], [4, 41], [4, 43], [4, 44], [4, 45], [4, 46], [4, 47], [4, 49], [4, 52], [4, 54], [4, 55], [4, 58], [4, 59], [4, 61], [4, 62], [4, 63], [4, 64], [4, 65], [4, 69], [4, 70], [4, 71], [4, 72], [4, 75], [4, 77], [4, 78], [4, 79], [5, 6], [5, 7], [5, 8], [5, 11], [5, 12], [5, 13], [5, 14], [5, 15], [5, 20], [5, 21], [5, 22], [5, 23], [5, 24], [5, 25], [5, 27], [5, 28], [5, 30], [5, 33], [5, 34], [5, 37], [5, 38], [5, 39], [5, 40], [5, 41], [5, 43], [5, 44], [5, 47], [5, 50], [5, 51], [5, 52], [5, 53], [5, 54], [5, 55], [5, 56], [5, 58], [5, 59], [5, 61], [5, 63], [5, 64], [5, 65], [5, 66], [5, 67], [5, 68], [5, 69], [5, 70], [5, 72], [5, 74], [5, 75], [5, 76], [5, 78], [5, 79], [6, 7], [6, 8], [6, 9], [6, 10], [6, 12], [6, 16], [6, 17], [6, 18], [6, 19], [6, 21], [6, 22], [6, 24], [6, 25], [6, 26], [6, 27], [6, 29], [6, 30], [6, 32], [6, 33], [6, 38], [6, 39], [6, 40], [6, 42], [6, 44], [6, 45], [6, 46], [6, 47], [6, 51], [6, 52], [6, 53], [6, 56], [6, 58], [6, 61], [6, 63], [6, 65], [6, 66], [6, 67], [6, 68], [6, 70], [6, 71], [6, 72], [6, 73], [6, 74], [6, 76], [6, 79], [7, 9], [7, 10], [7, 11], [7, 12], [7, 14], [7, 16], [7, 17], [7, 19], [7, 20], [7, 21], [7, 22], [7, 23], [7, 24], [7, 27], [7, 28], [7, 30], [7, 31], [7, 33], [7, 34], [7, 35], [7, 36], [7, 38], [7, 40], [7, 43], [7, 45], [7, 46], [7, 48], [7, 49], [7, 52], [7, 53], [7, 58], [7, 59], [7, 60], [7, 61], [7, 63], [7, 66], [7, 67], [7, 68], [7, 69], [7, 70], [7, 71], [7, 73], [7, 74], [7, 76], [7, 77], [7, 78], [7, 79], [8, 9], [8, 11], [8, 12], [8, 14], [8, 15], [8, 16], [8, 18], [8, 19], [8, 21], [8, 22], [8, 23], [8, 24], [8, 25], [8, 26], [8, 27], [8, 28], [8, 29], [8, 31], [8, 33], [8, 34], [8, 36], [8, 37], [8, 40], [8, 42], [8, 45], [8, 46], [8, 47], [8, 48], [8, 50], [8, 51], [8, 52], [8, 54], [8, 55], [8, 56], [8, 58], [8, 59], [8, 61], [8, 63], [8, 65], [8, 66], [8, 67], [8, 68], [8, 69], [8, 70], [8, 71], [8, 72], [8, 74], [8, 75], [8, 77], [8, 78], [8, 79], [9, 10], [9, 11], [9, 15], [9, 16], [9, 21], [9, 22], [9, 23], [9, 24], [9, 25], [9, 27], [9, 28], [9, 29], [9, 30], [9, 31], [9, 34], [9, 35], [9, 36], [9, 37], [9, 38], [9, 39], [9, 40], [9, 41], [9, 42], [9, 43], [9, 44], [9, 45], [9, 47], [9, 48], [9, 49], [9, 50], [9, 51], [9, 53], [9, 55], [9, 56], [9, 57], [9, 59], [9, 60], [9, 61], [9, 63], [9, 64], [9, 67], [9, 68], [9, 69], [9, 71], [9, 72], [9, 73], [9, 74], [9, 75], [9, 78], [9, 79], [10, 12], [10, 18], [10, 20], [10, 21], [10, 22], [10, 23], [10, 24], [10, 26], [10, 28], [10, 29], [10, 30], [10, 31], [10, 32], [10, 33], [10, 35], [10, 36], [10, 37], [10, 38], [10, 39], [10, 40], [10, 43], [10, 46], [10, 47], [10, 49], [10, 51], [10, 52], [10, 53], [10, 55], [10, 56], [10, 60], [10, 61], [10, 62], [10, 63], [10, 64], [10, 66], [10, 67], [10, 68], [10, 69], [10, 70], [10, 71], [10, 74], [10, 75], [10, 77], [10, 78], [10, 79], [11, 22], [11, 23], [11, 28], [11, 30], [11, 33], [11, 37], [11, 38], [11, 40], [11, 43], [11, 47], [11, 50], [11, 51], [11, 59], [11, 67], [11, 68], [11, 69], [11, 71], [11, 74], [11, 75], [12, 27], [12, 37], [12, 39], [12, 40], [12, 49], [12, 50], [12, 51], [12, 63], [12, 69], [12, 70], [12, 72], [12, 74], [12, 79], [13, 22], [13, 23], [13, 25], [13, 27], [13, 28], [13, 30], [13, 43], [13, 51], [13, 67], [13, 72], [13, 79], [14, 15], [14, 16], [14, 19], [14, 20], [14, 21], [14, 22], [14, 23], [14, 26], [14, 27], [14, 28], [14, 30], [14, 31], [14, 33], [14, 37], [14, 38], [14, 39], [14, 40], [14, 42], [14, 43], [14, 48], [14, 49], [14, 51], [14, 53], [14, 54], [14, 56], [14, 57], [14, 58], [14, 59], [14, 60], [14, 61], [14, 63], [14, 65], [14, 68], [14, 70], [14, 71], [14, 72], [14, 74], [14, 75], [14, 76], [14, 78], [14, 79], [15, 21], [15, 27], [15, 28], [15, 43], [15, 50], [15, 51], [15, 59], [15, 63], [15, 67], [15, 68], [15, 69], [15, 70], [15, 74], [15, 78], [15, 79], [16, 27], [16, 28], [16, 38], [16, 40], [16, 47], [16, 51], [16, 63], [16, 68], [16, 74], [16, 75], [16, 79], [17, 21], [17, 22], [17, 30], [17, 38], [17, 47], [17, 50], [17, 66], [17, 67], [17, 68], [17, 70], [17, 72], [17, 74], [17, 75], [17, 78], [18, 23], [18, 33], [18, 37], [18, 40], [18, 47], [18, 59], [18, 63], [18, 66], [18, 69], [18, 70], [18, 72], [18, 78], [18, 79], [19, 21], [19, 22], [19, 30], [19, 38], [19, 40], [19, 47], [19, 49], [19, 67], [19, 68], [19, 70], [19, 72], [19, 74], [19, 75], [20, 22], [20, 23], [20, 25], [20, 28], [20, 30], [20, 37], [20, 38], [20, 39], [20, 43], [20, 50], [20, 51], [20, 59], [20, 63], [20, 66], [20, 69], [20, 70], [20, 71], [20, 72], [20, 79], [21, 22], [21, 23], [21, 25], [21, 26], [21, 27], [21, 29], [21, 30], [21, 31], [21, 33], [21, 34], [21, 35], [21, 37], [21, 38], [21, 40], [21, 41], [21, 42], [21, 46], [21, 47], [21, 48], [21, 50], [21, 51], [21, 52], [21, 53], [21, 55], [21, 56], [21, 59], [21, 60], [21, 61], [21, 64], [21, 67], [21, 68], [21, 69], [21, 73], [21, 74], [21, 75], [21, 76], [21, 77], [21, 79], [22, 26], [22, 28], [22, 30], [22, 31], [22, 33], [22, 35], [22, 37], [22, 40], [22, 41], [22, 42], [22, 43], [22, 44], [22, 46], [22, 47], [22, 48], [22, 49], [22, 50], [22, 51], [22, 52], [22, 55], [22, 56], [22, 58], [22, 59], [22, 61], [22, 62], [22, 63], [22, 65], [22, 66], [22, 68], [22, 69], [22, 70], [22, 71], [22, 72], [22, 74], [22, 75], [22, 76], [22, 77], [22, 79], [23, 25], [23, 26], [23, 27], [23, 30], [23, 32], [23, 33], [23, 35], [23, 37], [23, 38], [23, 39], [23, 40], [23, 43], [23, 44], [23, 47], [23, 49], [23, 51], [23, 55], [23, 56], [23, 58], [23, 59], [23, 60], [23, 62], [23, 63], [23, 66], [23, 67], [23, 68], [23, 69], [23, 70], [23, 71], [23, 74], [23, 75], [23, 77], [23, 78], [23, 79], [24, 27], [24, 28], [24, 30], [24, 37], [24, 38], [24, 39], [24, 40], [24, 47], [24, 49], [24, 51], [24, 59], [24, 63], [24, 66], [24, 67], [24, 68], [24, 69], [24, 70], [24, 71], [24, 72], [24, 75], [24, 79], [25, 26], [25, 29], [25, 30], [25, 31], [25, 33], [25, 37], [25, 38], [25, 39], [25, 40], [25, 42], [25, 47], [25, 49], [25, 50], [25, 52], [25, 53], [25, 54], [25, 55], [25, 56], [25, 58], [25, 59], [25, 60], [25, 62], [25, 63], [25, 64], [25, 65], [25, 66], [25, 67], [25, 68], [25, 69], [25, 70], [25, 73], [25, 75], [25, 76], [25, 77], [25, 78], [26, 33], [26, 39], [26, 50], [26, 63], [26, 69], [26, 70], [26, 71], [26, 72], [26, 79], [27, 28], [27, 29], [27, 30], [27, 31], [27, 32], [27, 33], [27, 35], [27, 36], [27, 38], [27, 39], [27, 40], [27, 42], [27, 43], [27, 44], [27, 46], [27, 47], [27, 48], [27, 50], [27, 51], [27, 52], [27, 53], [27, 55], [27, 57], [27, 59], [27, 62], [27, 63], [27, 64], [27, 65], [27, 66], [27, 69], [27, 70], [27, 72], [27, 76], [27, 77], [27, 78], [27, 79], [28, 30], [28, 31], [28, 32], [28, 33], [28, 34], [28, 37], [28, 39], [28, 40], [28, 42], [28, 43], [28, 44], [28, 46], [28, 47], [28, 49], [28, 51], [28, 53], [28, 56], [28, 57], [28, 58], [28, 62], [28, 63], [28, 67], [28, 68], [28, 69], [28, 70], [28, 71], [28, 72], [28, 73], [28, 74], [28, 75], [28, 77], [28, 78], [28, 79], [29, 37], [29, 38], [29, 39], [29, 43], [29, 49], [29, 51], [29, 59], [29, 63], [29, 66], [29, 67], [29, 68], [29, 70], [29, 71], [29, 72], [29, 75], [29, 78], [30, 32], [30, 33], [30, 35], [30, 37], [30, 38], [30, 44], [30, 46], [30, 47], [30, 48], [30, 49], [30, 50], [30, 51], [30, 58], [30, 59], [30, 61], [30, 62], [30, 63], [30, 65], [30, 67], [30, 69], [30, 70], [30, 72], [30, 73], [30, 74], [30, 78], [30, 79], [31, 33], [31, 38], [31, 39], [31, 43], [31, 47], [31, 51], [31, 66], [31, 70], [31, 74], [31, 78], [31, 79], [32, 33], [32, 39], [32, 43], [32, 49], [32, 50], [32, 63], [32, 72], [32, 75], [32, 78], [32, 79], [33, 36], [33, 37], [33, 38], [33, 39], [33, 40], [33, 43], [33, 44], [33, 45], [33, 47], [33, 48], [33, 49], [33, 51], [33, 52], [33, 54], [33, 57], [33, 59], [33, 60], [33, 62], [33, 63], [33, 64], [33, 65], [33, 67], [33, 68], [33, 69], [33, 72], [33, 76], [33, 77], [33, 79], [34, 37], [34, 39], [34, 40], [34, 43], [34, 47], [34, 49], [34, 51], [34, 59], [34, 63], [34, 66], [34, 71], [34, 72], [34, 75], [34, 78], [34, 79], [35, 38], [35, 40], [35, 49], [35, 50], [35, 51], [35, 63], [35, 70], [35, 72], [36, 37], [36, 38], [36, 43], [36, 47], [36, 49], [36, 50], [36, 51], [36, 59], [36, 63], [36, 67], [36, 71], [36, 79], [37, 38], [37, 41], [37, 43], [37, 44], [37, 46], [37, 47], [37, 48], [37, 49], [37, 50], [37, 52], [37, 55], [37, 56], [37, 62], [37, 63], [37, 64], [37, 65], [37, 66], [37, 67], [37, 68], [37, 69], [37, 71], [37, 72], [37, 73], [37, 74], [37, 75], [37, 76], [37, 77], [37, 78], [38, 39], [38, 40], [38, 41], [38, 43], [38, 44], [38, 47], [38, 49], [38, 50], [38, 51], [38, 52], [38, 54], [38, 56], [38, 57], [38, 58], [38, 59], [38, 61], [38, 62], [38, 63], [38, 66], [38, 67], [38, 69], [38, 70], [38, 71], [38, 72], [38, 73], [38, 75], [38, 78], [38, 79], [39, 40], [39, 43], [39, 47], [39, 48], [39, 49], [39, 50], [39, 51], [39, 53], [39, 54], [39, 55], [39, 59], [39, 60], [39, 63], [39, 64], [39, 66], [39, 67], [39, 68], [39, 69], [39, 70], [39, 71], [39, 73], [39, 77], [39, 78], [39, 79], [40, 41], [40, 45], [40, 46], [40, 47], [40, 49], [40, 50], [40, 53], [40, 54], [40, 56], [40, 60], [40, 61], [40, 62], [40, 64], [40, 65], [40, 67], [40, 68], [40, 70], [40, 71], [40, 72], [40, 73], [40, 74], [40, 77], [40, 78], [41, 43], [41, 47], [41, 59], [41, 63], [41, 69], [41, 72], [41, 74], [41, 79], [42, 43], [42, 47], [42, 49], [42, 66], [42, 67], [42, 68], [42, 69], [42, 70], [42, 71], [42, 72], [43, 44], [43, 45], [43, 49], [43, 50], [43, 51], [43, 52], [43, 54], [43, 59], [43, 60], [43, 62], [43, 63], [43, 64], [43, 65], [43, 66], [43, 67], [43, 68], [43, 69], [43, 71], [43, 74], [43, 75], [43, 76], [43, 77], [43, 79], [44, 49], [44, 59], [44, 63], [44, 66], [44, 71], [44, 72], [44, 75], [45, 47], [45, 50], [45, 59], [45, 63], [45, 66], [45, 68], [45, 69], [45, 70], [45, 71], [45, 75], [45, 78], [46, 47], [46, 50], [46, 69], [46, 70], [46, 71], [46, 78], [46, 79], [47, 49], [47, 50], [47, 51], [47, 52], [47, 55], [47, 56], [47, 58], [47, 61], [47, 62], [47, 63], [47, 64], [47, 65], [47, 66], [47, 67], [47, 68], [47, 69], [47, 70], [47, 71], [47, 72], [47, 74], [47, 75], [47, 76], [47, 78], [47, 79], [48, 49], [48, 50], [48, 51], [48, 66], [48, 68], [48, 69], [48, 70], [48, 74], [48, 75], [48, 78], [49, 50], [49, 51], [49, 54], [49, 55], [49, 56], [49, 59], [49, 60], [49, 61], [49, 63], [49, 65], [49, 66], [49, 67], [49, 68], [49, 69], [49, 70], [49, 71], [49, 72], [49, 74], [49, 75], [49, 76], [49, 78], [49, 79], [50, 54], [50, 55], [50, 57], [50, 58], [50, 59], [50, 60], [50, 62], [50, 63], [50, 64], [50, 65], [50, 66], [50, 67], [50, 68], [50, 69], [50, 70], [50, 71], [50, 72], [50, 74], [50, 75], [50, 77], [50, 78], [50, 79], [51, 53], [51, 54], [51, 55], [51, 56], [51, 60], [51, 61], [51, 62], [51, 65], [51, 66], [51, 67], [51, 68], [51, 70], [51, 72], [51, 74], [51, 75], [51, 76], [52, 63], [52, 67], [52, 68], [52, 69], [52, 72], [52, 74], [52, 75], [52, 78], [53, 59], [53, 63], [53, 66], [53, 69], [53, 70], [53, 72], [53, 74], [54, 69], [54, 75], [54, 78], [55, 59], [55, 63], [55, 66], [55, 67], [55, 68], [55, 71], [55, 72], [55, 74], [55, 79], [56, 63], [56, 66], [56, 68], [56, 69], [56, 74], [56, 75], [57, 63], [57, 67], [57, 68], [57, 69], [57, 70], [57, 78], [58, 59], [58, 63], [58, 66], [58, 67], [58, 68], [58, 69], [58, 70], [58, 71], [59, 62], [59, 63], [59, 64], [59, 65], [59, 66], [59, 67], [59, 68], [59, 69], [59, 70], [59, 71], [59, 72], [59, 73], [59, 74], [59, 75], [59, 78], [60, 63], [60, 66], [60, 74], [60, 75], [61, 67], [61, 68], [61, 69], [61, 71], [61, 74], [61, 75], [61, 78], [61, 79], [62, 63], [62, 66], [62, 68], [62, 71], [62, 75], [63, 64], [63, 65], [63, 66], [63, 67], [63, 68], [63, 69], [63, 72], [63, 73], [63, 74], [63, 75], [63, 76], [63, 77], [64, 68], [64, 70], [64, 71], [64, 72], [64, 75], [64, 78], [64, 79], [65, 70], [65, 72], [65, 75], [65, 78], [65, 79], [66, 68], [66, 70], [66, 71], [66, 73], [66, 74], [66, 77], [66, 78], [67, 68], [67, 69], [67, 70], [67, 73], [67, 74], [67, 75], [67, 76], [68, 69], [68, 70], [68, 71], [68, 72], [68, 73], [68, 74], [68, 75], [68, 76], [68, 78], [69, 70], [69, 71], [69, 72], [69, 74], [69, 78], [69, 79], [70, 71], [70, 75], [70, 76], [70, 79], [71, 72], [71, 73], [71, 74], [71, 75], [71, 77], [71, 78], [72, 73], [72, 75], [72, 77], [72, 78], [72, 79], [73, 75], [73, 78], [74, 75], [74, 76], [74, 77], [74, 78], [74, 79], [75, 76], [75, 77], [75, 78], [75, 79], [76, 78], [76, 79], [78, 79]], "family": "nppc_vertex_cover", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-nppc-vertex-cover-l5-s8/tests/run.py b/tasks/construct-nppc-vertex-cover-l5-s8/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-nppc-vertex-cover-l5-s8/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-nppc-vertex-cover-l5-s8/tests/test.sh b/tasks/construct-nppc-vertex-cover-l5-s8/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-nppc-vertex-cover-l5-s8/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rg-graph-color-l2-s2/environment/Dockerfile b/tasks/construct-rg-graph-color-l2-s2/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rg-graph-color-l2-s2/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rg-graph-color-l2-s2/environment/instance.json b/tasks/construct-rg-graph-color-l2-s2/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..84d766b43e170a0521a91a735d0724341b02d37d --- /dev/null +++ b/tasks/construct-rg-graph-color-l2-s2/environment/instance.json @@ -0,0 +1 @@ +{"num_vertices": 10, "num_colors": 4, "edges": [[0, 9], [1, 3], [1, 4], [1, 6], [1, 7], [1, 9], [2, 3], [2, 4], [2, 7], [2, 9], [3, 5], [3, 7], [3, 8], [3, 9], [4, 8], [5, 8], [6, 7], [6, 8], [7, 9], [8, 9]], "family": "rg_graph_color", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rg-graph-color-l2-s2/solution/solve.sh b/tasks/construct-rg-graph-color-l2-s2/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..3ed2f4b110f7700b1dffc42ef26690e4ed1098e2 --- /dev/null +++ b/tasks/construct-rg-graph-color-l2-s2/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"coloring": [1, 1, 1, 2, 2, 1, 2, 3, 3, 4]} +RLMATH_EOF diff --git a/tasks/construct-rg-graph-color-l2-s2/tests/check.py b/tasks/construct-rg-graph-color-l2-s2/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..e9328912405d1c894970c90415be62bf9556ed36 --- /dev/null +++ b/tasks/construct-rg-graph-color-l2-s2/tests/check.py @@ -0,0 +1,13 @@ +"""Proper colouring with colours 1..k (Reasoning Gym graph_color, Apache-2.0). Any valid colouring. +Upstream note: its verifier checks `color in allowed_colors`, so True (== 1) and 1.0 were accepted as +colours, and extra keys were ignored. Here colours must be ints in 1..k, one per vertex.""" +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["num_vertices"], inst["num_colors"] + c = int_list(ans.get("coloring"), n, 1, k, "coloring") + for u, v in inst["edges"]: + if c[u] == c[v]: + raise Invalid(f"adjacent vertices {u} and {v} share colour {c[u]}") + return None, {} diff --git a/tasks/construct-rg-graph-color-l2-s2/tests/instance.json b/tasks/construct-rg-graph-color-l2-s2/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..84d766b43e170a0521a91a735d0724341b02d37d --- /dev/null +++ b/tasks/construct-rg-graph-color-l2-s2/tests/instance.json @@ -0,0 +1 @@ +{"num_vertices": 10, "num_colors": 4, "edges": [[0, 9], [1, 3], [1, 4], [1, 6], [1, 7], [1, 9], [2, 3], [2, 4], [2, 7], [2, 9], [3, 5], [3, 7], [3, 8], [3, 9], [4, 8], [5, 8], [6, 7], [6, 8], [7, 9], [8, 9]], "family": "rg_graph_color", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rg-graph-color-l2-s2/tests/run.py b/tasks/construct-rg-graph-color-l2-s2/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rg-graph-color-l2-s2/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rg-graph-color-l2-s2/tests/test.sh b/tasks/construct-rg-graph-color-l2-s2/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rg-graph-color-l2-s2/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rg-intermediate-integration-l4-s1/environment/Dockerfile b/tasks/construct-rg-intermediate-integration-l4-s1/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rg-intermediate-integration-l4-s1/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rg-intermediate-integration-l4-s1/environment/instance.json b/tasks/construct-rg-intermediate-integration-l4-s1/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..30676490d4bc3224885e24e8742d082f4ae5fb60 --- /dev/null +++ b/tasks/construct-rg-intermediate-integration-l4-s1/environment/instance.json @@ -0,0 +1 @@ +{"variable": "x", "integrand": "2*log(x)", "problem_type": "log_inverse_trig", "family": "rg_intermediate_integration", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rg-intermediate-integration-l4-s1/solution/solve.sh b/tasks/construct-rg-intermediate-integration-l4-s1/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..b4253a367c32dbe3cda2eead403cf11419df8d95 --- /dev/null +++ b/tasks/construct-rg-intermediate-integration-l4-s1/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"antiderivative": "2*x*log(x) - 2*x + C"} +RLMATH_EOF diff --git a/tasks/construct-rg-intermediate-integration-l4-s1/tests/check.py b/tasks/construct-rg-intermediate-integration-l4-s1/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..a9e364a8ede6c8215a16a04ee6b0d3529adc647d --- /dev/null +++ b/tasks/construct-rg-intermediate-integration-l4-s1/tests/check.py @@ -0,0 +1,158 @@ +"""Antiderivative check (Reasoning Gym simple_integration / intermediate_integration, Apache-2.0). + +The answer string is parsed with a whitelist AST walker (no eval), differentiated with SymPy and compared +with the integrand numerically (30-digit evaluation) at fixed points inside the integrand's real domain. +Any additive constant (e.g. "+ C") is allowed. + +Upstream notes: upstream scores with sympy.parse_expr, which calls eval() on the model's string (arbitrary +code execution), and it accepts an unevaluated "Integral(f, x)" since its derivative is f. Both are +rejected here: only arithmetic, whitelisted elementary functions, the variable, C, E and pi are allowed.""" +import ast +import math +import signal + +import sympy + +from run import Invalid + +MAX_LEN = 3000 +MAX_NODES = 600 +MAX_POW_NEST = 4 # nested powers with a variable exponent (x**x**x**...) blow up differentiation +TIME_LIMIT = 40 # seconds; a slower answer is rejected +FUNCS = {"sin": sympy.sin, "cos": sympy.cos, "tan": sympy.tan, "cot": sympy.cot, "sec": sympy.sec, + "csc": sympy.csc, "asin": sympy.asin, "acos": sympy.acos, "atan": sympy.atan, "acot": sympy.acot, + "arcsin": sympy.asin, "arccos": sympy.acos, "arctan": sympy.atan, "sinh": sympy.sinh, + "cosh": sympy.cosh, "tanh": sympy.tanh, "asinh": sympy.asinh, "acosh": sympy.acosh, + "atanh": sympy.atanh, "exp": sympy.exp, "log": sympy.log, "ln": sympy.log, "sqrt": sympy.sqrt, + "Abs": sympy.Abs, "abs": sympy.Abs} +POINTS = [0.3137, 0.5521, 0.8093, 1.1171, 1.4519, 1.9033, 2.3471, 2.8123, 3.3319, 3.9107, 4.6231, + -0.3547, -0.6529, -0.9511, -1.3027, -1.7519, -2.2013, -2.7131, -3.1397, -3.8203, -4.4111, + 0.1231, -0.1523, 0.2129, -0.2617, 0.0517, -0.0719, 5.4127, -5.3311, 6.3019, -6.2203, 7.2213, + -7.1117, 8.9021, -9.3107, 10.7129, -10.6337, 12.9011, -12.8231, 15.3113, -15.2719] +MIN_POINTS = 5 + + +def parse(s, var): + if not isinstance(s, str) or not s.strip(): + raise Invalid("antiderivative must be a non-empty string") + if len(s) > MAX_LEN: + raise Invalid("expression too long") + s = s.strip() + try: + tree = ast.parse(s, mode="eval") + except SyntaxError: + raise Invalid("expression does not parse (use ** for powers and * for products)") + if sum(1 for _ in ast.walk(tree)) > MAX_NODES: + raise Invalid("expression too large") + + def pow_nest(nd): + kids = [pow_nest(c) for c in ast.iter_child_nodes(nd)] + own = isinstance(nd, ast.BinOp) and isinstance(nd.op, ast.Pow) and any( + isinstance(c, ast.Name) and c.id == var for c in ast.walk(nd.right)) + return max(kids, default=0) + (1 if own else 0) + if pow_nest(tree) > MAX_POW_NEST: + raise Invalid("too many nested powers with a variable exponent") + x = sympy.Symbol(var, real=True) + names = {var: x, "C": sympy.Symbol("C"), "E": sympy.E, "pi": sympy.pi} + + def conv(nd): + if isinstance(nd, ast.Expression): + return conv(nd.body) + if isinstance(nd, ast.Constant): + v = nd.value + if isinstance(v, bool) or not isinstance(v, (int, float)): + raise Invalid(f"constant {v!r} not allowed") + if isinstance(v, int): + if abs(v) > 10 ** 18: + raise Invalid("integer constant too large") + return sympy.Integer(v) + if not math.isfinite(v): + raise Invalid("non-finite constant") + return sympy.Float(v, 30) + if isinstance(nd, ast.Name): + if nd.id not in names: + raise Invalid(f"unknown name {nd.id!r} (the variable is {var})") + return names[nd.id] + if isinstance(nd, ast.UnaryOp) and isinstance(nd.op, (ast.USub, ast.UAdd)): + a = conv(nd.operand) + return -a if isinstance(nd.op, ast.USub) else a + if isinstance(nd, ast.BinOp): + a, b = conv(nd.left), conv(nd.right) + if isinstance(nd.op, ast.Add): + return a + b + if isinstance(nd.op, ast.Sub): + return a - b + if isinstance(nd.op, ast.Mult): + return a * b + if isinstance(nd.op, ast.Div): + if b == 0: + raise Invalid("division by zero") + return a / b + if isinstance(nd.op, ast.Pow): + if not b.free_symbols: + bv = complex(b.evalf(20)) + if bv.imag != 0 or abs(bv.real) > 100: + raise Invalid("exponent too large") + if not a.free_symbols and abs(complex(a.evalf(20))) > 1e6: + raise Invalid("numeric power too large") + return a ** b + raise Invalid("only + - * / ** are allowed (use ** for powers)") + if isinstance(nd, ast.Call): + if not isinstance(nd.func, ast.Name) or nd.func.id not in FUNCS: + raise Invalid(f"function {ast.unparse(nd.func)!r} not allowed") + if nd.keywords or len(nd.args) != 1: + raise Invalid(f"{nd.func.id} takes exactly one argument") + return FUNCS[nd.func.id](conv(nd.args[0])) + raise Invalid(f"syntax element {type(nd).__name__} not allowed") + + return conv(tree), x + + +def value(expr, x, p): + v = expr.evalf(30, subs={x: sympy.Float(p, 30)}) + try: + z = complex(v) + except (TypeError, ValueError): + return None + if not (math.isfinite(z.real) and math.isfinite(z.imag)): + return None + return z + + +def _timeout(signum, frame): + raise Invalid(f"answer took more than {TIME_LIMIT} s to check") + + +def check(inst, ans): + if hasattr(signal, "SIGALRM"): + old = signal.signal(signal.SIGALRM, _timeout) + signal.alarm(TIME_LIMIT) + try: + return _check(inst, ans) + finally: + signal.alarm(0) + signal.signal(signal.SIGALRM, old) + return _check(inst, ans) + + +def _check(inst, ans): + var = inst["variable"] + F, x = parse(ans.get("antiderivative"), var) + f, x2 = parse(inst["integrand"], var) + if not F.has(x): + raise Invalid("antiderivative does not depend on the variable") + dF = sympy.diff(F, x) + used = 0 + for p in POINTS: + fv = value(f, x2, p) + if fv is None or abs(fv.imag) > 1e-20 * (1 + abs(fv.real)): + continue # outside the integrand's real domain + gv = value(dF, x, p) + if gv is None: + raise Invalid(f"derivative of the answer cannot be evaluated at {var} = {p}") + if abs(gv - fv) > 1e-9 * max(1.0, abs(fv)): + raise Invalid(f"derivative of the answer differs from the integrand at {var} = {p}") + used += 1 + if used < MIN_POINTS: + raise Invalid("too few evaluation points in the integrand's domain") + return None, {"points": used} diff --git a/tasks/construct-rg-intermediate-integration-l4-s1/tests/instance.json b/tasks/construct-rg-intermediate-integration-l4-s1/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..30676490d4bc3224885e24e8742d082f4ae5fb60 --- /dev/null +++ b/tasks/construct-rg-intermediate-integration-l4-s1/tests/instance.json @@ -0,0 +1 @@ +{"variable": "x", "integrand": "2*log(x)", "problem_type": "log_inverse_trig", "family": "rg_intermediate_integration", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rg-intermediate-integration-l4-s1/tests/run.py b/tasks/construct-rg-intermediate-integration-l4-s1/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rg-intermediate-integration-l4-s1/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rg-intermediate-integration-l4-s1/tests/test.sh b/tasks/construct-rg-intermediate-integration-l4-s1/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rg-intermediate-integration-l4-s1/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rg-intermediate-integration-l4-s6/environment/Dockerfile b/tasks/construct-rg-intermediate-integration-l4-s6/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rg-intermediate-integration-l4-s6/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rg-intermediate-integration-l4-s6/environment/instance.json b/tasks/construct-rg-intermediate-integration-l4-s6/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..a404b25fbfe011197256bc44c8e985ef2459efaf --- /dev/null +++ b/tasks/construct-rg-intermediate-integration-l4-s6/environment/instance.json @@ -0,0 +1 @@ +{"variable": "x", "integrand": "-asin(3*x)", "problem_type": "log_inverse_trig", "family": "rg_intermediate_integration", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rg-intermediate-integration-l4-s6/solution/solve.sh b/tasks/construct-rg-intermediate-integration-l4-s6/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..d6354cabd420482d03f3ca282ffc5abb1330fd2b --- /dev/null +++ b/tasks/construct-rg-intermediate-integration-l4-s6/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"antiderivative": "-x*asin(3*x) - sqrt(1 - 9*x**2)/3 + C"} +RLMATH_EOF diff --git a/tasks/construct-rg-intermediate-integration-l4-s6/tests/check.py b/tasks/construct-rg-intermediate-integration-l4-s6/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..a9e364a8ede6c8215a16a04ee6b0d3529adc647d --- /dev/null +++ b/tasks/construct-rg-intermediate-integration-l4-s6/tests/check.py @@ -0,0 +1,158 @@ +"""Antiderivative check (Reasoning Gym simple_integration / intermediate_integration, Apache-2.0). + +The answer string is parsed with a whitelist AST walker (no eval), differentiated with SymPy and compared +with the integrand numerically (30-digit evaluation) at fixed points inside the integrand's real domain. +Any additive constant (e.g. "+ C") is allowed. + +Upstream notes: upstream scores with sympy.parse_expr, which calls eval() on the model's string (arbitrary +code execution), and it accepts an unevaluated "Integral(f, x)" since its derivative is f. Both are +rejected here: only arithmetic, whitelisted elementary functions, the variable, C, E and pi are allowed.""" +import ast +import math +import signal + +import sympy + +from run import Invalid + +MAX_LEN = 3000 +MAX_NODES = 600 +MAX_POW_NEST = 4 # nested powers with a variable exponent (x**x**x**...) blow up differentiation +TIME_LIMIT = 40 # seconds; a slower answer is rejected +FUNCS = {"sin": sympy.sin, "cos": sympy.cos, "tan": sympy.tan, "cot": sympy.cot, "sec": sympy.sec, + "csc": sympy.csc, "asin": sympy.asin, "acos": sympy.acos, "atan": sympy.atan, "acot": sympy.acot, + "arcsin": sympy.asin, "arccos": sympy.acos, "arctan": sympy.atan, "sinh": sympy.sinh, + "cosh": sympy.cosh, "tanh": sympy.tanh, "asinh": sympy.asinh, "acosh": sympy.acosh, + "atanh": sympy.atanh, "exp": sympy.exp, "log": sympy.log, "ln": sympy.log, "sqrt": sympy.sqrt, + "Abs": sympy.Abs, "abs": sympy.Abs} +POINTS = [0.3137, 0.5521, 0.8093, 1.1171, 1.4519, 1.9033, 2.3471, 2.8123, 3.3319, 3.9107, 4.6231, + -0.3547, -0.6529, -0.9511, -1.3027, -1.7519, -2.2013, -2.7131, -3.1397, -3.8203, -4.4111, + 0.1231, -0.1523, 0.2129, -0.2617, 0.0517, -0.0719, 5.4127, -5.3311, 6.3019, -6.2203, 7.2213, + -7.1117, 8.9021, -9.3107, 10.7129, -10.6337, 12.9011, -12.8231, 15.3113, -15.2719] +MIN_POINTS = 5 + + +def parse(s, var): + if not isinstance(s, str) or not s.strip(): + raise Invalid("antiderivative must be a non-empty string") + if len(s) > MAX_LEN: + raise Invalid("expression too long") + s = s.strip() + try: + tree = ast.parse(s, mode="eval") + except SyntaxError: + raise Invalid("expression does not parse (use ** for powers and * for products)") + if sum(1 for _ in ast.walk(tree)) > MAX_NODES: + raise Invalid("expression too large") + + def pow_nest(nd): + kids = [pow_nest(c) for c in ast.iter_child_nodes(nd)] + own = isinstance(nd, ast.BinOp) and isinstance(nd.op, ast.Pow) and any( + isinstance(c, ast.Name) and c.id == var for c in ast.walk(nd.right)) + return max(kids, default=0) + (1 if own else 0) + if pow_nest(tree) > MAX_POW_NEST: + raise Invalid("too many nested powers with a variable exponent") + x = sympy.Symbol(var, real=True) + names = {var: x, "C": sympy.Symbol("C"), "E": sympy.E, "pi": sympy.pi} + + def conv(nd): + if isinstance(nd, ast.Expression): + return conv(nd.body) + if isinstance(nd, ast.Constant): + v = nd.value + if isinstance(v, bool) or not isinstance(v, (int, float)): + raise Invalid(f"constant {v!r} not allowed") + if isinstance(v, int): + if abs(v) > 10 ** 18: + raise Invalid("integer constant too large") + return sympy.Integer(v) + if not math.isfinite(v): + raise Invalid("non-finite constant") + return sympy.Float(v, 30) + if isinstance(nd, ast.Name): + if nd.id not in names: + raise Invalid(f"unknown name {nd.id!r} (the variable is {var})") + return names[nd.id] + if isinstance(nd, ast.UnaryOp) and isinstance(nd.op, (ast.USub, ast.UAdd)): + a = conv(nd.operand) + return -a if isinstance(nd.op, ast.USub) else a + if isinstance(nd, ast.BinOp): + a, b = conv(nd.left), conv(nd.right) + if isinstance(nd.op, ast.Add): + return a + b + if isinstance(nd.op, ast.Sub): + return a - b + if isinstance(nd.op, ast.Mult): + return a * b + if isinstance(nd.op, ast.Div): + if b == 0: + raise Invalid("division by zero") + return a / b + if isinstance(nd.op, ast.Pow): + if not b.free_symbols: + bv = complex(b.evalf(20)) + if bv.imag != 0 or abs(bv.real) > 100: + raise Invalid("exponent too large") + if not a.free_symbols and abs(complex(a.evalf(20))) > 1e6: + raise Invalid("numeric power too large") + return a ** b + raise Invalid("only + - * / ** are allowed (use ** for powers)") + if isinstance(nd, ast.Call): + if not isinstance(nd.func, ast.Name) or nd.func.id not in FUNCS: + raise Invalid(f"function {ast.unparse(nd.func)!r} not allowed") + if nd.keywords or len(nd.args) != 1: + raise Invalid(f"{nd.func.id} takes exactly one argument") + return FUNCS[nd.func.id](conv(nd.args[0])) + raise Invalid(f"syntax element {type(nd).__name__} not allowed") + + return conv(tree), x + + +def value(expr, x, p): + v = expr.evalf(30, subs={x: sympy.Float(p, 30)}) + try: + z = complex(v) + except (TypeError, ValueError): + return None + if not (math.isfinite(z.real) and math.isfinite(z.imag)): + return None + return z + + +def _timeout(signum, frame): + raise Invalid(f"answer took more than {TIME_LIMIT} s to check") + + +def check(inst, ans): + if hasattr(signal, "SIGALRM"): + old = signal.signal(signal.SIGALRM, _timeout) + signal.alarm(TIME_LIMIT) + try: + return _check(inst, ans) + finally: + signal.alarm(0) + signal.signal(signal.SIGALRM, old) + return _check(inst, ans) + + +def _check(inst, ans): + var = inst["variable"] + F, x = parse(ans.get("antiderivative"), var) + f, x2 = parse(inst["integrand"], var) + if not F.has(x): + raise Invalid("antiderivative does not depend on the variable") + dF = sympy.diff(F, x) + used = 0 + for p in POINTS: + fv = value(f, x2, p) + if fv is None or abs(fv.imag) > 1e-20 * (1 + abs(fv.real)): + continue # outside the integrand's real domain + gv = value(dF, x, p) + if gv is None: + raise Invalid(f"derivative of the answer cannot be evaluated at {var} = {p}") + if abs(gv - fv) > 1e-9 * max(1.0, abs(fv)): + raise Invalid(f"derivative of the answer differs from the integrand at {var} = {p}") + used += 1 + if used < MIN_POINTS: + raise Invalid("too few evaluation points in the integrand's domain") + return None, {"points": used} diff --git a/tasks/construct-rg-intermediate-integration-l4-s6/tests/instance.json b/tasks/construct-rg-intermediate-integration-l4-s6/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..a404b25fbfe011197256bc44c8e985ef2459efaf --- /dev/null +++ b/tasks/construct-rg-intermediate-integration-l4-s6/tests/instance.json @@ -0,0 +1 @@ +{"variable": "x", "integrand": "-asin(3*x)", "problem_type": "log_inverse_trig", "family": "rg_intermediate_integration", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rg-intermediate-integration-l4-s6/tests/run.py b/tasks/construct-rg-intermediate-integration-l4-s6/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rg-intermediate-integration-l4-s6/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rg-intermediate-integration-l4-s6/tests/test.sh b/tasks/construct-rg-intermediate-integration-l4-s6/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rg-intermediate-integration-l4-s6/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rg-intermediate-integration-l4-s8/environment/Dockerfile b/tasks/construct-rg-intermediate-integration-l4-s8/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rg-intermediate-integration-l4-s8/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rg-intermediate-integration-l4-s8/environment/instance.json b/tasks/construct-rg-intermediate-integration-l4-s8/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..dbd68bb827e6d78e526eed651aa1f2a4bf8b6915 --- /dev/null +++ b/tasks/construct-rg-intermediate-integration-l4-s8/environment/instance.json @@ -0,0 +1 @@ +{"variable": "x", "integrand": "2*atan(2*x)", "problem_type": "log_inverse_trig", "family": "rg_intermediate_integration", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rg-intermediate-integration-l4-s8/solution/solve.sh b/tasks/construct-rg-intermediate-integration-l4-s8/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..86e4b30ed3df7a26ba0ea8d91fbcd6a63d0c38cc --- /dev/null +++ b/tasks/construct-rg-intermediate-integration-l4-s8/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"antiderivative": "2*x*atan(2*x) - log(4*x**2 + 1)/2 + C"} +RLMATH_EOF diff --git a/tasks/construct-rg-intermediate-integration-l4-s8/tests/check.py b/tasks/construct-rg-intermediate-integration-l4-s8/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..a9e364a8ede6c8215a16a04ee6b0d3529adc647d --- /dev/null +++ b/tasks/construct-rg-intermediate-integration-l4-s8/tests/check.py @@ -0,0 +1,158 @@ +"""Antiderivative check (Reasoning Gym simple_integration / intermediate_integration, Apache-2.0). + +The answer string is parsed with a whitelist AST walker (no eval), differentiated with SymPy and compared +with the integrand numerically (30-digit evaluation) at fixed points inside the integrand's real domain. +Any additive constant (e.g. "+ C") is allowed. + +Upstream notes: upstream scores with sympy.parse_expr, which calls eval() on the model's string (arbitrary +code execution), and it accepts an unevaluated "Integral(f, x)" since its derivative is f. Both are +rejected here: only arithmetic, whitelisted elementary functions, the variable, C, E and pi are allowed.""" +import ast +import math +import signal + +import sympy + +from run import Invalid + +MAX_LEN = 3000 +MAX_NODES = 600 +MAX_POW_NEST = 4 # nested powers with a variable exponent (x**x**x**...) blow up differentiation +TIME_LIMIT = 40 # seconds; a slower answer is rejected +FUNCS = {"sin": sympy.sin, "cos": sympy.cos, "tan": sympy.tan, "cot": sympy.cot, "sec": sympy.sec, + "csc": sympy.csc, "asin": sympy.asin, "acos": sympy.acos, "atan": sympy.atan, "acot": sympy.acot, + "arcsin": sympy.asin, "arccos": sympy.acos, "arctan": sympy.atan, "sinh": sympy.sinh, + "cosh": sympy.cosh, "tanh": sympy.tanh, "asinh": sympy.asinh, "acosh": sympy.acosh, + "atanh": sympy.atanh, "exp": sympy.exp, "log": sympy.log, "ln": sympy.log, "sqrt": sympy.sqrt, + "Abs": sympy.Abs, "abs": sympy.Abs} +POINTS = [0.3137, 0.5521, 0.8093, 1.1171, 1.4519, 1.9033, 2.3471, 2.8123, 3.3319, 3.9107, 4.6231, + -0.3547, -0.6529, -0.9511, -1.3027, -1.7519, -2.2013, -2.7131, -3.1397, -3.8203, -4.4111, + 0.1231, -0.1523, 0.2129, -0.2617, 0.0517, -0.0719, 5.4127, -5.3311, 6.3019, -6.2203, 7.2213, + -7.1117, 8.9021, -9.3107, 10.7129, -10.6337, 12.9011, -12.8231, 15.3113, -15.2719] +MIN_POINTS = 5 + + +def parse(s, var): + if not isinstance(s, str) or not s.strip(): + raise Invalid("antiderivative must be a non-empty string") + if len(s) > MAX_LEN: + raise Invalid("expression too long") + s = s.strip() + try: + tree = ast.parse(s, mode="eval") + except SyntaxError: + raise Invalid("expression does not parse (use ** for powers and * for products)") + if sum(1 for _ in ast.walk(tree)) > MAX_NODES: + raise Invalid("expression too large") + + def pow_nest(nd): + kids = [pow_nest(c) for c in ast.iter_child_nodes(nd)] + own = isinstance(nd, ast.BinOp) and isinstance(nd.op, ast.Pow) and any( + isinstance(c, ast.Name) and c.id == var for c in ast.walk(nd.right)) + return max(kids, default=0) + (1 if own else 0) + if pow_nest(tree) > MAX_POW_NEST: + raise Invalid("too many nested powers with a variable exponent") + x = sympy.Symbol(var, real=True) + names = {var: x, "C": sympy.Symbol("C"), "E": sympy.E, "pi": sympy.pi} + + def conv(nd): + if isinstance(nd, ast.Expression): + return conv(nd.body) + if isinstance(nd, ast.Constant): + v = nd.value + if isinstance(v, bool) or not isinstance(v, (int, float)): + raise Invalid(f"constant {v!r} not allowed") + if isinstance(v, int): + if abs(v) > 10 ** 18: + raise Invalid("integer constant too large") + return sympy.Integer(v) + if not math.isfinite(v): + raise Invalid("non-finite constant") + return sympy.Float(v, 30) + if isinstance(nd, ast.Name): + if nd.id not in names: + raise Invalid(f"unknown name {nd.id!r} (the variable is {var})") + return names[nd.id] + if isinstance(nd, ast.UnaryOp) and isinstance(nd.op, (ast.USub, ast.UAdd)): + a = conv(nd.operand) + return -a if isinstance(nd.op, ast.USub) else a + if isinstance(nd, ast.BinOp): + a, b = conv(nd.left), conv(nd.right) + if isinstance(nd.op, ast.Add): + return a + b + if isinstance(nd.op, ast.Sub): + return a - b + if isinstance(nd.op, ast.Mult): + return a * b + if isinstance(nd.op, ast.Div): + if b == 0: + raise Invalid("division by zero") + return a / b + if isinstance(nd.op, ast.Pow): + if not b.free_symbols: + bv = complex(b.evalf(20)) + if bv.imag != 0 or abs(bv.real) > 100: + raise Invalid("exponent too large") + if not a.free_symbols and abs(complex(a.evalf(20))) > 1e6: + raise Invalid("numeric power too large") + return a ** b + raise Invalid("only + - * / ** are allowed (use ** for powers)") + if isinstance(nd, ast.Call): + if not isinstance(nd.func, ast.Name) or nd.func.id not in FUNCS: + raise Invalid(f"function {ast.unparse(nd.func)!r} not allowed") + if nd.keywords or len(nd.args) != 1: + raise Invalid(f"{nd.func.id} takes exactly one argument") + return FUNCS[nd.func.id](conv(nd.args[0])) + raise Invalid(f"syntax element {type(nd).__name__} not allowed") + + return conv(tree), x + + +def value(expr, x, p): + v = expr.evalf(30, subs={x: sympy.Float(p, 30)}) + try: + z = complex(v) + except (TypeError, ValueError): + return None + if not (math.isfinite(z.real) and math.isfinite(z.imag)): + return None + return z + + +def _timeout(signum, frame): + raise Invalid(f"answer took more than {TIME_LIMIT} s to check") + + +def check(inst, ans): + if hasattr(signal, "SIGALRM"): + old = signal.signal(signal.SIGALRM, _timeout) + signal.alarm(TIME_LIMIT) + try: + return _check(inst, ans) + finally: + signal.alarm(0) + signal.signal(signal.SIGALRM, old) + return _check(inst, ans) + + +def _check(inst, ans): + var = inst["variable"] + F, x = parse(ans.get("antiderivative"), var) + f, x2 = parse(inst["integrand"], var) + if not F.has(x): + raise Invalid("antiderivative does not depend on the variable") + dF = sympy.diff(F, x) + used = 0 + for p in POINTS: + fv = value(f, x2, p) + if fv is None or abs(fv.imag) > 1e-20 * (1 + abs(fv.real)): + continue # outside the integrand's real domain + gv = value(dF, x, p) + if gv is None: + raise Invalid(f"derivative of the answer cannot be evaluated at {var} = {p}") + if abs(gv - fv) > 1e-9 * max(1.0, abs(fv)): + raise Invalid(f"derivative of the answer differs from the integrand at {var} = {p}") + used += 1 + if used < MIN_POINTS: + raise Invalid("too few evaluation points in the integrand's domain") + return None, {"points": used} diff --git a/tasks/construct-rg-intermediate-integration-l4-s8/tests/instance.json b/tasks/construct-rg-intermediate-integration-l4-s8/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..dbd68bb827e6d78e526eed651aa1f2a4bf8b6915 --- /dev/null +++ b/tasks/construct-rg-intermediate-integration-l4-s8/tests/instance.json @@ -0,0 +1 @@ +{"variable": "x", "integrand": "2*atan(2*x)", "problem_type": "log_inverse_trig", "family": "rg_intermediate_integration", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rg-intermediate-integration-l4-s8/tests/run.py b/tasks/construct-rg-intermediate-integration-l4-s8/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rg-intermediate-integration-l4-s8/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rg-intermediate-integration-l4-s8/tests/test.sh b/tasks/construct-rg-intermediate-integration-l4-s8/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rg-intermediate-integration-l4-s8/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rg-simple-integration-l2-s3/environment/Dockerfile b/tasks/construct-rg-simple-integration-l2-s3/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rg-simple-integration-l2-s3/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rg-simple-integration-l2-s3/environment/instance.json b/tasks/construct-rg-simple-integration-l2-s3/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..461e32c5f95110df17257359991c2a2522ad7513 --- /dev/null +++ b/tasks/construct-rg-simple-integration-l2-s3/environment/instance.json @@ -0,0 +1 @@ +{"variable": "X", "integrand": "6*X**5 - 5*X**2/3 - 10", "family": "rg_simple_integration", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rg-simple-integration-l2-s3/solution/solve.sh b/tasks/construct-rg-simple-integration-l2-s3/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..b878c8bfbbbb5592203d86483a424186b1692f0f --- /dev/null +++ b/tasks/construct-rg-simple-integration-l2-s3/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"antiderivative": "X**6 - 5*X**3/9 - 10*X + C"} +RLMATH_EOF diff --git a/tasks/construct-rg-simple-integration-l2-s3/tests/check.py b/tasks/construct-rg-simple-integration-l2-s3/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..a9e364a8ede6c8215a16a04ee6b0d3529adc647d --- /dev/null +++ b/tasks/construct-rg-simple-integration-l2-s3/tests/check.py @@ -0,0 +1,158 @@ +"""Antiderivative check (Reasoning Gym simple_integration / intermediate_integration, Apache-2.0). + +The answer string is parsed with a whitelist AST walker (no eval), differentiated with SymPy and compared +with the integrand numerically (30-digit evaluation) at fixed points inside the integrand's real domain. +Any additive constant (e.g. "+ C") is allowed. + +Upstream notes: upstream scores with sympy.parse_expr, which calls eval() on the model's string (arbitrary +code execution), and it accepts an unevaluated "Integral(f, x)" since its derivative is f. Both are +rejected here: only arithmetic, whitelisted elementary functions, the variable, C, E and pi are allowed.""" +import ast +import math +import signal + +import sympy + +from run import Invalid + +MAX_LEN = 3000 +MAX_NODES = 600 +MAX_POW_NEST = 4 # nested powers with a variable exponent (x**x**x**...) blow up differentiation +TIME_LIMIT = 40 # seconds; a slower answer is rejected +FUNCS = {"sin": sympy.sin, "cos": sympy.cos, "tan": sympy.tan, "cot": sympy.cot, "sec": sympy.sec, + "csc": sympy.csc, "asin": sympy.asin, "acos": sympy.acos, "atan": sympy.atan, "acot": sympy.acot, + "arcsin": sympy.asin, "arccos": sympy.acos, "arctan": sympy.atan, "sinh": sympy.sinh, + "cosh": sympy.cosh, "tanh": sympy.tanh, "asinh": sympy.asinh, "acosh": sympy.acosh, + "atanh": sympy.atanh, "exp": sympy.exp, "log": sympy.log, "ln": sympy.log, "sqrt": sympy.sqrt, + "Abs": sympy.Abs, "abs": sympy.Abs} +POINTS = [0.3137, 0.5521, 0.8093, 1.1171, 1.4519, 1.9033, 2.3471, 2.8123, 3.3319, 3.9107, 4.6231, + -0.3547, -0.6529, -0.9511, -1.3027, -1.7519, -2.2013, -2.7131, -3.1397, -3.8203, -4.4111, + 0.1231, -0.1523, 0.2129, -0.2617, 0.0517, -0.0719, 5.4127, -5.3311, 6.3019, -6.2203, 7.2213, + -7.1117, 8.9021, -9.3107, 10.7129, -10.6337, 12.9011, -12.8231, 15.3113, -15.2719] +MIN_POINTS = 5 + + +def parse(s, var): + if not isinstance(s, str) or not s.strip(): + raise Invalid("antiderivative must be a non-empty string") + if len(s) > MAX_LEN: + raise Invalid("expression too long") + s = s.strip() + try: + tree = ast.parse(s, mode="eval") + except SyntaxError: + raise Invalid("expression does not parse (use ** for powers and * for products)") + if sum(1 for _ in ast.walk(tree)) > MAX_NODES: + raise Invalid("expression too large") + + def pow_nest(nd): + kids = [pow_nest(c) for c in ast.iter_child_nodes(nd)] + own = isinstance(nd, ast.BinOp) and isinstance(nd.op, ast.Pow) and any( + isinstance(c, ast.Name) and c.id == var for c in ast.walk(nd.right)) + return max(kids, default=0) + (1 if own else 0) + if pow_nest(tree) > MAX_POW_NEST: + raise Invalid("too many nested powers with a variable exponent") + x = sympy.Symbol(var, real=True) + names = {var: x, "C": sympy.Symbol("C"), "E": sympy.E, "pi": sympy.pi} + + def conv(nd): + if isinstance(nd, ast.Expression): + return conv(nd.body) + if isinstance(nd, ast.Constant): + v = nd.value + if isinstance(v, bool) or not isinstance(v, (int, float)): + raise Invalid(f"constant {v!r} not allowed") + if isinstance(v, int): + if abs(v) > 10 ** 18: + raise Invalid("integer constant too large") + return sympy.Integer(v) + if not math.isfinite(v): + raise Invalid("non-finite constant") + return sympy.Float(v, 30) + if isinstance(nd, ast.Name): + if nd.id not in names: + raise Invalid(f"unknown name {nd.id!r} (the variable is {var})") + return names[nd.id] + if isinstance(nd, ast.UnaryOp) and isinstance(nd.op, (ast.USub, ast.UAdd)): + a = conv(nd.operand) + return -a if isinstance(nd.op, ast.USub) else a + if isinstance(nd, ast.BinOp): + a, b = conv(nd.left), conv(nd.right) + if isinstance(nd.op, ast.Add): + return a + b + if isinstance(nd.op, ast.Sub): + return a - b + if isinstance(nd.op, ast.Mult): + return a * b + if isinstance(nd.op, ast.Div): + if b == 0: + raise Invalid("division by zero") + return a / b + if isinstance(nd.op, ast.Pow): + if not b.free_symbols: + bv = complex(b.evalf(20)) + if bv.imag != 0 or abs(bv.real) > 100: + raise Invalid("exponent too large") + if not a.free_symbols and abs(complex(a.evalf(20))) > 1e6: + raise Invalid("numeric power too large") + return a ** b + raise Invalid("only + - * / ** are allowed (use ** for powers)") + if isinstance(nd, ast.Call): + if not isinstance(nd.func, ast.Name) or nd.func.id not in FUNCS: + raise Invalid(f"function {ast.unparse(nd.func)!r} not allowed") + if nd.keywords or len(nd.args) != 1: + raise Invalid(f"{nd.func.id} takes exactly one argument") + return FUNCS[nd.func.id](conv(nd.args[0])) + raise Invalid(f"syntax element {type(nd).__name__} not allowed") + + return conv(tree), x + + +def value(expr, x, p): + v = expr.evalf(30, subs={x: sympy.Float(p, 30)}) + try: + z = complex(v) + except (TypeError, ValueError): + return None + if not (math.isfinite(z.real) and math.isfinite(z.imag)): + return None + return z + + +def _timeout(signum, frame): + raise Invalid(f"answer took more than {TIME_LIMIT} s to check") + + +def check(inst, ans): + if hasattr(signal, "SIGALRM"): + old = signal.signal(signal.SIGALRM, _timeout) + signal.alarm(TIME_LIMIT) + try: + return _check(inst, ans) + finally: + signal.alarm(0) + signal.signal(signal.SIGALRM, old) + return _check(inst, ans) + + +def _check(inst, ans): + var = inst["variable"] + F, x = parse(ans.get("antiderivative"), var) + f, x2 = parse(inst["integrand"], var) + if not F.has(x): + raise Invalid("antiderivative does not depend on the variable") + dF = sympy.diff(F, x) + used = 0 + for p in POINTS: + fv = value(f, x2, p) + if fv is None or abs(fv.imag) > 1e-20 * (1 + abs(fv.real)): + continue # outside the integrand's real domain + gv = value(dF, x, p) + if gv is None: + raise Invalid(f"derivative of the answer cannot be evaluated at {var} = {p}") + if abs(gv - fv) > 1e-9 * max(1.0, abs(fv)): + raise Invalid(f"derivative of the answer differs from the integrand at {var} = {p}") + used += 1 + if used < MIN_POINTS: + raise Invalid("too few evaluation points in the integrand's domain") + return None, {"points": used} diff --git a/tasks/construct-rg-simple-integration-l2-s3/tests/instance.json b/tasks/construct-rg-simple-integration-l2-s3/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..461e32c5f95110df17257359991c2a2522ad7513 --- /dev/null +++ b/tasks/construct-rg-simple-integration-l2-s3/tests/instance.json @@ -0,0 +1 @@ +{"variable": "X", "integrand": "6*X**5 - 5*X**2/3 - 10", "family": "rg_simple_integration", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rg-simple-integration-l2-s3/tests/run.py b/tasks/construct-rg-simple-integration-l2-s3/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rg-simple-integration-l2-s3/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rg-simple-integration-l2-s3/tests/test.sh b/tasks/construct-rg-simple-integration-l2-s3/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rg-simple-integration-l2-s3/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-antiderivative-l2-s3/environment/Dockerfile b/tasks/construct-rlve-antiderivative-l2-s3/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-antiderivative-l2-s3/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-antiderivative-l2-s3/environment/instance.json b/tasks/construct-rlve-antiderivative-l2-s3/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..aadae03c04b667e1720898d5a0cd1cdc3e7118c0 --- /dev/null +++ b/tasks/construct-rlve-antiderivative-l2-s3/environment/instance.json @@ -0,0 +1 @@ +{"f_prime": "4*x", "max_ops": 28, "max_len": 520, "family": "rlve_antiderivative", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-antiderivative-l2-s3/solution/solve.sh b/tasks/construct-rlve-antiderivative-l2-s3/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..5b42eacc36f911f4a8ae4027b4706151c3d3fd22 --- /dev/null +++ b/tasks/construct-rlve-antiderivative-l2-s3/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"F": "2*x**2"} +RLMATH_EOF diff --git a/tasks/construct-rlve-antiderivative-l2-s3/tests/check.py b/tasks/construct-rlve-antiderivative-l2-s3/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..c6b30b93bbbb7795b54d973e43f25b23c82cb7fc --- /dev/null +++ b/tasks/construct-rlve-antiderivative-l2-s3/tests/check.py @@ -0,0 +1,107 @@ +"""Antiderivative check. The answer string is tokenised against a whitelist (x, integers, + - * / ** ( ) and a few +elementary functions) before sympy parses it, so no Python eval of untrusted text and no `integrate`/`Integral`.""" +import re +import signal + +import sympy +from sympy.parsing.sympy_parser import auto_number, parse_expr + +from run import Invalid + +x = sympy.Symbol("x") +FUNCS = {"sin": sympy.sin, "cos": sympy.cos, "tan": sympy.tan, "exp": sympy.exp, "log": sympy.log, + "sqrt": sympy.sqrt, "asin": sympy.asin, "acos": sympy.acos, "atan": sympy.atan, "sinh": sympy.sinh, + "cosh": sympy.cosh, "tanh": sympy.tanh, "E": sympy.E, "pi": sympy.pi, "x": x} +TOK = re.compile(r"\s*(?:(\d+)|([A-Za-z]+)|(\*\*|[-+*/()]))") +NPTS = 40 + + +def safe_parse(s, max_len): + if not isinstance(s, str) or not s.strip(): + raise Invalid("F must be a non-empty string") + if len(s) > max_len: + raise Invalid("expression too long") + pos = 0 + while pos < len(s): + m = TOK.match(s, pos) + if not m or m.end() == pos: + if s[pos:].strip() == "": + break + raise Invalid(f"illegal character near position {pos}") + if m.group(1) and len(m.group(1)) > 12: + raise Invalid("integer literal too long") + if m.group(2) and m.group(2) not in FUNCS: + raise Invalid(f"unknown name {m.group(2)!r}") + pos = m.end() + try: + e = parse_expr(s, local_dict=dict(FUNCS), global_dict={"__builtins__": {}, "Integer": sympy.Integer}, + transformations=(auto_number,)) + except Invalid: + raise + except Exception as ex: + raise Invalid(f"cannot parse F: {type(ex).__name__}") + if not isinstance(e, sympy.Expr): + raise Invalid("F is not an expression") + if e.free_symbols - {x}: + raise Invalid("F may only contain the variable x") + return e + + +def _val(e, pt): + v = e.evalf(40, subs={x: pt}) + if not v.is_number or v.has(sympy.zoo, sympy.nan, sympy.oo, -sympy.oo): + return None + return v + + +class _Timeout(Exception): + pass + + +def _alarm(*_): + raise _Timeout() + + +def check(inst, ans): + old = None + try: + old = signal.signal(signal.SIGALRM, _alarm) + signal.alarm(40) + except ValueError: # not in main thread + old = None + try: + return _check(inst, ans) + except _Timeout: + raise Invalid("evaluation timed out") + except RecursionError: + raise Invalid("expression too deep") + finally: + if old is not None: + signal.alarm(0) + signal.signal(signal.SIGALRM, old) + + +def _check(inst, ans): + F = safe_parse(ans.get("F"), inst["max_len"]) + if sympy.count_ops(F) > inst["max_ops"]: + raise Invalid("expression too complex") + if any(isinstance(a, sympy.Rational) and max(abs(a.p), abs(a.q)) > 10 ** 12 for a in F.atoms(sympy.Rational)): + raise Invalid("numeric constants too large") + D = sympy.diff(F, x) + f = sympy.sympify(inst["f_prime"]) # trusted instance data + ok = 0 + for k in range(NPTS): + pt = sympy.Rational(2 * k + 1, NPTS // 2 * 2) * 2 - 2 + sympy.Rational(1, 997) + vf = _val(f, pt) + if vf is None: + continue + vd = _val(D, pt) + if vd is None: + continue + err = sympy.Abs(vd - vf).evalf(40) + if err > sympy.Float("1e-20", 40) * (1 + sympy.Abs(vf).evalf(40)): + raise Invalid(f"F'(x) != f(x) at x = {float(pt):.4f}") + ok += 1 + if ok < NPTS // 4: + raise Invalid("F' could not be compared with f on enough test points") + return None, {"points_checked": ok} diff --git a/tasks/construct-rlve-antiderivative-l2-s3/tests/instance.json b/tasks/construct-rlve-antiderivative-l2-s3/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..aadae03c04b667e1720898d5a0cd1cdc3e7118c0 --- /dev/null +++ b/tasks/construct-rlve-antiderivative-l2-s3/tests/instance.json @@ -0,0 +1 @@ +{"f_prime": "4*x", "max_ops": 28, "max_len": 520, "family": "rlve_antiderivative", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-antiderivative-l2-s3/tests/run.py b/tasks/construct-rlve-antiderivative-l2-s3/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-antiderivative-l2-s3/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-antiderivative-l2-s3/tests/test.sh b/tasks/construct-rlve-antiderivative-l2-s3/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-antiderivative-l2-s3/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-bezout-identity-l2-s7/environment/Dockerfile b/tasks/construct-rlve-bezout-identity-l2-s7/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-bezout-identity-l2-s7/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-bezout-identity-l2-s7/environment/instance.json b/tasks/construct-rlve-bezout-identity-l2-s7/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..15b20cb8e9fff1806a05584102dc0f80aa3532d6 --- /dev/null +++ b/tasks/construct-rlve-bezout-identity-l2-s7/environment/instance.json @@ -0,0 +1 @@ +{"A": [-4, -16, -42, 24], "target": 2, "family": "rlve_bezout_identity", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-bezout-identity-l2-s7/solution/solve.sh b/tasks/construct-rlve-bezout-identity-l2-s7/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..7ff26696534af6e701a4b936be6dc80ee94a1ddb --- /dev/null +++ b/tasks/construct-rlve-bezout-identity-l2-s7/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"X": [10, 0, -1, 0]} +RLMATH_EOF diff --git a/tasks/construct-rlve-bezout-identity-l2-s7/tests/check.py b/tasks/construct-rlve-bezout-identity-l2-s7/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..b4cb860ed36974a12b71adc9a0fa3f1ad85c814a --- /dev/null +++ b/tasks/construct-rlve-bezout-identity-l2-s7/tests/check.py @@ -0,0 +1,10 @@ +from run import Invalid, int_list + + +def check(inst, ans): + A = inst["A"] + X = int_list(ans.get("X"), len(A), name="X") + S = sum(a * x for a, x in zip(A, X)) + if S != inst["target"]: + raise Invalid(f"S = {S}, required {inst['target']}") + return None, {} diff --git a/tasks/construct-rlve-bezout-identity-l2-s7/tests/instance.json b/tasks/construct-rlve-bezout-identity-l2-s7/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..15b20cb8e9fff1806a05584102dc0f80aa3532d6 --- /dev/null +++ b/tasks/construct-rlve-bezout-identity-l2-s7/tests/instance.json @@ -0,0 +1 @@ +{"A": [-4, -16, -42, 24], "target": 2, "family": "rlve_bezout_identity", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-bezout-identity-l2-s7/tests/run.py b/tasks/construct-rlve-bezout-identity-l2-s7/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-bezout-identity-l2-s7/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-bezout-identity-l2-s7/tests/test.sh b/tasks/construct-rlve-bezout-identity-l2-s7/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-bezout-identity-l2-s7/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-bezout-identity-l3-s9/environment/Dockerfile b/tasks/construct-rlve-bezout-identity-l3-s9/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-bezout-identity-l3-s9/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-bezout-identity-l3-s9/environment/instance.json b/tasks/construct-rlve-bezout-identity-l3-s9/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..588f8a44a3b76ddb75608a9dcdf53d284298e72c --- /dev/null +++ b/tasks/construct-rlve-bezout-identity-l3-s9/environment/instance.json @@ -0,0 +1 @@ +{"A": [-312, -192, 321, 336, -504, 39], "target": 3, "family": "rlve_bezout_identity", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-bezout-identity-l3-s9/solution/solve.sh b/tasks/construct-rlve-bezout-identity-l3-s9/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..43d680554c947be9eb2f1993b936c511f39b1e2a --- /dev/null +++ b/tasks/construct-rlve-bezout-identity-l3-s9/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"X": [-120, 200, 3, 0, 0, 0]} +RLMATH_EOF diff --git a/tasks/construct-rlve-bezout-identity-l3-s9/tests/check.py b/tasks/construct-rlve-bezout-identity-l3-s9/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..b4cb860ed36974a12b71adc9a0fa3f1ad85c814a --- /dev/null +++ b/tasks/construct-rlve-bezout-identity-l3-s9/tests/check.py @@ -0,0 +1,10 @@ +from run import Invalid, int_list + + +def check(inst, ans): + A = inst["A"] + X = int_list(ans.get("X"), len(A), name="X") + S = sum(a * x for a, x in zip(A, X)) + if S != inst["target"]: + raise Invalid(f"S = {S}, required {inst['target']}") + return None, {} diff --git a/tasks/construct-rlve-bezout-identity-l3-s9/tests/instance.json b/tasks/construct-rlve-bezout-identity-l3-s9/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..588f8a44a3b76ddb75608a9dcdf53d284298e72c --- /dev/null +++ b/tasks/construct-rlve-bezout-identity-l3-s9/tests/instance.json @@ -0,0 +1 @@ +{"A": [-312, -192, 321, 336, -504, 39], "target": 3, "family": "rlve_bezout_identity", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-bezout-identity-l3-s9/tests/run.py b/tasks/construct-rlve-bezout-identity-l3-s9/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-bezout-identity-l3-s9/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-bezout-identity-l3-s9/tests/test.sh b/tasks/construct-rlve-bezout-identity-l3-s9/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-bezout-identity-l3-s9/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-bezout-identity-l6-s8/environment/Dockerfile b/tasks/construct-rlve-bezout-identity-l6-s8/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-bezout-identity-l6-s8/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-bezout-identity-l6-s8/environment/instance.json b/tasks/construct-rlve-bezout-identity-l6-s8/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..ce206c5d946e36797d04bfd8391580c551636c4d --- /dev/null +++ b/tasks/construct-rlve-bezout-identity-l6-s8/environment/instance.json @@ -0,0 +1 @@ +{"A": [30144, -20344, -4656, -4710, -23402, -9730, 17630, 27784, 11382, 4532, -29184, 2198], "target": 2, "family": "rlve_bezout_identity", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-bezout-identity-l6-s8/solution/solve.sh b/tasks/construct-rlve-bezout-identity-l6-s8/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..8989064f70b7019bf677d7b33bbc416b74dbb143 --- /dev/null +++ b/tasks/construct-rlve-bezout-identity-l6-s8/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"X": [-467077, -692075, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]} +RLMATH_EOF diff --git a/tasks/construct-rlve-bezout-identity-l6-s8/tests/check.py b/tasks/construct-rlve-bezout-identity-l6-s8/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..b4cb860ed36974a12b71adc9a0fa3f1ad85c814a --- /dev/null +++ b/tasks/construct-rlve-bezout-identity-l6-s8/tests/check.py @@ -0,0 +1,10 @@ +from run import Invalid, int_list + + +def check(inst, ans): + A = inst["A"] + X = int_list(ans.get("X"), len(A), name="X") + S = sum(a * x for a, x in zip(A, X)) + if S != inst["target"]: + raise Invalid(f"S = {S}, required {inst['target']}") + return None, {} diff --git a/tasks/construct-rlve-bezout-identity-l6-s8/tests/instance.json b/tasks/construct-rlve-bezout-identity-l6-s8/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..ce206c5d946e36797d04bfd8391580c551636c4d --- /dev/null +++ b/tasks/construct-rlve-bezout-identity-l6-s8/tests/instance.json @@ -0,0 +1 @@ +{"A": [30144, -20344, -4656, -4710, -23402, -9730, 17630, 27784, 11382, 4532, -29184, 2198], "target": 2, "family": "rlve_bezout_identity", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-bezout-identity-l6-s8/tests/run.py b/tasks/construct-rlve-bezout-identity-l6-s8/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-bezout-identity-l6-s8/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-bezout-identity-l6-s8/tests/test.sh b/tasks/construct-rlve-bezout-identity-l6-s8/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-bezout-identity-l6-s8/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-construct-hack-interval-l4-s2/environment/Dockerfile b/tasks/construct-rlve-construct-hack-interval-l4-s2/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-construct-hack-interval-l4-s2/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-construct-hack-interval-l4-s2/environment/instance.json b/tasks/construct-rlve-construct-hack-interval-l4-s2/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..64ac82ec2f537e6a23c020f0fcf8f12bb2006a87 --- /dev/null +++ b/tasks/construct-rlve-construct-hack-interval-l4-s2/environment/instance.json @@ -0,0 +1 @@ +{"mod": 6245092973, "family": "rlve_construct_hack_interval", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-construct-hack-interval-l4-s2/solution/solve.sh b/tasks/construct-rlve-construct-hack-interval-l4-s2/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..a068eaa15d6479d9f512ebbac67883cbdf5a82ca --- /dev/null +++ b/tasks/construct-rlve-construct-hack-interval-l4-s2/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"L": 3215650811, "R": 4215650810} +RLMATH_EOF diff --git a/tasks/construct-rlve-construct-hack-interval-l4-s2/tests/check.py b/tasks/construct-rlve-construct-hack-interval-l4-s2/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..34b46e9758e3a50ed16c9c2a29cfc0abe663926b --- /dev/null +++ b/tasks/construct-rlve-construct-hack-interval-l4-s2/tests/check.py @@ -0,0 +1,30 @@ +from run import Invalid, as_int + + +def digit_sum_prefix(n): + """sum of digit sums of all integers in [0, n] (exact, digit DP).""" + if n <= 0: + return 0 + s = str(n) + total, prefix_sum = 0, 0 + k = len(s) + for i, ch in enumerate(s): + d = int(ch) + rest = k - i - 1 + p = 10 ** rest + # numbers with this digit < d, free suffix of `rest` digits + total += d * prefix_sum * p + (d * (d - 1) // 2) * p + d * (45 * rest * p // 10 if rest else 0) + prefix_sum += d + return total + prefix_sum # include n itself + + +def check(inst, ans): + mod = inst["mod"] + L = as_int(ans.get("L"), "L", lo=1) + R = as_int(ans.get("R"), "R", lo=1, hi=10 * mod) + if L > R: + raise Invalid("need L <= R") + total = digit_sum_prefix(R) - digit_sum_prefix(L - 1) + if total % mod: + raise Invalid(f"sum of digit sums over [L, R] is {total}, not divisible by {mod}") + return None, {} diff --git a/tasks/construct-rlve-construct-hack-interval-l4-s2/tests/instance.json b/tasks/construct-rlve-construct-hack-interval-l4-s2/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..64ac82ec2f537e6a23c020f0fcf8f12bb2006a87 --- /dev/null +++ b/tasks/construct-rlve-construct-hack-interval-l4-s2/tests/instance.json @@ -0,0 +1 @@ +{"mod": 6245092973, "family": "rlve_construct_hack_interval", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-construct-hack-interval-l4-s2/tests/run.py b/tasks/construct-rlve-construct-hack-interval-l4-s2/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-construct-hack-interval-l4-s2/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-construct-hack-interval-l4-s2/tests/test.sh b/tasks/construct-rlve-construct-hack-interval-l4-s2/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-construct-hack-interval-l4-s2/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-construct-hack-interval-l4-s5/environment/Dockerfile b/tasks/construct-rlve-construct-hack-interval-l4-s5/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-construct-hack-interval-l4-s5/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-construct-hack-interval-l4-s5/environment/instance.json b/tasks/construct-rlve-construct-hack-interval-l4-s5/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..5b37026bfe1d8254cac5e1994e4a129d88d6d048 --- /dev/null +++ b/tasks/construct-rlve-construct-hack-interval-l4-s5/environment/instance.json @@ -0,0 +1 @@ +{"mod": 9954128524, "family": "rlve_construct_hack_interval", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-construct-hack-interval-l4-s5/solution/solve.sh b/tasks/construct-rlve-construct-hack-interval-l4-s5/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..b3cfeb663c03136ecbb0720313991ef6f9ce2960 --- /dev/null +++ b/tasks/construct-rlve-construct-hack-interval-l4-s5/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"L": 7889912104, "R": 17889912103} +RLMATH_EOF diff --git a/tasks/construct-rlve-construct-hack-interval-l4-s5/tests/check.py b/tasks/construct-rlve-construct-hack-interval-l4-s5/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..34b46e9758e3a50ed16c9c2a29cfc0abe663926b --- /dev/null +++ b/tasks/construct-rlve-construct-hack-interval-l4-s5/tests/check.py @@ -0,0 +1,30 @@ +from run import Invalid, as_int + + +def digit_sum_prefix(n): + """sum of digit sums of all integers in [0, n] (exact, digit DP).""" + if n <= 0: + return 0 + s = str(n) + total, prefix_sum = 0, 0 + k = len(s) + for i, ch in enumerate(s): + d = int(ch) + rest = k - i - 1 + p = 10 ** rest + # numbers with this digit < d, free suffix of `rest` digits + total += d * prefix_sum * p + (d * (d - 1) // 2) * p + d * (45 * rest * p // 10 if rest else 0) + prefix_sum += d + return total + prefix_sum # include n itself + + +def check(inst, ans): + mod = inst["mod"] + L = as_int(ans.get("L"), "L", lo=1) + R = as_int(ans.get("R"), "R", lo=1, hi=10 * mod) + if L > R: + raise Invalid("need L <= R") + total = digit_sum_prefix(R) - digit_sum_prefix(L - 1) + if total % mod: + raise Invalid(f"sum of digit sums over [L, R] is {total}, not divisible by {mod}") + return None, {} diff --git a/tasks/construct-rlve-construct-hack-interval-l4-s5/tests/instance.json b/tasks/construct-rlve-construct-hack-interval-l4-s5/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..5b37026bfe1d8254cac5e1994e4a129d88d6d048 --- /dev/null +++ b/tasks/construct-rlve-construct-hack-interval-l4-s5/tests/instance.json @@ -0,0 +1 @@ +{"mod": 9954128524, "family": "rlve_construct_hack_interval", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-construct-hack-interval-l4-s5/tests/run.py b/tasks/construct-rlve-construct-hack-interval-l4-s5/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-construct-hack-interval-l4-s5/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-construct-hack-interval-l4-s5/tests/test.sh b/tasks/construct-rlve-construct-hack-interval-l4-s5/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-construct-hack-interval-l4-s5/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-distinct-subset-sum-permutation-l4-s3/environment/Dockerfile b/tasks/construct-rlve-distinct-subset-sum-permutation-l4-s3/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-distinct-subset-sum-permutation-l4-s3/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-distinct-subset-sum-permutation-l4-s3/environment/instance.json b/tasks/construct-rlve-distinct-subset-sum-permutation-l4-s3/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..be5f36ed50006c1a5b6190b8d3e505cd4d0f2abe --- /dev/null +++ b/tasks/construct-rlve-distinct-subset-sum-permutation-l4-s3/environment/instance.json @@ -0,0 +1 @@ +{"A": [25, 6, 21, 22, 7, 4, 15, 11, 27, 10, 5, 18, 0, 16], "family": "rlve_distinct_subset_sum_permutation", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-distinct-subset-sum-permutation-l4-s3/solution/solve.sh b/tasks/construct-rlve-distinct-subset-sum-permutation-l4-s3/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..049f6bf97da230cbdd5d39ad3bede21eb9d6cea0 --- /dev/null +++ b/tasks/construct-rlve-distinct-subset-sum-permutation-l4-s3/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"B": [27, 7, 22, 25, 10, 5, 16, 15, 0, 11, 6, 21, 4, 18]} +RLMATH_EOF diff --git a/tasks/construct-rlve-distinct-subset-sum-permutation-l4-s3/tests/check.py b/tasks/construct-rlve-distinct-subset-sum-permutation-l4-s3/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..06bbbcf872c2fca05785f40fdfdcf85a5e5a0e7c --- /dev/null +++ b/tasks/construct-rlve-distinct-subset-sum-permutation-l4-s3/tests/check.py @@ -0,0 +1,22 @@ +from collections import Counter + +from run import Invalid, int_list + + +def check(inst, ans): + A = inst["A"] + n = len(A) + B = int_list(ans.get("B"), n, name="B") + if Counter(B) != Counter(A): + raise Invalid("B is not a permutation of A") + d = [a - b for a, b in zip(A, B)] + # count subsets (including empty and full) with sum 0; the empty and full sets always qualify + ways = Counter({0: 1}) + for x in d: + nxt = Counter(ways) + for s, c in ways.items(): + nxt[s + x] += c + ways = nxt + if ways[0] != 2: + raise Invalid(f"{ways[0] - 2} non-empty proper subsets have equal sums in A and B") + return None, {} diff --git a/tasks/construct-rlve-distinct-subset-sum-permutation-l4-s3/tests/instance.json b/tasks/construct-rlve-distinct-subset-sum-permutation-l4-s3/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..be5f36ed50006c1a5b6190b8d3e505cd4d0f2abe --- /dev/null +++ b/tasks/construct-rlve-distinct-subset-sum-permutation-l4-s3/tests/instance.json @@ -0,0 +1 @@ +{"A": [25, 6, 21, 22, 7, 4, 15, 11, 27, 10, 5, 18, 0, 16], "family": "rlve_distinct_subset_sum_permutation", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-distinct-subset-sum-permutation-l4-s3/tests/run.py b/tasks/construct-rlve-distinct-subset-sum-permutation-l4-s3/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-distinct-subset-sum-permutation-l4-s3/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-distinct-subset-sum-permutation-l4-s3/tests/test.sh b/tasks/construct-rlve-distinct-subset-sum-permutation-l4-s3/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-distinct-subset-sum-permutation-l4-s3/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-distinct-subset-sum-permutation-l4-s4/solution/solve.sh b/tasks/construct-rlve-distinct-subset-sum-permutation-l4-s4/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..18907907ea7153a5deff6cf6b6bd81a6dbff3a4a --- /dev/null +++ b/tasks/construct-rlve-distinct-subset-sum-permutation-l4-s4/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"B": [23, 16, 11, 22, 9, 5, 26, 21, 3, 25, 8, 20, 15, 27]} +RLMATH_EOF diff --git a/tasks/construct-rlve-distinct-subset-sum-permutation-l4-s4/tests/check.py b/tasks/construct-rlve-distinct-subset-sum-permutation-l4-s4/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..06bbbcf872c2fca05785f40fdfdcf85a5e5a0e7c --- /dev/null +++ b/tasks/construct-rlve-distinct-subset-sum-permutation-l4-s4/tests/check.py @@ -0,0 +1,22 @@ +from collections import Counter + +from run import Invalid, int_list + + +def check(inst, ans): + A = inst["A"] + n = len(A) + B = int_list(ans.get("B"), n, name="B") + if Counter(B) != Counter(A): + raise Invalid("B is not a permutation of A") + d = [a - b for a, b in zip(A, B)] + # count subsets (including empty and full) with sum 0; the empty and full sets always qualify + ways = Counter({0: 1}) + for x in d: + nxt = Counter(ways) + for s, c in ways.items(): + nxt[s + x] += c + ways = nxt + if ways[0] != 2: + raise Invalid(f"{ways[0] - 2} non-empty proper subsets have equal sums in A and B") + return None, {} diff --git a/tasks/construct-rlve-distinct-subset-sum-permutation-l4-s4/tests/instance.json b/tasks/construct-rlve-distinct-subset-sum-permutation-l4-s4/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..f14e0ad63a2ec961336c91e501ca81a28ef431b9 --- /dev/null +++ b/tasks/construct-rlve-distinct-subset-sum-permutation-l4-s4/tests/instance.json @@ -0,0 +1 @@ +{"A": [22, 15, 9, 21, 8, 3, 25, 20, 27, 23, 5, 16, 11, 26], "family": "rlve_distinct_subset_sum_permutation", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-distinct-subset-sum-permutation-l4-s4/tests/run.py b/tasks/construct-rlve-distinct-subset-sum-permutation-l4-s4/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-distinct-subset-sum-permutation-l4-s4/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-distinct-subset-sum-permutation-l4-s4/tests/test.sh b/tasks/construct-rlve-distinct-subset-sum-permutation-l4-s4/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-distinct-subset-sum-permutation-l4-s4/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-even-degree-partition-l1-s2/environment/Dockerfile b/tasks/construct-rlve-even-degree-partition-l1-s2/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-even-degree-partition-l1-s2/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-even-degree-partition-l1-s2/environment/instance.json b/tasks/construct-rlve-even-degree-partition-l1-s2/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..2780a2ad34773d3498188374f6dd85ad41552039 --- /dev/null +++ b/tasks/construct-rlve-even-degree-partition-l1-s2/environment/instance.json @@ -0,0 +1 @@ +{"n": 5, "edges": [[0, 2], [0, 3], [1, 2], [1, 3], [2, 3], [2, 4], [3, 4]], "family": "rlve_even_degree_partition", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-even-degree-partition-l1-s2/solution/solve.sh b/tasks/construct-rlve-even-degree-partition-l1-s2/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..d5d3e954e730f77ad5ffcd550a21a81a892050a8 --- /dev/null +++ b/tasks/construct-rlve-even-degree-partition-l1-s2/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"groups": [1, 1, 1, 1, 1]} +RLMATH_EOF diff --git a/tasks/construct-rlve-even-degree-partition-l1-s2/tests/check.py b/tasks/construct-rlve-even-degree-partition-l1-s2/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..9c7f0f71ea6d10264ececcc933b97a4a0e6eaf8e --- /dev/null +++ b/tasks/construct-rlve-even-degree-partition-l1-s2/tests/check.py @@ -0,0 +1,15 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n = inst["n"] + g = int_list(ans.get("groups"), n, 1, 2, "groups") + deg = [0] * n + for u, v in inst["edges"]: + if g[u] == g[v]: + deg[u] += 1 + deg[v] += 1 + for v in range(n): + if deg[v] % 2: + raise Invalid(f"vertex {v} has {deg[v]} same-group neighbours") + return None, {} diff --git a/tasks/construct-rlve-even-degree-partition-l1-s2/tests/instance.json b/tasks/construct-rlve-even-degree-partition-l1-s2/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..2780a2ad34773d3498188374f6dd85ad41552039 --- /dev/null +++ b/tasks/construct-rlve-even-degree-partition-l1-s2/tests/instance.json @@ -0,0 +1 @@ +{"n": 5, "edges": [[0, 2], [0, 3], [1, 2], [1, 3], [2, 3], [2, 4], [3, 4]], "family": "rlve_even_degree_partition", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-even-degree-partition-l1-s2/tests/run.py b/tasks/construct-rlve-even-degree-partition-l1-s2/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-even-degree-partition-l1-s2/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-even-degree-partition-l1-s2/tests/test.sh b/tasks/construct-rlve-even-degree-partition-l1-s2/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-even-degree-partition-l1-s2/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-even-degree-partition-l4-s4/environment/Dockerfile b/tasks/construct-rlve-even-degree-partition-l4-s4/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-even-degree-partition-l4-s4/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-even-degree-partition-l4-s4/environment/instance.json b/tasks/construct-rlve-even-degree-partition-l4-s4/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..50e1be705edc18c3e7be3956f73959a96a7b1b19 --- /dev/null +++ b/tasks/construct-rlve-even-degree-partition-l4-s4/environment/instance.json @@ -0,0 +1 @@ +{"n": 18, "edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [1, 3], [1, 6], [1, 7], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 17], [2, 6], [2, 11], [2, 12], [3, 7], [3, 10], [3, 11], [3, 12], [3, 13], [3, 14], [3, 15], [3, 17], [4, 6], [4, 7], [4, 8], [4, 11], [4, 13], [4, 15], [4, 17], [5, 6], [5, 7], [5, 10], [5, 11], [5, 13], [6, 7], [6, 10], [6, 11], [6, 12], [6, 13], [6, 14], [6, 15], [6, 16], [6, 17], [7, 8], [7, 11], [7, 12], [7, 13], [7, 14], [7, 15], [8, 9], [8, 10], [8, 12], [8, 15], [9, 11], [9, 14], [10, 11], [11, 12], [11, 13], [11, 14], [11, 15], [11, 16], [11, 17], [12, 13], [12, 15], [13, 14], [13, 15], [13, 16], [14, 15], [14, 17], [15, 17]], "family": "rlve_even_degree_partition", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-even-degree-partition-l4-s4/solution/solve.sh b/tasks/construct-rlve-even-degree-partition-l4-s4/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..640e0b94b4a0cd2048a170bd23131806568e745a --- /dev/null +++ b/tasks/construct-rlve-even-degree-partition-l4-s4/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"groups": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]} +RLMATH_EOF diff --git a/tasks/construct-rlve-even-degree-partition-l4-s4/tests/check.py b/tasks/construct-rlve-even-degree-partition-l4-s4/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..9c7f0f71ea6d10264ececcc933b97a4a0e6eaf8e --- /dev/null +++ b/tasks/construct-rlve-even-degree-partition-l4-s4/tests/check.py @@ -0,0 +1,15 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n = inst["n"] + g = int_list(ans.get("groups"), n, 1, 2, "groups") + deg = [0] * n + for u, v in inst["edges"]: + if g[u] == g[v]: + deg[u] += 1 + deg[v] += 1 + for v in range(n): + if deg[v] % 2: + raise Invalid(f"vertex {v} has {deg[v]} same-group neighbours") + return None, {} diff --git a/tasks/construct-rlve-even-degree-partition-l4-s4/tests/instance.json b/tasks/construct-rlve-even-degree-partition-l4-s4/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..50e1be705edc18c3e7be3956f73959a96a7b1b19 --- /dev/null +++ b/tasks/construct-rlve-even-degree-partition-l4-s4/tests/instance.json @@ -0,0 +1 @@ +{"n": 18, "edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [1, 3], [1, 6], [1, 7], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 17], [2, 6], [2, 11], [2, 12], [3, 7], [3, 10], [3, 11], [3, 12], [3, 13], [3, 14], [3, 15], [3, 17], [4, 6], [4, 7], [4, 8], [4, 11], [4, 13], [4, 15], [4, 17], [5, 6], [5, 7], [5, 10], [5, 11], [5, 13], [6, 7], [6, 10], [6, 11], [6, 12], [6, 13], [6, 14], [6, 15], [6, 16], [6, 17], [7, 8], [7, 11], [7, 12], [7, 13], [7, 14], [7, 15], [8, 9], [8, 10], [8, 12], [8, 15], [9, 11], [9, 14], [10, 11], [11, 12], [11, 13], [11, 14], [11, 15], [11, 16], [11, 17], [12, 13], [12, 15], [13, 14], [13, 15], [13, 16], [14, 15], [14, 17], [15, 17]], "family": "rlve_even_degree_partition", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-even-degree-partition-l4-s4/tests/run.py b/tasks/construct-rlve-even-degree-partition-l4-s4/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-even-degree-partition-l4-s4/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-even-degree-partition-l4-s4/tests/test.sh b/tasks/construct-rlve-even-degree-partition-l4-s4/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-even-degree-partition-l4-s4/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-graph-isomorphism-l2-s9/environment/Dockerfile b/tasks/construct-rlve-graph-isomorphism-l2-s9/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-graph-isomorphism-l2-s9/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-graph-isomorphism-l2-s9/environment/instance.json b/tasks/construct-rlve-graph-isomorphism-l2-s9/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..309e64938e629a4f849aa955c376898ad280e6a0 --- /dev/null +++ b/tasks/construct-rlve-graph-isomorphism-l2-s9/environment/instance.json @@ -0,0 +1 @@ +{"n": 8, "edges1": [[5, 7], [1, 5], [4, 6], [3, 7], [3, 4], [6, 7], [2, 7], [1, 7], [3, 6], [0, 3], [2, 5], [5, 6]], "edges2": [[3, 4], [1, 7], [2, 5], [6, 7], [0, 2], [2, 7], [1, 4], [3, 7], [2, 6], [4, 7], [5, 6], [4, 6]], "family": "rlve_graph_isomorphism", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-graph-isomorphism-l2-s9/solution/solve.sh b/tasks/construct-rlve-graph-isomorphism-l2-s9/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..73764449140eae245963404c8634db6d186a17f3 --- /dev/null +++ b/tasks/construct-rlve-graph-isomorphism-l2-s9/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"p": [0, 1, 3, 2, 5, 4, 6, 7]} +RLMATH_EOF diff --git a/tasks/construct-rlve-graph-isomorphism-l2-s9/tests/check.py b/tasks/construct-rlve-graph-isomorphism-l2-s9/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..64b755f5ab12e7270811ccfc2f02d104715517b7 --- /dev/null +++ b/tasks/construct-rlve-graph-isomorphism-l2-s9/tests/check.py @@ -0,0 +1,13 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n = inst["n"] + p = int_list(ans.get("p"), n, 0, n - 1, "p") + if len(set(p)) != n: + raise Invalid("p is not a permutation") + e2 = {(min(u, v), max(u, v)) for u, v in inst["edges2"]} + img = {(min(p[u], p[v]), max(p[u], p[v])) for u, v in inst["edges1"]} + if img != e2: + raise Invalid(f"{len(img - e2)} edges of G1 are not mapped onto edges of G2") + return None, {} diff --git a/tasks/construct-rlve-graph-isomorphism-l2-s9/tests/instance.json b/tasks/construct-rlve-graph-isomorphism-l2-s9/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..309e64938e629a4f849aa955c376898ad280e6a0 --- /dev/null +++ b/tasks/construct-rlve-graph-isomorphism-l2-s9/tests/instance.json @@ -0,0 +1 @@ +{"n": 8, "edges1": [[5, 7], [1, 5], [4, 6], [3, 7], [3, 4], [6, 7], [2, 7], [1, 7], [3, 6], [0, 3], [2, 5], [5, 6]], "edges2": [[3, 4], [1, 7], [2, 5], [6, 7], [0, 2], [2, 7], [1, 4], [3, 7], [2, 6], [4, 7], [5, 6], [4, 6]], "family": "rlve_graph_isomorphism", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-graph-isomorphism-l2-s9/tests/run.py b/tasks/construct-rlve-graph-isomorphism-l2-s9/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-graph-isomorphism-l2-s9/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-graph-isomorphism-l2-s9/tests/test.sh b/tasks/construct-rlve-graph-isomorphism-l2-s9/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-graph-isomorphism-l2-s9/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-graph-isomorphism-l3-s7/environment/Dockerfile b/tasks/construct-rlve-graph-isomorphism-l3-s7/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-graph-isomorphism-l3-s7/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-graph-isomorphism-l3-s7/environment/instance.json b/tasks/construct-rlve-graph-isomorphism-l3-s7/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..a7e0caed561747be3a55913e1bc389cdfebc461a --- /dev/null +++ b/tasks/construct-rlve-graph-isomorphism-l3-s7/environment/instance.json @@ -0,0 +1 @@ +{"n": 12, "edges1": [[1, 11], [1, 5], [4, 6], [8, 11], [1, 7], [2, 11], [2, 9], [3, 6], [5, 6], [3, 8], [3, 10], [9, 11], [8, 9], [0, 3], [2, 10], [2, 6], [8, 10], [10, 11], [9, 10], [4, 8], [1, 2], [1, 10], [6, 8], [3, 11], [7, 10], [6, 10], [0, 10], [2, 3], [0, 5], [5, 9], [0, 4], [1, 6], [3, 7], [5, 8], [0, 7], [7, 11], [5, 11], [3, 5], [6, 9], [0, 11], [2, 8], [3, 4], [7, 9], [0, 9], [1, 4], [0, 2], [0, 6], [4, 11], [6, 7]], "edges2": [[4, 7], [2, 6], [5, 6], [3, 5], [1, 6], [4, 5], [0, 8], [8, 9], [0, 2], [7, 8], [1, 10], [0, 7], [3, 11], [1, 8], [4, 8], [0, 10], [5, 7], [3, 6], [5, 8], [3, 7], [1, 3], [0, 4], [6, 9], [9, 11], [6, 10], [0, 9], [0, 5], [10, 11], [3, 4], [1, 5], [3, 9], [2, 10], [4, 9], [4, 6], [7, 10], [1, 9], [7, 11], [2, 8], [6, 7], [5, 11], [6, 11], [6, 8], [2, 3], [0, 11], [7, 9], [0, 1], [2, 9], [0, 3], [4, 10]], "family": "rlve_graph_isomorphism", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-graph-isomorphism-l3-s7/solution/solve.sh b/tasks/construct-rlve-graph-isomorphism-l3-s7/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..971f5a0b5dfd7302a97a9eca8347e28a1b511c87 --- /dev/null +++ b/tasks/construct-rlve-graph-isomorphism-l3-s7/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"p": [3, 10, 4, 9, 2, 1, 0, 11, 8, 5, 7, 6]} +RLMATH_EOF diff --git a/tasks/construct-rlve-graph-isomorphism-l3-s7/tests/check.py b/tasks/construct-rlve-graph-isomorphism-l3-s7/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..64b755f5ab12e7270811ccfc2f02d104715517b7 --- /dev/null +++ b/tasks/construct-rlve-graph-isomorphism-l3-s7/tests/check.py @@ -0,0 +1,13 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n = inst["n"] + p = int_list(ans.get("p"), n, 0, n - 1, "p") + if len(set(p)) != n: + raise Invalid("p is not a permutation") + e2 = {(min(u, v), max(u, v)) for u, v in inst["edges2"]} + img = {(min(p[u], p[v]), max(p[u], p[v])) for u, v in inst["edges1"]} + if img != e2: + raise Invalid(f"{len(img - e2)} edges of G1 are not mapped onto edges of G2") + return None, {} diff --git a/tasks/construct-rlve-graph-isomorphism-l3-s7/tests/instance.json b/tasks/construct-rlve-graph-isomorphism-l3-s7/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..a7e0caed561747be3a55913e1bc389cdfebc461a --- /dev/null +++ b/tasks/construct-rlve-graph-isomorphism-l3-s7/tests/instance.json @@ -0,0 +1 @@ +{"n": 12, "edges1": [[1, 11], [1, 5], [4, 6], [8, 11], [1, 7], [2, 11], [2, 9], [3, 6], [5, 6], [3, 8], [3, 10], [9, 11], [8, 9], [0, 3], [2, 10], [2, 6], [8, 10], [10, 11], [9, 10], [4, 8], [1, 2], [1, 10], [6, 8], [3, 11], [7, 10], [6, 10], [0, 10], [2, 3], [0, 5], [5, 9], [0, 4], [1, 6], [3, 7], [5, 8], [0, 7], [7, 11], [5, 11], [3, 5], [6, 9], [0, 11], [2, 8], [3, 4], [7, 9], [0, 9], [1, 4], [0, 2], [0, 6], [4, 11], [6, 7]], "edges2": [[4, 7], [2, 6], [5, 6], [3, 5], [1, 6], [4, 5], [0, 8], [8, 9], [0, 2], [7, 8], [1, 10], [0, 7], [3, 11], [1, 8], [4, 8], [0, 10], [5, 7], [3, 6], [5, 8], [3, 7], [1, 3], [0, 4], [6, 9], [9, 11], [6, 10], [0, 9], [0, 5], [10, 11], [3, 4], [1, 5], [3, 9], [2, 10], [4, 9], [4, 6], [7, 10], [1, 9], [7, 11], [2, 8], [6, 7], [5, 11], [6, 11], [6, 8], [2, 3], [0, 11], [7, 9], [0, 1], [2, 9], [0, 3], [4, 10]], "family": "rlve_graph_isomorphism", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-graph-isomorphism-l3-s7/tests/run.py b/tasks/construct-rlve-graph-isomorphism-l3-s7/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-graph-isomorphism-l3-s7/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-graph-isomorphism-l3-s7/tests/test.sh b/tasks/construct-rlve-graph-isomorphism-l3-s7/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-graph-isomorphism-l3-s7/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-graph-isomorphism-l6-s6/environment/Dockerfile b/tasks/construct-rlve-graph-isomorphism-l6-s6/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-graph-isomorphism-l6-s6/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-graph-isomorphism-l6-s6/environment/instance.json b/tasks/construct-rlve-graph-isomorphism-l6-s6/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..9506ffbcd09a7eb6d53b6e4dc94edd36cd60ae5e --- /dev/null +++ b/tasks/construct-rlve-graph-isomorphism-l6-s6/environment/instance.json @@ -0,0 +1 @@ +{"n": 40, "edges1": [[33, 36], [8, 25], [28, 30], [5, 8], [4, 9], [1, 12], [2, 18], [11, 25], [0, 13], [4, 5], [24, 31], [12, 14], [2, 32], [2, 17], [20, 35], [10, 37], [16, 22], [1, 5], [22, 31], [38, 39], [33, 35], [9, 18], [9, 33], [9, 28], [2, 6], [34, 35], [23, 28], [0, 9], [22, 38], [12, 23], [5, 27], [2, 21], [29, 38], [6, 29], [4, 28], [31, 32], [26, 34], [11, 15], [7, 12], [24, 37], [14, 16], [1, 2], [11, 32], [5, 18], [1, 23], [1, 19], [0, 12], [6, 10], [3, 23], [25, 28], [12, 17], [31, 35], [24, 25], [18, 33], [8, 15], [9, 21], [15, 26], [4, 15], [19, 36], [2, 34], [23, 36], [0, 11], [1, 30], [17, 35], [20, 38], [26, 35], [11, 12], [13, 38], [16, 34], [5, 39], [25, 29], [6, 37], [7, 31], [15, 22], [16, 33], [6, 33], [4, 6], [19, 28], [16, 25], [1, 25], [2, 22], [0, 22], [11, 30], [13, 30], [8, 33], [9, 30], [12, 27], [5, 23], [10, 21], [20, 34], [28, 39], [4, 29], [14, 31], [4, 10], [27, 39], [31, 36], [25, 26], [8, 34], [15, 29], [1, 6], [4, 22], [4, 8], [1, 14], [1, 15], [30, 31], [16, 39], [3, 17], [29, 30], [12, 24], [13, 16], [6, 28], [1, 13], [4, 21], [8, 32], [18, 34], [0, 34], [24, 26], [18, 20], [0, 20], [26, 27], [14, 18], [14, 23], [9, 19], [10, 28], [9, 25], [18, 23], [23, 25], [25, 27], [6, 31], [25, 36], [4, 25], [7, 33], [21, 22], [16, 17], [5, 12], [4, 39], [7, 11], [20, 36], [23, 26], [12, 34], [0, 1], [11, 28], [25, 38], [15, 25], [8, 26], [2, 27], [22, 33], [7, 25], [18, 37], [11, 26], [2, 3], [26, 36], [9, 13], [10, 15], [2, 15], [1, 10], [13, 15], [4, 7], [26, 30], [9, 11], [30, 36], [26, 33], [20, 22], [24, 29], [13, 24], [6, 25], [15, 20], [10, 24], [4, 16], [32, 38], [30, 34], [26, 37], [15, 28], [2, 14], [12, 21], [29, 31], [5, 24], [11, 35], [1, 31], [25, 34], [5, 6], [5, 7], [13, 32], [7, 10], [21, 29], [19, 20], [13, 36], [10, 26], [21, 31], [5, 21], [31, 39], [11, 17], [2, 13], [17, 25], [26, 39], [5, 26], [4, 33], [7, 24], [12, 22], [30, 38], [12, 20], [22, 35], [7, 23], [23, 37], [14, 37], [8, 17], [11, 23], [21, 30], [13, 28], [27, 37], [17, 37], [22, 29], [8, 24], [5, 22], [8, 27], [14, 33], [15, 35], [17, 38], [19, 33], [27, 36], [4, 20], [18, 31], [17, 31], [5, 17], [7, 32], [6, 27], [7, 27], [3, 28], [12, 32], [0, 21], [14, 29], [6, 30], [23, 31], [4, 36], [20, 33], [24, 39], [1, 29], [0, 29], [27, 31], [6, 16], [16, 36], [15, 16], [7, 38], [5, 11], [1, 32], [12, 38], [19, 26], [34, 39], [29, 35], [17, 34], [5, 28], [8, 20], [10, 23], [15, 27], [21, 26], [20, 31], [9, 14], [3, 16], [9, 27], [4, 35], [30, 35], [7, 21], [27, 35], [2, 30], [12, 35], [3, 29], [0, 18], [0, 5], [2, 23], [10, 16], [8, 22], [5, 13], [8, 23], [10, 27], [6, 35], [12, 13], [34, 36], [1, 35], [17, 29], [0, 39], [10, 19], [2, 4], [19, 25], [7, 39], [25, 37], [2, 19], [36, 38], [22, 37], [9, 10], [9, 15], [10, 14], [19, 29], [12, 18], [10, 39], [15, 23], [16, 35], [6, 38], [28, 34], [8, 35], [3, 26], [18, 26], [23, 27], [14, 24], [18, 28], [1, 27], [0, 2], [5, 30], [30, 32], [9, 35], [13, 26], [10, 31], [8, 37], [20, 29], [23, 30], [17, 32], [28, 38], [17, 20], [14, 27], [1, 17], [14, 36], [31, 38], [5, 9], [7, 29], [19, 38], [6, 14], [10, 11], [11, 13], [0, 38], [12, 36], [6, 23], [17, 24], [14, 35], [2, 5], [0, 8], [2, 35], [3, 4], [8, 18], [25, 35], [9, 34], [24, 38], [20, 26], [19, 31], [21, 32], [34, 37], [21, 35], [25, 33], [12, 28], [23, 24], [30, 33], [27, 29], [6, 13], [28, 31], [13, 25], [21, 36], [11, 20], [4, 18], [7, 20], [15, 18], [11, 14], [16, 28], [18, 35], [28, 33], [18, 32], [20, 24], [12, 29], [3, 38], [35, 38], [8, 12], [16, 38], [37, 39], [6, 11], [20, 27], [21, 38], [24, 34], [19, 22], [11, 34], [8, 14], [23, 32], [13, 33], [17, 39], [3, 30], [2, 11], [29, 33], [9, 16], [3, 11], [6, 20], [3, 6], [0, 25], [3, 21], [33, 34], [3, 36], [3, 13], [3, 9], [7, 18], [3, 24], [9, 17], [12, 19], [10, 22], [14, 19], [15, 31], [19, 21], [18, 36], [4, 13], [0, 14], [4, 11], [1, 22], [10, 34], [0, 10], [5, 16], [6, 34], [10, 36], [19, 24], [32, 37], [5, 32], [1, 28], [0, 16], [7, 9], [4, 37], [12, 37], [2, 29], [18, 29], [21, 27], [22, 34], [1, 26], [3, 22], [3, 34], [14, 34], [2, 38], [19, 39], [2, 36], [2, 20], [18, 38], [13, 39], [18, 21], [27, 34], [10, 17], [1, 38], [18, 25], [34, 38], [10, 29], [22, 23], [9, 31], [13, 20], [29, 34], [7, 15], [33, 37], [22, 32], [2, 26], [28, 37], [17, 28], [2, 9], [6, 15], [33, 39], [9, 32], [0, 15], [9, 23], [11, 21], [3, 15], [6, 17], [1, 34], [12, 30], [11, 22], [8, 29], [12, 16], [21, 28], [14, 26], [13, 21], [15, 21], [2, 7], [5, 29], [20, 30], [26, 31], [5, 37], [8, 28], [13, 34], [6, 36], [1, 8], [28, 36], [12, 33], [17, 18], [10, 35], [1, 4], [19, 27], [4, 26], [8, 10], [3, 7], [27, 30], [17, 30], [16, 24], [0, 30], [6, 12], [16, 37], [7, 14], [8, 21], [9, 24], [21, 23], [1, 18], [19, 34], [20, 39], [19, 23], [24, 35], [17, 22], [0, 27], [35, 39], [9, 22], [9, 38], [6, 19], [20, 32], [15, 37], [27, 33], [14, 38], [4, 23], [4, 27], [26, 38], [7, 35], [11, 18], [5, 36], [13, 37], [13, 29], [11, 36], [16, 31], [9, 26], [6, 18], [6, 9], [6, 26], [0, 36], [4, 32], [1, 39], [0, 26], [18, 39], [0, 35], [9, 12], [17, 27], [23, 38], [25, 32], [1, 11], [24, 30], [15, 36], [13, 18], [1, 36], [10, 33], [10, 32], [10, 18], [12, 26], [4, 34], [16, 21], [14, 20], [28, 32], [15, 38], [32, 35], [7, 30], [3, 35], [13, 19], [23, 39], [11, 38], [26, 29], [29, 39], [0, 6], [23, 35], [0, 33], [24, 33], [3, 8], [5, 10], [22, 39], [14, 17], [8, 9], [10, 20], [4, 12], [8, 38], [3, 33], [5, 35], [8, 19], [10, 38], [16, 23], [22, 27], [3, 18], [1, 20], [0, 31], [32, 39], [22, 36], [1, 37], [25, 30], [21, 25], [16, 19], [14, 21]], "edges2": [[0, 21], [13, 18], [15, 37], [9, 16], [15, 36], [20, 32], [5, 15], [30, 33], [14, 34], [5, 6], [16, 29], [31, 36], [10, 37], [21, 24], [22, 31], [9, 25], [15, 28], [2, 33], [19, 37], [2, 10], [1, 35], [26, 36], [35, 39], [10, 11], [12, 19], [5, 25], [30, 31], [1, 16], [12, 35], [16, 22], [5, 38], [18, 29], [14, 15], [5, 34], [27, 38], [0, 26], [26, 28], [11, 14], [7, 37], [21, 36], [8, 11], [5, 37], [9, 33], [5, 30], [1, 22], [15, 25], [8, 20], [18, 38], [6, 34], [1, 9], [9, 37], [0, 22], [7, 17], [3, 16], [13, 34], [26, 31], [20, 31], [27, 31], [1, 5], [21, 26], [1, 30], [6, 24], [25, 39], [1, 4], [8, 28], [14, 38], [18, 32], [12, 34], [23, 38], [15, 24], [3, 32], [29, 36], [27, 28], [32, 36], [8, 22], [24, 38], [6, 8], [4, 19], [3, 25], [0, 15], [13, 35], [7, 30], [0, 34], [2, 5], [9, 31], [26, 37], [8, 32], [5, 39], [20, 38], [8, 26], [27, 33], [4, 31], [3, 9], [0, 14], [23, 26], [22, 35], [31, 37], [22, 36], [6, 19], [11, 38], [31, 32], [4, 6], [4, 20], [11, 25], [4, 24], [16, 20], [18, 37], [10, 25], [0, 2], [10, 19], [19, 35], [3, 21], [3, 19], [10, 24], [2, 27], [0, 1], [8, 30], [22, 32], [8, 10], [13, 31], [3, 29], [11, 36], [6, 29], [21, 39], [3, 34], [2, 28], [0, 7], [1, 15], [12, 29], [2, 13], [2, 16], [1, 12], [27, 37], [9, 12], [1, 38], [10, 22], [4, 29], [4, 13], [13, 30], [7, 36], [19, 30], [12, 16], [5, 32], [3, 37], [14, 17], [11, 15], [15, 19], [6, 39], [0, 37], [0, 17], [5, 7], [18, 21], [7, 11], [4, 39], [5, 20], [16, 25], [2, 35], [9, 30], [17, 35], [24, 28], [7, 27], [9, 20], [8, 36], [17, 27], [11, 17], [9, 17], [15, 31], [8, 29], [15, 22], [16, 28], [7, 29], [25, 37], [10, 38], [22, 39], [9, 32], [22, 23], [1, 21], [13, 14], [20, 37], [24, 36], [14, 23], [30, 34], [12, 32], [3, 8], [3, 20], [10, 35], [16, 34], [14, 30], [21, 37], [13, 16], [11, 13], [21, 25], [28, 38], [3, 6], [6, 16], [10, 15], [34, 38], [4, 32], [2, 26], [18, 19], [14, 21], [16, 19], [17, 30], [5, 8], [6, 27], [11, 39], [26, 39], [15, 17], [12, 17], [11, 37], [26, 35], [8, 25], [14, 37], [4, 35], [9, 15], [9, 28], [13, 33], [16, 31], [3, 18], [13, 25], [7, 18], [17, 20], [5, 26], [6, 35], [15, 23], [7, 25], [24, 32], [19, 27], [10, 21], [9, 19], [9, 39], [15, 33], [1, 26], [2, 38], [28, 31], [3, 24], [32, 35], [4, 11], [2, 29], [10, 39], [25, 31], [10, 36], [20, 30], [17, 38], [14, 29], [19, 25], [8, 18], [34, 37], [0, 23], [21, 30], [17, 23], [20, 36], [6, 9], [3, 11], [17, 36], [21, 28], [23, 34], [6, 17], [23, 28], [1, 2], [37, 39], [4, 28], [5, 19], [25, 34], [16, 27], [6, 32], [7, 21], [30, 37], [12, 15], [8, 39], [0, 30], [6, 20], [31, 33], [9, 29], [5, 21], [12, 25], [10, 30], [2, 12], [17, 29], [11, 34], [11, 19], [25, 26], [6, 22], [18, 28], [31, 39], [25, 32], [9, 21], [4, 14], [14, 18], [19, 26], [8, 19], [6, 36], [21, 23], [37, 38], [9, 26], [2, 18], [7, 23], [5, 10], [25, 30], [9, 27], [8, 24], [0, 3], [8, 12], [21, 33], [4, 9], [7, 39], [7, 26], [12, 37], [1, 36], [31, 38], [24, 25], [7, 19], [20, 39], [15, 34], [5, 9], [6, 26], [17, 32], [8, 15], [1, 7], [35, 38], [14, 28], [22, 38], [17, 34], [2, 22], [1, 8], [3, 33], [2, 19], [29, 33], [0, 6], [5, 16], [12, 14], [18, 22], [23, 35], [15, 39], [19, 36], [6, 18], [21, 22], [15, 29], [16, 37], [13, 28], [5, 18], [2, 37], [23, 29], [16, 39], [2, 15], [17, 19], [1, 14], [16, 38], [15, 30], [32, 33], [20, 24], [23, 32], [28, 30], [1, 25], [12, 23], [12, 30], [10, 20], [5, 24], [10, 28], [6, 15], [23, 31], [11, 16], [4, 7], [10, 18], [2, 3], [1, 34], [7, 22], [33, 39], [2, 17], [9, 23], [3, 26], [10, 12], [16, 18], [8, 16], [20, 25], [4, 37], [30, 36], [17, 37], [18, 24], [2, 8], [11, 29], [20, 22], [9, 24], [20, 35], [15, 16], [14, 36], [0, 11], [14, 39], [9, 13], [20, 29], [2, 21], [4, 16], [27, 32], [23, 30], [12, 18], [20, 27], [32, 34], [9, 34], [21, 32], [33, 34], [18, 26], [15, 27], [18, 20], [4, 34], [10, 34], [13, 22], [35, 36], [35, 37], [17, 31], [5, 17], [6, 37], [11, 12], [7, 9], [8, 33], [6, 12], [18, 27], [24, 35], [9, 35], [4, 23], [0, 10], [1, 27], [19, 24], [6, 7], [0, 27], [14, 27], [4, 36], [24, 27], [13, 39], [23, 33], [30, 39], [29, 34], [8, 34], [4, 17], [2, 20], [7, 20], [8, 38], [34, 36], [16, 36], [9, 11], [9, 36], [18, 35], [3, 10], [26, 30], [5, 29], [16, 24], [3, 7], [28, 37], [18, 23], [5, 33], [0, 35], [1, 39], [0, 31], [4, 38], [5, 12], [22, 25], [16, 30], [0, 12], [12, 27], [7, 31], [7, 33], [17, 25], [26, 27], [11, 20], [7, 13], [1, 32], [21, 38], [7, 35], [6, 33], [4, 5], [19, 29], [32, 37], [11, 26], [16, 35], [7, 32], [3, 4], [0, 16], [23, 25], [0, 25], [28, 39], [10, 27], [19, 33], [15, 38], [0, 4], [20, 33], [11, 33], [12, 33], [1, 24], [20, 26], [0, 9], [1, 17], [17, 26], [0, 33], [28, 34], [2, 32], [13, 20], [27, 36], [17, 22], [2, 4], [30, 35], [4, 30], [10, 31], [22, 37], [3, 31], [0, 8], [11, 18], [3, 17], [32, 39], [11, 28], [1, 20], [29, 30], [24, 33], [23, 36], [22, 30], [19, 38], [11, 32], [11, 35], [12, 21], [27, 30], [25, 35], [19, 39], [1, 11], [13, 23], [2, 25], [13, 21], [26, 34], [5, 35], [14, 25], [18, 25], [6, 25], [12, 24], [10, 26], [28, 35], [7, 12], [22, 28], [8, 27], [5, 14], [17, 18], [12, 38], [18, 34], [13, 15], [20, 28], [10, 17], [5, 11], [0, 36], [7, 10], [11, 21], [21, 35], [17, 39], [6, 10], [2, 14], [19, 20], [16, 26], [20, 23], [11, 22], [3, 35], [0, 32], [30, 32], [5, 31], [24, 37], [5, 23], [5, 27], [3, 38], [1, 13], [28, 36], [3, 13], [14, 35], [3, 15], [13, 24], [13, 32], [15, 20], [25, 27], [8, 9], [0, 39], [16, 33], [26, 32], [8, 31], [30, 38], [12, 28], [1, 29], [12, 36], [29, 38], [16, 21], [2, 9], [19, 34], [29, 31]], "family": "rlve_graph_isomorphism", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-graph-isomorphism-l6-s6/solution/solve.sh b/tasks/construct-rlve-graph-isomorphism-l6-s6/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..43d9b6359d5cd7dd12372e1e16c3f5602c6cf424 --- /dev/null +++ b/tasks/construct-rlve-graph-isomorphism-l6-s6/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"p": [26, 17, 6, 24, 12, 34, 37, 33, 1, 16, 30, 19, 11, 18, 39, 27, 28, 4, 5, 22, 7, 8, 36, 15, 13, 2, 25, 0, 38, 32, 3, 31, 29, 21, 35, 9, 10, 14, 20, 23]} +RLMATH_EOF diff --git a/tasks/construct-rlve-graph-isomorphism-l6-s6/tests/check.py b/tasks/construct-rlve-graph-isomorphism-l6-s6/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..64b755f5ab12e7270811ccfc2f02d104715517b7 --- /dev/null +++ b/tasks/construct-rlve-graph-isomorphism-l6-s6/tests/check.py @@ -0,0 +1,13 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n = inst["n"] + p = int_list(ans.get("p"), n, 0, n - 1, "p") + if len(set(p)) != n: + raise Invalid("p is not a permutation") + e2 = {(min(u, v), max(u, v)) for u, v in inst["edges2"]} + img = {(min(p[u], p[v]), max(p[u], p[v])) for u, v in inst["edges1"]} + if img != e2: + raise Invalid(f"{len(img - e2)} edges of G1 are not mapped onto edges of G2") + return None, {} diff --git a/tasks/construct-rlve-graph-isomorphism-l6-s6/tests/instance.json b/tasks/construct-rlve-graph-isomorphism-l6-s6/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..9506ffbcd09a7eb6d53b6e4dc94edd36cd60ae5e --- /dev/null +++ b/tasks/construct-rlve-graph-isomorphism-l6-s6/tests/instance.json @@ -0,0 +1 @@ +{"n": 40, "edges1": [[33, 36], [8, 25], [28, 30], [5, 8], [4, 9], [1, 12], [2, 18], [11, 25], [0, 13], [4, 5], [24, 31], [12, 14], [2, 32], [2, 17], [20, 35], [10, 37], [16, 22], [1, 5], [22, 31], [38, 39], [33, 35], [9, 18], [9, 33], [9, 28], [2, 6], [34, 35], [23, 28], [0, 9], [22, 38], [12, 23], [5, 27], [2, 21], [29, 38], [6, 29], [4, 28], [31, 32], [26, 34], [11, 15], [7, 12], [24, 37], [14, 16], [1, 2], [11, 32], [5, 18], [1, 23], [1, 19], [0, 12], [6, 10], [3, 23], [25, 28], [12, 17], [31, 35], [24, 25], [18, 33], [8, 15], [9, 21], [15, 26], [4, 15], [19, 36], [2, 34], [23, 36], [0, 11], [1, 30], [17, 35], [20, 38], [26, 35], [11, 12], [13, 38], [16, 34], [5, 39], [25, 29], [6, 37], [7, 31], [15, 22], [16, 33], [6, 33], [4, 6], [19, 28], [16, 25], [1, 25], [2, 22], [0, 22], [11, 30], [13, 30], [8, 33], [9, 30], [12, 27], [5, 23], [10, 21], [20, 34], [28, 39], [4, 29], [14, 31], [4, 10], [27, 39], [31, 36], [25, 26], [8, 34], [15, 29], [1, 6], [4, 22], [4, 8], [1, 14], [1, 15], [30, 31], [16, 39], [3, 17], [29, 30], [12, 24], [13, 16], [6, 28], [1, 13], [4, 21], [8, 32], [18, 34], [0, 34], [24, 26], [18, 20], [0, 20], [26, 27], [14, 18], [14, 23], [9, 19], [10, 28], [9, 25], [18, 23], [23, 25], [25, 27], [6, 31], [25, 36], [4, 25], [7, 33], [21, 22], [16, 17], [5, 12], [4, 39], [7, 11], [20, 36], [23, 26], [12, 34], [0, 1], [11, 28], [25, 38], [15, 25], [8, 26], [2, 27], [22, 33], [7, 25], [18, 37], [11, 26], [2, 3], [26, 36], [9, 13], [10, 15], [2, 15], [1, 10], [13, 15], [4, 7], [26, 30], [9, 11], [30, 36], [26, 33], [20, 22], [24, 29], [13, 24], [6, 25], [15, 20], [10, 24], [4, 16], [32, 38], [30, 34], [26, 37], [15, 28], [2, 14], [12, 21], [29, 31], [5, 24], [11, 35], [1, 31], [25, 34], [5, 6], [5, 7], [13, 32], [7, 10], [21, 29], [19, 20], [13, 36], [10, 26], [21, 31], [5, 21], [31, 39], [11, 17], [2, 13], [17, 25], [26, 39], [5, 26], [4, 33], [7, 24], [12, 22], [30, 38], [12, 20], [22, 35], [7, 23], [23, 37], [14, 37], [8, 17], [11, 23], [21, 30], [13, 28], [27, 37], [17, 37], [22, 29], [8, 24], [5, 22], [8, 27], [14, 33], [15, 35], [17, 38], [19, 33], [27, 36], [4, 20], [18, 31], [17, 31], [5, 17], [7, 32], [6, 27], [7, 27], [3, 28], [12, 32], [0, 21], [14, 29], [6, 30], [23, 31], [4, 36], [20, 33], [24, 39], [1, 29], [0, 29], [27, 31], [6, 16], [16, 36], [15, 16], [7, 38], [5, 11], [1, 32], [12, 38], [19, 26], [34, 39], [29, 35], [17, 34], [5, 28], [8, 20], [10, 23], [15, 27], [21, 26], [20, 31], [9, 14], [3, 16], [9, 27], [4, 35], [30, 35], [7, 21], [27, 35], [2, 30], [12, 35], [3, 29], [0, 18], [0, 5], [2, 23], [10, 16], [8, 22], [5, 13], [8, 23], [10, 27], [6, 35], [12, 13], [34, 36], [1, 35], [17, 29], [0, 39], [10, 19], [2, 4], [19, 25], [7, 39], [25, 37], [2, 19], [36, 38], [22, 37], [9, 10], [9, 15], [10, 14], [19, 29], [12, 18], [10, 39], [15, 23], [16, 35], [6, 38], [28, 34], [8, 35], [3, 26], [18, 26], [23, 27], [14, 24], [18, 28], [1, 27], [0, 2], [5, 30], [30, 32], [9, 35], [13, 26], [10, 31], [8, 37], [20, 29], [23, 30], [17, 32], [28, 38], [17, 20], [14, 27], [1, 17], [14, 36], [31, 38], [5, 9], [7, 29], [19, 38], [6, 14], [10, 11], [11, 13], [0, 38], [12, 36], [6, 23], [17, 24], [14, 35], [2, 5], [0, 8], [2, 35], [3, 4], [8, 18], [25, 35], [9, 34], [24, 38], [20, 26], [19, 31], [21, 32], [34, 37], [21, 35], [25, 33], [12, 28], [23, 24], [30, 33], [27, 29], [6, 13], [28, 31], [13, 25], [21, 36], [11, 20], [4, 18], [7, 20], [15, 18], [11, 14], [16, 28], [18, 35], [28, 33], [18, 32], [20, 24], [12, 29], [3, 38], [35, 38], [8, 12], [16, 38], [37, 39], [6, 11], [20, 27], [21, 38], [24, 34], [19, 22], [11, 34], [8, 14], [23, 32], [13, 33], [17, 39], [3, 30], [2, 11], [29, 33], [9, 16], [3, 11], [6, 20], [3, 6], [0, 25], [3, 21], [33, 34], [3, 36], [3, 13], [3, 9], [7, 18], [3, 24], [9, 17], [12, 19], [10, 22], [14, 19], [15, 31], [19, 21], [18, 36], [4, 13], [0, 14], [4, 11], [1, 22], [10, 34], [0, 10], [5, 16], [6, 34], [10, 36], [19, 24], [32, 37], [5, 32], [1, 28], [0, 16], [7, 9], [4, 37], [12, 37], [2, 29], [18, 29], [21, 27], [22, 34], [1, 26], [3, 22], [3, 34], [14, 34], [2, 38], [19, 39], [2, 36], [2, 20], [18, 38], [13, 39], [18, 21], [27, 34], [10, 17], [1, 38], [18, 25], [34, 38], [10, 29], [22, 23], [9, 31], [13, 20], [29, 34], [7, 15], [33, 37], [22, 32], [2, 26], [28, 37], [17, 28], [2, 9], [6, 15], [33, 39], [9, 32], [0, 15], [9, 23], [11, 21], [3, 15], [6, 17], [1, 34], [12, 30], [11, 22], [8, 29], [12, 16], [21, 28], [14, 26], [13, 21], [15, 21], [2, 7], [5, 29], [20, 30], [26, 31], [5, 37], [8, 28], [13, 34], [6, 36], [1, 8], [28, 36], [12, 33], [17, 18], [10, 35], [1, 4], [19, 27], [4, 26], [8, 10], [3, 7], [27, 30], [17, 30], [16, 24], [0, 30], [6, 12], [16, 37], [7, 14], [8, 21], [9, 24], [21, 23], [1, 18], [19, 34], [20, 39], [19, 23], [24, 35], [17, 22], [0, 27], [35, 39], [9, 22], [9, 38], [6, 19], [20, 32], [15, 37], [27, 33], [14, 38], [4, 23], [4, 27], [26, 38], [7, 35], [11, 18], [5, 36], [13, 37], [13, 29], [11, 36], [16, 31], [9, 26], [6, 18], [6, 9], [6, 26], [0, 36], [4, 32], [1, 39], [0, 26], [18, 39], [0, 35], [9, 12], [17, 27], [23, 38], [25, 32], [1, 11], [24, 30], [15, 36], [13, 18], [1, 36], [10, 33], [10, 32], [10, 18], [12, 26], [4, 34], [16, 21], [14, 20], [28, 32], [15, 38], [32, 35], [7, 30], [3, 35], [13, 19], [23, 39], [11, 38], [26, 29], [29, 39], [0, 6], [23, 35], [0, 33], [24, 33], [3, 8], [5, 10], [22, 39], [14, 17], [8, 9], [10, 20], [4, 12], [8, 38], [3, 33], [5, 35], [8, 19], [10, 38], [16, 23], [22, 27], [3, 18], [1, 20], [0, 31], [32, 39], [22, 36], [1, 37], [25, 30], [21, 25], [16, 19], [14, 21]], "edges2": [[0, 21], [13, 18], [15, 37], [9, 16], [15, 36], [20, 32], [5, 15], [30, 33], [14, 34], [5, 6], [16, 29], [31, 36], [10, 37], [21, 24], [22, 31], [9, 25], [15, 28], [2, 33], [19, 37], [2, 10], [1, 35], [26, 36], [35, 39], [10, 11], [12, 19], [5, 25], [30, 31], [1, 16], [12, 35], [16, 22], [5, 38], [18, 29], [14, 15], [5, 34], [27, 38], [0, 26], [26, 28], [11, 14], [7, 37], [21, 36], [8, 11], [5, 37], [9, 33], [5, 30], [1, 22], [15, 25], [8, 20], [18, 38], [6, 34], [1, 9], [9, 37], [0, 22], [7, 17], [3, 16], [13, 34], [26, 31], [20, 31], [27, 31], [1, 5], [21, 26], [1, 30], [6, 24], [25, 39], [1, 4], [8, 28], [14, 38], [18, 32], [12, 34], [23, 38], [15, 24], [3, 32], [29, 36], [27, 28], [32, 36], [8, 22], [24, 38], [6, 8], [4, 19], [3, 25], [0, 15], [13, 35], [7, 30], [0, 34], [2, 5], [9, 31], [26, 37], [8, 32], [5, 39], [20, 38], [8, 26], [27, 33], [4, 31], [3, 9], [0, 14], [23, 26], [22, 35], [31, 37], [22, 36], [6, 19], [11, 38], [31, 32], [4, 6], [4, 20], [11, 25], [4, 24], [16, 20], [18, 37], [10, 25], [0, 2], [10, 19], [19, 35], [3, 21], [3, 19], [10, 24], [2, 27], [0, 1], [8, 30], [22, 32], [8, 10], [13, 31], [3, 29], [11, 36], [6, 29], [21, 39], [3, 34], [2, 28], [0, 7], [1, 15], [12, 29], [2, 13], [2, 16], [1, 12], [27, 37], [9, 12], [1, 38], [10, 22], [4, 29], [4, 13], [13, 30], [7, 36], [19, 30], [12, 16], [5, 32], [3, 37], [14, 17], [11, 15], [15, 19], [6, 39], [0, 37], [0, 17], [5, 7], [18, 21], [7, 11], [4, 39], [5, 20], [16, 25], [2, 35], [9, 30], [17, 35], [24, 28], [7, 27], [9, 20], [8, 36], [17, 27], [11, 17], [9, 17], [15, 31], [8, 29], [15, 22], [16, 28], [7, 29], [25, 37], [10, 38], [22, 39], [9, 32], [22, 23], [1, 21], [13, 14], [20, 37], [24, 36], [14, 23], [30, 34], [12, 32], [3, 8], [3, 20], [10, 35], [16, 34], [14, 30], [21, 37], [13, 16], [11, 13], [21, 25], [28, 38], [3, 6], [6, 16], [10, 15], [34, 38], [4, 32], [2, 26], [18, 19], [14, 21], [16, 19], [17, 30], [5, 8], [6, 27], [11, 39], [26, 39], [15, 17], [12, 17], [11, 37], [26, 35], [8, 25], [14, 37], [4, 35], [9, 15], [9, 28], [13, 33], [16, 31], [3, 18], [13, 25], [7, 18], [17, 20], [5, 26], [6, 35], [15, 23], [7, 25], [24, 32], [19, 27], [10, 21], [9, 19], [9, 39], [15, 33], [1, 26], [2, 38], [28, 31], [3, 24], [32, 35], [4, 11], [2, 29], [10, 39], [25, 31], [10, 36], [20, 30], [17, 38], [14, 29], [19, 25], [8, 18], [34, 37], [0, 23], [21, 30], [17, 23], [20, 36], [6, 9], [3, 11], [17, 36], [21, 28], [23, 34], [6, 17], [23, 28], [1, 2], [37, 39], [4, 28], [5, 19], [25, 34], [16, 27], [6, 32], [7, 21], [30, 37], [12, 15], [8, 39], [0, 30], [6, 20], [31, 33], [9, 29], [5, 21], [12, 25], [10, 30], [2, 12], [17, 29], [11, 34], [11, 19], [25, 26], [6, 22], [18, 28], [31, 39], [25, 32], [9, 21], [4, 14], [14, 18], [19, 26], [8, 19], [6, 36], [21, 23], [37, 38], [9, 26], [2, 18], [7, 23], [5, 10], [25, 30], [9, 27], [8, 24], [0, 3], [8, 12], [21, 33], [4, 9], [7, 39], [7, 26], [12, 37], [1, 36], [31, 38], [24, 25], [7, 19], [20, 39], [15, 34], [5, 9], [6, 26], [17, 32], [8, 15], [1, 7], [35, 38], [14, 28], [22, 38], [17, 34], [2, 22], [1, 8], [3, 33], [2, 19], [29, 33], [0, 6], [5, 16], [12, 14], [18, 22], [23, 35], [15, 39], [19, 36], [6, 18], [21, 22], [15, 29], [16, 37], [13, 28], [5, 18], [2, 37], [23, 29], [16, 39], [2, 15], [17, 19], [1, 14], [16, 38], [15, 30], [32, 33], [20, 24], [23, 32], [28, 30], [1, 25], [12, 23], [12, 30], [10, 20], [5, 24], [10, 28], [6, 15], [23, 31], [11, 16], [4, 7], [10, 18], [2, 3], [1, 34], [7, 22], [33, 39], [2, 17], [9, 23], [3, 26], [10, 12], [16, 18], [8, 16], [20, 25], [4, 37], [30, 36], [17, 37], [18, 24], [2, 8], [11, 29], [20, 22], [9, 24], [20, 35], [15, 16], [14, 36], [0, 11], [14, 39], [9, 13], [20, 29], [2, 21], [4, 16], [27, 32], [23, 30], [12, 18], [20, 27], [32, 34], [9, 34], [21, 32], [33, 34], [18, 26], [15, 27], [18, 20], [4, 34], [10, 34], [13, 22], [35, 36], [35, 37], [17, 31], [5, 17], [6, 37], [11, 12], [7, 9], [8, 33], [6, 12], [18, 27], [24, 35], [9, 35], [4, 23], [0, 10], [1, 27], [19, 24], [6, 7], [0, 27], [14, 27], [4, 36], [24, 27], [13, 39], [23, 33], [30, 39], [29, 34], [8, 34], [4, 17], [2, 20], [7, 20], [8, 38], [34, 36], [16, 36], [9, 11], [9, 36], [18, 35], [3, 10], [26, 30], [5, 29], [16, 24], [3, 7], [28, 37], [18, 23], [5, 33], [0, 35], [1, 39], [0, 31], [4, 38], [5, 12], [22, 25], [16, 30], [0, 12], [12, 27], [7, 31], [7, 33], [17, 25], [26, 27], [11, 20], [7, 13], [1, 32], [21, 38], [7, 35], [6, 33], [4, 5], [19, 29], [32, 37], [11, 26], [16, 35], [7, 32], [3, 4], [0, 16], [23, 25], [0, 25], [28, 39], [10, 27], [19, 33], [15, 38], [0, 4], [20, 33], [11, 33], [12, 33], [1, 24], [20, 26], [0, 9], [1, 17], [17, 26], [0, 33], [28, 34], [2, 32], [13, 20], [27, 36], [17, 22], [2, 4], [30, 35], [4, 30], [10, 31], [22, 37], [3, 31], [0, 8], [11, 18], [3, 17], [32, 39], [11, 28], [1, 20], [29, 30], [24, 33], [23, 36], [22, 30], [19, 38], [11, 32], [11, 35], [12, 21], [27, 30], [25, 35], [19, 39], [1, 11], [13, 23], [2, 25], [13, 21], [26, 34], [5, 35], [14, 25], [18, 25], [6, 25], [12, 24], [10, 26], [28, 35], [7, 12], [22, 28], [8, 27], [5, 14], [17, 18], [12, 38], [18, 34], [13, 15], [20, 28], [10, 17], [5, 11], [0, 36], [7, 10], [11, 21], [21, 35], [17, 39], [6, 10], [2, 14], [19, 20], [16, 26], [20, 23], [11, 22], [3, 35], [0, 32], [30, 32], [5, 31], [24, 37], [5, 23], [5, 27], [3, 38], [1, 13], [28, 36], [3, 13], [14, 35], [3, 15], [13, 24], [13, 32], [15, 20], [25, 27], [8, 9], [0, 39], [16, 33], [26, 32], [8, 31], [30, 38], [12, 28], [1, 29], [12, 36], [29, 38], [16, 21], [2, 9], [19, 34], [29, 31]], "family": "rlve_graph_isomorphism", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-graph-isomorphism-l6-s6/tests/run.py b/tasks/construct-rlve-graph-isomorphism-l6-s6/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-graph-isomorphism-l6-s6/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-graph-isomorphism-l6-s6/tests/test.sh b/tasks/construct-rlve-graph-isomorphism-l6-s6/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-graph-isomorphism-l6-s6/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-grid-parity-construction-l3-s0/environment/Dockerfile b/tasks/construct-rlve-grid-parity-construction-l3-s0/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-grid-parity-construction-l3-s0/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-grid-parity-construction-l3-s0/environment/instance.json b/tasks/construct-rlve-grid-parity-construction-l3-s0/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..a47a0685951254e4bb1204daa44291d46ebb026a --- /dev/null +++ b/tasks/construct-rlve-grid-parity-construction-l3-s0/environment/instance.json @@ -0,0 +1 @@ +{"parity": ["100000", "110110", "000001", "010110", "101001", "111000", "001101", "001000"], "family": "rlve_grid_parity_construction", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-grid-parity-construction-l3-s0/solution/solve.sh b/tasks/construct-rlve-grid-parity-construction-l3-s0/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..7bb729ab4d45ceb30e18557015eccf8ac3728ae5 --- /dev/null +++ b/tasks/construct-rlve-grid-parity-construction-l3-s0/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"grid": ["011011", "000000", "101101", "100000", "001011", "010001", "001000", "000000"]} +RLMATH_EOF diff --git a/tasks/construct-rlve-grid-parity-construction-l3-s0/tests/check.py b/tasks/construct-rlve-grid-parity-construction-l3-s0/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..89d5d286593348d0000ac10db74e1c6242be6c97 --- /dev/null +++ b/tasks/construct-rlve-grid-parity-construction-l3-s0/tests/check.py @@ -0,0 +1,22 @@ +from run import Invalid + + +def check(inst, ans): + P = inst["parity"] + N, M = len(P), len(P[0]) + G = ans.get("grid") + if not isinstance(G, list) or len(G) != N: + raise Invalid(f"grid must be a list of {N} strings") + for r in G: + if not isinstance(r, str) or len(r) != M or set(r) - {"0", "1"}: + raise Invalid(f"each row must be a string of {M} characters '0'/'1'") + for i in range(N): + for j in range(M): + v = int(G[i][j]) + for di, dj in ((-1, 0), (1, 0), (0, -1), (0, 1)): + a, b = i + di, j + dj + if 0 <= a < N and 0 <= b < M: + v ^= int(G[a][b]) + if v != int(P[i][j]): + raise Invalid(f"parity mismatch at ({i}, {j})") + return None, {} diff --git a/tasks/construct-rlve-grid-parity-construction-l3-s0/tests/instance.json b/tasks/construct-rlve-grid-parity-construction-l3-s0/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..a47a0685951254e4bb1204daa44291d46ebb026a --- /dev/null +++ b/tasks/construct-rlve-grid-parity-construction-l3-s0/tests/instance.json @@ -0,0 +1 @@ +{"parity": ["100000", "110110", "000001", "010110", "101001", "111000", "001101", "001000"], "family": "rlve_grid_parity_construction", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-grid-parity-construction-l3-s0/tests/run.py b/tasks/construct-rlve-grid-parity-construction-l3-s0/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-grid-parity-construction-l3-s0/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-grid-parity-construction-l3-s0/tests/test.sh b/tasks/construct-rlve-grid-parity-construction-l3-s0/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-grid-parity-construction-l3-s0/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-grid-parity-construction-l6-s1/environment/Dockerfile b/tasks/construct-rlve-grid-parity-construction-l6-s1/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-grid-parity-construction-l6-s1/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-grid-parity-construction-l6-s1/environment/instance.json b/tasks/construct-rlve-grid-parity-construction-l6-s1/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..bdd553af755532071ab34a2287ae2599c03db133 --- /dev/null +++ b/tasks/construct-rlve-grid-parity-construction-l6-s1/environment/instance.json @@ -0,0 +1 @@ +{"parity": ["0110000010010001", "0011011100000111", "0000000011111101", "1011011011000111", "1100011111101010", "1010111111110100", "1001001111110100", "1011110111111010", "0100001111111110", "0100111111111110", "0010000000000001"], "family": "rlve_grid_parity_construction", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-grid-parity-construction-l6-s1/solution/solve.sh b/tasks/construct-rlve-grid-parity-construction-l6-s1/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..32c3fbd37ebd3acc97debc117fe2975e7667d006 --- /dev/null +++ b/tasks/construct-rlve-grid-parity-construction-l6-s1/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"grid": ["1011111111111111", "1111111101101111", "1111011011111110", "1001111111101111", "1010111111111111", "1111111111111011", "0111111111111011", "1101001111111111", "1101111111111111", "1001111111111111", "0111111111111111"]} +RLMATH_EOF diff --git a/tasks/construct-rlve-grid-parity-construction-l6-s1/tests/check.py b/tasks/construct-rlve-grid-parity-construction-l6-s1/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..89d5d286593348d0000ac10db74e1c6242be6c97 --- /dev/null +++ b/tasks/construct-rlve-grid-parity-construction-l6-s1/tests/check.py @@ -0,0 +1,22 @@ +from run import Invalid + + +def check(inst, ans): + P = inst["parity"] + N, M = len(P), len(P[0]) + G = ans.get("grid") + if not isinstance(G, list) or len(G) != N: + raise Invalid(f"grid must be a list of {N} strings") + for r in G: + if not isinstance(r, str) or len(r) != M or set(r) - {"0", "1"}: + raise Invalid(f"each row must be a string of {M} characters '0'/'1'") + for i in range(N): + for j in range(M): + v = int(G[i][j]) + for di, dj in ((-1, 0), (1, 0), (0, -1), (0, 1)): + a, b = i + di, j + dj + if 0 <= a < N and 0 <= b < M: + v ^= int(G[a][b]) + if v != int(P[i][j]): + raise Invalid(f"parity mismatch at ({i}, {j})") + return None, {} diff --git a/tasks/construct-rlve-grid-parity-construction-l6-s1/tests/instance.json b/tasks/construct-rlve-grid-parity-construction-l6-s1/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..bdd553af755532071ab34a2287ae2599c03db133 --- /dev/null +++ b/tasks/construct-rlve-grid-parity-construction-l6-s1/tests/instance.json @@ -0,0 +1 @@ +{"parity": ["0110000010010001", "0011011100000111", "0000000011111101", "1011011011000111", "1100011111101010", "1010111111110100", "1001001111110100", "1011110111111010", "0100001111111110", "0100111111111110", "0010000000000001"], "family": "rlve_grid_parity_construction", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-grid-parity-construction-l6-s1/tests/run.py b/tasks/construct-rlve-grid-parity-construction-l6-s1/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-grid-parity-construction-l6-s1/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-grid-parity-construction-l6-s1/tests/test.sh b/tasks/construct-rlve-grid-parity-construction-l6-s1/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-grid-parity-construction-l6-s1/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-imp-party-l1-s1/environment/Dockerfile b/tasks/construct-rlve-imp-party-l1-s1/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-imp-party-l1-s1/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-imp-party-l1-s1/environment/instance.json b/tasks/construct-rlve-imp-party-l1-s1/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..194f368bcacee8a79ed22ec519d19babfd4be03c --- /dev/null +++ b/tasks/construct-rlve-imp-party-l1-s1/environment/instance.json @@ -0,0 +1 @@ +{"n": 3, "edges": [[0, 5], [0, 8], [1, 2], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [2, 5], [2, 6], [2, 7], [2, 8], [4, 5], [5, 6], [5, 7], [5, 8], [6, 7], [6, 8], [7, 8]], "family": "rlve_imp_party", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-imp-party-l1-s1/solution/solve.sh b/tasks/construct-rlve-imp-party-l1-s1/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..4684984c8faeb21d785b2a40e9340d426aeb0b1a --- /dev/null +++ b/tasks/construct-rlve-imp-party-l1-s1/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"clique": [1, 2, 6]} +RLMATH_EOF diff --git a/tasks/construct-rlve-imp-party-l1-s1/tests/check.py b/tasks/construct-rlve-imp-party-l1-s1/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..97b5a037a2ba8bf4495cf87cc074d1c60b11311c --- /dev/null +++ b/tasks/construct-rlve-imp-party-l1-s1/tests/check.py @@ -0,0 +1,14 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n = inst["n"] + c = int_list(ans.get("clique"), n, 0, 3 * n - 1, "clique") + if len(set(c)) != n: + raise Invalid("vertices must be distinct") + es = {(min(u, v), max(u, v)) for u, v in inst["edges"]} + for i in range(n): + for j in range(i + 1, n): + if (min(c[i], c[j]), max(c[i], c[j])) not in es: + raise Invalid(f"{c[i]} and {c[j]} are not adjacent") + return None, {} diff --git a/tasks/construct-rlve-imp-party-l1-s1/tests/instance.json b/tasks/construct-rlve-imp-party-l1-s1/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..194f368bcacee8a79ed22ec519d19babfd4be03c --- /dev/null +++ b/tasks/construct-rlve-imp-party-l1-s1/tests/instance.json @@ -0,0 +1 @@ +{"n": 3, "edges": [[0, 5], [0, 8], [1, 2], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [2, 5], [2, 6], [2, 7], [2, 8], [4, 5], [5, 6], [5, 7], [5, 8], [6, 7], [6, 8], [7, 8]], "family": "rlve_imp_party", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-imp-party-l1-s1/tests/run.py b/tasks/construct-rlve-imp-party-l1-s1/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-imp-party-l1-s1/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-imp-party-l1-s1/tests/test.sh b/tasks/construct-rlve-imp-party-l1-s1/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-imp-party-l1-s1/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-imp-party-l1-s6/environment/Dockerfile b/tasks/construct-rlve-imp-party-l1-s6/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-imp-party-l1-s6/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-imp-party-l1-s6/environment/instance.json b/tasks/construct-rlve-imp-party-l1-s6/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..dee4acc7ee8050d2246ea9849ba582e4bc278a99 --- /dev/null +++ b/tasks/construct-rlve-imp-party-l1-s6/environment/instance.json @@ -0,0 +1 @@ +{"n": 3, "edges": [[0, 1], [0, 2], [0, 4], [0, 6], [0, 7], [1, 2], [1, 4], [1, 6], [1, 7], [2, 4], [2, 6], [2, 7], [4, 6], [4, 7], [6, 7]], "family": "rlve_imp_party", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-imp-party-l1-s6/solution/solve.sh b/tasks/construct-rlve-imp-party-l1-s6/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..fe141c7119c12bc78fa49971c4ed644de47b6e60 --- /dev/null +++ b/tasks/construct-rlve-imp-party-l1-s6/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"clique": [0, 2, 6]} +RLMATH_EOF diff --git a/tasks/construct-rlve-imp-party-l1-s6/tests/check.py b/tasks/construct-rlve-imp-party-l1-s6/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..97b5a037a2ba8bf4495cf87cc074d1c60b11311c --- /dev/null +++ b/tasks/construct-rlve-imp-party-l1-s6/tests/check.py @@ -0,0 +1,14 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n = inst["n"] + c = int_list(ans.get("clique"), n, 0, 3 * n - 1, "clique") + if len(set(c)) != n: + raise Invalid("vertices must be distinct") + es = {(min(u, v), max(u, v)) for u, v in inst["edges"]} + for i in range(n): + for j in range(i + 1, n): + if (min(c[i], c[j]), max(c[i], c[j])) not in es: + raise Invalid(f"{c[i]} and {c[j]} are not adjacent") + return None, {} diff --git a/tasks/construct-rlve-imp-party-l1-s6/tests/instance.json b/tasks/construct-rlve-imp-party-l1-s6/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..dee4acc7ee8050d2246ea9849ba582e4bc278a99 --- /dev/null +++ b/tasks/construct-rlve-imp-party-l1-s6/tests/instance.json @@ -0,0 +1 @@ +{"n": 3, "edges": [[0, 1], [0, 2], [0, 4], [0, 6], [0, 7], [1, 2], [1, 4], [1, 6], [1, 7], [2, 4], [2, 6], [2, 7], [4, 6], [4, 7], [6, 7]], "family": "rlve_imp_party", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-imp-party-l1-s6/tests/run.py b/tasks/construct-rlve-imp-party-l1-s6/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-imp-party-l1-s6/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-imp-party-l1-s6/tests/test.sh b/tasks/construct-rlve-imp-party-l1-s6/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-imp-party-l1-s6/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-imp-party-l1-s8/environment/Dockerfile b/tasks/construct-rlve-imp-party-l1-s8/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-imp-party-l1-s8/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-imp-party-l1-s8/environment/instance.json b/tasks/construct-rlve-imp-party-l1-s8/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..adc455e58512620acec4d5138f190cba3db18a08 --- /dev/null +++ b/tasks/construct-rlve-imp-party-l1-s8/environment/instance.json @@ -0,0 +1 @@ +{"n": 3, "edges": [[0, 1], [0, 2], [0, 3], [0, 5], [0, 6], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [2, 3], [2, 4], [2, 5], [2, 6], [2, 8], [3, 4], [3, 5], [3, 6], [3, 7], [3, 8], [4, 5], [4, 6], [4, 7], [4, 8], [5, 6], [5, 7], [5, 8], [6, 7], [6, 8]], "family": "rlve_imp_party", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-imp-party-l1-s8/solution/solve.sh b/tasks/construct-rlve-imp-party-l1-s8/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..6628699e452aedacd6b3047dd6a8e28a865cb5d8 --- /dev/null +++ b/tasks/construct-rlve-imp-party-l1-s8/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"clique": [4, 5, 6]} +RLMATH_EOF diff --git a/tasks/construct-rlve-imp-party-l1-s8/tests/check.py b/tasks/construct-rlve-imp-party-l1-s8/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..97b5a037a2ba8bf4495cf87cc074d1c60b11311c --- /dev/null +++ b/tasks/construct-rlve-imp-party-l1-s8/tests/check.py @@ -0,0 +1,14 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n = inst["n"] + c = int_list(ans.get("clique"), n, 0, 3 * n - 1, "clique") + if len(set(c)) != n: + raise Invalid("vertices must be distinct") + es = {(min(u, v), max(u, v)) for u, v in inst["edges"]} + for i in range(n): + for j in range(i + 1, n): + if (min(c[i], c[j]), max(c[i], c[j])) not in es: + raise Invalid(f"{c[i]} and {c[j]} are not adjacent") + return None, {} diff --git a/tasks/construct-rlve-imp-party-l1-s8/tests/instance.json b/tasks/construct-rlve-imp-party-l1-s8/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..adc455e58512620acec4d5138f190cba3db18a08 --- /dev/null +++ b/tasks/construct-rlve-imp-party-l1-s8/tests/instance.json @@ -0,0 +1 @@ +{"n": 3, "edges": [[0, 1], [0, 2], [0, 3], [0, 5], [0, 6], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [2, 3], [2, 4], [2, 5], [2, 6], [2, 8], [3, 4], [3, 5], [3, 6], [3, 7], [3, 8], [4, 5], [4, 6], [4, 7], [4, 8], [5, 6], [5, 7], [5, 8], [6, 7], [6, 8]], "family": "rlve_imp_party", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-imp-party-l1-s8/tests/run.py b/tasks/construct-rlve-imp-party-l1-s8/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-imp-party-l1-s8/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-imp-party-l1-s8/tests/test.sh b/tasks/construct-rlve-imp-party-l1-s8/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-imp-party-l1-s8/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-imp-party-l5-s0/environment/Dockerfile b/tasks/construct-rlve-imp-party-l5-s0/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-imp-party-l5-s0/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-imp-party-l5-s0/environment/instance.json b/tasks/construct-rlve-imp-party-l5-s0/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..6ef7b7a1611524edb55bedb5c871eef65aafae24 --- /dev/null +++ b/tasks/construct-rlve-imp-party-l5-s0/environment/instance.json @@ -0,0 +1 @@ +{"n": 18, "edges": [[0, 1], [0, 2], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 35], [0, 36], [0, 38], [0, 39], [0, 40], [0, 41], [0, 42], [0, 43], [0, 44], [0, 45], [0, 46], [0, 47], [0, 48], [0, 49], [0, 50], [0, 51], [0, 53], [1, 4], [1, 7], [1, 12], [1, 13], [1, 15], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 28], [1, 43], [1, 48], [1, 49], [1, 50], [1, 51], [2, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [2, 24], [2, 25], [2, 28], [2, 29], [2, 30], [2, 31], [2, 32], [2, 33], [2, 34], [2, 38], [2, 39], [2, 40], [2, 41], [2, 42], [2, 43], [2, 44], [2, 45], [2, 46], [2, 47], [2, 48], [2, 49], [2, 50], [2, 51], [2, 52], [2, 53], [3, 4], [3, 6], [3, 13], [3, 15], [3, 16], [3, 21], [3, 22], [3, 23], [3, 25], [3, 28], [3, 31], [3, 33], [3, 38], [3, 40], [3, 41], [3, 43], [3, 44], [3, 45], [3, 48], [4, 5], [4, 6], [4, 7], [4, 8], [4, 9], [4, 10], [4, 11], [4, 12], [4, 13], [4, 15], [4, 16], [4, 18], [4, 19], [4, 20], [4, 21], [4, 22], [4, 23], [4, 24], [4, 25], [4, 28], [4, 30], [4, 31], [4, 33], [4, 35], [4, 37], [4, 38], [4, 39], [4, 40], [4, 41], [4, 42], [4, 43], [4, 44], [4, 45], [4, 47], [4, 48], [4, 49], [4, 50], [4, 51], [4, 53], [5, 6], [5, 7], [5, 8], [5, 9], [5, 10], [5, 11], [5, 12], [5, 13], [5, 14], [5, 15], [5, 16], [5, 17], [5, 18], [5, 19], [5, 20], [5, 21], [5, 22], [5, 23], [5, 24], [5, 25], [5, 27], [5, 28], [5, 29], [5, 30], [5, 31], [5, 32], [5, 33], [5, 34], [5, 38], [5, 39], [5, 40], [5, 41], [5, 42], [5, 43], [5, 44], [5, 45], [5, 46], [5, 48], [5, 49], [5, 50], [5, 51], [5, 52], [5, 53], [6, 7], [6, 8], [6, 10], [6, 12], [6, 13], [6, 14], [6, 15], [6, 16], [6, 17], [6, 18], [6, 19], [6, 20], [6, 21], [6, 22], [6, 23], [6, 24], [6, 25], [6, 27], [6, 28], [6, 29], [6, 31], [6, 32], [6, 33], [6, 34], [6, 37], [6, 38], [6, 39], [6, 40], [6, 41], [6, 42], [6, 43], [6, 44], [6, 45], [6, 46], [6, 47], [6, 48], [6, 49], [6, 50], [6, 51], [6, 52], [6, 53], [7, 8], [7, 10], [7, 12], [7, 13], [7, 15], [7, 16], [7, 18], [7, 19], [7, 20], [7, 21], [7, 22], [7, 23], [7, 24], [7, 25], [7, 28], [7, 29], [7, 30], [7, 31], [7, 33], [7, 36], [7, 37], [7, 38], [7, 39], [7, 40], [7, 41], [7, 42], [7, 43], [7, 44], [7, 45], [7, 46], [7, 47], [7, 48], [7, 49], [7, 50], [7, 51], [7, 52], [7, 53], [8, 9], [8, 10], [8, 11], [8, 12], [8, 13], [8, 15], [8, 16], [8, 18], [8, 19], [8, 20], [8, 21], [8, 22], [8, 23], [8, 24], [8, 25], [8, 26], [8, 27], [8, 28], [8, 31], [8, 33], [8, 35], [8, 38], [8, 39], [8, 40], [8, 41], [8, 42], [8, 43], [8, 44], [8, 45], [8, 46], [8, 47], [8, 48], [8, 49], [8, 50], [8, 51], [8, 53], [9, 15], [9, 16], [9, 18], [9, 20], [9, 21], [9, 22], [9, 24], [9, 31], [9, 38], [9, 39], [9, 44], [9, 50], [10, 12], [10, 13], [10, 14], [10, 15], [10, 16], [10, 17], [10, 18], [10, 19], [10, 20], [10, 21], [10, 22], [10, 23], [10, 24], [10, 25], [10, 26], [10, 28], [10, 31], [10, 33], [10, 34], [10, 35], [10, 38], [10, 39], [10, 40], [10, 41], [10, 42], [10, 43], [10, 44], [10, 45], [10, 47], [10, 48], [10, 49], [10, 50], [10, 51], [10, 52], [10, 53], [11, 15], [11, 16], [11, 19], [11, 24], [11, 28], [11, 33], [11, 38], [11, 39], [11, 40], [11, 43], [11, 44], [11, 45], [11, 48], [11, 49], [11, 51], [11, 53], [12, 13], [12, 14], [12, 15], [12, 16], [12, 17], [12, 18], [12, 19], [12, 20], [12, 21], [12, 22], [12, 23], [12, 24], [12, 25], [12, 28], [12, 29], [12, 31], [12, 33], [12, 36], [12, 37], [12, 38], [12, 39], [12, 40], [12, 41], [12, 42], [12, 43], [12, 44], [12, 45], [12, 46], [12, 47], [12, 48], [12, 49], [12, 50], [12, 51], [12, 52], [12, 53], [13, 15], [13, 16], [13, 18], [13, 19], [13, 20], [13, 21], [13, 22], [13, 23], [13, 24], [13, 25], [13, 28], [13, 29], [13, 31], [13, 32], [13, 33], [13, 35], [13, 38], [13, 39], [13, 40], [13, 41], [13, 42], [13, 43], [13, 44], [13, 45], [13, 46], [13, 47], [13, 48], [13, 49], [13, 50], [13, 51], [13, 53], [14, 15], [14, 18], [14, 23], [14, 25], [14, 28], [14, 39], [14, 41], [14, 42], [14, 43], [14, 49], [14, 51], [15, 16], [15, 17], [15, 18], [15, 19], [15, 20], [15, 21], [15, 22], [15, 23], [15, 24], [15, 25], [15, 26], [15, 28], [15, 30], [15, 31], [15, 33], [15, 34], [15, 35], [15, 37], [15, 38], [15, 39], [15, 40], [15, 41], [15, 42], [15, 43], [15, 44], [15, 45], [15, 48], [15, 49], [15, 50], [15, 51], [15, 53], [16, 17], [16, 18], [16, 19], [16, 20], [16, 21], [16, 22], [16, 23], [16, 24], [16, 25], [16, 27], [16, 28], [16, 29], [16, 30], [16, 31], [16, 33], [16, 35], [16, 38], [16, 39], [16, 40], [16, 41], [16, 42], [16, 43], [16, 44], [16, 45], [16, 48], [16, 49], [16, 50], [16, 51], [16, 52], [16, 53], [17, 19], [17, 20], [17, 23], [17, 28], [17, 33], [17, 39], [17, 40], [17, 42], [17, 43], [17, 44], [17, 45], [17, 49], [17, 50], [17, 53], [18, 19], [18, 20], [18, 21], [18, 22], [18, 23], [18, 24], [18, 25], [18, 28], [18, 29], [18, 31], [18, 32], [18, 33], [18, 35], [18, 36], [18, 38], [18, 39], [18, 40], [18, 41], [18, 42], [18, 43], [18, 44], [18, 45], [18, 46], [18, 47], [18, 48], [18, 49], [18, 50], [18, 51], [18, 52], [18, 53], [19, 20], [19, 21], [19, 22], [19, 23], [19, 24], [19, 25], [19, 27], [19, 28], [19, 29], [19, 31], [19, 33], [19, 34], [19, 35], [19, 37], [19, 38], [19, 39], [19, 40], [19, 41], [19, 42], [19, 43], [19, 44], [19, 45], [19, 46], [19, 48], [19, 49], [19, 50], [19, 51], [19, 52], [19, 53], [20, 21], [20, 22], [20, 23], [20, 24], [20, 25], [20, 28], [20, 30], [20, 31], [20, 32], [20, 33], [20, 36], [20, 38], [20, 39], [20, 40], [20, 41], [20, 42], [20, 43], [20, 44], [20, 45], [20, 46], [20, 48], [20, 49], [20, 50], [20, 51], [20, 52], [20, 53], [21, 22], [21, 23], [21, 24], [21, 25], [21, 28], [21, 30], [21, 31], [21, 33], [21, 34], [21, 36], [21, 38], [21, 39], [21, 40], [21, 41], [21, 42], [21, 43], [21, 44], [21, 45], [21, 46], [21, 48], [21, 49], [21, 50], [21, 51], [21, 52], [21, 53], [22, 23], [22, 24], [22, 25], [22, 26], [22, 28], [22, 31], [22, 32], [22, 33], [22, 34], [22, 35], [22, 36], [22, 37], [22, 38], [22, 39], [22, 40], [22, 41], [22, 42], [22, 43], [22, 44], [22, 45], [22, 47], [22, 48], [22, 49], [22, 50], [22, 51], [22, 52], [22, 53], [23, 24], [23, 25], [23, 27], [23, 28], [23, 30], [23, 31], [23, 33], [23, 34], [23, 35], [23, 38], [23, 39], [23, 40], [23, 41], [23, 42], [23, 43], [23, 44], [23, 45], [23, 46], [23, 48], [23, 49], [23, 50], [23, 51], [23, 53], [24, 25], [24, 26], [24, 27], [24, 28], [24, 30], [24, 31], [24, 32], [24, 33], [24, 36], [24, 37], [24, 38], [24, 39], [24, 40], [24, 41], [24, 42], [24, 43], [24, 44], [24, 45], [24, 46], [24, 47], [24, 48], [24, 49], [24, 50], [24, 51], [24, 53], [25, 27], [25, 28], [25, 29], [25, 31], [25, 32], [25, 33], [25, 35], [25, 36], [25, 38], [25, 39], [25, 40], [25, 41], [25, 42], [25, 43], [25, 44], [25, 45], [25, 48], [25, 49], [25, 50], [25, 51], [25, 52], [25, 53], [26, 31], [26, 33], [26, 38], [26, 40], [26, 41], [26, 44], [26, 48], [27, 28], [27, 33], [27, 39], [27, 42], [27, 44], [27, 45], [27, 50], [27, 51], [28, 31], [28, 32], [28, 33], [28, 34], [28, 35], [28, 37], [28, 38], [28, 39], [28, 40], [28, 41], [28, 42], [28, 43], [28, 44], [28, 45], [28, 47], [28, 48], [28, 49], [28, 50], [28, 51], [28, 52], [28, 53], [29, 31], [29, 33], [29, 38], [29, 42], [29, 49], [29, 50], [29, 51], [29, 53], [30, 31], [30, 33], [30, 38], [30, 41], [30, 48], [30, 49], [30, 50], [30, 51], [30, 53], [31, 32], [31, 33], [31, 34], [31, 35], [31, 36], [31, 38], [31, 39], [31, 40], [31, 41], [31, 42], [31, 43], [31, 44], [31, 45], [31, 47], [31, 48], [31, 49], [31, 50], [31, 51], [31, 53], [32, 33], [32, 38], [32, 41], [32, 42], [32, 43], [32, 48], [33, 36], [33, 38], [33, 39], [33, 40], [33, 41], [33, 42], [33, 43], [33, 44], [33, 45], [33, 47], [33, 48], [33, 49], [33, 50], [33, 51], [33, 53], [34, 40], [34, 41], [34, 43], [34, 48], [34, 49], [34, 53], [35, 38], [35, 39], [35, 49], [36, 39], [36, 40], [36, 41], [36, 42], [36, 43], [36, 49], [36, 50], [37, 39], [37, 42], [37, 43], [37, 49], [37, 50], [37, 51], [37, 53], [38, 39], [38, 40], [38, 41], [38, 42], [38, 43], [38, 44], [38, 45], [38, 46], [38, 48], [38, 49], [38, 50], [38, 51], [38, 52], [38, 53], [39, 40], [39, 41], [39, 42], [39, 43], [39, 44], [39, 45], [39, 46], [39, 48], [39, 49], [39, 50], [39, 51], [39, 53], [40, 41], [40, 42], [40, 43], [40, 44], [40, 45], [40, 48], [40, 49], [40, 50], [40, 51], [40, 53], [41, 42], [41, 43], [41, 44], [41, 45], [41, 47], [41, 48], [41, 49], [41, 50], [41, 51], [41, 52], [41, 53], [42, 43], [42, 44], [42, 45], [42, 46], [42, 47], [42, 48], [42, 49], [42, 50], [42, 51], [42, 52], [42, 53], [43, 44], [43, 45], [43, 47], [43, 48], [43, 49], [43, 50], [43, 51], [43, 52], [43, 53], [44, 45], [44, 48], [44, 49], [44, 50], [44, 51], [44, 52], [44, 53], [45, 46], [45, 47], [45, 48], [45, 49], [45, 50], [45, 51], [45, 52], [45, 53], [46, 48], [46, 50], [47, 49], [47, 53], [48, 49], [48, 50], [48, 51], [48, 52], [48, 53], [49, 50], [49, 51], [49, 52], [49, 53], [50, 51], [50, 52], [50, 53], [51, 53], [52, 53]], "family": "rlve_imp_party", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-imp-party-l5-s0/solution/solve.sh b/tasks/construct-rlve-imp-party-l5-s0/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..93915e27a72459f1463174fdfc4ea431e234153a --- /dev/null +++ b/tasks/construct-rlve-imp-party-l5-s0/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"clique": [2, 5, 8, 10, 13, 16, 19, 20, 21, 24, 31, 38, 41, 43, 44, 49, 51, 53]} +RLMATH_EOF diff --git a/tasks/construct-rlve-imp-party-l5-s0/tests/check.py b/tasks/construct-rlve-imp-party-l5-s0/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..97b5a037a2ba8bf4495cf87cc074d1c60b11311c --- /dev/null +++ b/tasks/construct-rlve-imp-party-l5-s0/tests/check.py @@ -0,0 +1,14 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n = inst["n"] + c = int_list(ans.get("clique"), n, 0, 3 * n - 1, "clique") + if len(set(c)) != n: + raise Invalid("vertices must be distinct") + es = {(min(u, v), max(u, v)) for u, v in inst["edges"]} + for i in range(n): + for j in range(i + 1, n): + if (min(c[i], c[j]), max(c[i], c[j])) not in es: + raise Invalid(f"{c[i]} and {c[j]} are not adjacent") + return None, {} diff --git a/tasks/construct-rlve-imp-party-l5-s0/tests/instance.json b/tasks/construct-rlve-imp-party-l5-s0/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..6ef7b7a1611524edb55bedb5c871eef65aafae24 --- /dev/null +++ b/tasks/construct-rlve-imp-party-l5-s0/tests/instance.json @@ -0,0 +1 @@ +{"n": 18, "edges": [[0, 1], [0, 2], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 35], [0, 36], [0, 38], [0, 39], [0, 40], [0, 41], [0, 42], [0, 43], [0, 44], [0, 45], [0, 46], [0, 47], [0, 48], [0, 49], [0, 50], [0, 51], [0, 53], [1, 4], [1, 7], [1, 12], [1, 13], [1, 15], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 28], [1, 43], [1, 48], [1, 49], [1, 50], [1, 51], [2, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [2, 24], [2, 25], [2, 28], [2, 29], [2, 30], [2, 31], [2, 32], [2, 33], [2, 34], [2, 38], [2, 39], [2, 40], [2, 41], [2, 42], [2, 43], [2, 44], [2, 45], [2, 46], [2, 47], [2, 48], [2, 49], [2, 50], [2, 51], [2, 52], [2, 53], [3, 4], [3, 6], [3, 13], [3, 15], [3, 16], [3, 21], [3, 22], [3, 23], [3, 25], [3, 28], [3, 31], [3, 33], [3, 38], [3, 40], [3, 41], [3, 43], [3, 44], [3, 45], [3, 48], [4, 5], [4, 6], [4, 7], [4, 8], [4, 9], [4, 10], [4, 11], [4, 12], [4, 13], [4, 15], [4, 16], [4, 18], [4, 19], [4, 20], [4, 21], [4, 22], [4, 23], [4, 24], [4, 25], [4, 28], [4, 30], [4, 31], [4, 33], [4, 35], [4, 37], [4, 38], [4, 39], [4, 40], [4, 41], [4, 42], [4, 43], [4, 44], [4, 45], [4, 47], [4, 48], [4, 49], [4, 50], [4, 51], [4, 53], [5, 6], [5, 7], [5, 8], [5, 9], [5, 10], [5, 11], [5, 12], [5, 13], [5, 14], [5, 15], [5, 16], [5, 17], [5, 18], [5, 19], [5, 20], [5, 21], [5, 22], [5, 23], [5, 24], [5, 25], [5, 27], [5, 28], [5, 29], [5, 30], [5, 31], [5, 32], [5, 33], [5, 34], [5, 38], [5, 39], [5, 40], [5, 41], [5, 42], [5, 43], [5, 44], [5, 45], [5, 46], [5, 48], [5, 49], [5, 50], [5, 51], [5, 52], [5, 53], [6, 7], [6, 8], [6, 10], [6, 12], [6, 13], [6, 14], [6, 15], [6, 16], [6, 17], [6, 18], [6, 19], [6, 20], [6, 21], [6, 22], [6, 23], [6, 24], [6, 25], [6, 27], [6, 28], [6, 29], [6, 31], [6, 32], [6, 33], [6, 34], [6, 37], [6, 38], [6, 39], [6, 40], [6, 41], [6, 42], [6, 43], [6, 44], [6, 45], [6, 46], [6, 47], [6, 48], [6, 49], [6, 50], [6, 51], [6, 52], [6, 53], [7, 8], [7, 10], [7, 12], [7, 13], [7, 15], [7, 16], [7, 18], [7, 19], [7, 20], [7, 21], [7, 22], [7, 23], [7, 24], [7, 25], [7, 28], [7, 29], [7, 30], [7, 31], [7, 33], [7, 36], [7, 37], [7, 38], [7, 39], [7, 40], [7, 41], [7, 42], [7, 43], [7, 44], [7, 45], [7, 46], [7, 47], [7, 48], [7, 49], [7, 50], [7, 51], [7, 52], [7, 53], [8, 9], [8, 10], [8, 11], [8, 12], [8, 13], [8, 15], [8, 16], [8, 18], [8, 19], [8, 20], [8, 21], [8, 22], [8, 23], [8, 24], [8, 25], [8, 26], [8, 27], [8, 28], [8, 31], [8, 33], [8, 35], [8, 38], [8, 39], [8, 40], [8, 41], [8, 42], [8, 43], [8, 44], [8, 45], [8, 46], [8, 47], [8, 48], [8, 49], [8, 50], [8, 51], [8, 53], [9, 15], [9, 16], [9, 18], [9, 20], [9, 21], [9, 22], [9, 24], [9, 31], [9, 38], [9, 39], [9, 44], [9, 50], [10, 12], [10, 13], [10, 14], [10, 15], [10, 16], [10, 17], [10, 18], [10, 19], [10, 20], [10, 21], [10, 22], [10, 23], [10, 24], [10, 25], [10, 26], [10, 28], [10, 31], [10, 33], [10, 34], [10, 35], [10, 38], [10, 39], [10, 40], [10, 41], [10, 42], [10, 43], [10, 44], [10, 45], [10, 47], [10, 48], [10, 49], [10, 50], [10, 51], [10, 52], [10, 53], [11, 15], [11, 16], [11, 19], [11, 24], [11, 28], [11, 33], [11, 38], [11, 39], [11, 40], [11, 43], [11, 44], [11, 45], [11, 48], [11, 49], [11, 51], [11, 53], [12, 13], [12, 14], [12, 15], [12, 16], [12, 17], [12, 18], [12, 19], [12, 20], [12, 21], [12, 22], [12, 23], [12, 24], [12, 25], [12, 28], [12, 29], [12, 31], [12, 33], [12, 36], [12, 37], [12, 38], [12, 39], [12, 40], [12, 41], [12, 42], [12, 43], [12, 44], [12, 45], [12, 46], [12, 47], [12, 48], [12, 49], [12, 50], [12, 51], [12, 52], [12, 53], [13, 15], [13, 16], [13, 18], [13, 19], [13, 20], [13, 21], [13, 22], [13, 23], [13, 24], [13, 25], [13, 28], [13, 29], [13, 31], [13, 32], [13, 33], [13, 35], [13, 38], [13, 39], [13, 40], [13, 41], [13, 42], [13, 43], [13, 44], [13, 45], [13, 46], [13, 47], [13, 48], [13, 49], [13, 50], [13, 51], [13, 53], [14, 15], [14, 18], [14, 23], [14, 25], [14, 28], [14, 39], [14, 41], [14, 42], [14, 43], [14, 49], [14, 51], [15, 16], [15, 17], [15, 18], [15, 19], [15, 20], [15, 21], [15, 22], [15, 23], [15, 24], [15, 25], [15, 26], [15, 28], [15, 30], [15, 31], [15, 33], [15, 34], [15, 35], [15, 37], [15, 38], [15, 39], [15, 40], [15, 41], [15, 42], [15, 43], [15, 44], [15, 45], [15, 48], [15, 49], [15, 50], [15, 51], [15, 53], [16, 17], [16, 18], [16, 19], [16, 20], [16, 21], [16, 22], [16, 23], [16, 24], [16, 25], [16, 27], [16, 28], [16, 29], [16, 30], [16, 31], [16, 33], [16, 35], [16, 38], [16, 39], [16, 40], [16, 41], [16, 42], [16, 43], [16, 44], [16, 45], [16, 48], [16, 49], [16, 50], [16, 51], [16, 52], [16, 53], [17, 19], [17, 20], [17, 23], [17, 28], [17, 33], [17, 39], [17, 40], [17, 42], [17, 43], [17, 44], [17, 45], [17, 49], [17, 50], [17, 53], [18, 19], [18, 20], [18, 21], [18, 22], [18, 23], [18, 24], [18, 25], [18, 28], [18, 29], [18, 31], [18, 32], [18, 33], [18, 35], [18, 36], [18, 38], [18, 39], [18, 40], [18, 41], [18, 42], [18, 43], [18, 44], [18, 45], [18, 46], [18, 47], [18, 48], [18, 49], [18, 50], [18, 51], [18, 52], [18, 53], [19, 20], [19, 21], [19, 22], [19, 23], [19, 24], [19, 25], [19, 27], [19, 28], [19, 29], [19, 31], [19, 33], [19, 34], [19, 35], [19, 37], [19, 38], [19, 39], [19, 40], [19, 41], [19, 42], [19, 43], [19, 44], [19, 45], [19, 46], [19, 48], [19, 49], [19, 50], [19, 51], [19, 52], [19, 53], [20, 21], [20, 22], [20, 23], [20, 24], [20, 25], [20, 28], [20, 30], [20, 31], [20, 32], [20, 33], [20, 36], [20, 38], [20, 39], [20, 40], [20, 41], [20, 42], [20, 43], [20, 44], [20, 45], [20, 46], [20, 48], [20, 49], [20, 50], [20, 51], [20, 52], [20, 53], [21, 22], [21, 23], [21, 24], [21, 25], [21, 28], [21, 30], [21, 31], [21, 33], [21, 34], [21, 36], [21, 38], [21, 39], [21, 40], [21, 41], [21, 42], [21, 43], [21, 44], [21, 45], [21, 46], [21, 48], [21, 49], [21, 50], [21, 51], [21, 52], [21, 53], [22, 23], [22, 24], [22, 25], [22, 26], [22, 28], [22, 31], [22, 32], [22, 33], [22, 34], [22, 35], [22, 36], [22, 37], [22, 38], [22, 39], [22, 40], [22, 41], [22, 42], [22, 43], [22, 44], [22, 45], [22, 47], [22, 48], [22, 49], [22, 50], [22, 51], [22, 52], [22, 53], [23, 24], [23, 25], [23, 27], [23, 28], [23, 30], [23, 31], [23, 33], [23, 34], [23, 35], [23, 38], [23, 39], [23, 40], [23, 41], [23, 42], [23, 43], [23, 44], [23, 45], [23, 46], [23, 48], [23, 49], [23, 50], [23, 51], [23, 53], [24, 25], [24, 26], [24, 27], [24, 28], [24, 30], [24, 31], [24, 32], [24, 33], [24, 36], [24, 37], [24, 38], [24, 39], [24, 40], [24, 41], [24, 42], [24, 43], [24, 44], [24, 45], [24, 46], [24, 47], [24, 48], [24, 49], [24, 50], [24, 51], [24, 53], [25, 27], [25, 28], [25, 29], [25, 31], [25, 32], [25, 33], [25, 35], [25, 36], [25, 38], [25, 39], [25, 40], [25, 41], [25, 42], [25, 43], [25, 44], [25, 45], [25, 48], [25, 49], [25, 50], [25, 51], [25, 52], [25, 53], [26, 31], [26, 33], [26, 38], [26, 40], [26, 41], [26, 44], [26, 48], [27, 28], [27, 33], [27, 39], [27, 42], [27, 44], [27, 45], [27, 50], [27, 51], [28, 31], [28, 32], [28, 33], [28, 34], [28, 35], [28, 37], [28, 38], [28, 39], [28, 40], [28, 41], [28, 42], [28, 43], [28, 44], [28, 45], [28, 47], [28, 48], [28, 49], [28, 50], [28, 51], [28, 52], [28, 53], [29, 31], [29, 33], [29, 38], [29, 42], [29, 49], [29, 50], [29, 51], [29, 53], [30, 31], [30, 33], [30, 38], [30, 41], [30, 48], [30, 49], [30, 50], [30, 51], [30, 53], [31, 32], [31, 33], [31, 34], [31, 35], [31, 36], [31, 38], [31, 39], [31, 40], [31, 41], [31, 42], [31, 43], [31, 44], [31, 45], [31, 47], [31, 48], [31, 49], [31, 50], [31, 51], [31, 53], [32, 33], [32, 38], [32, 41], [32, 42], [32, 43], [32, 48], [33, 36], [33, 38], [33, 39], [33, 40], [33, 41], [33, 42], [33, 43], [33, 44], [33, 45], [33, 47], [33, 48], [33, 49], [33, 50], [33, 51], [33, 53], [34, 40], [34, 41], [34, 43], [34, 48], [34, 49], [34, 53], [35, 38], [35, 39], [35, 49], [36, 39], [36, 40], [36, 41], [36, 42], [36, 43], [36, 49], [36, 50], [37, 39], [37, 42], [37, 43], [37, 49], [37, 50], [37, 51], [37, 53], [38, 39], [38, 40], [38, 41], [38, 42], [38, 43], [38, 44], [38, 45], [38, 46], [38, 48], [38, 49], [38, 50], [38, 51], [38, 52], [38, 53], [39, 40], [39, 41], [39, 42], [39, 43], [39, 44], [39, 45], [39, 46], [39, 48], [39, 49], [39, 50], [39, 51], [39, 53], [40, 41], [40, 42], [40, 43], [40, 44], [40, 45], [40, 48], [40, 49], [40, 50], [40, 51], [40, 53], [41, 42], [41, 43], [41, 44], [41, 45], [41, 47], [41, 48], [41, 49], [41, 50], [41, 51], [41, 52], [41, 53], [42, 43], [42, 44], [42, 45], [42, 46], [42, 47], [42, 48], [42, 49], [42, 50], [42, 51], [42, 52], [42, 53], [43, 44], [43, 45], [43, 47], [43, 48], [43, 49], [43, 50], [43, 51], [43, 52], [43, 53], [44, 45], [44, 48], [44, 49], [44, 50], [44, 51], [44, 52], [44, 53], [45, 46], [45, 47], [45, 48], [45, 49], [45, 50], [45, 51], [45, 52], [45, 53], [46, 48], [46, 50], [47, 49], [47, 53], [48, 49], [48, 50], [48, 51], [48, 52], [48, 53], [49, 50], [49, 51], [49, 52], [49, 53], [50, 51], [50, 52], [50, 53], [51, 53], [52, 53]], "family": "rlve_imp_party", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-imp-party-l5-s0/tests/run.py b/tasks/construct-rlve-imp-party-l5-s0/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-imp-party-l5-s0/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-imp-party-l5-s0/tests/test.sh b/tasks/construct-rlve-imp-party-l5-s0/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-imp-party-l5-s0/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-imp-party-l5-s7/environment/Dockerfile b/tasks/construct-rlve-imp-party-l5-s7/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-imp-party-l5-s7/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-imp-party-l5-s7/environment/instance.json b/tasks/construct-rlve-imp-party-l5-s7/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..ee64375247b60e4cf6d796d97403a9157bd2ef1e --- /dev/null +++ b/tasks/construct-rlve-imp-party-l5-s7/environment/instance.json @@ -0,0 +1 @@ +{"n": 18, "edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 35], [0, 36], [0, 37], [0, 38], [0, 39], [0, 40], [0, 41], [0, 42], [0, 43], [0, 44], [0, 45], [0, 46], [0, 47], [0, 48], [0, 49], [0, 50], [0, 51], [0, 52], [0, 53], [1, 2], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 24], [1, 25], [1, 26], [1, 27], [1, 28], [1, 29], [1, 30], [1, 31], [1, 32], [1, 33], [1, 34], [1, 35], [1, 36], [1, 37], [1, 38], [1, 39], [1, 40], [1, 41], [1, 42], [1, 43], [1, 44], [1, 45], [1, 46], [1, 47], [1, 48], [1, 49], [1, 50], [1, 51], [1, 52], [1, 53], [2, 3], [2, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [2, 24], [2, 25], [2, 26], [2, 27], [2, 28], [2, 29], [2, 30], [2, 31], [2, 32], [2, 33], [2, 34], [2, 35], [2, 36], [2, 37], [2, 39], [2, 40], [2, 41], [2, 42], [2, 43], [2, 44], [2, 45], [2, 46], [2, 47], [2, 48], [2, 49], [2, 50], [2, 51], [2, 52], [2, 53], [3, 4], [3, 5], [3, 6], [3, 7], [3, 11], [3, 13], [3, 15], [3, 16], [3, 17], [3, 18], [3, 19], [3, 20], [3, 21], [3, 22], [3, 24], [3, 26], [3, 27], [3, 29], [3, 31], [3, 34], [3, 36], [3, 37], [3, 42], [3, 43], [3, 44], [3, 45], [3, 47], [3, 48], [3, 50], [3, 51], [3, 52], [3, 53], [4, 5], [4, 6], [4, 7], [4, 8], [4, 10], [4, 11], [4, 12], [4, 13], [4, 14], [4, 15], [4, 16], [4, 17], [4, 18], [4, 19], [4, 20], [4, 21], [4, 22], [4, 23], [4, 24], [4, 25], [4, 26], [4, 27], [4, 28], [4, 29], [4, 30], [4, 31], [4, 32], [4, 33], [4, 34], [4, 35], [4, 36], [4, 37], [4, 38], [4, 39], [4, 40], [4, 41], [4, 42], [4, 43], [4, 44], [4, 45], [4, 46], [4, 47], [4, 48], [4, 49], [4, 50], [4, 51], [4, 52], [4, 53], [5, 6], [5, 7], [5, 8], [5, 9], [5, 10], [5, 11], [5, 12], [5, 13], [5, 14], [5, 15], [5, 16], [5, 17], [5, 18], [5, 19], [5, 20], [5, 21], [5, 22], [5, 23], [5, 24], [5, 25], [5, 26], [5, 27], [5, 28], [5, 29], [5, 30], [5, 31], [5, 32], [5, 33], [5, 34], [5, 35], [5, 36], [5, 37], [5, 38], [5, 39], [5, 40], [5, 41], [5, 42], [5, 43], [5, 44], [5, 45], [5, 46], [5, 47], [5, 48], [5, 49], [5, 50], [5, 51], [5, 52], [5, 53], [6, 7], [6, 8], [6, 9], [6, 10], [6, 11], [6, 12], [6, 13], [6, 14], [6, 15], [6, 16], [6, 17], [6, 18], [6, 19], [6, 20], [6, 21], [6, 22], [6, 23], [6, 24], [6, 25], [6, 26], [6, 27], [6, 28], [6, 29], [6, 30], [6, 31], [6, 32], [6, 33], [6, 34], [6, 35], [6, 36], [6, 37], [6, 38], [6, 39], [6, 40], [6, 41], [6, 42], [6, 43], [6, 44], [6, 45], [6, 47], [6, 48], [6, 49], [6, 50], [6, 51], [6, 52], [6, 53], [7, 8], [7, 9], [7, 10], [7, 11], [7, 12], [7, 13], [7, 14], [7, 15], [7, 16], [7, 17], [7, 18], [7, 19], [7, 20], [7, 21], [7, 22], [7, 23], [7, 24], [7, 25], [7, 26], [7, 27], [7, 28], [7, 29], [7, 30], [7, 31], [7, 32], [7, 33], [7, 34], [7, 35], [7, 36], [7, 37], [7, 39], [7, 40], [7, 42], [7, 43], [7, 44], [7, 45], [7, 47], [7, 48], [7, 49], [7, 50], [7, 51], [7, 52], [7, 53], [8, 11], [8, 13], [8, 16], [8, 17], [8, 19], [8, 20], [8, 21], [8, 22], [8, 24], [8, 26], [8, 27], [8, 29], [8, 31], [8, 33], [8, 34], [8, 36], [8, 37], [8, 42], [8, 43], [8, 45], [8, 47], [8, 48], [8, 50], [8, 51], [8, 52], [9, 11], [9, 13], [9, 15], [9, 16], [9, 18], [9, 19], [9, 20], [9, 21], [9, 22], [9, 24], [9, 26], [9, 27], [9, 29], [9, 31], [9, 34], [9, 36], [9, 37], [9, 42], [9, 43], [9, 44], [9, 47], [9, 48], [9, 50], [9, 51], [9, 53], [10, 11], [10, 13], [10, 15], [10, 16], [10, 17], [10, 18], [10, 19], [10, 20], [10, 21], [10, 22], [10, 24], [10, 26], [10, 27], [10, 29], [10, 31], [10, 33], [10, 34], [10, 36], [10, 37], [10, 42], [10, 43], [10, 44], [10, 45], [10, 47], [10, 48], [10, 50], [10, 51], [10, 52], [10, 53], [11, 12], [11, 13], [11, 14], [11, 15], [11, 16], [11, 17], [11, 18], [11, 19], [11, 20], [11, 21], [11, 22], [11, 23], [11, 24], [11, 25], [11, 26], [11, 27], [11, 28], [11, 29], [11, 30], [11, 31], [11, 32], [11, 33], [11, 34], [11, 35], [11, 36], [11, 37], [11, 38], [11, 39], [11, 40], [11, 41], [11, 42], [11, 43], [11, 44], [11, 45], [11, 46], [11, 47], [11, 48], [11, 49], [11, 50], [11, 51], [11, 52], [11, 53], [12, 13], [12, 15], [12, 16], [12, 17], [12, 18], [12, 19], [12, 20], [12, 21], [12, 22], [12, 24], [12, 26], [12, 27], [12, 29], [12, 31], [12, 33], [12, 34], [12, 37], [12, 42], [12, 43], [12, 44], [12, 45], [12, 47], [12, 48], [12, 50], [12, 51], [12, 52], [13, 14], [13, 15], [13, 16], [13, 17], [13, 18], [13, 19], [13, 20], [13, 21], [13, 22], [13, 23], [13, 24], [13, 25], [13, 26], [13, 27], [13, 28], [13, 29], [13, 30], [13, 31], [13, 32], [13, 33], [13, 34], [13, 35], [13, 36], [13, 37], [13, 38], [13, 39], [13, 41], [13, 42], [13, 43], [13, 44], [13, 45], [13, 46], [13, 47], [13, 48], [13, 49], [13, 50], [13, 51], [13, 52], [13, 53], [14, 15], [14, 16], [14, 17], [14, 18], [14, 20], [14, 21], [14, 22], [14, 26], [14, 27], [14, 29], [14, 33], [14, 34], [14, 36], [14, 37], [14, 42], [14, 43], [14, 44], [14, 45], [14, 47], [14, 48], [14, 50], [14, 51], [14, 52], [14, 53], [15, 16], [15, 17], [15, 18], [15, 19], [15, 20], [15, 21], [15, 22], [15, 23], [15, 24], [15, 25], [15, 26], [15, 27], [15, 29], [15, 30], [15, 31], [15, 33], [15, 34], [15, 35], [15, 36], [15, 37], [15, 38], [15, 39], [15, 40], [15, 42], [15, 43], [15, 44], [15, 45], [15, 46], [15, 47], [15, 48], [15, 49], [15, 50], [15, 51], [15, 52], [15, 53], [16, 17], [16, 18], [16, 19], [16, 20], [16, 21], [16, 22], [16, 23], [16, 24], [16, 25], [16, 26], [16, 27], [16, 28], [16, 29], [16, 30], [16, 31], [16, 32], [16, 33], [16, 34], [16, 35], [16, 36], [16, 37], [16, 38], [16, 39], [16, 40], [16, 41], [16, 42], [16, 43], [16, 44], [16, 45], [16, 46], [16, 47], [16, 48], [16, 49], [16, 50], [16, 51], [16, 52], [16, 53], [17, 18], [17, 19], [17, 20], [17, 21], [17, 22], [17, 24], [17, 25], [17, 26], [17, 27], [17, 28], [17, 29], [17, 30], [17, 31], [17, 33], [17, 34], [17, 35], [17, 36], [17, 37], [17, 38], [17, 39], [17, 40], [17, 41], [17, 42], [17, 43], [17, 44], [17, 45], [17, 46], [17, 47], [17, 48], [17, 49], [17, 50], [17, 51], [17, 52], [17, 53], [18, 19], [18, 20], [18, 21], [18, 22], [18, 23], [18, 24], [18, 25], [18, 26], [18, 27], [18, 28], [18, 29], [18, 30], [18, 31], [18, 32], [18, 33], [18, 34], [18, 35], [18, 36], [18, 37], [18, 38], [18, 39], [18, 40], [18, 41], [18, 42], [18, 43], [18, 44], [18, 45], [18, 46], [18, 47], [18, 48], [18, 49], [18, 50], [18, 51], [18, 52], [18, 53], [19, 20], [19, 21], [19, 22], [19, 23], [19, 24], [19, 25], [19, 26], [19, 27], [19, 28], [19, 29], [19, 30], [19, 31], [19, 32], [19, 33], [19, 34], [19, 35], [19, 36], [19, 37], [19, 38], [19, 39], [19, 40], [19, 41], [19, 42], [19, 43], [19, 44], [19, 45], [19, 46], [19, 47], [19, 48], [19, 49], [19, 50], [19, 51], [19, 52], [19, 53], [20, 21], [20, 22], [20, 23], [20, 24], [20, 25], [20, 26], [20, 27], [20, 28], [20, 29], [20, 30], [20, 31], [20, 32], [20, 33], [20, 34], [20, 35], [20, 36], [20, 37], [20, 38], [20, 39], [20, 40], [20, 41], [20, 42], [20, 43], [20, 44], [20, 45], [20, 46], [20, 47], [20, 48], [20, 49], [20, 50], [20, 51], [20, 52], [20, 53], [21, 22], [21, 23], [21, 24], [21, 25], [21, 26], [21, 27], [21, 28], [21, 29], [21, 30], [21, 31], [21, 32], [21, 33], [21, 34], [21, 35], [21, 36], [21, 37], [21, 38], [21, 39], [21, 40], [21, 41], [21, 42], [21, 43], [21, 44], [21, 45], [21, 46], [21, 47], [21, 48], [21, 49], [21, 50], [21, 51], [21, 52], [21, 53], [22, 24], [22, 25], [22, 26], [22, 27], [22, 28], [22, 29], [22, 30], [22, 31], [22, 32], [22, 33], [22, 34], [22, 35], [22, 36], [22, 37], [22, 38], [22, 39], [22, 40], [22, 41], [22, 42], [22, 43], [22, 44], [22, 45], [22, 46], [22, 47], [22, 48], [22, 49], [22, 50], [22, 51], [22, 52], [22, 53], [23, 24], [23, 26], [23, 27], [23, 29], [23, 31], [23, 33], [23, 34], [23, 36], [23, 37], [23, 42], [23, 44], [23, 47], [23, 48], [23, 50], [23, 51], [23, 52], [23, 53], [24, 25], [24, 26], [24, 27], [24, 29], [24, 30], [24, 31], [24, 32], [24, 33], [24, 34], [24, 35], [24, 36], [24, 37], [24, 38], [24, 39], [24, 40], [24, 41], [24, 42], [24, 43], [24, 44], [24, 45], [24, 46], [24, 47], [24, 48], [24, 49], [24, 50], [24, 51], [24, 52], [24, 53], [25, 26], [25, 27], [25, 29], [25, 31], [25, 33], [25, 36], [25, 37], [25, 42], [25, 43], [25, 44], [25, 45], [25, 47], [25, 48], [25, 50], [25, 51], [25, 53], [26, 27], [26, 28], [26, 29], [26, 30], [26, 31], [26, 32], [26, 33], [26, 34], [26, 35], [26, 36], [26, 37], [26, 38], [26, 40], [26, 41], [26, 42], [26, 43], [26, 44], [26, 45], [26, 46], [26, 47], [26, 48], [26, 49], [26, 50], [26, 51], [26, 52], [26, 53], [27, 28], [27, 29], [27, 30], [27, 31], [27, 32], [27, 33], [27, 34], [27, 35], [27, 36], [27, 37], [27, 38], [27, 39], [27, 40], [27, 41], [27, 42], [27, 43], [27, 44], [27, 45], [27, 46], [27, 47], [27, 48], [27, 49], [27, 50], [27, 51], [27, 52], [27, 53], [28, 29], [28, 31], [28, 33], [28, 34], [28, 36], [28, 37], [28, 42], [28, 43], [28, 44], [28, 45], [28, 47], [28, 48], [28, 50], [28, 51], [28, 52], [28, 53], [29, 30], [29, 31], [29, 32], [29, 33], [29, 34], [29, 35], [29, 36], [29, 37], [29, 38], [29, 39], [29, 40], [29, 41], [29, 42], [29, 43], [29, 44], [29, 45], [29, 46], [29, 47], [29, 48], [29, 49], [29, 50], [29, 51], [29, 52], [29, 53], [30, 33], [30, 34], [30, 36], [30, 37], [30, 43], [30, 44], [30, 45], [30, 47], [30, 48], [30, 50], [30, 51], [30, 53], [31, 32], [31, 33], [31, 34], [31, 35], [31, 36], [31, 37], [31, 38], [31, 39], [31, 40], [31, 41], [31, 42], [31, 43], [31, 44], [31, 45], [31, 46], [31, 47], [31, 48], [31, 49], [31, 50], [31, 51], [31, 52], [31, 53], [32, 33], [32, 34], [32, 36], [32, 37], [32, 42], [32, 43], [32, 44], [32, 45], [32, 47], [32, 48], [32, 50], [32, 51], [32, 52], [32, 53], [33, 34], [33, 35], [33, 36], [33, 37], [33, 38], [33, 39], [33, 40], [33, 41], [33, 42], [33, 43], [33, 44], [33, 45], [33, 46], [33, 47], [33, 48], [33, 49], [33, 50], [33, 51], [33, 52], [33, 53], [34, 35], [34, 36], [34, 37], [34, 38], [34, 39], [34, 40], [34, 41], [34, 42], [34, 43], [34, 44], [34, 45], [34, 46], [34, 47], [34, 48], [34, 49], [34, 50], [34, 51], [34, 52], [34, 53], [35, 36], [35, 37], [35, 42], [35, 43], [35, 44], [35, 45], [35, 47], [35, 48], [35, 50], [35, 51], [35, 52], [35, 53], [36, 37], [36, 38], [36, 39], [36, 40], [36, 41], [36, 42], [36, 43], [36, 44], [36, 45], [36, 46], [36, 47], [36, 48], [36, 49], [36, 50], [36, 51], [36, 52], [36, 53], [37, 38], [37, 39], [37, 40], [37, 41], [37, 42], [37, 43], [37, 44], [37, 45], [37, 46], [37, 47], [37, 48], [37, 49], [37, 50], [37, 51], [37, 52], [37, 53], [38, 42], [38, 43], [38, 44], [38, 45], [38, 47], [38, 48], [38, 50], [38, 51], [38, 52], [38, 53], [39, 42], [39, 43], [39, 44], [39, 45], [39, 47], [39, 50], [39, 51], [39, 52], [39, 53], [40, 42], [40, 43], [40, 45], [40, 47], [40, 48], [40, 50], [40, 51], [40, 52], [40, 53], [41, 42], [41, 43], [41, 44], [41, 45], [41, 47], [41, 48], [41, 50], [41, 51], [41, 52], [41, 53], [42, 43], [42, 44], [42, 45], [42, 46], [42, 47], [42, 48], [42, 49], [42, 50], [42, 51], [42, 52], [42, 53], [43, 44], [43, 45], [43, 46], [43, 47], [43, 48], [43, 49], [43, 50], [43, 51], [43, 52], [43, 53], [44, 45], [44, 46], [44, 47], [44, 48], [44, 49], [44, 50], [44, 51], [44, 52], [44, 53], [45, 46], [45, 47], [45, 48], [45, 49], [45, 50], [45, 51], [45, 52], [45, 53], [46, 47], [46, 50], [46, 51], [46, 52], [46, 53], [47, 48], [47, 49], [47, 50], [47, 51], [47, 52], [47, 53], [48, 49], [48, 50], [48, 51], [48, 52], [48, 53], [49, 50], [49, 51], [49, 52], [49, 53], [50, 51], [50, 52], [50, 53], [51, 52], [51, 53], [52, 53]], "family": "rlve_imp_party", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-imp-party-l5-s7/solution/solve.sh b/tasks/construct-rlve-imp-party-l5-s7/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..e886eb0fe8541b029f1f0080459bc0b9528500da --- /dev/null +++ b/tasks/construct-rlve-imp-party-l5-s7/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"clique": [0, 2, 11, 13, 15, 16, 17, 18, 19, 24, 27, 34, 36, 42, 43, 44, 47, 53]} +RLMATH_EOF diff --git a/tasks/construct-rlve-imp-party-l5-s7/tests/check.py b/tasks/construct-rlve-imp-party-l5-s7/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..97b5a037a2ba8bf4495cf87cc074d1c60b11311c --- /dev/null +++ b/tasks/construct-rlve-imp-party-l5-s7/tests/check.py @@ -0,0 +1,14 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n = inst["n"] + c = int_list(ans.get("clique"), n, 0, 3 * n - 1, "clique") + if len(set(c)) != n: + raise Invalid("vertices must be distinct") + es = {(min(u, v), max(u, v)) for u, v in inst["edges"]} + for i in range(n): + for j in range(i + 1, n): + if (min(c[i], c[j]), max(c[i], c[j])) not in es: + raise Invalid(f"{c[i]} and {c[j]} are not adjacent") + return None, {} diff --git a/tasks/construct-rlve-imp-party-l5-s7/tests/instance.json b/tasks/construct-rlve-imp-party-l5-s7/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..ee64375247b60e4cf6d796d97403a9157bd2ef1e --- /dev/null +++ b/tasks/construct-rlve-imp-party-l5-s7/tests/instance.json @@ -0,0 +1 @@ +{"n": 18, "edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 35], [0, 36], [0, 37], [0, 38], [0, 39], [0, 40], [0, 41], [0, 42], [0, 43], [0, 44], [0, 45], [0, 46], [0, 47], [0, 48], [0, 49], [0, 50], [0, 51], [0, 52], [0, 53], [1, 2], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 24], [1, 25], [1, 26], [1, 27], [1, 28], [1, 29], [1, 30], [1, 31], [1, 32], [1, 33], [1, 34], [1, 35], [1, 36], [1, 37], [1, 38], [1, 39], [1, 40], [1, 41], [1, 42], [1, 43], [1, 44], [1, 45], [1, 46], [1, 47], [1, 48], [1, 49], [1, 50], [1, 51], [1, 52], [1, 53], [2, 3], [2, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [2, 24], [2, 25], [2, 26], [2, 27], [2, 28], [2, 29], [2, 30], [2, 31], [2, 32], [2, 33], [2, 34], [2, 35], [2, 36], [2, 37], [2, 39], [2, 40], [2, 41], [2, 42], [2, 43], [2, 44], [2, 45], [2, 46], [2, 47], [2, 48], [2, 49], [2, 50], [2, 51], [2, 52], [2, 53], [3, 4], [3, 5], [3, 6], [3, 7], [3, 11], [3, 13], [3, 15], [3, 16], [3, 17], [3, 18], [3, 19], [3, 20], [3, 21], [3, 22], [3, 24], [3, 26], [3, 27], [3, 29], [3, 31], [3, 34], [3, 36], [3, 37], [3, 42], [3, 43], [3, 44], [3, 45], [3, 47], [3, 48], [3, 50], [3, 51], [3, 52], [3, 53], [4, 5], [4, 6], [4, 7], [4, 8], [4, 10], [4, 11], [4, 12], [4, 13], [4, 14], [4, 15], [4, 16], [4, 17], [4, 18], [4, 19], [4, 20], [4, 21], [4, 22], [4, 23], [4, 24], [4, 25], [4, 26], [4, 27], [4, 28], [4, 29], [4, 30], [4, 31], [4, 32], [4, 33], [4, 34], [4, 35], [4, 36], [4, 37], [4, 38], [4, 39], [4, 40], [4, 41], [4, 42], [4, 43], [4, 44], [4, 45], [4, 46], [4, 47], [4, 48], [4, 49], [4, 50], [4, 51], [4, 52], [4, 53], [5, 6], [5, 7], [5, 8], [5, 9], [5, 10], [5, 11], [5, 12], [5, 13], [5, 14], [5, 15], [5, 16], [5, 17], [5, 18], [5, 19], [5, 20], [5, 21], [5, 22], [5, 23], [5, 24], [5, 25], [5, 26], [5, 27], [5, 28], [5, 29], [5, 30], [5, 31], [5, 32], [5, 33], [5, 34], [5, 35], [5, 36], [5, 37], [5, 38], [5, 39], [5, 40], [5, 41], [5, 42], [5, 43], [5, 44], [5, 45], [5, 46], [5, 47], [5, 48], [5, 49], [5, 50], [5, 51], [5, 52], [5, 53], [6, 7], [6, 8], [6, 9], [6, 10], [6, 11], [6, 12], [6, 13], [6, 14], [6, 15], [6, 16], [6, 17], [6, 18], [6, 19], [6, 20], [6, 21], [6, 22], [6, 23], [6, 24], [6, 25], [6, 26], [6, 27], [6, 28], [6, 29], [6, 30], [6, 31], [6, 32], [6, 33], [6, 34], [6, 35], [6, 36], [6, 37], [6, 38], [6, 39], [6, 40], [6, 41], [6, 42], [6, 43], [6, 44], [6, 45], [6, 47], [6, 48], [6, 49], [6, 50], [6, 51], [6, 52], [6, 53], [7, 8], [7, 9], [7, 10], [7, 11], [7, 12], [7, 13], [7, 14], [7, 15], [7, 16], [7, 17], [7, 18], [7, 19], [7, 20], [7, 21], [7, 22], [7, 23], [7, 24], [7, 25], [7, 26], [7, 27], [7, 28], [7, 29], [7, 30], [7, 31], [7, 32], [7, 33], [7, 34], [7, 35], [7, 36], [7, 37], [7, 39], [7, 40], [7, 42], [7, 43], [7, 44], [7, 45], [7, 47], [7, 48], [7, 49], [7, 50], [7, 51], [7, 52], [7, 53], [8, 11], [8, 13], [8, 16], [8, 17], [8, 19], [8, 20], [8, 21], [8, 22], [8, 24], [8, 26], [8, 27], [8, 29], [8, 31], [8, 33], [8, 34], [8, 36], [8, 37], [8, 42], [8, 43], [8, 45], [8, 47], [8, 48], [8, 50], [8, 51], [8, 52], [9, 11], [9, 13], [9, 15], [9, 16], [9, 18], [9, 19], [9, 20], [9, 21], [9, 22], [9, 24], [9, 26], [9, 27], [9, 29], [9, 31], [9, 34], [9, 36], [9, 37], [9, 42], [9, 43], [9, 44], [9, 47], [9, 48], [9, 50], [9, 51], [9, 53], [10, 11], [10, 13], [10, 15], [10, 16], [10, 17], [10, 18], [10, 19], [10, 20], [10, 21], [10, 22], [10, 24], [10, 26], [10, 27], [10, 29], [10, 31], [10, 33], [10, 34], [10, 36], [10, 37], [10, 42], [10, 43], [10, 44], [10, 45], [10, 47], [10, 48], [10, 50], [10, 51], [10, 52], [10, 53], [11, 12], [11, 13], [11, 14], [11, 15], [11, 16], [11, 17], [11, 18], [11, 19], [11, 20], [11, 21], [11, 22], [11, 23], [11, 24], [11, 25], [11, 26], [11, 27], [11, 28], [11, 29], [11, 30], [11, 31], [11, 32], [11, 33], [11, 34], [11, 35], [11, 36], [11, 37], [11, 38], [11, 39], [11, 40], [11, 41], [11, 42], [11, 43], [11, 44], [11, 45], [11, 46], [11, 47], [11, 48], [11, 49], [11, 50], [11, 51], [11, 52], [11, 53], [12, 13], [12, 15], [12, 16], [12, 17], [12, 18], [12, 19], [12, 20], [12, 21], [12, 22], [12, 24], [12, 26], [12, 27], [12, 29], [12, 31], [12, 33], [12, 34], [12, 37], [12, 42], [12, 43], [12, 44], [12, 45], [12, 47], [12, 48], [12, 50], [12, 51], [12, 52], [13, 14], [13, 15], [13, 16], [13, 17], [13, 18], [13, 19], [13, 20], [13, 21], [13, 22], [13, 23], [13, 24], [13, 25], [13, 26], [13, 27], [13, 28], [13, 29], [13, 30], [13, 31], [13, 32], [13, 33], [13, 34], [13, 35], [13, 36], [13, 37], [13, 38], [13, 39], [13, 41], [13, 42], [13, 43], [13, 44], [13, 45], [13, 46], [13, 47], [13, 48], [13, 49], [13, 50], [13, 51], [13, 52], [13, 53], [14, 15], [14, 16], [14, 17], [14, 18], [14, 20], [14, 21], [14, 22], [14, 26], [14, 27], [14, 29], [14, 33], [14, 34], [14, 36], [14, 37], [14, 42], [14, 43], [14, 44], [14, 45], [14, 47], [14, 48], [14, 50], [14, 51], [14, 52], [14, 53], [15, 16], [15, 17], [15, 18], [15, 19], [15, 20], [15, 21], [15, 22], [15, 23], [15, 24], [15, 25], [15, 26], [15, 27], [15, 29], [15, 30], [15, 31], [15, 33], [15, 34], [15, 35], [15, 36], [15, 37], [15, 38], [15, 39], [15, 40], [15, 42], [15, 43], [15, 44], [15, 45], [15, 46], [15, 47], [15, 48], [15, 49], [15, 50], [15, 51], [15, 52], [15, 53], [16, 17], [16, 18], [16, 19], [16, 20], [16, 21], [16, 22], [16, 23], [16, 24], [16, 25], [16, 26], [16, 27], [16, 28], [16, 29], [16, 30], [16, 31], [16, 32], [16, 33], [16, 34], [16, 35], [16, 36], [16, 37], [16, 38], [16, 39], [16, 40], [16, 41], [16, 42], [16, 43], [16, 44], [16, 45], [16, 46], [16, 47], [16, 48], [16, 49], [16, 50], [16, 51], [16, 52], [16, 53], [17, 18], [17, 19], [17, 20], [17, 21], [17, 22], [17, 24], [17, 25], [17, 26], [17, 27], [17, 28], [17, 29], [17, 30], [17, 31], [17, 33], [17, 34], [17, 35], [17, 36], [17, 37], [17, 38], [17, 39], [17, 40], [17, 41], [17, 42], [17, 43], [17, 44], [17, 45], [17, 46], [17, 47], [17, 48], [17, 49], [17, 50], [17, 51], [17, 52], [17, 53], [18, 19], [18, 20], [18, 21], [18, 22], [18, 23], [18, 24], [18, 25], [18, 26], [18, 27], [18, 28], [18, 29], [18, 30], [18, 31], [18, 32], [18, 33], [18, 34], [18, 35], [18, 36], [18, 37], [18, 38], [18, 39], [18, 40], [18, 41], [18, 42], [18, 43], [18, 44], [18, 45], [18, 46], [18, 47], [18, 48], [18, 49], [18, 50], [18, 51], [18, 52], [18, 53], [19, 20], [19, 21], [19, 22], [19, 23], [19, 24], [19, 25], [19, 26], [19, 27], [19, 28], [19, 29], [19, 30], [19, 31], [19, 32], [19, 33], [19, 34], [19, 35], [19, 36], [19, 37], [19, 38], [19, 39], [19, 40], [19, 41], [19, 42], [19, 43], [19, 44], [19, 45], [19, 46], [19, 47], [19, 48], [19, 49], [19, 50], [19, 51], [19, 52], [19, 53], [20, 21], [20, 22], [20, 23], [20, 24], [20, 25], [20, 26], [20, 27], [20, 28], [20, 29], [20, 30], [20, 31], [20, 32], [20, 33], [20, 34], [20, 35], [20, 36], [20, 37], [20, 38], [20, 39], [20, 40], [20, 41], [20, 42], [20, 43], [20, 44], [20, 45], [20, 46], [20, 47], [20, 48], [20, 49], [20, 50], [20, 51], [20, 52], [20, 53], [21, 22], [21, 23], [21, 24], [21, 25], [21, 26], [21, 27], [21, 28], [21, 29], [21, 30], [21, 31], [21, 32], [21, 33], [21, 34], [21, 35], [21, 36], [21, 37], [21, 38], [21, 39], [21, 40], [21, 41], [21, 42], [21, 43], [21, 44], [21, 45], [21, 46], [21, 47], [21, 48], [21, 49], [21, 50], [21, 51], [21, 52], [21, 53], [22, 24], [22, 25], [22, 26], [22, 27], [22, 28], [22, 29], [22, 30], [22, 31], [22, 32], [22, 33], [22, 34], [22, 35], [22, 36], [22, 37], [22, 38], [22, 39], [22, 40], [22, 41], [22, 42], [22, 43], [22, 44], [22, 45], [22, 46], [22, 47], [22, 48], [22, 49], [22, 50], [22, 51], [22, 52], [22, 53], [23, 24], [23, 26], [23, 27], [23, 29], [23, 31], [23, 33], [23, 34], [23, 36], [23, 37], [23, 42], [23, 44], [23, 47], [23, 48], [23, 50], [23, 51], [23, 52], [23, 53], [24, 25], [24, 26], [24, 27], [24, 29], [24, 30], [24, 31], [24, 32], [24, 33], [24, 34], [24, 35], [24, 36], [24, 37], [24, 38], [24, 39], [24, 40], [24, 41], [24, 42], [24, 43], [24, 44], [24, 45], [24, 46], [24, 47], [24, 48], [24, 49], [24, 50], [24, 51], [24, 52], [24, 53], [25, 26], [25, 27], [25, 29], [25, 31], [25, 33], [25, 36], [25, 37], [25, 42], [25, 43], [25, 44], [25, 45], [25, 47], [25, 48], [25, 50], [25, 51], [25, 53], [26, 27], [26, 28], [26, 29], [26, 30], [26, 31], [26, 32], [26, 33], [26, 34], [26, 35], [26, 36], [26, 37], [26, 38], [26, 40], [26, 41], [26, 42], [26, 43], [26, 44], [26, 45], [26, 46], [26, 47], [26, 48], [26, 49], [26, 50], [26, 51], [26, 52], [26, 53], [27, 28], [27, 29], [27, 30], [27, 31], [27, 32], [27, 33], [27, 34], [27, 35], [27, 36], [27, 37], [27, 38], [27, 39], [27, 40], [27, 41], [27, 42], [27, 43], [27, 44], [27, 45], [27, 46], [27, 47], [27, 48], [27, 49], [27, 50], [27, 51], [27, 52], [27, 53], [28, 29], [28, 31], [28, 33], [28, 34], [28, 36], [28, 37], [28, 42], [28, 43], [28, 44], [28, 45], [28, 47], [28, 48], [28, 50], [28, 51], [28, 52], [28, 53], [29, 30], [29, 31], [29, 32], [29, 33], [29, 34], [29, 35], [29, 36], [29, 37], [29, 38], [29, 39], [29, 40], [29, 41], [29, 42], [29, 43], [29, 44], [29, 45], [29, 46], [29, 47], [29, 48], [29, 49], [29, 50], [29, 51], [29, 52], [29, 53], [30, 33], [30, 34], [30, 36], [30, 37], [30, 43], [30, 44], [30, 45], [30, 47], [30, 48], [30, 50], [30, 51], [30, 53], [31, 32], [31, 33], [31, 34], [31, 35], [31, 36], [31, 37], [31, 38], [31, 39], [31, 40], [31, 41], [31, 42], [31, 43], [31, 44], [31, 45], [31, 46], [31, 47], [31, 48], [31, 49], [31, 50], [31, 51], [31, 52], [31, 53], [32, 33], [32, 34], [32, 36], [32, 37], [32, 42], [32, 43], [32, 44], [32, 45], [32, 47], [32, 48], [32, 50], [32, 51], [32, 52], [32, 53], [33, 34], [33, 35], [33, 36], [33, 37], [33, 38], [33, 39], [33, 40], [33, 41], [33, 42], [33, 43], [33, 44], [33, 45], [33, 46], [33, 47], [33, 48], [33, 49], [33, 50], [33, 51], [33, 52], [33, 53], [34, 35], [34, 36], [34, 37], [34, 38], [34, 39], [34, 40], [34, 41], [34, 42], [34, 43], [34, 44], [34, 45], [34, 46], [34, 47], [34, 48], [34, 49], [34, 50], [34, 51], [34, 52], [34, 53], [35, 36], [35, 37], [35, 42], [35, 43], [35, 44], [35, 45], [35, 47], [35, 48], [35, 50], [35, 51], [35, 52], [35, 53], [36, 37], [36, 38], [36, 39], [36, 40], [36, 41], [36, 42], [36, 43], [36, 44], [36, 45], [36, 46], [36, 47], [36, 48], [36, 49], [36, 50], [36, 51], [36, 52], [36, 53], [37, 38], [37, 39], [37, 40], [37, 41], [37, 42], [37, 43], [37, 44], [37, 45], [37, 46], [37, 47], [37, 48], [37, 49], [37, 50], [37, 51], [37, 52], [37, 53], [38, 42], [38, 43], [38, 44], [38, 45], [38, 47], [38, 48], [38, 50], [38, 51], [38, 52], [38, 53], [39, 42], [39, 43], [39, 44], [39, 45], [39, 47], [39, 50], [39, 51], [39, 52], [39, 53], [40, 42], [40, 43], [40, 45], [40, 47], [40, 48], [40, 50], [40, 51], [40, 52], [40, 53], [41, 42], [41, 43], [41, 44], [41, 45], [41, 47], [41, 48], [41, 50], [41, 51], [41, 52], [41, 53], [42, 43], [42, 44], [42, 45], [42, 46], [42, 47], [42, 48], [42, 49], [42, 50], [42, 51], [42, 52], [42, 53], [43, 44], [43, 45], [43, 46], [43, 47], [43, 48], [43, 49], [43, 50], [43, 51], [43, 52], [43, 53], [44, 45], [44, 46], [44, 47], [44, 48], [44, 49], [44, 50], [44, 51], [44, 52], [44, 53], [45, 46], [45, 47], [45, 48], [45, 49], [45, 50], [45, 51], [45, 52], [45, 53], [46, 47], [46, 50], [46, 51], [46, 52], [46, 53], [47, 48], [47, 49], [47, 50], [47, 51], [47, 52], [47, 53], [48, 49], [48, 50], [48, 51], [48, 52], [48, 53], [49, 50], [49, 51], [49, 52], [49, 53], [50, 51], [50, 52], [50, 53], [51, 52], [51, 53], [52, 53]], "family": "rlve_imp_party", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-imp-party-l5-s7/tests/run.py b/tasks/construct-rlve-imp-party-l5-s7/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-imp-party-l5-s7/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-imp-party-l5-s7/tests/test.sh b/tasks/construct-rlve-imp-party-l5-s7/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-imp-party-l5-s7/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-imp-party-l5-s9/environment/Dockerfile b/tasks/construct-rlve-imp-party-l5-s9/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-imp-party-l5-s9/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-imp-party-l5-s9/environment/instance.json b/tasks/construct-rlve-imp-party-l5-s9/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..a679d643acd144bcb076bdafe4837188c7985620 --- /dev/null +++ b/tasks/construct-rlve-imp-party-l5-s9/environment/instance.json @@ -0,0 +1 @@ +{"n": 18, "edges": [[0, 1], [0, 3], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 14], [0, 15], [0, 16], [0, 18], [0, 19], [0, 20], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 31], [0, 34], [0, 36], [0, 38], [0, 40], [0, 41], [0, 46], [0, 47], [0, 48], [0, 50], [0, 52], [0, 53], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 24], [1, 25], [1, 26], [1, 27], [1, 28], [1, 29], [1, 30], [1, 31], [1, 32], [1, 33], [1, 34], [1, 35], [1, 36], [1, 37], [1, 38], [1, 39], [1, 40], [1, 41], [1, 42], [1, 43], [1, 44], [1, 45], [1, 46], [1, 47], [1, 48], [1, 49], [1, 50], [1, 51], [1, 52], [1, 53], [2, 3], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 14], [2, 15], [2, 16], [2, 18], [2, 19], [2, 20], [2, 22], [2, 23], [2, 24], [2, 25], [2, 26], [2, 27], [2, 28], [2, 29], [2, 31], [2, 34], [2, 36], [2, 38], [2, 40], [2, 41], [2, 46], [2, 47], [2, 48], [2, 50], [2, 52], [2, 53], [3, 4], [3, 5], [3, 6], [3, 7], [3, 8], [3, 9], [3, 10], [3, 11], [3, 12], [3, 13], [3, 14], [3, 15], [3, 16], [3, 17], [3, 18], [3, 19], [3, 20], [3, 21], [3, 22], [3, 23], [3, 24], [3, 25], [3, 26], [3, 27], [3, 28], [3, 29], [3, 30], [3, 31], [3, 32], [3, 33], [3, 34], [3, 35], [3, 36], [3, 37], [3, 38], [3, 39], [3, 40], [3, 41], [3, 42], [3, 43], [3, 44], [3, 45], [3, 46], [3, 47], [3, 48], [3, 49], [3, 50], [3, 51], [3, 52], [3, 53], [4, 5], [4, 6], [4, 7], [4, 8], [4, 9], [4, 10], [4, 11], [4, 12], [4, 14], [4, 15], [4, 16], [4, 18], [4, 19], [4, 20], [4, 22], [4, 23], [4, 24], [4, 25], [4, 26], [4, 27], [4, 28], [4, 29], [4, 31], [4, 34], [4, 36], [4, 38], [4, 40], [4, 41], [4, 46], [4, 47], [4, 48], [4, 50], [4, 52], [4, 53], [5, 6], [5, 7], [5, 8], [5, 9], [5, 10], [5, 11], [5, 12], [5, 13], [5, 14], [5, 15], [5, 16], [5, 17], [5, 18], [5, 19], [5, 20], [5, 21], [5, 22], [5, 23], [5, 24], [5, 25], [5, 26], [5, 27], [5, 28], [5, 29], [5, 30], [5, 31], [5, 32], [5, 33], [5, 34], [5, 35], [5, 36], [5, 37], [5, 38], [5, 39], [5, 40], [5, 41], [5, 42], [5, 43], [5, 44], [5, 45], [5, 46], [5, 47], [5, 48], [5, 49], [5, 50], [5, 51], [5, 52], [5, 53], [6, 7], [6, 8], [6, 9], [6, 10], [6, 11], [6, 12], [6, 13], [6, 14], [6, 15], [6, 16], [6, 17], [6, 18], [6, 19], [6, 20], [6, 21], [6, 22], [6, 23], [6, 24], [6, 25], [6, 26], [6, 27], [6, 28], [6, 29], [6, 30], [6, 31], [6, 32], [6, 33], [6, 34], [6, 35], [6, 36], [6, 37], [6, 38], [6, 39], [6, 40], [6, 41], [6, 42], [6, 43], [6, 44], [6, 45], [6, 46], [6, 47], [6, 48], [6, 49], [6, 50], [6, 51], [6, 52], [6, 53], [7, 8], [7, 9], [7, 10], [7, 11], [7, 12], [7, 13], [7, 14], [7, 15], [7, 16], [7, 17], [7, 18], [7, 19], [7, 20], [7, 21], [7, 22], [7, 23], [7, 24], [7, 25], [7, 26], [7, 27], [7, 28], [7, 29], [7, 30], [7, 31], [7, 32], [7, 33], [7, 34], [7, 35], [7, 36], [7, 37], [7, 38], [7, 39], [7, 40], [7, 41], [7, 42], [7, 43], [7, 44], [7, 45], [7, 46], [7, 47], [7, 48], [7, 49], [7, 50], [7, 51], [7, 52], [7, 53], [8, 9], [8, 10], [8, 11], [8, 12], [8, 13], [8, 14], [8, 15], [8, 16], [8, 17], [8, 18], [8, 19], [8, 20], [8, 21], [8, 22], [8, 23], [8, 24], [8, 25], [8, 26], [8, 27], [8, 28], [8, 29], [8, 30], [8, 31], [8, 32], [8, 33], [8, 34], [8, 35], [8, 36], [8, 37], [8, 38], [8, 39], [8, 40], [8, 41], [8, 42], [8, 43], [8, 44], [8, 45], [8, 46], [8, 47], [8, 48], [8, 49], [8, 50], [8, 51], [8, 52], [8, 53], [9, 10], [9, 11], [9, 12], [9, 13], [9, 14], [9, 15], [9, 16], [9, 17], [9, 18], [9, 19], [9, 20], [9, 21], [9, 22], [9, 23], [9, 24], [9, 25], [9, 26], [9, 27], [9, 28], [9, 29], [9, 30], [9, 31], [9, 32], [9, 33], [9, 34], [9, 35], [9, 36], [9, 37], [9, 38], [9, 39], [9, 40], [9, 41], [9, 42], [9, 43], [9, 44], [9, 45], [9, 46], [9, 47], [9, 48], [9, 49], [9, 50], [9, 51], [9, 52], [9, 53], [10, 11], [10, 12], [10, 13], [10, 14], [10, 15], [10, 16], [10, 17], [10, 18], [10, 19], [10, 20], [10, 21], [10, 22], [10, 23], [10, 24], [10, 25], [10, 26], [10, 27], [10, 28], [10, 29], [10, 30], [10, 31], [10, 32], [10, 33], [10, 34], [10, 35], [10, 36], [10, 37], [10, 38], [10, 39], [10, 40], [10, 41], [10, 42], [10, 43], [10, 44], [10, 45], [10, 46], [10, 47], [10, 48], [10, 49], [10, 50], [10, 51], [10, 52], [10, 53], [11, 12], [11, 13], [11, 14], [11, 15], [11, 16], [11, 17], [11, 18], [11, 19], [11, 20], [11, 21], [11, 22], [11, 23], [11, 24], [11, 25], [11, 26], [11, 27], [11, 28], [11, 29], [11, 30], [11, 31], [11, 32], [11, 33], [11, 34], [11, 35], [11, 36], [11, 37], [11, 38], [11, 39], [11, 40], [11, 41], [11, 42], [11, 43], [11, 44], [11, 45], [11, 46], [11, 47], [11, 48], [11, 49], [11, 50], [11, 51], [11, 52], [11, 53], [12, 13], [12, 14], [12, 15], [12, 16], [12, 17], [12, 18], [12, 19], [12, 20], [12, 21], [12, 22], [12, 23], [12, 24], [12, 25], [12, 26], [12, 27], [12, 28], [12, 29], [12, 30], [12, 31], [12, 32], [12, 33], [12, 34], [12, 35], [12, 36], [12, 37], [12, 38], [12, 39], [12, 40], [12, 41], [12, 42], [12, 43], [12, 44], [12, 45], [12, 46], [12, 47], [12, 48], [12, 49], [12, 50], [12, 51], [12, 52], [12, 53], [13, 14], [13, 15], [13, 16], [13, 18], [13, 19], [13, 20], [13, 22], [13, 23], [13, 24], [13, 25], [13, 26], [13, 27], [13, 28], [13, 29], [13, 31], [13, 34], [13, 36], [13, 38], [13, 40], [13, 41], [13, 46], [13, 47], [13, 48], [13, 50], [13, 52], [13, 53], [14, 15], [14, 16], [14, 17], [14, 18], [14, 19], [14, 20], [14, 21], [14, 22], [14, 23], [14, 24], [14, 25], [14, 26], [14, 27], [14, 28], [14, 29], [14, 30], [14, 31], [14, 32], [14, 33], [14, 34], [14, 35], [14, 36], [14, 37], [14, 38], [14, 39], [14, 40], [14, 41], [14, 42], [14, 43], [14, 44], [14, 45], [14, 46], [14, 47], [14, 48], [14, 49], [14, 50], [14, 51], [14, 52], [14, 53], [15, 16], [15, 17], [15, 18], [15, 19], [15, 20], [15, 21], [15, 22], [15, 23], [15, 24], [15, 25], [15, 26], [15, 27], [15, 28], [15, 29], [15, 30], [15, 31], [15, 32], [15, 33], [15, 34], [15, 35], [15, 36], [15, 37], [15, 38], [15, 39], [15, 40], [15, 41], [15, 42], [15, 43], [15, 44], [15, 45], [15, 46], [15, 47], [15, 48], [15, 49], [15, 50], [15, 51], [15, 52], [15, 53], [16, 17], [16, 18], [16, 19], [16, 20], [16, 21], [16, 22], [16, 23], [16, 24], [16, 25], [16, 26], [16, 27], [16, 28], [16, 29], [16, 30], [16, 31], [16, 32], [16, 33], [16, 34], [16, 35], [16, 36], [16, 37], [16, 38], [16, 39], [16, 40], [16, 41], [16, 42], [16, 43], [16, 44], [16, 45], [16, 46], [16, 47], [16, 48], [16, 49], [16, 50], [16, 51], [16, 52], [16, 53], [17, 18], [17, 19], [17, 20], [17, 22], [17, 23], [17, 24], [17, 25], [17, 26], [17, 27], [17, 28], [17, 29], [17, 31], [17, 34], [17, 36], [17, 38], [17, 40], [17, 41], [17, 46], [17, 47], [17, 48], [17, 50], [17, 52], [17, 53], [18, 19], [18, 20], [18, 21], [18, 22], [18, 23], [18, 24], [18, 25], [18, 26], [18, 27], [18, 28], [18, 29], [18, 30], [18, 31], [18, 32], [18, 33], [18, 34], [18, 35], [18, 36], [18, 37], [18, 38], [18, 39], [18, 40], [18, 41], [18, 42], [18, 43], [18, 44], [18, 45], [18, 46], [18, 47], [18, 48], [18, 49], [18, 50], [18, 51], [18, 52], [18, 53], [19, 20], [19, 21], [19, 22], [19, 23], [19, 24], [19, 25], [19, 26], [19, 27], [19, 28], [19, 29], [19, 30], [19, 31], [19, 32], [19, 33], [19, 34], [19, 35], [19, 36], [19, 37], [19, 38], [19, 39], [19, 40], [19, 41], [19, 42], [19, 43], [19, 44], [19, 45], [19, 46], [19, 47], [19, 48], [19, 49], [19, 50], [19, 51], [19, 52], [19, 53], [20, 21], [20, 22], [20, 23], [20, 24], [20, 25], [20, 26], [20, 27], [20, 28], [20, 29], [20, 30], [20, 31], [20, 32], [20, 33], [20, 34], [20, 35], [20, 36], [20, 37], [20, 38], [20, 39], [20, 40], [20, 41], [20, 42], [20, 43], [20, 44], [20, 45], [20, 46], [20, 47], [20, 48], [20, 49], [20, 50], [20, 51], [20, 52], [20, 53], [21, 22], [21, 23], [21, 24], [21, 25], [21, 26], [21, 27], [21, 28], [21, 29], [21, 31], [21, 34], [21, 36], [21, 38], [21, 40], [21, 41], [21, 46], [21, 47], [21, 48], [21, 50], [21, 52], [21, 53], [22, 23], [22, 24], [22, 25], [22, 26], [22, 27], [22, 28], [22, 29], [22, 30], [22, 31], [22, 32], [22, 33], [22, 34], [22, 35], [22, 36], [22, 37], [22, 38], [22, 39], [22, 40], [22, 41], [22, 42], [22, 43], [22, 44], [22, 45], [22, 46], [22, 47], [22, 48], [22, 49], [22, 50], [22, 51], [22, 52], [22, 53], [23, 24], [23, 25], [23, 26], [23, 27], [23, 28], [23, 29], [23, 30], [23, 31], [23, 32], [23, 33], [23, 34], [23, 35], [23, 36], [23, 37], [23, 38], [23, 39], [23, 40], [23, 41], [23, 42], [23, 43], [23, 44], [23, 45], [23, 46], [23, 47], [23, 48], [23, 49], [23, 50], [23, 51], [23, 52], [23, 53], [24, 25], [24, 26], [24, 27], [24, 28], [24, 29], [24, 30], [24, 31], [24, 32], [24, 33], [24, 34], [24, 35], [24, 36], [24, 37], [24, 38], [24, 39], [24, 40], [24, 41], [24, 42], [24, 43], [24, 44], [24, 45], [24, 46], [24, 47], [24, 48], [24, 49], [24, 50], [24, 51], [24, 52], [24, 53], [25, 26], [25, 27], [25, 28], [25, 29], [25, 30], [25, 31], [25, 32], [25, 33], [25, 34], [25, 35], [25, 36], [25, 37], [25, 38], [25, 39], [25, 40], [25, 41], [25, 42], [25, 43], [25, 44], [25, 45], [25, 46], [25, 47], [25, 48], [25, 49], [25, 50], [25, 51], [25, 52], [25, 53], [26, 27], [26, 28], [26, 29], [26, 30], [26, 31], [26, 32], [26, 33], [26, 34], [26, 35], [26, 36], [26, 37], [26, 38], [26, 39], [26, 40], [26, 41], [26, 42], [26, 43], [26, 44], [26, 45], [26, 46], [26, 47], [26, 48], [26, 49], [26, 50], [26, 51], [26, 52], [26, 53], [27, 28], [27, 29], [27, 30], [27, 31], [27, 32], [27, 33], [27, 34], [27, 35], [27, 36], [27, 37], [27, 38], [27, 39], [27, 40], [27, 41], [27, 42], [27, 43], [27, 44], [27, 45], [27, 46], [27, 47], [27, 48], [27, 49], [27, 50], [27, 51], [27, 52], [27, 53], [28, 29], [28, 30], [28, 31], [28, 32], [28, 33], [28, 34], [28, 35], [28, 36], [28, 37], [28, 38], [28, 39], [28, 40], [28, 41], [28, 42], [28, 43], [28, 44], [28, 45], [28, 46], [28, 47], [28, 48], [28, 49], [28, 50], [28, 51], [28, 52], [28, 53], [29, 30], [29, 31], [29, 32], [29, 33], [29, 34], [29, 35], [29, 36], [29, 37], [29, 38], [29, 39], [29, 40], [29, 41], [29, 42], [29, 43], [29, 44], [29, 45], [29, 46], [29, 47], [29, 48], [29, 49], [29, 50], [29, 51], [29, 52], [29, 53], [30, 31], [30, 34], [30, 36], [30, 38], [30, 40], [30, 41], [30, 46], [30, 47], [30, 48], [30, 50], [30, 52], [30, 53], [31, 32], [31, 33], [31, 34], [31, 35], [31, 36], [31, 37], [31, 38], [31, 39], [31, 40], [31, 41], [31, 42], [31, 43], [31, 44], [31, 45], [31, 46], [31, 47], [31, 48], [31, 49], [31, 50], [31, 51], [31, 52], [31, 53], [32, 34], [32, 36], [32, 38], [32, 40], [32, 41], [32, 46], [32, 47], [32, 48], [32, 50], [32, 52], [32, 53], [33, 34], [33, 36], [33, 38], [33, 40], [33, 41], [33, 46], [33, 47], [33, 48], [33, 50], [33, 52], [33, 53], [34, 35], [34, 36], [34, 37], [34, 38], [34, 39], [34, 40], [34, 41], [34, 42], [34, 43], [34, 44], [34, 45], [34, 46], [34, 47], [34, 48], [34, 49], [34, 50], [34, 51], [34, 52], [34, 53], [35, 36], [35, 38], [35, 40], [35, 41], [35, 46], [35, 47], [35, 48], [35, 50], [35, 52], [35, 53], [36, 37], [36, 38], [36, 39], [36, 40], [36, 41], [36, 42], [36, 43], [36, 44], [36, 45], [36, 46], [36, 47], [36, 48], [36, 49], [36, 50], [36, 51], [36, 52], [36, 53], [37, 38], [37, 40], [37, 41], [37, 46], [37, 47], [37, 48], [37, 50], [37, 52], [37, 53], [38, 39], [38, 40], [38, 41], [38, 42], [38, 43], [38, 44], [38, 45], [38, 46], [38, 47], [38, 48], [38, 49], [38, 50], [38, 51], [38, 52], [38, 53], [39, 40], [39, 41], [39, 46], [39, 47], [39, 48], [39, 50], [39, 52], [39, 53], [40, 41], [40, 42], [40, 43], [40, 44], [40, 45], [40, 46], [40, 47], [40, 48], [40, 49], [40, 50], [40, 51], [40, 52], [40, 53], [41, 42], [41, 43], [41, 44], [41, 45], [41, 46], [41, 47], [41, 48], [41, 49], [41, 50], [41, 51], [41, 52], [41, 53], [42, 46], [42, 47], [42, 48], [42, 50], [42, 52], [42, 53], [43, 46], [43, 47], [43, 48], [43, 50], [43, 52], [43, 53], [44, 46], [44, 47], [44, 48], [44, 50], [44, 52], [44, 53], [45, 46], [45, 47], [45, 48], [45, 50], [45, 52], [45, 53], [46, 47], [46, 48], [46, 49], [46, 50], [46, 51], [46, 52], [46, 53], [47, 48], [47, 49], [47, 50], [47, 51], [47, 52], [47, 53], [48, 49], [48, 50], [48, 51], [48, 52], [48, 53], [49, 50], [49, 52], [49, 53], [50, 51], [50, 52], [50, 53], [51, 52], [51, 53], [52, 53]], "family": "rlve_imp_party", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-imp-party-l5-s9/solution/solve.sh b/tasks/construct-rlve-imp-party-l5-s9/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..80a04e896f96497e769e2fab6d75eaeb3275e8fd --- /dev/null +++ b/tasks/construct-rlve-imp-party-l5-s9/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"clique": [5, 7, 10, 15, 19, 20, 22, 23, 24, 26, 27, 28, 29, 38, 40, 41, 47, 48]} +RLMATH_EOF diff --git a/tasks/construct-rlve-imp-party-l5-s9/tests/check.py b/tasks/construct-rlve-imp-party-l5-s9/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..97b5a037a2ba8bf4495cf87cc074d1c60b11311c --- /dev/null +++ b/tasks/construct-rlve-imp-party-l5-s9/tests/check.py @@ -0,0 +1,14 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n = inst["n"] + c = int_list(ans.get("clique"), n, 0, 3 * n - 1, "clique") + if len(set(c)) != n: + raise Invalid("vertices must be distinct") + es = {(min(u, v), max(u, v)) for u, v in inst["edges"]} + for i in range(n): + for j in range(i + 1, n): + if (min(c[i], c[j]), max(c[i], c[j])) not in es: + raise Invalid(f"{c[i]} and {c[j]} are not adjacent") + return None, {} diff --git a/tasks/construct-rlve-imp-party-l5-s9/tests/instance.json b/tasks/construct-rlve-imp-party-l5-s9/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..a679d643acd144bcb076bdafe4837188c7985620 --- /dev/null +++ b/tasks/construct-rlve-imp-party-l5-s9/tests/instance.json @@ -0,0 +1 @@ +{"n": 18, "edges": [[0, 1], [0, 3], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 14], [0, 15], [0, 16], [0, 18], [0, 19], [0, 20], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 31], [0, 34], [0, 36], [0, 38], [0, 40], [0, 41], [0, 46], [0, 47], [0, 48], [0, 50], [0, 52], [0, 53], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 24], [1, 25], [1, 26], [1, 27], [1, 28], [1, 29], [1, 30], [1, 31], [1, 32], [1, 33], [1, 34], [1, 35], [1, 36], [1, 37], [1, 38], [1, 39], [1, 40], [1, 41], [1, 42], [1, 43], [1, 44], [1, 45], [1, 46], [1, 47], [1, 48], [1, 49], [1, 50], [1, 51], [1, 52], [1, 53], [2, 3], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 14], [2, 15], [2, 16], [2, 18], [2, 19], [2, 20], [2, 22], [2, 23], [2, 24], [2, 25], [2, 26], [2, 27], [2, 28], [2, 29], [2, 31], [2, 34], [2, 36], [2, 38], [2, 40], [2, 41], [2, 46], [2, 47], [2, 48], [2, 50], [2, 52], [2, 53], [3, 4], [3, 5], [3, 6], [3, 7], [3, 8], [3, 9], [3, 10], [3, 11], [3, 12], [3, 13], [3, 14], [3, 15], [3, 16], [3, 17], [3, 18], [3, 19], [3, 20], [3, 21], [3, 22], [3, 23], [3, 24], [3, 25], [3, 26], [3, 27], [3, 28], [3, 29], [3, 30], [3, 31], [3, 32], [3, 33], [3, 34], [3, 35], [3, 36], [3, 37], [3, 38], [3, 39], [3, 40], [3, 41], [3, 42], [3, 43], [3, 44], [3, 45], [3, 46], [3, 47], [3, 48], [3, 49], [3, 50], [3, 51], [3, 52], [3, 53], [4, 5], [4, 6], [4, 7], [4, 8], [4, 9], [4, 10], [4, 11], [4, 12], [4, 14], [4, 15], [4, 16], [4, 18], [4, 19], [4, 20], [4, 22], [4, 23], [4, 24], [4, 25], [4, 26], [4, 27], [4, 28], [4, 29], [4, 31], [4, 34], [4, 36], [4, 38], [4, 40], [4, 41], [4, 46], [4, 47], [4, 48], [4, 50], [4, 52], [4, 53], [5, 6], [5, 7], [5, 8], [5, 9], [5, 10], [5, 11], [5, 12], [5, 13], [5, 14], [5, 15], [5, 16], [5, 17], [5, 18], [5, 19], [5, 20], [5, 21], [5, 22], [5, 23], [5, 24], [5, 25], [5, 26], [5, 27], [5, 28], [5, 29], [5, 30], [5, 31], [5, 32], [5, 33], [5, 34], [5, 35], [5, 36], [5, 37], [5, 38], [5, 39], [5, 40], [5, 41], [5, 42], [5, 43], [5, 44], [5, 45], [5, 46], [5, 47], [5, 48], [5, 49], [5, 50], [5, 51], [5, 52], [5, 53], [6, 7], [6, 8], [6, 9], [6, 10], [6, 11], [6, 12], [6, 13], [6, 14], [6, 15], [6, 16], [6, 17], [6, 18], [6, 19], [6, 20], [6, 21], [6, 22], [6, 23], [6, 24], [6, 25], [6, 26], [6, 27], [6, 28], [6, 29], [6, 30], [6, 31], [6, 32], [6, 33], [6, 34], [6, 35], [6, 36], [6, 37], [6, 38], [6, 39], [6, 40], [6, 41], [6, 42], [6, 43], [6, 44], [6, 45], [6, 46], [6, 47], [6, 48], [6, 49], [6, 50], [6, 51], [6, 52], [6, 53], [7, 8], [7, 9], [7, 10], [7, 11], [7, 12], [7, 13], [7, 14], [7, 15], [7, 16], [7, 17], [7, 18], [7, 19], [7, 20], [7, 21], [7, 22], [7, 23], [7, 24], [7, 25], [7, 26], [7, 27], [7, 28], [7, 29], [7, 30], [7, 31], [7, 32], [7, 33], [7, 34], [7, 35], [7, 36], [7, 37], [7, 38], [7, 39], [7, 40], [7, 41], [7, 42], [7, 43], [7, 44], [7, 45], [7, 46], [7, 47], [7, 48], [7, 49], [7, 50], [7, 51], [7, 52], [7, 53], [8, 9], [8, 10], [8, 11], [8, 12], [8, 13], [8, 14], [8, 15], [8, 16], [8, 17], [8, 18], [8, 19], [8, 20], [8, 21], [8, 22], [8, 23], [8, 24], [8, 25], [8, 26], [8, 27], [8, 28], [8, 29], [8, 30], [8, 31], [8, 32], [8, 33], [8, 34], [8, 35], [8, 36], [8, 37], [8, 38], [8, 39], [8, 40], [8, 41], [8, 42], [8, 43], [8, 44], [8, 45], [8, 46], [8, 47], [8, 48], [8, 49], [8, 50], [8, 51], [8, 52], [8, 53], [9, 10], [9, 11], [9, 12], [9, 13], [9, 14], [9, 15], [9, 16], [9, 17], [9, 18], [9, 19], [9, 20], [9, 21], [9, 22], [9, 23], [9, 24], [9, 25], [9, 26], [9, 27], [9, 28], [9, 29], [9, 30], [9, 31], [9, 32], [9, 33], [9, 34], [9, 35], [9, 36], [9, 37], [9, 38], [9, 39], [9, 40], [9, 41], [9, 42], [9, 43], [9, 44], [9, 45], [9, 46], [9, 47], [9, 48], [9, 49], [9, 50], [9, 51], [9, 52], [9, 53], [10, 11], [10, 12], [10, 13], [10, 14], [10, 15], [10, 16], [10, 17], [10, 18], [10, 19], [10, 20], [10, 21], [10, 22], [10, 23], [10, 24], [10, 25], [10, 26], [10, 27], [10, 28], [10, 29], [10, 30], [10, 31], [10, 32], [10, 33], [10, 34], [10, 35], [10, 36], [10, 37], [10, 38], [10, 39], [10, 40], [10, 41], [10, 42], [10, 43], [10, 44], [10, 45], [10, 46], [10, 47], [10, 48], [10, 49], [10, 50], [10, 51], [10, 52], [10, 53], [11, 12], [11, 13], [11, 14], [11, 15], [11, 16], [11, 17], [11, 18], [11, 19], [11, 20], [11, 21], [11, 22], [11, 23], [11, 24], [11, 25], [11, 26], [11, 27], [11, 28], [11, 29], [11, 30], [11, 31], [11, 32], [11, 33], [11, 34], [11, 35], [11, 36], [11, 37], [11, 38], [11, 39], [11, 40], [11, 41], [11, 42], [11, 43], [11, 44], [11, 45], [11, 46], [11, 47], [11, 48], [11, 49], [11, 50], [11, 51], [11, 52], [11, 53], [12, 13], [12, 14], [12, 15], [12, 16], [12, 17], [12, 18], [12, 19], [12, 20], [12, 21], [12, 22], [12, 23], [12, 24], [12, 25], [12, 26], [12, 27], [12, 28], [12, 29], [12, 30], [12, 31], [12, 32], [12, 33], [12, 34], [12, 35], [12, 36], [12, 37], [12, 38], [12, 39], [12, 40], [12, 41], [12, 42], [12, 43], [12, 44], [12, 45], [12, 46], [12, 47], [12, 48], [12, 49], [12, 50], [12, 51], [12, 52], [12, 53], [13, 14], [13, 15], [13, 16], [13, 18], [13, 19], [13, 20], [13, 22], [13, 23], [13, 24], [13, 25], [13, 26], [13, 27], [13, 28], [13, 29], [13, 31], [13, 34], [13, 36], [13, 38], [13, 40], [13, 41], [13, 46], [13, 47], [13, 48], [13, 50], [13, 52], [13, 53], [14, 15], [14, 16], [14, 17], [14, 18], [14, 19], [14, 20], [14, 21], [14, 22], [14, 23], [14, 24], [14, 25], [14, 26], [14, 27], [14, 28], [14, 29], [14, 30], [14, 31], [14, 32], [14, 33], [14, 34], [14, 35], [14, 36], [14, 37], [14, 38], [14, 39], [14, 40], [14, 41], [14, 42], [14, 43], [14, 44], [14, 45], [14, 46], [14, 47], [14, 48], [14, 49], [14, 50], [14, 51], [14, 52], [14, 53], [15, 16], [15, 17], [15, 18], [15, 19], [15, 20], [15, 21], [15, 22], [15, 23], [15, 24], [15, 25], [15, 26], [15, 27], [15, 28], [15, 29], [15, 30], [15, 31], [15, 32], [15, 33], [15, 34], [15, 35], [15, 36], [15, 37], [15, 38], [15, 39], [15, 40], [15, 41], [15, 42], [15, 43], [15, 44], [15, 45], [15, 46], [15, 47], [15, 48], [15, 49], [15, 50], [15, 51], [15, 52], [15, 53], [16, 17], [16, 18], [16, 19], [16, 20], [16, 21], [16, 22], [16, 23], [16, 24], [16, 25], [16, 26], [16, 27], [16, 28], [16, 29], [16, 30], [16, 31], [16, 32], [16, 33], [16, 34], [16, 35], [16, 36], [16, 37], [16, 38], [16, 39], [16, 40], [16, 41], [16, 42], [16, 43], [16, 44], [16, 45], [16, 46], [16, 47], [16, 48], [16, 49], [16, 50], [16, 51], [16, 52], [16, 53], [17, 18], [17, 19], [17, 20], [17, 22], [17, 23], [17, 24], [17, 25], [17, 26], [17, 27], [17, 28], [17, 29], [17, 31], [17, 34], [17, 36], [17, 38], [17, 40], [17, 41], [17, 46], [17, 47], [17, 48], [17, 50], [17, 52], [17, 53], [18, 19], [18, 20], [18, 21], [18, 22], [18, 23], [18, 24], [18, 25], [18, 26], [18, 27], [18, 28], [18, 29], [18, 30], [18, 31], [18, 32], [18, 33], [18, 34], [18, 35], [18, 36], [18, 37], [18, 38], [18, 39], [18, 40], [18, 41], [18, 42], [18, 43], [18, 44], [18, 45], [18, 46], [18, 47], [18, 48], [18, 49], [18, 50], [18, 51], [18, 52], [18, 53], [19, 20], [19, 21], [19, 22], [19, 23], [19, 24], [19, 25], [19, 26], [19, 27], [19, 28], [19, 29], [19, 30], [19, 31], [19, 32], [19, 33], [19, 34], [19, 35], [19, 36], [19, 37], [19, 38], [19, 39], [19, 40], [19, 41], [19, 42], [19, 43], [19, 44], [19, 45], [19, 46], [19, 47], [19, 48], [19, 49], [19, 50], [19, 51], [19, 52], [19, 53], [20, 21], [20, 22], [20, 23], [20, 24], [20, 25], [20, 26], [20, 27], [20, 28], [20, 29], [20, 30], [20, 31], [20, 32], [20, 33], [20, 34], [20, 35], [20, 36], [20, 37], [20, 38], [20, 39], [20, 40], [20, 41], [20, 42], [20, 43], [20, 44], [20, 45], [20, 46], [20, 47], [20, 48], [20, 49], [20, 50], [20, 51], [20, 52], [20, 53], [21, 22], [21, 23], [21, 24], [21, 25], [21, 26], [21, 27], [21, 28], [21, 29], [21, 31], [21, 34], [21, 36], [21, 38], [21, 40], [21, 41], [21, 46], [21, 47], [21, 48], [21, 50], [21, 52], [21, 53], [22, 23], [22, 24], [22, 25], [22, 26], [22, 27], [22, 28], [22, 29], [22, 30], [22, 31], [22, 32], [22, 33], [22, 34], [22, 35], [22, 36], [22, 37], [22, 38], [22, 39], [22, 40], [22, 41], [22, 42], [22, 43], [22, 44], [22, 45], [22, 46], [22, 47], [22, 48], [22, 49], [22, 50], [22, 51], [22, 52], [22, 53], [23, 24], [23, 25], [23, 26], [23, 27], [23, 28], [23, 29], [23, 30], [23, 31], [23, 32], [23, 33], [23, 34], [23, 35], [23, 36], [23, 37], [23, 38], [23, 39], [23, 40], [23, 41], [23, 42], [23, 43], [23, 44], [23, 45], [23, 46], [23, 47], [23, 48], [23, 49], [23, 50], [23, 51], [23, 52], [23, 53], [24, 25], [24, 26], [24, 27], [24, 28], [24, 29], [24, 30], [24, 31], [24, 32], [24, 33], [24, 34], [24, 35], [24, 36], [24, 37], [24, 38], [24, 39], [24, 40], [24, 41], [24, 42], [24, 43], [24, 44], [24, 45], [24, 46], [24, 47], [24, 48], [24, 49], [24, 50], [24, 51], [24, 52], [24, 53], [25, 26], [25, 27], [25, 28], [25, 29], [25, 30], [25, 31], [25, 32], [25, 33], [25, 34], [25, 35], [25, 36], [25, 37], [25, 38], [25, 39], [25, 40], [25, 41], [25, 42], [25, 43], [25, 44], [25, 45], [25, 46], [25, 47], [25, 48], [25, 49], [25, 50], [25, 51], [25, 52], [25, 53], [26, 27], [26, 28], [26, 29], [26, 30], [26, 31], [26, 32], [26, 33], [26, 34], [26, 35], [26, 36], [26, 37], [26, 38], [26, 39], [26, 40], [26, 41], [26, 42], [26, 43], [26, 44], [26, 45], [26, 46], [26, 47], [26, 48], [26, 49], [26, 50], [26, 51], [26, 52], [26, 53], [27, 28], [27, 29], [27, 30], [27, 31], [27, 32], [27, 33], [27, 34], [27, 35], [27, 36], [27, 37], [27, 38], [27, 39], [27, 40], [27, 41], [27, 42], [27, 43], [27, 44], [27, 45], [27, 46], [27, 47], [27, 48], [27, 49], [27, 50], [27, 51], [27, 52], [27, 53], [28, 29], [28, 30], [28, 31], [28, 32], [28, 33], [28, 34], [28, 35], [28, 36], [28, 37], [28, 38], [28, 39], [28, 40], [28, 41], [28, 42], [28, 43], [28, 44], [28, 45], [28, 46], [28, 47], [28, 48], [28, 49], [28, 50], [28, 51], [28, 52], [28, 53], [29, 30], [29, 31], [29, 32], [29, 33], [29, 34], [29, 35], [29, 36], [29, 37], [29, 38], [29, 39], [29, 40], [29, 41], [29, 42], [29, 43], [29, 44], [29, 45], [29, 46], [29, 47], [29, 48], [29, 49], [29, 50], [29, 51], [29, 52], [29, 53], [30, 31], [30, 34], [30, 36], [30, 38], [30, 40], [30, 41], [30, 46], [30, 47], [30, 48], [30, 50], [30, 52], [30, 53], [31, 32], [31, 33], [31, 34], [31, 35], [31, 36], [31, 37], [31, 38], [31, 39], [31, 40], [31, 41], [31, 42], [31, 43], [31, 44], [31, 45], [31, 46], [31, 47], [31, 48], [31, 49], [31, 50], [31, 51], [31, 52], [31, 53], [32, 34], [32, 36], [32, 38], [32, 40], [32, 41], [32, 46], [32, 47], [32, 48], [32, 50], [32, 52], [32, 53], [33, 34], [33, 36], [33, 38], [33, 40], [33, 41], [33, 46], [33, 47], [33, 48], [33, 50], [33, 52], [33, 53], [34, 35], [34, 36], [34, 37], [34, 38], [34, 39], [34, 40], [34, 41], [34, 42], [34, 43], [34, 44], [34, 45], [34, 46], [34, 47], [34, 48], [34, 49], [34, 50], [34, 51], [34, 52], [34, 53], [35, 36], [35, 38], [35, 40], [35, 41], [35, 46], [35, 47], [35, 48], [35, 50], [35, 52], [35, 53], [36, 37], [36, 38], [36, 39], [36, 40], [36, 41], [36, 42], [36, 43], [36, 44], [36, 45], [36, 46], [36, 47], [36, 48], [36, 49], [36, 50], [36, 51], [36, 52], [36, 53], [37, 38], [37, 40], [37, 41], [37, 46], [37, 47], [37, 48], [37, 50], [37, 52], [37, 53], [38, 39], [38, 40], [38, 41], [38, 42], [38, 43], [38, 44], [38, 45], [38, 46], [38, 47], [38, 48], [38, 49], [38, 50], [38, 51], [38, 52], [38, 53], [39, 40], [39, 41], [39, 46], [39, 47], [39, 48], [39, 50], [39, 52], [39, 53], [40, 41], [40, 42], [40, 43], [40, 44], [40, 45], [40, 46], [40, 47], [40, 48], [40, 49], [40, 50], [40, 51], [40, 52], [40, 53], [41, 42], [41, 43], [41, 44], [41, 45], [41, 46], [41, 47], [41, 48], [41, 49], [41, 50], [41, 51], [41, 52], [41, 53], [42, 46], [42, 47], [42, 48], [42, 50], [42, 52], [42, 53], [43, 46], [43, 47], [43, 48], [43, 50], [43, 52], [43, 53], [44, 46], [44, 47], [44, 48], [44, 50], [44, 52], [44, 53], [45, 46], [45, 47], [45, 48], [45, 50], [45, 52], [45, 53], [46, 47], [46, 48], [46, 49], [46, 50], [46, 51], [46, 52], [46, 53], [47, 48], [47, 49], [47, 50], [47, 51], [47, 52], [47, 53], [48, 49], [48, 50], [48, 51], [48, 52], [48, 53], [49, 50], [49, 52], [49, 53], [50, 51], [50, 52], [50, 53], [51, 52], [51, 53], [52, 53]], "family": "rlve_imp_party", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-imp-party-l5-s9/tests/run.py b/tasks/construct-rlve-imp-party-l5-s9/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-imp-party-l5-s9/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-imp-party-l5-s9/tests/test.sh b/tasks/construct-rlve-imp-party-l5-s9/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-imp-party-l5-s9/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-integer-linear-system-l2-s0/environment/Dockerfile b/tasks/construct-rlve-integer-linear-system-l2-s0/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l2-s0/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-integer-linear-system-l2-s0/environment/instance.json b/tasks/construct-rlve-integer-linear-system-l2-s0/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..34465191cd8941da70a5999d8cd98cf629b60cb7 --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l2-s0/environment/instance.json @@ -0,0 +1 @@ +{"coeffs": [[0, 1, 0, 1, 0], [0, 1, 0, 0, 0], [1, 0, 0, 0, 0], [1, 1, 0, 0, 1], [1, 0, 0, 0, 0], [0, 0, 0, 0, 1], [0, 1, 0, 1, 0], [1, 0, 0, 1, 1], [1, 1, 0, 1, 1], [0, 1, 1, 1, 1], [0, 0, 1, 0, 1]], "rhs": [6, 3, 4, 12, 4, 5, 6, 12, 15, 16, 10], "family": "rlve_integer_linear_system", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-integer-linear-system-l2-s0/solution/solve.sh b/tasks/construct-rlve-integer-linear-system-l2-s0/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..a9b004d8dcead1adfe083c7a7b12bf0cab28fffd --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l2-s0/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"x": [4, 3, 5, 3, 5]} +RLMATH_EOF diff --git a/tasks/construct-rlve-integer-linear-system-l2-s0/tests/check.py b/tasks/construct-rlve-integer-linear-system-l2-s0/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..ff19002b3fddc9597f84ee31ef5ffbee5d3fac32 --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l2-s0/tests/check.py @@ -0,0 +1,10 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n = len(inst["coeffs"][0]) + x = int_list(ans.get("x"), n, name="x") + for k, (e, r) in enumerate(zip(inst["coeffs"], inst["rhs"])): + if sum(c * v for c, v in zip(e, x)) != r: + raise Invalid(f"equation {k} is violated") + return None, {} diff --git a/tasks/construct-rlve-integer-linear-system-l2-s0/tests/instance.json b/tasks/construct-rlve-integer-linear-system-l2-s0/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..34465191cd8941da70a5999d8cd98cf629b60cb7 --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l2-s0/tests/instance.json @@ -0,0 +1 @@ +{"coeffs": [[0, 1, 0, 1, 0], [0, 1, 0, 0, 0], [1, 0, 0, 0, 0], [1, 1, 0, 0, 1], [1, 0, 0, 0, 0], [0, 0, 0, 0, 1], [0, 1, 0, 1, 0], [1, 0, 0, 1, 1], [1, 1, 0, 1, 1], [0, 1, 1, 1, 1], [0, 0, 1, 0, 1]], "rhs": [6, 3, 4, 12, 4, 5, 6, 12, 15, 16, 10], "family": "rlve_integer_linear_system", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-integer-linear-system-l2-s0/tests/run.py b/tasks/construct-rlve-integer-linear-system-l2-s0/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l2-s0/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-integer-linear-system-l2-s0/tests/test.sh b/tasks/construct-rlve-integer-linear-system-l2-s0/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l2-s0/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-integer-linear-system-l2-s7/environment/Dockerfile b/tasks/construct-rlve-integer-linear-system-l2-s7/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l2-s7/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-integer-linear-system-l2-s7/environment/instance.json b/tasks/construct-rlve-integer-linear-system-l2-s7/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..4cd5d52409400a06613ef20a9764dd747e682e10 --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l2-s7/environment/instance.json @@ -0,0 +1 @@ +{"coeffs": [[0, 1, 1, 0, 0], [1, 1, 0, 1, 1], [1, 1, 1, 0, 1], [1, 1, 1, 0, 0], [1, 1, 1, 0, 0], [1, 0, 0, 0, 1], [1, 1, 0, 1, 0], [1, 0, 0, 0, 0], [1, 0, 1, 1, 0], [0, 1, 1, 1, 0], [1, 1, 1, 1, 0], [1, 1, 1, 0, 1], [1, 0, 1, 0, 0]], "rhs": [5, 15, 12, 10, 10, 7, 13, 5, 10, 9, 14, 12, 6], "family": "rlve_integer_linear_system", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-integer-linear-system-l2-s7/solution/solve.sh b/tasks/construct-rlve-integer-linear-system-l2-s7/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..ca6541b4e85fdbf33e8c8fec22462bf2e9e855dc --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l2-s7/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"x": [5, 4, 1, 4, 2]} +RLMATH_EOF diff --git a/tasks/construct-rlve-integer-linear-system-l2-s7/tests/check.py b/tasks/construct-rlve-integer-linear-system-l2-s7/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..ff19002b3fddc9597f84ee31ef5ffbee5d3fac32 --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l2-s7/tests/check.py @@ -0,0 +1,10 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n = len(inst["coeffs"][0]) + x = int_list(ans.get("x"), n, name="x") + for k, (e, r) in enumerate(zip(inst["coeffs"], inst["rhs"])): + if sum(c * v for c, v in zip(e, x)) != r: + raise Invalid(f"equation {k} is violated") + return None, {} diff --git a/tasks/construct-rlve-integer-linear-system-l2-s7/tests/instance.json b/tasks/construct-rlve-integer-linear-system-l2-s7/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..4cd5d52409400a06613ef20a9764dd747e682e10 --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l2-s7/tests/instance.json @@ -0,0 +1 @@ +{"coeffs": [[0, 1, 1, 0, 0], [1, 1, 0, 1, 1], [1, 1, 1, 0, 1], [1, 1, 1, 0, 0], [1, 1, 1, 0, 0], [1, 0, 0, 0, 1], [1, 1, 0, 1, 0], [1, 0, 0, 0, 0], [1, 0, 1, 1, 0], [0, 1, 1, 1, 0], [1, 1, 1, 1, 0], [1, 1, 1, 0, 1], [1, 0, 1, 0, 0]], "rhs": [5, 15, 12, 10, 10, 7, 13, 5, 10, 9, 14, 12, 6], "family": "rlve_integer_linear_system", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-integer-linear-system-l2-s7/tests/run.py b/tasks/construct-rlve-integer-linear-system-l2-s7/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l2-s7/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-integer-linear-system-l2-s7/tests/test.sh b/tasks/construct-rlve-integer-linear-system-l2-s7/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l2-s7/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-integer-linear-system-l2-s9/environment/Dockerfile b/tasks/construct-rlve-integer-linear-system-l2-s9/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l2-s9/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-integer-linear-system-l2-s9/environment/instance.json b/tasks/construct-rlve-integer-linear-system-l2-s9/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..b756fb7b33e9190d4d128d1adb987a3ab09d6be1 --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l2-s9/environment/instance.json @@ -0,0 +1 @@ +{"coeffs": [[1, 1, 0, 1, 0], [1, 0, 0, 1, 1], [1, 1, 1, 0, 1], [0, 0, 1, 1, 0], [1, 1, 0, 1, 0], [0, 1, 1, 0, 0], [0, 0, 1, 1, 0], [1, 1, 0, 1, 1], [1, 1, 0, 0, 0], [0, 0, 0, 1, 0], [1, 1, 0, 0, 0], [0, 0, 0, 1, 0], [0, 1, 1, 0, 0], [0, 1, 0, 0, 0]], "rhs": [8, 8, 12, 3, 8, 6, 3, 13, 6, 2, 6, 2, 6, 5], "family": "rlve_integer_linear_system", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-integer-linear-system-l2-s9/solution/solve.sh b/tasks/construct-rlve-integer-linear-system-l2-s9/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..7f43c597b649bb78eeae5baadab7fd1112325445 --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l2-s9/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"x": [1, 5, 1, 2, 5]} +RLMATH_EOF diff --git a/tasks/construct-rlve-integer-linear-system-l2-s9/tests/check.py b/tasks/construct-rlve-integer-linear-system-l2-s9/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..ff19002b3fddc9597f84ee31ef5ffbee5d3fac32 --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l2-s9/tests/check.py @@ -0,0 +1,10 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n = len(inst["coeffs"][0]) + x = int_list(ans.get("x"), n, name="x") + for k, (e, r) in enumerate(zip(inst["coeffs"], inst["rhs"])): + if sum(c * v for c, v in zip(e, x)) != r: + raise Invalid(f"equation {k} is violated") + return None, {} diff --git a/tasks/construct-rlve-integer-linear-system-l2-s9/tests/instance.json b/tasks/construct-rlve-integer-linear-system-l2-s9/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..b756fb7b33e9190d4d128d1adb987a3ab09d6be1 --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l2-s9/tests/instance.json @@ -0,0 +1 @@ +{"coeffs": [[1, 1, 0, 1, 0], [1, 0, 0, 1, 1], [1, 1, 1, 0, 1], [0, 0, 1, 1, 0], [1, 1, 0, 1, 0], [0, 1, 1, 0, 0], [0, 0, 1, 1, 0], [1, 1, 0, 1, 1], [1, 1, 0, 0, 0], [0, 0, 0, 1, 0], [1, 1, 0, 0, 0], [0, 0, 0, 1, 0], [0, 1, 1, 0, 0], [0, 1, 0, 0, 0]], "rhs": [8, 8, 12, 3, 8, 6, 3, 13, 6, 2, 6, 2, 6, 5], "family": "rlve_integer_linear_system", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-integer-linear-system-l2-s9/tests/run.py b/tasks/construct-rlve-integer-linear-system-l2-s9/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l2-s9/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-integer-linear-system-l2-s9/tests/test.sh b/tasks/construct-rlve-integer-linear-system-l2-s9/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l2-s9/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-integer-linear-system-l6-s1/environment/Dockerfile b/tasks/construct-rlve-integer-linear-system-l6-s1/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l6-s1/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-integer-linear-system-l6-s1/environment/instance.json b/tasks/construct-rlve-integer-linear-system-l6-s1/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..30544c15b47520d66e1c794f852e59378cec29ba --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l6-s1/environment/instance.json @@ -0,0 +1 @@ +{"coeffs": [[0, 0, 0, 0, 0, 1, 1, 2, 4, 3, 5, 1, 2, 2, 2, 0, 5, 5, 2, 0, 0, 0, 5, 0, 0, 1], [1, 0, 0, 3, 1, 0, 1, 3, 0, 5, 5, 5, 3, 1, 0, 5, 0, 3, 0, 1, 5, 2, 1, 3, 0, 2], [0, 1, 0, 0, 2, 0, 0, 0, 0, 3, 4, 3, 4, 1, 4, 5, 1, 0, 5, 3, 0, 0, 0, 0, 2, 0], [0, 4, 1, 4, 4, 2, 0, 0, 1, 0, 0, 0, 1, 0, 3, 0, 2, 1, 0, 0, 0, 1, 0, 2, 2, 0], [0, 1, 0, 0, 3, 1, 5, 3, 4, 4, 0, 0, 0, 0, 3, 1, 2, 0, 0, 5, 2, 5, 1, 5, 2, 3], [4, 0, 0, 0, 2, 0, 0, 4, 5, 0, 0, 2, 4, 0, 2, 0, 0, 0, 0, 5, 1, 3, 4, 0, 0, 1], [5, 0, 3, 0, 0, 0, 0, 0, 5, 5, 0, 3, 1, 0, 0, 5, 1, 5, 3, 0, 3, 0, 5, 0, 0, 2], [4, 0, 0, 0, 1, 0, 0, 4, 4, 0, 0, 0, 2, 4, 0, 0, 0, 1, 1, 5, 0, 4, 5, 0, 4, 0], [0, 0, 0, 0, 1, 2, 0, 0, 0, 0, 1, 0, 2, 4, 4, 0, 0, 3, 0, 0, 4, 0, 1, 5, 0, 5], [0, 0, 4, 0, 0, 4, 4, 4, 5, 0, 0, 5, 0, 3, 0, 4, 1, 1, 4, 0, 3, 5, 1, 3, 0, 0], [0, 1, 2, 0, 0, 0, 2, 0, 5, 0, 0, 2, 0, 0, 2, 1, 4, 5, 2, 3, 1, 0, 3, 0, 0, 4], [0, 0, 0, 0, 0, 0, 2, 2, 4, 0, 0, 0, 0, 2, 4, 0, 3, 3, 2, 0, 0, 0, 0, 0, 2, 0], [4, 4, 1, 5, 4, 0, 1, 1, 0, 0, 4, 0, 2, 0, 5, 1, 4, 0, 5, 1, 0, 1, 5, 2, 5, 0], [2, 1, 0, 1, 3, 5, 3, 0, 0, 3, 0, 0, 0, 0, 1, 2, 4, 2, 0, 0, 2, 0, 0, 3, 1, 5], [2, 5, 5, 0, 1, 1, 0, 0, 4, 2, 0, 0, 4, 0, 2, 2, 1, 1, 0, 0, 1, 1, 1, 1, 2, 5], [0, 0, 0, 2, 0, 5, 2, 4, 0, 1, 1, 0, 0, 0, 0, 5, 0, 0, 0, 4, 4, 0, 0, 0, 0, 0], [0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 3, 0, 4, 1, 1, 5, 2, 0, 5, 3, 0, 2, 3, 1, 2, 2], [3, 0, 0, 0, 0, 0, 0, 0, 5, 2, 0, 3, 0, 2, 0, 1, 0, 5, 0, 0, 4, 0, 1, 4, 2, 0], [4, 0, 1, 0, 3, 0, 0, 0, 1, 3, 0, 2, 0, 3, 0, 0, 1, 0, 0, 0, 2, 3, 3, 1, 0, 0], [0, 0, 4, 0, 0, 3, 2, 4, 0, 1, 0, 0, 1, 0, 0, 0, 4, 5, 0, 0, 5, 0, 5, 0, 2, 4], [4, 1, 0, 1, 4, 0, 1, 5, 0, 0, 1, 2, 0, 0, 0, 3, 1, 2, 1, 0, 4, 3, 3, 2, 0, 3], [4, 1, 1, 0, 1, 0, 0, 4, 0, 4, 0, 4, 0, 1, 0, 2, 0, 0, 4, 0, 4, 3, 3, 2, 4, 4], [0, 1, 3, 0, 0, 1, 3, 0, 0, 5, 0, 1, 1, 0, 0, 0, 0, 3, 2, 3, 2, 1, 0, 5, 4, 0], [1, 0, 0, 0, 0, 0, 2, 0, 3, 0, 0, 2, 1, 0, 0, 0, 2, 0, 0, 1, 0, 5, 0, 0, 4, 0], [0, 0, 1, 1, 1, 0, 3, 1, 2, 2, 3, 0, 3, 0, 2, 2, 4, 0, 0, 3, 3, 0, 1, 3, 0, 4], [2, 0, 0, 0, 4, 1, 0, 0, 4, 3, 0, 0, 0, 0, 0, 4, 0, 0, 3, 0, 0, 1, 0, 4, 1, 2], [0, 0, 0, 4, 0, 1, 0, 0, 1, 0, 2, 0, 0, 0, 3, 0, 0, 0, 0, 0, 4, 1, 0, 0, 0, 0], [0, 0, 0, 0, 2, 1, 2, 0, 2, 4, 3, 3, 0, 4, 3, 4, 0, 2, 0, 0, 0, 4, 0, 0, 0, 1], [0, 0, 0, 0, 5, 5, 1, 4, 0, 4, 0, 0, 0, 0, 3, 5, 4, 4, 5, 5, 4, 1, 0, 0, 3, 0], [4, 4, 4, 0, 0, 4, 4, 0, 1, 2, 3, 0, 0, 0, 0, 1, 5, 0, 5, 4, 0, 1, 3, 0, 5, 1], [0, 1, 1, 5, 4, 0, 0, 0, 0, 4, 0, 5, 0, 0, 0, 0, 0, 0, 3, 0, 4, 5, 1, 0, 0, 3], [0, 3, 4, 1, 0, 3, 3, 2, 1, 5, 1, 5, 0, 4, 0, 0, 0, 0, 0, 5, 5, 3, 0, 2, 0, 2], [0, 0, 1, 5, 3, 0, 4, 2, 4, 0, 5, 5, 3, 0, 3, 0, 3, 0, 0, 0, 0, 1, 0, 1, 2, 2], [0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 4, 0, 2, 3, 2, 5, 1, 0, 2, 1, 0, 3, 0, 0, 0], [0, 0, 0, 0, 2, 0, 0, 5, 2, 0, 1, 3, 0, 1, 2, 0, 0, 0, 4, 0, 1, 2, 1, 4, 0, 5], [0, 0, 0, 1, 4, 2, 0, 0, 0, 0, 2, 0, 0, 5, 4, 1, 0, 2, 0, 5, 0, 0, 4, 0, 0, 0], [0, 3, 3, 4, 3, 3, 4, 3, 1, 1, 1, 1, 2, 2, 0, 3, 0, 4, 0, 0, 5, 3, 0, 3, 0, 5], [4, 3, 4, 3, 0, 0, 0, 0, 5, 0, 5, 5, 0, 0, 1, 0, 0, 0, 0, 3, 0, 0, 0, 2, 0, 4], [2, 2, 0, 0, 3, 0, 4, 1, 2, 0, 3, 5, 0, 3, 2, 4, 0, 0, 3, 2, 0, 0, 0, 0, 4, 4], [5, 3, 1, 0, 0, 0, 0, 2, 0, 0, 1, 0, 1, 2, 0, 0, 0, 0, 0, 0, 3, 5, 0, 0, 0, 0], [0, 4, 1, 1, 0, 0, 0, 2, 2, 0, 3, 0, 4, 0, 0, 2, 0, 2, 2, 4, 5, 5, 0, 0, 0, 0], [3, 2, 0, 0, 0, 0, 0, 2, 0, 0, 2, 0, 3, 1, 5, 3, 2, 5, 2, 0, 0, 4, 5, 0, 0, 0], [0, 3, 2, 0, 0, 0, 0, 4, 5, 1, 0, 5, 4, 0, 2, 0, 2, 2, 0, 5, 4, 0, 1, 0, 3, 0], [0, 0, 0, 3, 0, 0, 0, 4, 1, 0, 2, 4, 3, 4, 0, 1, 0, 4, 0, 0, 0, 0, 0, 3, 1, 0], [4, 0, 1, 1, 0, 0, 2, 5, 0, 3, 5, 1, 0, 3, 0, 0, 0, 1, 0, 0, 2, 0, 0, 5, 0, 0], [0, 2, 0, 2, 3, 4, 5, 0, 0, 5, 0, 0, 0, 0, 0, 0, 1, 0, 4, 5, 0, 0, 0, 2, 4, 0], [0, 2, 2, 0, 0, 0, 3, 0, 2, 5, 4, 4, 0, 3, 0, 4, 0, 4, 0, 4, 5, 0, 3, 0, 0, 0], [0, 4, 5, 0, 3, 0, 4, 0, 3, 0, 4, 0, 0, 3, 2, 0, 3, 2, 4, 0, 3, 3, 0, 1, 2, 0], [5, 2, 4, 0, 0, 0, 1, 5, 0, 0, 0, 0, 3, 4, 0, 0, 0, 0, 5, 0, 0, 1, 0, 0, 0, 3], [2, 0, 0, 1, 1, 1, 0, 0, 0, 5, 5, 1, 4, 4, 4, 0, 0, 0, 0, 3, 4, 1, 1, 4, 0, 3], [1, 0, 0, 0, 0, 0, 0, 0, 5, 5, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 2, 0], [0, 3, 4, 3, 2, 3, 5, 2, 0, 0, 0, 1, 0, 0, 4, 1, 3, 5, 5, 5, 5, 5, 0, 5, 2, 0], [0, 0, 0, 2, 0, 0, 2, 0, 2, 1, 3, 0, 4, 0, 1, 3, 0, 1, 1, 5, 0, 0, 0, 5, 4, 0], [0, 5, 1, 0, 5, 2, 0, 0, 1, 5, 5, 1, 1, 0, 0, 0, 5, 0, 0, 0, 2, 0, 5, 5, 3, 0], [0, 0, 0, 5, 1, 0, 0, 0, 1, 2, 2, 0, 4, 0, 5, 3, 0, 0, 0, 0, 0, 5, 0, 5, 0, 4], [0, 4, 1, 4, 2, 0, 2, 1, 0, 0, 0, 0, 3, 3, 4, 0, 1, 1, 4, 0, 3, 3, 1, 3, 1, 0], [0, 2, 5, 4, 4, 4, 2, 0, 0, 0, 0, 4, 1, 0, 0, 0, 1, 0, 0, 0, 3, 0, 0, 0, 4, 0], [2, 2, 3, 0, 0, 3, 1, 0, 0, 0, 0, 0, 0, 0, 4, 3, 0, 0, 4, 0, 2, 0, 0, 0, 3, 0], [0, 1, 1, 0, 0, 3, 1, 0, 1, 3, 5, 3, 5, 2, 3, 3, 5, 5, 4, 0, 0, 0, 0, 0, 0, 0], [4, 2, 5, 0, 0, 0, 5, 3, 3, 3, 0, 4, 0, 0, 4, 0, 2, 4, 3, 0, 0, 1, 5, 2, 0, 2], [0, 2, 2, 0, 0, 3, 2, 0, 0, 2, 5, 0, 0, 1, 2, 0, 4, 5, 0, 0, 3, 0, 0, 0, 0, 3], [2, 4, 0, 2, 5, 0, 0, 0, 0, 3, 0, 3, 0, 1, 0, 2, 2, 1, 1, 2, 0, 1, 5, 0, 0, 0], [1, 4, 5, 0, 0, 2, 2, 0, 0, 3, 0, 0, 4, 2, 3, 5, 3, 0, 2, 0, 3, 0, 0, 2, 0, 0], [5, 0, 4, 5, 1, 1, 5, 0, 4, 0, 0, 0, 0, 4, 2, 0, 3, 0, 0, 2, 0, 0, 0, 1, 0, 1], [0, 4, 0, 0, 0, 4, 0, 0, 3, 0, 4, 5, 0, 3, 0, 0, 0, 2, 4, 0, 1, 0, 0, 1, 0, 0], [3, 1, 0, 0, 0, 3, 0, 2, 1, 3, 1, 4, 2, 0, 0, 0, 2, 4, 0, 0, 0, 0, 3, 3, 2, 4], [2, 0, 0, 3, 0, 5, 0, 1, 4, 0, 3, 3, 0, 0, 0, 0, 3, 5, 1, 0, 0, 0, 0, 0, 0, 0], [2, 0, 5, 0, 1, 0, 3, 0, 0, 0, 5, 1, 0, 0, 1, 2, 3, 0, 0, 0, 0, 0, 2, 0, 0, 0], [3, 0, 0, 0, 0, 4, 4, 1, 1, 0, 4, 0, 3, 2, 3, 4, 2, 0, 0, 4, 1, 0, 0, 0, 0, 3], [4, 0, 1, 4, 0, 0, 0, 1, 4, 0, 4, 3, 1, 0, 0, 2, 0, 0, 0, 5, 3, 0, 3, 3, 0, 0], [4, 3, 0, 4, 0, 1, 0, 0, 3, 0, 3, 5, 1, 2, 0, 1, 3, 5, 0, 1, 0, 3, 3, 5, 3, 4], [3, 5, 0, 3, 5, 5, 0, 0, 0, 4, 3, 0, 1, 0, 5, 5, 0, 0, 2, 2, 5, 0, 4, 2, 4, 0], [0, 0, 3, 2, 4, 4, 0, 0, 0, 4, 3, 0, 2, 1, 0, 0, 0, 4, 0, 0, 1, 0, 0, 4, 0, 1], [1, 0, 5, 1, 0, 0, 5, 2, 0, 0, 5, 2, 0, 0, 2, 0, 4, 0, 5, 0, 0, 0, 0, 0, 0, 5], [3, 5, 0, 0, 0, 0, 1, 2, 3, 2, 2, 5, 0, 4, 5, 0, 4, 2, 3, 2, 0, 2, 0, 3, 0, 0], [0, 4, 0, 2, 5, 0, 2, 5, 0, 0, 1, 0, 5, 3, 2, 2, 0, 1, 5, 3, 0, 2, 0, 3, 0, 0], [0, 0, 4, 3, 4, 0, 0, 5, 3, 3, 1, 2, 0, 0, 2, 1, 4, 2, 0, 0, 4, 0, 0, 0, 3, 0], [5, 1, 0, 0, 0, 0, 0, 5, 0, 5, 0, 0, 2, 0, 1, 0, 3, 0, 0, 2, 0, 0, 1, 4, 2, 2]], "rhs": [478, 710, 577, 484, 715, 489, 611, 446, 484, 663, 475, 309, 704, 559, 543, 426, 421, 479, 378, 355, 503, 518, 467, 193, 498, 467, 218, 582, 732, 544, 492, 726, 601, 407, 410, 554, 745, 557, 656, 218, 404, 491, 584, 461, 417, 570, 686, 513, 310, 645, 261, 819, 499, 651, 570, 584, 481, 354, 598, 689, 384, 596, 606, 555, 480, 514, 406, 253, 549, 548, 749, 937, 502, 311, 758, 678, 502, 419], "family": "rlve_integer_linear_system", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-integer-linear-system-l6-s1/solution/solve.sh b/tasks/construct-rlve-integer-linear-system-l6-s1/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..16b369344d7c0cf95c82d27c0772179dc30de994 --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l6-s1/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"x": [10, 24, 4, 20, 23, 19, 14, 6, 16, 20, 3, 24, 10, 21, 25, 24, 4, 13, 3, 19, 5, 2, 12, 22, 3, 7]} +RLMATH_EOF diff --git a/tasks/construct-rlve-integer-linear-system-l6-s1/tests/check.py b/tasks/construct-rlve-integer-linear-system-l6-s1/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..ff19002b3fddc9597f84ee31ef5ffbee5d3fac32 --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l6-s1/tests/check.py @@ -0,0 +1,10 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n = len(inst["coeffs"][0]) + x = int_list(ans.get("x"), n, name="x") + for k, (e, r) in enumerate(zip(inst["coeffs"], inst["rhs"])): + if sum(c * v for c, v in zip(e, x)) != r: + raise Invalid(f"equation {k} is violated") + return None, {} diff --git a/tasks/construct-rlve-integer-linear-system-l6-s1/tests/instance.json b/tasks/construct-rlve-integer-linear-system-l6-s1/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..30544c15b47520d66e1c794f852e59378cec29ba --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l6-s1/tests/instance.json @@ -0,0 +1 @@ +{"coeffs": [[0, 0, 0, 0, 0, 1, 1, 2, 4, 3, 5, 1, 2, 2, 2, 0, 5, 5, 2, 0, 0, 0, 5, 0, 0, 1], [1, 0, 0, 3, 1, 0, 1, 3, 0, 5, 5, 5, 3, 1, 0, 5, 0, 3, 0, 1, 5, 2, 1, 3, 0, 2], [0, 1, 0, 0, 2, 0, 0, 0, 0, 3, 4, 3, 4, 1, 4, 5, 1, 0, 5, 3, 0, 0, 0, 0, 2, 0], [0, 4, 1, 4, 4, 2, 0, 0, 1, 0, 0, 0, 1, 0, 3, 0, 2, 1, 0, 0, 0, 1, 0, 2, 2, 0], [0, 1, 0, 0, 3, 1, 5, 3, 4, 4, 0, 0, 0, 0, 3, 1, 2, 0, 0, 5, 2, 5, 1, 5, 2, 3], [4, 0, 0, 0, 2, 0, 0, 4, 5, 0, 0, 2, 4, 0, 2, 0, 0, 0, 0, 5, 1, 3, 4, 0, 0, 1], [5, 0, 3, 0, 0, 0, 0, 0, 5, 5, 0, 3, 1, 0, 0, 5, 1, 5, 3, 0, 3, 0, 5, 0, 0, 2], [4, 0, 0, 0, 1, 0, 0, 4, 4, 0, 0, 0, 2, 4, 0, 0, 0, 1, 1, 5, 0, 4, 5, 0, 4, 0], [0, 0, 0, 0, 1, 2, 0, 0, 0, 0, 1, 0, 2, 4, 4, 0, 0, 3, 0, 0, 4, 0, 1, 5, 0, 5], [0, 0, 4, 0, 0, 4, 4, 4, 5, 0, 0, 5, 0, 3, 0, 4, 1, 1, 4, 0, 3, 5, 1, 3, 0, 0], [0, 1, 2, 0, 0, 0, 2, 0, 5, 0, 0, 2, 0, 0, 2, 1, 4, 5, 2, 3, 1, 0, 3, 0, 0, 4], [0, 0, 0, 0, 0, 0, 2, 2, 4, 0, 0, 0, 0, 2, 4, 0, 3, 3, 2, 0, 0, 0, 0, 0, 2, 0], [4, 4, 1, 5, 4, 0, 1, 1, 0, 0, 4, 0, 2, 0, 5, 1, 4, 0, 5, 1, 0, 1, 5, 2, 5, 0], [2, 1, 0, 1, 3, 5, 3, 0, 0, 3, 0, 0, 0, 0, 1, 2, 4, 2, 0, 0, 2, 0, 0, 3, 1, 5], [2, 5, 5, 0, 1, 1, 0, 0, 4, 2, 0, 0, 4, 0, 2, 2, 1, 1, 0, 0, 1, 1, 1, 1, 2, 5], [0, 0, 0, 2, 0, 5, 2, 4, 0, 1, 1, 0, 0, 0, 0, 5, 0, 0, 0, 4, 4, 0, 0, 0, 0, 0], [0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 3, 0, 4, 1, 1, 5, 2, 0, 5, 3, 0, 2, 3, 1, 2, 2], [3, 0, 0, 0, 0, 0, 0, 0, 5, 2, 0, 3, 0, 2, 0, 1, 0, 5, 0, 0, 4, 0, 1, 4, 2, 0], [4, 0, 1, 0, 3, 0, 0, 0, 1, 3, 0, 2, 0, 3, 0, 0, 1, 0, 0, 0, 2, 3, 3, 1, 0, 0], [0, 0, 4, 0, 0, 3, 2, 4, 0, 1, 0, 0, 1, 0, 0, 0, 4, 5, 0, 0, 5, 0, 5, 0, 2, 4], [4, 1, 0, 1, 4, 0, 1, 5, 0, 0, 1, 2, 0, 0, 0, 3, 1, 2, 1, 0, 4, 3, 3, 2, 0, 3], [4, 1, 1, 0, 1, 0, 0, 4, 0, 4, 0, 4, 0, 1, 0, 2, 0, 0, 4, 0, 4, 3, 3, 2, 4, 4], [0, 1, 3, 0, 0, 1, 3, 0, 0, 5, 0, 1, 1, 0, 0, 0, 0, 3, 2, 3, 2, 1, 0, 5, 4, 0], [1, 0, 0, 0, 0, 0, 2, 0, 3, 0, 0, 2, 1, 0, 0, 0, 2, 0, 0, 1, 0, 5, 0, 0, 4, 0], [0, 0, 1, 1, 1, 0, 3, 1, 2, 2, 3, 0, 3, 0, 2, 2, 4, 0, 0, 3, 3, 0, 1, 3, 0, 4], [2, 0, 0, 0, 4, 1, 0, 0, 4, 3, 0, 0, 0, 0, 0, 4, 0, 0, 3, 0, 0, 1, 0, 4, 1, 2], [0, 0, 0, 4, 0, 1, 0, 0, 1, 0, 2, 0, 0, 0, 3, 0, 0, 0, 0, 0, 4, 1, 0, 0, 0, 0], [0, 0, 0, 0, 2, 1, 2, 0, 2, 4, 3, 3, 0, 4, 3, 4, 0, 2, 0, 0, 0, 4, 0, 0, 0, 1], [0, 0, 0, 0, 5, 5, 1, 4, 0, 4, 0, 0, 0, 0, 3, 5, 4, 4, 5, 5, 4, 1, 0, 0, 3, 0], [4, 4, 4, 0, 0, 4, 4, 0, 1, 2, 3, 0, 0, 0, 0, 1, 5, 0, 5, 4, 0, 1, 3, 0, 5, 1], [0, 1, 1, 5, 4, 0, 0, 0, 0, 4, 0, 5, 0, 0, 0, 0, 0, 0, 3, 0, 4, 5, 1, 0, 0, 3], [0, 3, 4, 1, 0, 3, 3, 2, 1, 5, 1, 5, 0, 4, 0, 0, 0, 0, 0, 5, 5, 3, 0, 2, 0, 2], [0, 0, 1, 5, 3, 0, 4, 2, 4, 0, 5, 5, 3, 0, 3, 0, 3, 0, 0, 0, 0, 1, 0, 1, 2, 2], [0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 4, 0, 2, 3, 2, 5, 1, 0, 2, 1, 0, 3, 0, 0, 0], [0, 0, 0, 0, 2, 0, 0, 5, 2, 0, 1, 3, 0, 1, 2, 0, 0, 0, 4, 0, 1, 2, 1, 4, 0, 5], [0, 0, 0, 1, 4, 2, 0, 0, 0, 0, 2, 0, 0, 5, 4, 1, 0, 2, 0, 5, 0, 0, 4, 0, 0, 0], [0, 3, 3, 4, 3, 3, 4, 3, 1, 1, 1, 1, 2, 2, 0, 3, 0, 4, 0, 0, 5, 3, 0, 3, 0, 5], [4, 3, 4, 3, 0, 0, 0, 0, 5, 0, 5, 5, 0, 0, 1, 0, 0, 0, 0, 3, 0, 0, 0, 2, 0, 4], [2, 2, 0, 0, 3, 0, 4, 1, 2, 0, 3, 5, 0, 3, 2, 4, 0, 0, 3, 2, 0, 0, 0, 0, 4, 4], [5, 3, 1, 0, 0, 0, 0, 2, 0, 0, 1, 0, 1, 2, 0, 0, 0, 0, 0, 0, 3, 5, 0, 0, 0, 0], [0, 4, 1, 1, 0, 0, 0, 2, 2, 0, 3, 0, 4, 0, 0, 2, 0, 2, 2, 4, 5, 5, 0, 0, 0, 0], [3, 2, 0, 0, 0, 0, 0, 2, 0, 0, 2, 0, 3, 1, 5, 3, 2, 5, 2, 0, 0, 4, 5, 0, 0, 0], [0, 3, 2, 0, 0, 0, 0, 4, 5, 1, 0, 5, 4, 0, 2, 0, 2, 2, 0, 5, 4, 0, 1, 0, 3, 0], [0, 0, 0, 3, 0, 0, 0, 4, 1, 0, 2, 4, 3, 4, 0, 1, 0, 4, 0, 0, 0, 0, 0, 3, 1, 0], [4, 0, 1, 1, 0, 0, 2, 5, 0, 3, 5, 1, 0, 3, 0, 0, 0, 1, 0, 0, 2, 0, 0, 5, 0, 0], [0, 2, 0, 2, 3, 4, 5, 0, 0, 5, 0, 0, 0, 0, 0, 0, 1, 0, 4, 5, 0, 0, 0, 2, 4, 0], [0, 2, 2, 0, 0, 0, 3, 0, 2, 5, 4, 4, 0, 3, 0, 4, 0, 4, 0, 4, 5, 0, 3, 0, 0, 0], [0, 4, 5, 0, 3, 0, 4, 0, 3, 0, 4, 0, 0, 3, 2, 0, 3, 2, 4, 0, 3, 3, 0, 1, 2, 0], [5, 2, 4, 0, 0, 0, 1, 5, 0, 0, 0, 0, 3, 4, 0, 0, 0, 0, 5, 0, 0, 1, 0, 0, 0, 3], [2, 0, 0, 1, 1, 1, 0, 0, 0, 5, 5, 1, 4, 4, 4, 0, 0, 0, 0, 3, 4, 1, 1, 4, 0, 3], [1, 0, 0, 0, 0, 0, 0, 0, 5, 5, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 2, 0], [0, 3, 4, 3, 2, 3, 5, 2, 0, 0, 0, 1, 0, 0, 4, 1, 3, 5, 5, 5, 5, 5, 0, 5, 2, 0], [0, 0, 0, 2, 0, 0, 2, 0, 2, 1, 3, 0, 4, 0, 1, 3, 0, 1, 1, 5, 0, 0, 0, 5, 4, 0], [0, 5, 1, 0, 5, 2, 0, 0, 1, 5, 5, 1, 1, 0, 0, 0, 5, 0, 0, 0, 2, 0, 5, 5, 3, 0], [0, 0, 0, 5, 1, 0, 0, 0, 1, 2, 2, 0, 4, 0, 5, 3, 0, 0, 0, 0, 0, 5, 0, 5, 0, 4], [0, 4, 1, 4, 2, 0, 2, 1, 0, 0, 0, 0, 3, 3, 4, 0, 1, 1, 4, 0, 3, 3, 1, 3, 1, 0], [0, 2, 5, 4, 4, 4, 2, 0, 0, 0, 0, 4, 1, 0, 0, 0, 1, 0, 0, 0, 3, 0, 0, 0, 4, 0], [2, 2, 3, 0, 0, 3, 1, 0, 0, 0, 0, 0, 0, 0, 4, 3, 0, 0, 4, 0, 2, 0, 0, 0, 3, 0], [0, 1, 1, 0, 0, 3, 1, 0, 1, 3, 5, 3, 5, 2, 3, 3, 5, 5, 4, 0, 0, 0, 0, 0, 0, 0], [4, 2, 5, 0, 0, 0, 5, 3, 3, 3, 0, 4, 0, 0, 4, 0, 2, 4, 3, 0, 0, 1, 5, 2, 0, 2], [0, 2, 2, 0, 0, 3, 2, 0, 0, 2, 5, 0, 0, 1, 2, 0, 4, 5, 0, 0, 3, 0, 0, 0, 0, 3], [2, 4, 0, 2, 5, 0, 0, 0, 0, 3, 0, 3, 0, 1, 0, 2, 2, 1, 1, 2, 0, 1, 5, 0, 0, 0], [1, 4, 5, 0, 0, 2, 2, 0, 0, 3, 0, 0, 4, 2, 3, 5, 3, 0, 2, 0, 3, 0, 0, 2, 0, 0], [5, 0, 4, 5, 1, 1, 5, 0, 4, 0, 0, 0, 0, 4, 2, 0, 3, 0, 0, 2, 0, 0, 0, 1, 0, 1], [0, 4, 0, 0, 0, 4, 0, 0, 3, 0, 4, 5, 0, 3, 0, 0, 0, 2, 4, 0, 1, 0, 0, 1, 0, 0], [3, 1, 0, 0, 0, 3, 0, 2, 1, 3, 1, 4, 2, 0, 0, 0, 2, 4, 0, 0, 0, 0, 3, 3, 2, 4], [2, 0, 0, 3, 0, 5, 0, 1, 4, 0, 3, 3, 0, 0, 0, 0, 3, 5, 1, 0, 0, 0, 0, 0, 0, 0], [2, 0, 5, 0, 1, 0, 3, 0, 0, 0, 5, 1, 0, 0, 1, 2, 3, 0, 0, 0, 0, 0, 2, 0, 0, 0], [3, 0, 0, 0, 0, 4, 4, 1, 1, 0, 4, 0, 3, 2, 3, 4, 2, 0, 0, 4, 1, 0, 0, 0, 0, 3], [4, 0, 1, 4, 0, 0, 0, 1, 4, 0, 4, 3, 1, 0, 0, 2, 0, 0, 0, 5, 3, 0, 3, 3, 0, 0], [4, 3, 0, 4, 0, 1, 0, 0, 3, 0, 3, 5, 1, 2, 0, 1, 3, 5, 0, 1, 0, 3, 3, 5, 3, 4], [3, 5, 0, 3, 5, 5, 0, 0, 0, 4, 3, 0, 1, 0, 5, 5, 0, 0, 2, 2, 5, 0, 4, 2, 4, 0], [0, 0, 3, 2, 4, 4, 0, 0, 0, 4, 3, 0, 2, 1, 0, 0, 0, 4, 0, 0, 1, 0, 0, 4, 0, 1], [1, 0, 5, 1, 0, 0, 5, 2, 0, 0, 5, 2, 0, 0, 2, 0, 4, 0, 5, 0, 0, 0, 0, 0, 0, 5], [3, 5, 0, 0, 0, 0, 1, 2, 3, 2, 2, 5, 0, 4, 5, 0, 4, 2, 3, 2, 0, 2, 0, 3, 0, 0], [0, 4, 0, 2, 5, 0, 2, 5, 0, 0, 1, 0, 5, 3, 2, 2, 0, 1, 5, 3, 0, 2, 0, 3, 0, 0], [0, 0, 4, 3, 4, 0, 0, 5, 3, 3, 1, 2, 0, 0, 2, 1, 4, 2, 0, 0, 4, 0, 0, 0, 3, 0], [5, 1, 0, 0, 0, 0, 0, 5, 0, 5, 0, 0, 2, 0, 1, 0, 3, 0, 0, 2, 0, 0, 1, 4, 2, 2]], "rhs": [478, 710, 577, 484, 715, 489, 611, 446, 484, 663, 475, 309, 704, 559, 543, 426, 421, 479, 378, 355, 503, 518, 467, 193, 498, 467, 218, 582, 732, 544, 492, 726, 601, 407, 410, 554, 745, 557, 656, 218, 404, 491, 584, 461, 417, 570, 686, 513, 310, 645, 261, 819, 499, 651, 570, 584, 481, 354, 598, 689, 384, 596, 606, 555, 480, 514, 406, 253, 549, 548, 749, 937, 502, 311, 758, 678, 502, 419], "family": "rlve_integer_linear_system", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-integer-linear-system-l6-s1/tests/run.py b/tasks/construct-rlve-integer-linear-system-l6-s1/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l6-s1/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-integer-linear-system-l6-s1/tests/test.sh b/tasks/construct-rlve-integer-linear-system-l6-s1/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l6-s1/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-integer-linear-system-l6-s6/environment/Dockerfile b/tasks/construct-rlve-integer-linear-system-l6-s6/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l6-s6/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-integer-linear-system-l6-s6/environment/instance.json b/tasks/construct-rlve-integer-linear-system-l6-s6/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..9969142bdfa72a25bc30144c3644d76bcc793661 --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l6-s6/environment/instance.json @@ -0,0 +1 @@ +{"coeffs": [[0, 0, 0, 5, 4, 2, 2, 4, 0, 1, 0, 1, 0, 2, 1, 0, 2, 0, 1, 3, 0, 1, 0, 0, 0, 4], [5, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0, 2, 2, 3, 0, 3, 3, 4, 0, 0, 0, 4, 4, 4, 0, 0], [5, 5, 1, 3, 0, 3, 0, 4, 5, 0, 5, 3, 3, 0, 0, 3, 5, 0, 0, 0, 0, 5, 1, 0, 3, 0], [0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 2, 0, 3, 0, 0, 5, 3, 4, 0, 0, 0, 0, 5, 0], [0, 0, 0, 0, 4, 1, 0, 0, 0, 0, 0, 2, 4, 5, 3, 0, 0, 0, 1, 3, 3, 0, 1, 0, 0, 0], [4, 0, 0, 0, 1, 0, 2, 2, 0, 1, 1, 0, 4, 3, 4, 4, 4, 0, 1, 0, 3, 0, 0, 5, 1, 0], [0, 5, 1, 0, 0, 0, 0, 0, 2, 5, 3, 3, 0, 4, 1, 1, 0, 1, 3, 0, 0, 4, 0, 0, 1, 0], [1, 1, 0, 0, 2, 0, 3, 0, 0, 2, 0, 0, 0, 0, 0, 3, 2, 0, 0, 0, 0, 3, 4, 0, 5, 0], [4, 4, 0, 0, 0, 5, 0, 5, 2, 0, 5, 2, 3, 0, 0, 2, 2, 5, 1, 3, 2, 0, 0, 0, 2, 3], [4, 2, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 3, 5, 0, 0, 4, 2, 0, 3, 0, 3, 3, 0, 0], [2, 3, 0, 0, 2, 0, 0, 1, 0, 0, 5, 0, 0, 0, 0, 5, 2, 0, 5, 0, 2, 2, 5, 2, 1, 0], [0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 1, 5, 4, 5, 3, 3, 0, 5, 0, 0, 0, 2, 5, 5, 0], [4, 5, 0, 4, 4, 0, 5, 5, 0, 0, 5, 0, 5, 4, 4, 0, 1, 5, 4, 0, 4, 0, 0, 3, 0, 0], [3, 4, 4, 4, 5, 0, 0, 2, 4, 0, 0, 0, 0, 2, 5, 0, 3, 0, 0, 0, 0, 0, 1, 4, 0, 5], [3, 0, 4, 0, 1, 2, 0, 2, 1, 0, 0, 1, 0, 0, 3, 1, 1, 0, 0, 3, 0, 5, 3, 0, 0, 0], [0, 0, 0, 1, 4, 5, 3, 1, 0, 0, 4, 5, 0, 4, 0, 0, 4, 2, 5, 0, 1, 0, 3, 0, 0, 0], [0, 0, 1, 0, 3, 0, 0, 0, 1, 5, 3, 1, 5, 0, 4, 1, 2, 1, 0, 0, 0, 1, 0, 2, 0, 0], [3, 0, 0, 0, 4, 0, 0, 2, 2, 2, 1, 2, 0, 1, 1, 4, 3, 4, 0, 0, 0, 0, 0, 2, 4, 0], [0, 1, 0, 0, 3, 5, 0, 0, 4, 1, 2, 1, 0, 0, 0, 3, 4, 0, 0, 1, 2, 0, 4, 3, 0, 3], [3, 1, 0, 2, 4, 5, 0, 1, 0, 0, 0, 0, 2, 4, 5, 0, 0, 5, 0, 0, 1, 1, 0, 0, 2, 0], [0, 0, 3, 0, 5, 0, 5, 0, 4, 4, 0, 1, 0, 5, 1, 1, 0, 0, 5, 5, 0, 3, 0, 3, 0, 3], [0, 0, 3, 4, 5, 5, 4, 0, 5, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 4, 1, 1, 4, 4], [3, 4, 1, 1, 1, 5, 5, 1, 0, 3, 0, 0, 3, 0, 4, 0, 0, 4, 0, 0, 3, 1, 2, 5, 5, 5], [5, 0, 3, 0, 0, 1, 4, 0, 3, 1, 0, 4, 4, 4, 4, 4, 5, 0, 0, 0, 0, 2, 4, 2, 1, 5], [0, 0, 0, 0, 1, 2, 0, 4, 3, 4, 0, 0, 0, 5, 0, 0, 3, 2, 0, 1, 0, 1, 2, 0, 1, 4], [4, 0, 0, 1, 3, 0, 0, 5, 4, 0, 0, 4, 0, 0, 2, 0, 0, 1, 4, 5, 0, 0, 2, 0, 0, 3], [0, 4, 2, 0, 4, 4, 0, 4, 2, 0, 1, 2, 5, 4, 0, 4, 0, 1, 0, 0, 2, 1, 1, 0, 4, 0], [2, 0, 0, 5, 3, 0, 5, 2, 3, 5, 5, 0, 1, 0, 2, 1, 1, 0, 0, 0, 0, 0, 0, 2, 0, 5], [0, 0, 0, 2, 5, 0, 0, 3, 3, 1, 0, 0, 0, 5, 4, 0, 0, 2, 4, 0, 0, 0, 0, 5, 0, 0], [0, 0, 0, 0, 4, 0, 1, 5, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 2, 0, 0, 2, 4, 5, 4, 2], [1, 3, 5, 0, 4, 2, 3, 5, 0, 0, 0, 3, 0, 5, 0, 0, 0, 0, 1, 4, 0, 0, 3, 0, 1, 1], [1, 1, 0, 0, 0, 0, 1, 1, 0, 1, 0, 5, 1, 0, 0, 5, 1, 0, 0, 3, 4, 2, 0, 2, 0, 0], [5, 3, 3, 1, 0, 4, 3, 3, 1, 0, 1, 0, 0, 4, 0, 0, 0, 5, 0, 5, 0, 2, 1, 3, 0, 4], [2, 0, 1, 0, 0, 0, 0, 3, 5, 3, 5, 1, 0, 2, 2, 0, 3, 4, 3, 5, 0, 0, 4, 2, 0, 4], [0, 0, 5, 0, 1, 0, 2, 0, 4, 2, 1, 3, 0, 0, 2, 3, 0, 3, 0, 0, 0, 1, 1, 3, 3, 0], [3, 4, 0, 3, 3, 0, 0, 5, 0, 0, 0, 0, 0, 2, 0, 2, 1, 0, 4, 0, 0, 0, 1, 2, 0, 0], [1, 2, 2, 5, 2, 2, 5, 0, 1, 1, 0, 0, 2, 2, 0, 0, 0, 0, 0, 4, 3, 0, 0, 0, 0, 0], [3, 0, 0, 0, 5, 0, 0, 0, 4, 0, 4, 0, 4, 5, 0, 0, 5, 4, 0, 0, 0, 0, 3, 0, 0, 0], [0, 3, 5, 0, 0, 3, 3, 2, 0, 0, 5, 0, 2, 0, 3, 0, 0, 0, 5, 0, 4, 0, 0, 4, 1, 0], [0, 0, 4, 5, 0, 0, 0, 0, 1, 5, 0, 0, 5, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 3, 1, 0], [3, 5, 5, 0, 0, 0, 4, 4, 2, 1, 0, 4, 5, 0, 1, 0, 1, 2, 0, 3, 0, 0, 3, 1, 3, 4], [1, 0, 0, 1, 1, 0, 4, 0, 0, 0, 3, 0, 4, 2, 0, 0, 0, 0, 0, 0, 5, 0, 3, 0, 0, 1], [2, 0, 0, 0, 3, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 5, 4, 3, 4, 2, 0, 4, 5, 0, 0, 0], [0, 0, 4, 0, 0, 4, 3, 2, 0, 0, 1, 1, 4, 0, 0, 4, 0, 5, 0, 0, 3, 5, 5, 3, 0, 0], [0, 0, 4, 1, 2, 5, 0, 2, 0, 2, 4, 0, 0, 0, 4, 0, 4, 4, 0, 0, 0, 0, 1, 5, 0, 0], [0, 0, 0, 3, 0, 0, 5, 0, 2, 3, 1, 1, 0, 0, 0, 4, 2, 0, 0, 3, 3, 4, 0, 0, 4, 0], [0, 4, 0, 0, 3, 2, 2, 5, 2, 0, 5, 0, 0, 0, 0, 0, 0, 1, 0, 1, 4, 4, 0, 5, 0, 1], [0, 5, 0, 0, 0, 0, 0, 0, 3, 5, 0, 0, 0, 4, 3, 4, 0, 0, 2, 0, 5, 0, 0, 4, 0, 0], [1, 4, 3, 3, 1, 0, 0, 1, 4, 0, 2, 5, 2, 0, 0, 4, 0, 0, 1, 0, 0, 3, 2, 0, 5, 0], [4, 5, 4, 5, 4, 1, 0, 3, 3, 5, 0, 3, 0, 2, 0, 0, 0, 3, 2, 0, 0, 5, 0, 5, 0, 0], [0, 0, 2, 0, 0, 3, 1, 3, 0, 0, 0, 5, 0, 1, 0, 0, 4, 0, 0, 1, 0, 2, 0, 0, 0, 3], [2, 2, 3, 5, 1, 3, 3, 2, 5, 0, 0, 1, 0, 0, 0, 3, 0, 0, 4, 0, 5, 0, 4, 0, 5, 4], [3, 0, 0, 0, 0, 1, 4, 3, 4, 3, 0, 0, 4, 0, 5, 2, 0, 4, 0, 0, 1, 0, 0, 0, 0, 5], [0, 4, 0, 0, 0, 0, 0, 5, 4, 0, 4, 1, 3, 0, 3, 0, 0, 4, 4, 1, 0, 0, 0, 0, 3, 2], [3, 0, 2, 0, 5, 0, 3, 0, 2, 0, 0, 0, 0, 5, 2, 0, 2, 0, 1, 0, 1, 5, 0, 4, 1, 0], [3, 0, 0, 0, 3, 5, 5, 0, 0, 2, 2, 3, 0, 0, 5, 0, 0, 5, 0, 0, 0, 0, 0, 0, 5, 2], [0, 0, 3, 1, 3, 4, 0, 0, 0, 0, 5, 1, 5, 4, 1, 4, 0, 1, 0, 5, 0, 0, 4, 0, 0, 4], [3, 0, 4, 4, 3, 1, 0, 3, 0, 0, 0, 4, 2, 0, 0, 3, 0, 0, 1, 0, 4, 0, 2, 5, 0, 0], [5, 0, 0, 1, 0, 0, 0, 3, 1, 1, 4, 2, 0, 0, 0, 4, 0, 0, 2, 4, 0, 0, 0, 5, 5, 0], [2, 0, 3, 0, 3, 0, 2, 2, 1, 0, 4, 4, 0, 0, 3, 0, 5, 0, 0, 1, 4, 0, 0, 1, 4, 0], [0, 0, 1, 4, 3, 3, 3, 3, 0, 4, 3, 0, 3, 0, 2, 2, 0, 1, 0, 1, 2, 1, 5, 2, 1, 0], [1, 0, 0, 0, 0, 0, 3, 0, 4, 0, 2, 0, 0, 3, 0, 5, 0, 2, 0, 0, 0, 0, 0, 0, 1, 0], [0, 5, 2, 4, 3, 3, 0, 0, 0, 2, 5, 2, 0, 2, 4, 1, 0, 0, 3, 2, 4, 4, 2, 0, 2, 1], [4, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 2, 2, 5, 3, 1, 2, 0, 0, 2, 1, 4, 4, 0, 3, 5], [2, 3, 0, 5, 1, 2, 0, 0, 0, 0, 3, 5, 1, 4, 0, 2, 0, 0, 4, 4, 3, 0, 2, 0, 2, 0], [3, 3, 0, 0, 1, 0, 0, 2, 1, 4, 4, 0, 0, 3, 0, 3, 1, 2, 2, 0, 5, 1, 4, 0, 1, 0], [0, 0, 0, 2, 1, 4, 3, 0, 0, 5, 3, 0, 0, 0, 3, 1, 0, 0, 4, 0, 0, 4, 4, 3, 0, 0], [2, 2, 4, 3, 5, 1, 0, 4, 1, 0, 0, 4, 2, 0, 0, 3, 2, 0, 0, 2, 2, 0, 4, 5, 0, 3], [4, 0, 0, 3, 4, 0, 0, 0, 1, 3, 4, 2, 0, 0, 3, 0, 0, 0, 5, 0, 0, 0, 0, 1, 0, 2], [0, 0, 0, 3, 0, 0, 0, 3, 0, 5, 1, 2, 0, 0, 2, 1, 4, 2, 0, 4, 0, 4, 1, 0, 3, 3], [5, 0, 0, 3, 3, 0, 1, 5, 0, 4, 0, 0, 5, 3, 4, 5, 5, 0, 2, 0, 0, 1, 2, 0, 1, 0], [0, 0, 5, 1, 2, 1, 1, 3, 4, 5, 3, 3, 5, 0, 2, 0, 0, 1, 0, 3, 0, 5, 1, 0, 0, 1], [3, 0, 3, 0, 2, 0, 0, 4, 3, 5, 0, 0, 2, 3, 5, 0, 0, 5, 0, 3, 0, 3, 0, 5, 0, 0], [0, 5, 0, 3, 0, 5, 5, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 2, 0, 5, 5, 1, 0, 0, 0, 0], [5, 0, 4, 0, 3, 4, 5, 1, 4, 0, 5, 0, 4, 2, 0, 1, 0, 2, 0, 2, 0, 4, 0, 4, 0, 5], [5, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 5, 3, 5, 1, 0, 1, 0, 2, 0, 0, 1, 2, 5, 0, 4], [0, 2, 5, 0, 0, 4, 5, 0, 3, 0, 3, 2, 4, 5, 0, 0, 0, 0, 5, 0, 3, 5, 2, 2, 5, 5], [1, 0, 0, 0, 1, 3, 5, 0, 0, 5, 5, 0, 4, 0, 3, 0, 0, 3, 4, 0, 2, 0, 4, 3, 4, 0]], "rhs": [477, 458, 573, 272, 362, 548, 427, 325, 611, 449, 443, 569, 737, 734, 429, 482, 466, 441, 551, 381, 714, 513, 842, 840, 425, 553, 520, 659, 432, 466, 645, 466, 692, 717, 543, 355, 456, 349, 559, 430, 830, 306, 374, 577, 588, 448, 518, 535, 518, 732, 386, 637, 572, 437, 417, 561, 689, 604, 532, 548, 650, 230, 675, 522, 549, 478, 519, 825, 429, 563, 605, 669, 689, 509, 737, 673, 705, 626], "family": "rlve_integer_linear_system", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-integer-linear-system-l6-s6/solution/solve.sh b/tasks/construct-rlve-integer-linear-system-l6-s6/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..e9320eca202582d9b9c496b767a1751f8bbfcb69 --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l6-s6/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"x": [8, 18, 22, 10, 13, 9, 18, 12, 6, 23, 11, 24, 8, 6, 23, 17, 9, 7, 1, 25, 9, 1, 19, 26, 5, 24]} +RLMATH_EOF diff --git a/tasks/construct-rlve-integer-linear-system-l6-s6/tests/check.py b/tasks/construct-rlve-integer-linear-system-l6-s6/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..ff19002b3fddc9597f84ee31ef5ffbee5d3fac32 --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l6-s6/tests/check.py @@ -0,0 +1,10 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n = len(inst["coeffs"][0]) + x = int_list(ans.get("x"), n, name="x") + for k, (e, r) in enumerate(zip(inst["coeffs"], inst["rhs"])): + if sum(c * v for c, v in zip(e, x)) != r: + raise Invalid(f"equation {k} is violated") + return None, {} diff --git a/tasks/construct-rlve-integer-linear-system-l6-s6/tests/instance.json b/tasks/construct-rlve-integer-linear-system-l6-s6/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..9969142bdfa72a25bc30144c3644d76bcc793661 --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l6-s6/tests/instance.json @@ -0,0 +1 @@ +{"coeffs": [[0, 0, 0, 5, 4, 2, 2, 4, 0, 1, 0, 1, 0, 2, 1, 0, 2, 0, 1, 3, 0, 1, 0, 0, 0, 4], [5, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0, 2, 2, 3, 0, 3, 3, 4, 0, 0, 0, 4, 4, 4, 0, 0], [5, 5, 1, 3, 0, 3, 0, 4, 5, 0, 5, 3, 3, 0, 0, 3, 5, 0, 0, 0, 0, 5, 1, 0, 3, 0], [0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 2, 0, 3, 0, 0, 5, 3, 4, 0, 0, 0, 0, 5, 0], [0, 0, 0, 0, 4, 1, 0, 0, 0, 0, 0, 2, 4, 5, 3, 0, 0, 0, 1, 3, 3, 0, 1, 0, 0, 0], [4, 0, 0, 0, 1, 0, 2, 2, 0, 1, 1, 0, 4, 3, 4, 4, 4, 0, 1, 0, 3, 0, 0, 5, 1, 0], [0, 5, 1, 0, 0, 0, 0, 0, 2, 5, 3, 3, 0, 4, 1, 1, 0, 1, 3, 0, 0, 4, 0, 0, 1, 0], [1, 1, 0, 0, 2, 0, 3, 0, 0, 2, 0, 0, 0, 0, 0, 3, 2, 0, 0, 0, 0, 3, 4, 0, 5, 0], [4, 4, 0, 0, 0, 5, 0, 5, 2, 0, 5, 2, 3, 0, 0, 2, 2, 5, 1, 3, 2, 0, 0, 0, 2, 3], [4, 2, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 3, 5, 0, 0, 4, 2, 0, 3, 0, 3, 3, 0, 0], [2, 3, 0, 0, 2, 0, 0, 1, 0, 0, 5, 0, 0, 0, 0, 5, 2, 0, 5, 0, 2, 2, 5, 2, 1, 0], [0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 1, 5, 4, 5, 3, 3, 0, 5, 0, 0, 0, 2, 5, 5, 0], [4, 5, 0, 4, 4, 0, 5, 5, 0, 0, 5, 0, 5, 4, 4, 0, 1, 5, 4, 0, 4, 0, 0, 3, 0, 0], [3, 4, 4, 4, 5, 0, 0, 2, 4, 0, 0, 0, 0, 2, 5, 0, 3, 0, 0, 0, 0, 0, 1, 4, 0, 5], [3, 0, 4, 0, 1, 2, 0, 2, 1, 0, 0, 1, 0, 0, 3, 1, 1, 0, 0, 3, 0, 5, 3, 0, 0, 0], [0, 0, 0, 1, 4, 5, 3, 1, 0, 0, 4, 5, 0, 4, 0, 0, 4, 2, 5, 0, 1, 0, 3, 0, 0, 0], [0, 0, 1, 0, 3, 0, 0, 0, 1, 5, 3, 1, 5, 0, 4, 1, 2, 1, 0, 0, 0, 1, 0, 2, 0, 0], [3, 0, 0, 0, 4, 0, 0, 2, 2, 2, 1, 2, 0, 1, 1, 4, 3, 4, 0, 0, 0, 0, 0, 2, 4, 0], [0, 1, 0, 0, 3, 5, 0, 0, 4, 1, 2, 1, 0, 0, 0, 3, 4, 0, 0, 1, 2, 0, 4, 3, 0, 3], [3, 1, 0, 2, 4, 5, 0, 1, 0, 0, 0, 0, 2, 4, 5, 0, 0, 5, 0, 0, 1, 1, 0, 0, 2, 0], [0, 0, 3, 0, 5, 0, 5, 0, 4, 4, 0, 1, 0, 5, 1, 1, 0, 0, 5, 5, 0, 3, 0, 3, 0, 3], [0, 0, 3, 4, 5, 5, 4, 0, 5, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 4, 1, 1, 4, 4], [3, 4, 1, 1, 1, 5, 5, 1, 0, 3, 0, 0, 3, 0, 4, 0, 0, 4, 0, 0, 3, 1, 2, 5, 5, 5], [5, 0, 3, 0, 0, 1, 4, 0, 3, 1, 0, 4, 4, 4, 4, 4, 5, 0, 0, 0, 0, 2, 4, 2, 1, 5], [0, 0, 0, 0, 1, 2, 0, 4, 3, 4, 0, 0, 0, 5, 0, 0, 3, 2, 0, 1, 0, 1, 2, 0, 1, 4], [4, 0, 0, 1, 3, 0, 0, 5, 4, 0, 0, 4, 0, 0, 2, 0, 0, 1, 4, 5, 0, 0, 2, 0, 0, 3], [0, 4, 2, 0, 4, 4, 0, 4, 2, 0, 1, 2, 5, 4, 0, 4, 0, 1, 0, 0, 2, 1, 1, 0, 4, 0], [2, 0, 0, 5, 3, 0, 5, 2, 3, 5, 5, 0, 1, 0, 2, 1, 1, 0, 0, 0, 0, 0, 0, 2, 0, 5], [0, 0, 0, 2, 5, 0, 0, 3, 3, 1, 0, 0, 0, 5, 4, 0, 0, 2, 4, 0, 0, 0, 0, 5, 0, 0], [0, 0, 0, 0, 4, 0, 1, 5, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 2, 0, 0, 2, 4, 5, 4, 2], [1, 3, 5, 0, 4, 2, 3, 5, 0, 0, 0, 3, 0, 5, 0, 0, 0, 0, 1, 4, 0, 0, 3, 0, 1, 1], [1, 1, 0, 0, 0, 0, 1, 1, 0, 1, 0, 5, 1, 0, 0, 5, 1, 0, 0, 3, 4, 2, 0, 2, 0, 0], [5, 3, 3, 1, 0, 4, 3, 3, 1, 0, 1, 0, 0, 4, 0, 0, 0, 5, 0, 5, 0, 2, 1, 3, 0, 4], [2, 0, 1, 0, 0, 0, 0, 3, 5, 3, 5, 1, 0, 2, 2, 0, 3, 4, 3, 5, 0, 0, 4, 2, 0, 4], [0, 0, 5, 0, 1, 0, 2, 0, 4, 2, 1, 3, 0, 0, 2, 3, 0, 3, 0, 0, 0, 1, 1, 3, 3, 0], [3, 4, 0, 3, 3, 0, 0, 5, 0, 0, 0, 0, 0, 2, 0, 2, 1, 0, 4, 0, 0, 0, 1, 2, 0, 0], [1, 2, 2, 5, 2, 2, 5, 0, 1, 1, 0, 0, 2, 2, 0, 0, 0, 0, 0, 4, 3, 0, 0, 0, 0, 0], [3, 0, 0, 0, 5, 0, 0, 0, 4, 0, 4, 0, 4, 5, 0, 0, 5, 4, 0, 0, 0, 0, 3, 0, 0, 0], [0, 3, 5, 0, 0, 3, 3, 2, 0, 0, 5, 0, 2, 0, 3, 0, 0, 0, 5, 0, 4, 0, 0, 4, 1, 0], [0, 0, 4, 5, 0, 0, 0, 0, 1, 5, 0, 0, 5, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 3, 1, 0], [3, 5, 5, 0, 0, 0, 4, 4, 2, 1, 0, 4, 5, 0, 1, 0, 1, 2, 0, 3, 0, 0, 3, 1, 3, 4], [1, 0, 0, 1, 1, 0, 4, 0, 0, 0, 3, 0, 4, 2, 0, 0, 0, 0, 0, 0, 5, 0, 3, 0, 0, 1], [2, 0, 0, 0, 3, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 5, 4, 3, 4, 2, 0, 4, 5, 0, 0, 0], [0, 0, 4, 0, 0, 4, 3, 2, 0, 0, 1, 1, 4, 0, 0, 4, 0, 5, 0, 0, 3, 5, 5, 3, 0, 0], [0, 0, 4, 1, 2, 5, 0, 2, 0, 2, 4, 0, 0, 0, 4, 0, 4, 4, 0, 0, 0, 0, 1, 5, 0, 0], [0, 0, 0, 3, 0, 0, 5, 0, 2, 3, 1, 1, 0, 0, 0, 4, 2, 0, 0, 3, 3, 4, 0, 0, 4, 0], [0, 4, 0, 0, 3, 2, 2, 5, 2, 0, 5, 0, 0, 0, 0, 0, 0, 1, 0, 1, 4, 4, 0, 5, 0, 1], [0, 5, 0, 0, 0, 0, 0, 0, 3, 5, 0, 0, 0, 4, 3, 4, 0, 0, 2, 0, 5, 0, 0, 4, 0, 0], [1, 4, 3, 3, 1, 0, 0, 1, 4, 0, 2, 5, 2, 0, 0, 4, 0, 0, 1, 0, 0, 3, 2, 0, 5, 0], [4, 5, 4, 5, 4, 1, 0, 3, 3, 5, 0, 3, 0, 2, 0, 0, 0, 3, 2, 0, 0, 5, 0, 5, 0, 0], [0, 0, 2, 0, 0, 3, 1, 3, 0, 0, 0, 5, 0, 1, 0, 0, 4, 0, 0, 1, 0, 2, 0, 0, 0, 3], [2, 2, 3, 5, 1, 3, 3, 2, 5, 0, 0, 1, 0, 0, 0, 3, 0, 0, 4, 0, 5, 0, 4, 0, 5, 4], [3, 0, 0, 0, 0, 1, 4, 3, 4, 3, 0, 0, 4, 0, 5, 2, 0, 4, 0, 0, 1, 0, 0, 0, 0, 5], [0, 4, 0, 0, 0, 0, 0, 5, 4, 0, 4, 1, 3, 0, 3, 0, 0, 4, 4, 1, 0, 0, 0, 0, 3, 2], [3, 0, 2, 0, 5, 0, 3, 0, 2, 0, 0, 0, 0, 5, 2, 0, 2, 0, 1, 0, 1, 5, 0, 4, 1, 0], [3, 0, 0, 0, 3, 5, 5, 0, 0, 2, 2, 3, 0, 0, 5, 0, 0, 5, 0, 0, 0, 0, 0, 0, 5, 2], [0, 0, 3, 1, 3, 4, 0, 0, 0, 0, 5, 1, 5, 4, 1, 4, 0, 1, 0, 5, 0, 0, 4, 0, 0, 4], [3, 0, 4, 4, 3, 1, 0, 3, 0, 0, 0, 4, 2, 0, 0, 3, 0, 0, 1, 0, 4, 0, 2, 5, 0, 0], [5, 0, 0, 1, 0, 0, 0, 3, 1, 1, 4, 2, 0, 0, 0, 4, 0, 0, 2, 4, 0, 0, 0, 5, 5, 0], [2, 0, 3, 0, 3, 0, 2, 2, 1, 0, 4, 4, 0, 0, 3, 0, 5, 0, 0, 1, 4, 0, 0, 1, 4, 0], [0, 0, 1, 4, 3, 3, 3, 3, 0, 4, 3, 0, 3, 0, 2, 2, 0, 1, 0, 1, 2, 1, 5, 2, 1, 0], [1, 0, 0, 0, 0, 0, 3, 0, 4, 0, 2, 0, 0, 3, 0, 5, 0, 2, 0, 0, 0, 0, 0, 0, 1, 0], [0, 5, 2, 4, 3, 3, 0, 0, 0, 2, 5, 2, 0, 2, 4, 1, 0, 0, 3, 2, 4, 4, 2, 0, 2, 1], [4, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 2, 2, 5, 3, 1, 2, 0, 0, 2, 1, 4, 4, 0, 3, 5], [2, 3, 0, 5, 1, 2, 0, 0, 0, 0, 3, 5, 1, 4, 0, 2, 0, 0, 4, 4, 3, 0, 2, 0, 2, 0], [3, 3, 0, 0, 1, 0, 0, 2, 1, 4, 4, 0, 0, 3, 0, 3, 1, 2, 2, 0, 5, 1, 4, 0, 1, 0], [0, 0, 0, 2, 1, 4, 3, 0, 0, 5, 3, 0, 0, 0, 3, 1, 0, 0, 4, 0, 0, 4, 4, 3, 0, 0], [2, 2, 4, 3, 5, 1, 0, 4, 1, 0, 0, 4, 2, 0, 0, 3, 2, 0, 0, 2, 2, 0, 4, 5, 0, 3], [4, 0, 0, 3, 4, 0, 0, 0, 1, 3, 4, 2, 0, 0, 3, 0, 0, 0, 5, 0, 0, 0, 0, 1, 0, 2], [0, 0, 0, 3, 0, 0, 0, 3, 0, 5, 1, 2, 0, 0, 2, 1, 4, 2, 0, 4, 0, 4, 1, 0, 3, 3], [5, 0, 0, 3, 3, 0, 1, 5, 0, 4, 0, 0, 5, 3, 4, 5, 5, 0, 2, 0, 0, 1, 2, 0, 1, 0], [0, 0, 5, 1, 2, 1, 1, 3, 4, 5, 3, 3, 5, 0, 2, 0, 0, 1, 0, 3, 0, 5, 1, 0, 0, 1], [3, 0, 3, 0, 2, 0, 0, 4, 3, 5, 0, 0, 2, 3, 5, 0, 0, 5, 0, 3, 0, 3, 0, 5, 0, 0], [0, 5, 0, 3, 0, 5, 5, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 2, 0, 5, 5, 1, 0, 0, 0, 0], [5, 0, 4, 0, 3, 4, 5, 1, 4, 0, 5, 0, 4, 2, 0, 1, 0, 2, 0, 2, 0, 4, 0, 4, 0, 5], [5, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 5, 3, 5, 1, 0, 1, 0, 2, 0, 0, 1, 2, 5, 0, 4], [0, 2, 5, 0, 0, 4, 5, 0, 3, 0, 3, 2, 4, 5, 0, 0, 0, 0, 5, 0, 3, 5, 2, 2, 5, 5], [1, 0, 0, 0, 1, 3, 5, 0, 0, 5, 5, 0, 4, 0, 3, 0, 0, 3, 4, 0, 2, 0, 4, 3, 4, 0]], "rhs": [477, 458, 573, 272, 362, 548, 427, 325, 611, 449, 443, 569, 737, 734, 429, 482, 466, 441, 551, 381, 714, 513, 842, 840, 425, 553, 520, 659, 432, 466, 645, 466, 692, 717, 543, 355, 456, 349, 559, 430, 830, 306, 374, 577, 588, 448, 518, 535, 518, 732, 386, 637, 572, 437, 417, 561, 689, 604, 532, 548, 650, 230, 675, 522, 549, 478, 519, 825, 429, 563, 605, 669, 689, 509, 737, 673, 705, 626], "family": "rlve_integer_linear_system", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-integer-linear-system-l6-s6/tests/run.py b/tasks/construct-rlve-integer-linear-system-l6-s6/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l6-s6/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-integer-linear-system-l6-s6/tests/test.sh b/tasks/construct-rlve-integer-linear-system-l6-s6/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l6-s6/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-integer-linear-system-l6-s8/environment/Dockerfile b/tasks/construct-rlve-integer-linear-system-l6-s8/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l6-s8/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-integer-linear-system-l6-s8/environment/instance.json b/tasks/construct-rlve-integer-linear-system-l6-s8/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..04c904d657e61ee3aca4b535515b6ba63f6f26f2 --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l6-s8/environment/instance.json @@ -0,0 +1 @@ +{"coeffs": [[0, 2, 0, 0, 0, 2, 1, 0, 0, 0, 5, 0, 0, 5, 0, 5, 1, 3, 4, 0, 0, 4, 4, 0, 5, 2], [2, 5, 4, 0, 3, 4, 0, 0, 4, 3, 0, 0, 0, 2, 0, 0, 3, 0, 4, 0, 5, 0, 0, 2, 1, 0], [0, 4, 0, 0, 5, 5, 0, 0, 0, 0, 0, 5, 2, 0, 0, 0, 1, 0, 5, 2, 3, 2, 5, 4, 0, 0], [5, 3, 0, 0, 1, 1, 5, 4, 0, 1, 0, 0, 3, 0, 1, 0, 0, 2, 5, 5, 0, 0, 2, 3, 5, 2], [0, 1, 0, 0, 0, 0, 2, 1, 0, 3, 5, 0, 3, 4, 1, 0, 4, 0, 0, 1, 4, 3, 0, 2, 0, 4], [0, 5, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 4, 0, 0, 0, 5, 5, 0, 0, 3, 0, 0, 1, 0, 0], [2, 0, 5, 4, 0, 0, 1, 0, 4, 2, 0, 0, 0, 2, 2, 0, 0, 3, 1, 0, 5, 0, 0, 1, 4, 0], [2, 0, 0, 0, 0, 0, 1, 1, 0, 3, 0, 0, 0, 1, 0, 5, 0, 3, 0, 4, 3, 0, 3, 5, 5, 1], [2, 0, 1, 0, 3, 3, 4, 3, 4, 0, 4, 1, 4, 3, 5, 0, 0, 0, 0, 0, 1, 0, 4, 0, 1, 0], [4, 0, 3, 4, 4, 3, 0, 0, 3, 0, 3, 0, 0, 0, 2, 5, 3, 0, 4, 0, 0, 1, 1, 4, 0, 0], [0, 1, 0, 5, 0, 2, 1, 0, 0, 0, 0, 0, 2, 5, 0, 0, 0, 0, 0, 0, 0, 3, 4, 4, 4, 4], [0, 0, 0, 3, 4, 5, 0, 0, 0, 3, 0, 0, 4, 4, 0, 2, 0, 0, 3, 0, 1, 4, 0, 4, 0, 4], [0, 1, 0, 0, 0, 2, 5, 5, 1, 0, 0, 1, 2, 0, 2, 1, 0, 3, 0, 2, 0, 0, 0, 0, 3, 0], [3, 0, 0, 0, 0, 0, 4, 2, 5, 5, 0, 5, 0, 4, 4, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 5], [5, 3, 3, 3, 5, 5, 0, 2, 1, 0, 3, 5, 4, 1, 4, 0, 1, 0, 0, 0, 0, 2, 1, 5, 0, 0], [0, 1, 1, 3, 3, 0, 1, 0, 4, 5, 5, 2, 4, 3, 0, 5, 1, 5, 3, 1, 0, 1, 2, 5, 0, 0], [5, 0, 5, 0, 4, 0, 0, 5, 1, 2, 4, 4, 0, 0, 0, 1, 0, 0, 0, 0, 3, 0, 0, 1, 4, 0], [3, 2, 0, 0, 0, 3, 0, 5, 0, 3, 0, 3, 4, 5, 0, 1, 3, 0, 4, 3, 4, 1, 0, 0, 2, 5], [2, 1, 0, 0, 3, 0, 0, 3, 2, 4, 4, 5, 0, 5, 1, 2, 3, 5, 0, 3, 5, 0, 2, 1, 0, 5], [0, 0, 0, 0, 0, 2, 0, 1, 0, 0, 4, 0, 4, 2, 2, 4, 0, 0, 0, 0, 4, 0, 2, 0, 2, 0], [0, 1, 3, 0, 0, 5, 1, 0, 5, 5, 3, 3, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 3], [0, 5, 4, 1, 0, 3, 1, 5, 3, 0, 1, 3, 0, 0, 0, 3, 2, 1, 5, 0, 3, 0, 0, 4, 4, 0], [5, 0, 5, 4, 0, 0, 0, 4, 4, 3, 0, 1, 2, 0, 1, 2, 1, 0, 1, 0, 1, 0, 1, 0, 3, 0], [0, 3, 1, 4, 3, 5, 4, 5, 3, 0, 2, 0, 0, 0, 1, 0, 0, 5, 1, 0, 0, 0, 0, 0, 0, 2], [0, 2, 5, 0, 4, 0, 0, 0, 4, 1, 2, 5, 3, 1, 0, 4, 3, 0, 5, 2, 0, 0, 1, 0, 5, 3], [4, 0, 0, 1, 1, 2, 3, 0, 1, 0, 5, 0, 2, 0, 0, 5, 5, 0, 5, 0, 0, 0, 0, 5, 3, 0], [5, 1, 2, 0, 0, 5, 2, 0, 0, 0, 0, 4, 0, 0, 3, 0, 0, 0, 0, 1, 3, 0, 0, 3, 0, 2], [4, 4, 0, 0, 0, 4, 5, 3, 0, 5, 4, 3, 3, 3, 1, 0, 0, 4, 0, 3, 2, 1, 0, 5, 4, 0], [5, 1, 5, 0, 3, 3, 4, 5, 2, 2, 0, 0, 3, 0, 2, 5, 3, 0, 0, 0, 0, 4, 2, 1, 0, 2], [0, 3, 2, 4, 0, 0, 1, 0, 0, 0, 0, 0, 3, 0, 3, 3, 0, 3, 0, 0, 0, 5, 0, 4, 1, 0], [3, 0, 0, 0, 0, 2, 5, 0, 0, 0, 3, 0, 5, 3, 0, 3, 0, 1, 0, 4, 1, 2, 1, 0, 2, 0], [2, 0, 4, 3, 2, 3, 5, 0, 1, 0, 2, 3, 5, 1, 3, 1, 1, 0, 2, 2, 1, 0, 4, 0, 2, 0], [5, 0, 2, 0, 0, 0, 4, 0, 0, 0, 5, 4, 1, 1, 5, 3, 0, 0, 0, 5, 1, 2, 1, 0, 0, 5], [0, 1, 0, 0, 4, 3, 1, 4, 0, 5, 0, 3, 0, 4, 0, 5, 0, 0, 5, 4, 0, 0, 3, 3, 3, 4], [3, 1, 2, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 4, 0, 0, 4, 5, 2, 1, 0, 0], [3, 0, 0, 4, 0, 4, 4, 0, 1, 1, 0, 4, 4, 1, 1, 0, 0, 5, 4, 5, 0, 3, 3, 5, 5, 1], [0, 4, 3, 2, 2, 0, 5, 3, 0, 5, 1, 5, 2, 1, 2, 0, 0, 0, 0, 5, 0, 4, 0, 2, 5, 0], [4, 0, 4, 4, 3, 3, 0, 2, 0, 0, 5, 0, 4, 0, 0, 1, 0, 1, 0, 0, 5, 4, 0, 0, 0, 1], [0, 2, 0, 0, 1, 0, 0, 5, 0, 0, 5, 0, 0, 2, 0, 4, 0, 0, 0, 0, 1, 5, 5, 1, 1, 1], [4, 0, 1, 4, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 4, 0, 0, 4, 0, 5, 4, 1, 4], [0, 0, 5, 0, 0, 0, 0, 4, 2, 1, 5, 5, 0, 3, 0, 5, 0, 0, 0, 0, 2, 0, 0, 0, 1, 0], [1, 5, 0, 0, 1, 1, 2, 4, 0, 4, 3, 0, 1, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 5, 0, 0], [0, 2, 5, 2, 0, 2, 4, 3, 0, 1, 0, 4, 0, 0, 2, 0, 2, 0, 1, 3, 3, 1, 1, 0, 3, 1], [2, 5, 0, 0, 3, 1, 0, 2, 3, 3, 0, 0, 0, 0, 1, 0, 0, 0, 5, 3, 0, 0, 0, 1, 0, 0], [1, 0, 2, 5, 0, 2, 0, 0, 0, 0, 3, 0, 3, 0, 1, 5, 4, 2, 5, 0, 0, 0, 0, 3, 0, 0], [2, 2, 0, 0, 0, 0, 5, 0, 4, 4, 2, 5, 0, 3, 3, 0, 2, 5, 0, 2, 4, 2, 2, 0, 0, 0], [0, 0, 0, 0, 4, 2, 0, 0, 4, 0, 0, 2, 5, 1, 5, 0, 0, 3, 0, 0, 4, 0, 4, 5, 4, 0], [2, 0, 0, 5, 0, 1, 0, 4, 0, 1, 0, 0, 1, 0, 2, 2, 0, 4, 0, 3, 0, 5, 0, 0, 0, 0], [0, 4, 0, 2, 3, 0, 4, 3, 3, 4, 1, 2, 2, 3, 0, 0, 3, 0, 0, 0, 0, 0, 0, 2, 3, 1], [0, 4, 3, 5, 0, 5, 0, 3, 4, 0, 5, 1, 0, 1, 0, 0, 0, 0, 1, 5, 5, 0, 0, 0, 0, 5], [4, 0, 0, 3, 0, 0, 4, 0, 3, 0, 0, 0, 3, 1, 0, 0, 0, 4, 0, 3, 1, 0, 0, 0, 0, 1], [0, 0, 5, 0, 5, 5, 0, 0, 4, 0, 5, 4, 3, 0, 3, 1, 0, 2, 5, 0, 0, 0, 0, 4, 0, 0], [0, 0, 0, 4, 0, 2, 1, 1, 2, 3, 0, 0, 1, 4, 0, 0, 4, 0, 0, 0, 0, 0, 5, 0, 0, 5], [3, 0, 5, 0, 0, 1, 3, 5, 5, 0, 0, 0, 4, 2, 0, 3, 5, 0, 1, 1, 0, 4, 0, 3, 3, 3], [1, 4, 2, 4, 4, 4, 4, 0, 1, 0, 0, 0, 2, 0, 5, 0, 1, 2, 0, 5, 0, 3, 5, 1, 0, 0], [2, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 4, 4, 4, 1, 1, 0, 0, 2, 2, 4, 1, 3, 1], [5, 0, 0, 0, 0, 5, 0, 0, 1, 0, 0, 5, 0, 2, 0, 1, 1, 0, 0, 3, 0, 5, 0, 0, 0, 0], [0, 0, 0, 4, 4, 0, 3, 1, 0, 2, 4, 1, 0, 0, 5, 0, 0, 1, 1, 0, 0, 3, 0, 0, 0, 0], [0, 0, 3, 0, 4, 1, 0, 2, 4, 0, 2, 0, 5, 2, 0, 5, 0, 5, 0, 2, 5, 2, 0, 0, 5, 0], [0, 0, 0, 2, 0, 2, 0, 0, 5, 3, 4, 5, 0, 0, 3, 0, 0, 0, 3, 3, 0, 2, 2, 0, 2, 0], [0, 0, 0, 5, 3, 3, 1, 3, 0, 0, 3, 0, 0, 1, 0, 5, 3, 2, 4, 0, 3, 5, 5, 3, 4, 0], [4, 0, 2, 2, 2, 0, 0, 3, 3, 4, 3, 0, 0, 4, 3, 3, 0, 0, 4, 4, 0, 2, 3, 2, 0, 1]], "rhs": [696, 625, 526, 632, 539, 321, 703, 658, 600, 707, 514, 619, 434, 548, 723, 903, 693, 709, 910, 453, 553, 726, 646, 629, 832, 628, 451, 869, 763, 484, 595, 703, 692, 774, 534, 909, 783, 736, 477, 540, 636, 385, 628, 352, 555, 740, 642, 516, 563, 833, 486, 731, 426, 798, 659, 541, 474, 435, 952, 595, 856, 734], "family": "rlve_integer_linear_system", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-integer-linear-system-l6-s8/solution/solve.sh b/tasks/construct-rlve-integer-linear-system-l6-s8/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..8e34fde9c941b6ce7fe8570122103598e15ef4b5 --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l6-s8/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"x": [13, 2, 22, 22, 18, 18, 14, 9, 25, 14, 20, 16, 9, 15, 4, 26, 7, 23, 6, 22, 23, 17, 4, 9, 25, 14]} +RLMATH_EOF diff --git a/tasks/construct-rlve-integer-linear-system-l6-s8/tests/check.py b/tasks/construct-rlve-integer-linear-system-l6-s8/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..ff19002b3fddc9597f84ee31ef5ffbee5d3fac32 --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l6-s8/tests/check.py @@ -0,0 +1,10 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n = len(inst["coeffs"][0]) + x = int_list(ans.get("x"), n, name="x") + for k, (e, r) in enumerate(zip(inst["coeffs"], inst["rhs"])): + if sum(c * v for c, v in zip(e, x)) != r: + raise Invalid(f"equation {k} is violated") + return None, {} diff --git a/tasks/construct-rlve-integer-linear-system-l6-s8/tests/instance.json b/tasks/construct-rlve-integer-linear-system-l6-s8/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..04c904d657e61ee3aca4b535515b6ba63f6f26f2 --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l6-s8/tests/instance.json @@ -0,0 +1 @@ +{"coeffs": [[0, 2, 0, 0, 0, 2, 1, 0, 0, 0, 5, 0, 0, 5, 0, 5, 1, 3, 4, 0, 0, 4, 4, 0, 5, 2], [2, 5, 4, 0, 3, 4, 0, 0, 4, 3, 0, 0, 0, 2, 0, 0, 3, 0, 4, 0, 5, 0, 0, 2, 1, 0], [0, 4, 0, 0, 5, 5, 0, 0, 0, 0, 0, 5, 2, 0, 0, 0, 1, 0, 5, 2, 3, 2, 5, 4, 0, 0], [5, 3, 0, 0, 1, 1, 5, 4, 0, 1, 0, 0, 3, 0, 1, 0, 0, 2, 5, 5, 0, 0, 2, 3, 5, 2], [0, 1, 0, 0, 0, 0, 2, 1, 0, 3, 5, 0, 3, 4, 1, 0, 4, 0, 0, 1, 4, 3, 0, 2, 0, 4], [0, 5, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 4, 0, 0, 0, 5, 5, 0, 0, 3, 0, 0, 1, 0, 0], [2, 0, 5, 4, 0, 0, 1, 0, 4, 2, 0, 0, 0, 2, 2, 0, 0, 3, 1, 0, 5, 0, 0, 1, 4, 0], [2, 0, 0, 0, 0, 0, 1, 1, 0, 3, 0, 0, 0, 1, 0, 5, 0, 3, 0, 4, 3, 0, 3, 5, 5, 1], [2, 0, 1, 0, 3, 3, 4, 3, 4, 0, 4, 1, 4, 3, 5, 0, 0, 0, 0, 0, 1, 0, 4, 0, 1, 0], [4, 0, 3, 4, 4, 3, 0, 0, 3, 0, 3, 0, 0, 0, 2, 5, 3, 0, 4, 0, 0, 1, 1, 4, 0, 0], [0, 1, 0, 5, 0, 2, 1, 0, 0, 0, 0, 0, 2, 5, 0, 0, 0, 0, 0, 0, 0, 3, 4, 4, 4, 4], [0, 0, 0, 3, 4, 5, 0, 0, 0, 3, 0, 0, 4, 4, 0, 2, 0, 0, 3, 0, 1, 4, 0, 4, 0, 4], [0, 1, 0, 0, 0, 2, 5, 5, 1, 0, 0, 1, 2, 0, 2, 1, 0, 3, 0, 2, 0, 0, 0, 0, 3, 0], [3, 0, 0, 0, 0, 0, 4, 2, 5, 5, 0, 5, 0, 4, 4, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 5], [5, 3, 3, 3, 5, 5, 0, 2, 1, 0, 3, 5, 4, 1, 4, 0, 1, 0, 0, 0, 0, 2, 1, 5, 0, 0], [0, 1, 1, 3, 3, 0, 1, 0, 4, 5, 5, 2, 4, 3, 0, 5, 1, 5, 3, 1, 0, 1, 2, 5, 0, 0], [5, 0, 5, 0, 4, 0, 0, 5, 1, 2, 4, 4, 0, 0, 0, 1, 0, 0, 0, 0, 3, 0, 0, 1, 4, 0], [3, 2, 0, 0, 0, 3, 0, 5, 0, 3, 0, 3, 4, 5, 0, 1, 3, 0, 4, 3, 4, 1, 0, 0, 2, 5], [2, 1, 0, 0, 3, 0, 0, 3, 2, 4, 4, 5, 0, 5, 1, 2, 3, 5, 0, 3, 5, 0, 2, 1, 0, 5], [0, 0, 0, 0, 0, 2, 0, 1, 0, 0, 4, 0, 4, 2, 2, 4, 0, 0, 0, 0, 4, 0, 2, 0, 2, 0], [0, 1, 3, 0, 0, 5, 1, 0, 5, 5, 3, 3, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 3], [0, 5, 4, 1, 0, 3, 1, 5, 3, 0, 1, 3, 0, 0, 0, 3, 2, 1, 5, 0, 3, 0, 0, 4, 4, 0], [5, 0, 5, 4, 0, 0, 0, 4, 4, 3, 0, 1, 2, 0, 1, 2, 1, 0, 1, 0, 1, 0, 1, 0, 3, 0], [0, 3, 1, 4, 3, 5, 4, 5, 3, 0, 2, 0, 0, 0, 1, 0, 0, 5, 1, 0, 0, 0, 0, 0, 0, 2], [0, 2, 5, 0, 4, 0, 0, 0, 4, 1, 2, 5, 3, 1, 0, 4, 3, 0, 5, 2, 0, 0, 1, 0, 5, 3], [4, 0, 0, 1, 1, 2, 3, 0, 1, 0, 5, 0, 2, 0, 0, 5, 5, 0, 5, 0, 0, 0, 0, 5, 3, 0], [5, 1, 2, 0, 0, 5, 2, 0, 0, 0, 0, 4, 0, 0, 3, 0, 0, 0, 0, 1, 3, 0, 0, 3, 0, 2], [4, 4, 0, 0, 0, 4, 5, 3, 0, 5, 4, 3, 3, 3, 1, 0, 0, 4, 0, 3, 2, 1, 0, 5, 4, 0], [5, 1, 5, 0, 3, 3, 4, 5, 2, 2, 0, 0, 3, 0, 2, 5, 3, 0, 0, 0, 0, 4, 2, 1, 0, 2], [0, 3, 2, 4, 0, 0, 1, 0, 0, 0, 0, 0, 3, 0, 3, 3, 0, 3, 0, 0, 0, 5, 0, 4, 1, 0], [3, 0, 0, 0, 0, 2, 5, 0, 0, 0, 3, 0, 5, 3, 0, 3, 0, 1, 0, 4, 1, 2, 1, 0, 2, 0], [2, 0, 4, 3, 2, 3, 5, 0, 1, 0, 2, 3, 5, 1, 3, 1, 1, 0, 2, 2, 1, 0, 4, 0, 2, 0], [5, 0, 2, 0, 0, 0, 4, 0, 0, 0, 5, 4, 1, 1, 5, 3, 0, 0, 0, 5, 1, 2, 1, 0, 0, 5], [0, 1, 0, 0, 4, 3, 1, 4, 0, 5, 0, 3, 0, 4, 0, 5, 0, 0, 5, 4, 0, 0, 3, 3, 3, 4], [3, 1, 2, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 4, 0, 0, 4, 5, 2, 1, 0, 0], [3, 0, 0, 4, 0, 4, 4, 0, 1, 1, 0, 4, 4, 1, 1, 0, 0, 5, 4, 5, 0, 3, 3, 5, 5, 1], [0, 4, 3, 2, 2, 0, 5, 3, 0, 5, 1, 5, 2, 1, 2, 0, 0, 0, 0, 5, 0, 4, 0, 2, 5, 0], [4, 0, 4, 4, 3, 3, 0, 2, 0, 0, 5, 0, 4, 0, 0, 1, 0, 1, 0, 0, 5, 4, 0, 0, 0, 1], [0, 2, 0, 0, 1, 0, 0, 5, 0, 0, 5, 0, 0, 2, 0, 4, 0, 0, 0, 0, 1, 5, 5, 1, 1, 1], [4, 0, 1, 4, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 4, 0, 0, 4, 0, 5, 4, 1, 4], [0, 0, 5, 0, 0, 0, 0, 4, 2, 1, 5, 5, 0, 3, 0, 5, 0, 0, 0, 0, 2, 0, 0, 0, 1, 0], [1, 5, 0, 0, 1, 1, 2, 4, 0, 4, 3, 0, 1, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 5, 0, 0], [0, 2, 5, 2, 0, 2, 4, 3, 0, 1, 0, 4, 0, 0, 2, 0, 2, 0, 1, 3, 3, 1, 1, 0, 3, 1], [2, 5, 0, 0, 3, 1, 0, 2, 3, 3, 0, 0, 0, 0, 1, 0, 0, 0, 5, 3, 0, 0, 0, 1, 0, 0], [1, 0, 2, 5, 0, 2, 0, 0, 0, 0, 3, 0, 3, 0, 1, 5, 4, 2, 5, 0, 0, 0, 0, 3, 0, 0], [2, 2, 0, 0, 0, 0, 5, 0, 4, 4, 2, 5, 0, 3, 3, 0, 2, 5, 0, 2, 4, 2, 2, 0, 0, 0], [0, 0, 0, 0, 4, 2, 0, 0, 4, 0, 0, 2, 5, 1, 5, 0, 0, 3, 0, 0, 4, 0, 4, 5, 4, 0], [2, 0, 0, 5, 0, 1, 0, 4, 0, 1, 0, 0, 1, 0, 2, 2, 0, 4, 0, 3, 0, 5, 0, 0, 0, 0], [0, 4, 0, 2, 3, 0, 4, 3, 3, 4, 1, 2, 2, 3, 0, 0, 3, 0, 0, 0, 0, 0, 0, 2, 3, 1], [0, 4, 3, 5, 0, 5, 0, 3, 4, 0, 5, 1, 0, 1, 0, 0, 0, 0, 1, 5, 5, 0, 0, 0, 0, 5], [4, 0, 0, 3, 0, 0, 4, 0, 3, 0, 0, 0, 3, 1, 0, 0, 0, 4, 0, 3, 1, 0, 0, 0, 0, 1], [0, 0, 5, 0, 5, 5, 0, 0, 4, 0, 5, 4, 3, 0, 3, 1, 0, 2, 5, 0, 0, 0, 0, 4, 0, 0], [0, 0, 0, 4, 0, 2, 1, 1, 2, 3, 0, 0, 1, 4, 0, 0, 4, 0, 0, 0, 0, 0, 5, 0, 0, 5], [3, 0, 5, 0, 0, 1, 3, 5, 5, 0, 0, 0, 4, 2, 0, 3, 5, 0, 1, 1, 0, 4, 0, 3, 3, 3], [1, 4, 2, 4, 4, 4, 4, 0, 1, 0, 0, 0, 2, 0, 5, 0, 1, 2, 0, 5, 0, 3, 5, 1, 0, 0], [2, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 4, 4, 4, 1, 1, 0, 0, 2, 2, 4, 1, 3, 1], [5, 0, 0, 0, 0, 5, 0, 0, 1, 0, 0, 5, 0, 2, 0, 1, 1, 0, 0, 3, 0, 5, 0, 0, 0, 0], [0, 0, 0, 4, 4, 0, 3, 1, 0, 2, 4, 1, 0, 0, 5, 0, 0, 1, 1, 0, 0, 3, 0, 0, 0, 0], [0, 0, 3, 0, 4, 1, 0, 2, 4, 0, 2, 0, 5, 2, 0, 5, 0, 5, 0, 2, 5, 2, 0, 0, 5, 0], [0, 0, 0, 2, 0, 2, 0, 0, 5, 3, 4, 5, 0, 0, 3, 0, 0, 0, 3, 3, 0, 2, 2, 0, 2, 0], [0, 0, 0, 5, 3, 3, 1, 3, 0, 0, 3, 0, 0, 1, 0, 5, 3, 2, 4, 0, 3, 5, 5, 3, 4, 0], [4, 0, 2, 2, 2, 0, 0, 3, 3, 4, 3, 0, 0, 4, 3, 3, 0, 0, 4, 4, 0, 2, 3, 2, 0, 1]], "rhs": [696, 625, 526, 632, 539, 321, 703, 658, 600, 707, 514, 619, 434, 548, 723, 903, 693, 709, 910, 453, 553, 726, 646, 629, 832, 628, 451, 869, 763, 484, 595, 703, 692, 774, 534, 909, 783, 736, 477, 540, 636, 385, 628, 352, 555, 740, 642, 516, 563, 833, 486, 731, 426, 798, 659, 541, 474, 435, 952, 595, 856, 734], "family": "rlve_integer_linear_system", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-integer-linear-system-l6-s8/tests/run.py b/tasks/construct-rlve-integer-linear-system-l6-s8/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l6-s8/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-integer-linear-system-l6-s8/tests/test.sh b/tasks/construct-rlve-integer-linear-system-l6-s8/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-integer-linear-system-l6-s8/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-largest-convex-polygon-l1-s0/environment/Dockerfile b/tasks/construct-rlve-largest-convex-polygon-l1-s0/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-largest-convex-polygon-l1-s0/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-largest-convex-polygon-l1-s0/environment/instance.json b/tasks/construct-rlve-largest-convex-polygon-l1-s0/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..8412cbafa31826fabbc766e5e9987b304d88b2ac --- /dev/null +++ b/tasks/construct-rlve-largest-convex-polygon-l1-s0/environment/instance.json @@ -0,0 +1 @@ +{"points": [[4, 4], [6, 2], [3, 1], [3, 3], [1, 6], [6, 3]], "k": 5, "family": "rlve_largest_convex_polygon", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-largest-convex-polygon-l1-s0/solution/solve.sh b/tasks/construct-rlve-largest-convex-polygon-l1-s0/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..1cc936cdb05557282f56051932a326b1c4e88540 --- /dev/null +++ b/tasks/construct-rlve-largest-convex-polygon-l1-s0/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"indices": [2, 3, 0, 5, 1]} +RLMATH_EOF diff --git a/tasks/construct-rlve-largest-convex-polygon-l1-s0/tests/check.py b/tasks/construct-rlve-largest-convex-polygon-l1-s0/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..3a09cc858f41ce5745e4e491188cd42360c65dae --- /dev/null +++ b/tasks/construct-rlve-largest-convex-polygon-l1-s0/tests/check.py @@ -0,0 +1,27 @@ +from run import Invalid, int_list + + +def _cross(o, a, b): + return (a[0] - o[0]) * (b[1] - o[1]) - (a[1] - o[1]) * (b[0] - o[0]) + + +def check(inst, ans): + P, k = inst["points"], inst["k"] + idx = int_list(ans.get("indices"), None, 0, len(P) - 1, "indices") + if len(set(idx)) != len(idx): + raise Invalid("indices must be distinct") + if len(idx) < k: + raise Invalid(f"{len(idx)} points given, need {k}") + pts = sorted(tuple(P[i]) for i in idx) + lower, upper = [], [] + for p in pts: # monotone chain, strict (collinear points dropped) + while len(lower) >= 2 and _cross(lower[-2], lower[-1], p) <= 0: + lower.pop() + lower.append(p) + for p in reversed(pts): + while len(upper) >= 2 and _cross(upper[-2], upper[-1], p) <= 0: + upper.pop() + upper.append(p) + if len(lower) + len(upper) - 2 != len(pts): + raise Invalid("the chosen points are not in convex position") + return None, {} diff --git a/tasks/construct-rlve-largest-convex-polygon-l1-s0/tests/instance.json b/tasks/construct-rlve-largest-convex-polygon-l1-s0/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..8412cbafa31826fabbc766e5e9987b304d88b2ac --- /dev/null +++ b/tasks/construct-rlve-largest-convex-polygon-l1-s0/tests/instance.json @@ -0,0 +1 @@ +{"points": [[4, 4], [6, 2], [3, 1], [3, 3], [1, 6], [6, 3]], "k": 5, "family": "rlve_largest_convex_polygon", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-largest-convex-polygon-l1-s0/tests/run.py b/tasks/construct-rlve-largest-convex-polygon-l1-s0/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-largest-convex-polygon-l1-s0/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-largest-convex-polygon-l1-s0/tests/test.sh b/tasks/construct-rlve-largest-convex-polygon-l1-s0/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-largest-convex-polygon-l1-s0/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-largest-convex-polygon-l1-s7/environment/Dockerfile b/tasks/construct-rlve-largest-convex-polygon-l1-s7/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-largest-convex-polygon-l1-s7/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-largest-convex-polygon-l1-s7/environment/instance.json b/tasks/construct-rlve-largest-convex-polygon-l1-s7/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..b3bd2803c7f85a47e9b345f9a0e1ccec4865c4b1 --- /dev/null +++ b/tasks/construct-rlve-largest-convex-polygon-l1-s7/environment/instance.json @@ -0,0 +1 @@ +{"points": [[2, 4], [6, 4], [2, 6], [0, 5], [1, 0], [5, 2]], "k": 5, "family": "rlve_largest_convex_polygon", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-largest-convex-polygon-l1-s7/solution/solve.sh b/tasks/construct-rlve-largest-convex-polygon-l1-s7/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..4cc4287c67ec7f5cb16de19a20eb91f773ef0512 --- /dev/null +++ b/tasks/construct-rlve-largest-convex-polygon-l1-s7/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"indices": [3, 2, 1, 5, 4]} +RLMATH_EOF diff --git a/tasks/construct-rlve-largest-convex-polygon-l1-s7/tests/check.py b/tasks/construct-rlve-largest-convex-polygon-l1-s7/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..3a09cc858f41ce5745e4e491188cd42360c65dae --- /dev/null +++ b/tasks/construct-rlve-largest-convex-polygon-l1-s7/tests/check.py @@ -0,0 +1,27 @@ +from run import Invalid, int_list + + +def _cross(o, a, b): + return (a[0] - o[0]) * (b[1] - o[1]) - (a[1] - o[1]) * (b[0] - o[0]) + + +def check(inst, ans): + P, k = inst["points"], inst["k"] + idx = int_list(ans.get("indices"), None, 0, len(P) - 1, "indices") + if len(set(idx)) != len(idx): + raise Invalid("indices must be distinct") + if len(idx) < k: + raise Invalid(f"{len(idx)} points given, need {k}") + pts = sorted(tuple(P[i]) for i in idx) + lower, upper = [], [] + for p in pts: # monotone chain, strict (collinear points dropped) + while len(lower) >= 2 and _cross(lower[-2], lower[-1], p) <= 0: + lower.pop() + lower.append(p) + for p in reversed(pts): + while len(upper) >= 2 and _cross(upper[-2], upper[-1], p) <= 0: + upper.pop() + upper.append(p) + if len(lower) + len(upper) - 2 != len(pts): + raise Invalid("the chosen points are not in convex position") + return None, {} diff --git a/tasks/construct-rlve-largest-convex-polygon-l1-s7/tests/instance.json b/tasks/construct-rlve-largest-convex-polygon-l1-s7/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..b3bd2803c7f85a47e9b345f9a0e1ccec4865c4b1 --- /dev/null +++ b/tasks/construct-rlve-largest-convex-polygon-l1-s7/tests/instance.json @@ -0,0 +1 @@ +{"points": [[2, 4], [6, 4], [2, 6], [0, 5], [1, 0], [5, 2]], "k": 5, "family": "rlve_largest_convex_polygon", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-largest-convex-polygon-l1-s7/tests/run.py b/tasks/construct-rlve-largest-convex-polygon-l1-s7/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-largest-convex-polygon-l1-s7/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-largest-convex-polygon-l1-s7/tests/test.sh b/tasks/construct-rlve-largest-convex-polygon-l1-s7/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-largest-convex-polygon-l1-s7/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-largest-convex-polygon-l4-s1/environment/Dockerfile b/tasks/construct-rlve-largest-convex-polygon-l4-s1/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-largest-convex-polygon-l4-s1/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-largest-convex-polygon-l4-s1/environment/instance.json b/tasks/construct-rlve-largest-convex-polygon-l4-s1/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..84df3e20cb3e3f4927c8aaba82e681de54c1a4f9 --- /dev/null +++ b/tasks/construct-rlve-largest-convex-polygon-l4-s1/environment/instance.json @@ -0,0 +1 @@ +{"points": [[15, 12], [8, 7], [9, 12], [12, 13], [18, 13], [15, 1], [4, 15], [13, 3], [5, 10], [2, 5], [13, 6], [18, 2], [2, 2], [8, 6], [16, 8], [16, 14], [6, 3], [7, 14]], "k": 10, "family": "rlve_largest_convex_polygon", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-largest-convex-polygon-l4-s1/solution/solve.sh b/tasks/construct-rlve-largest-convex-polygon-l4-s1/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..451f9bab8c675511697857ce6dadf522a8f596af --- /dev/null +++ b/tasks/construct-rlve-largest-convex-polygon-l4-s1/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"indices": [12, 9, 8, 2, 3, 15, 4, 14, 10, 16]} +RLMATH_EOF diff --git a/tasks/construct-rlve-largest-convex-polygon-l4-s1/tests/check.py b/tasks/construct-rlve-largest-convex-polygon-l4-s1/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..3a09cc858f41ce5745e4e491188cd42360c65dae --- /dev/null +++ b/tasks/construct-rlve-largest-convex-polygon-l4-s1/tests/check.py @@ -0,0 +1,27 @@ +from run import Invalid, int_list + + +def _cross(o, a, b): + return (a[0] - o[0]) * (b[1] - o[1]) - (a[1] - o[1]) * (b[0] - o[0]) + + +def check(inst, ans): + P, k = inst["points"], inst["k"] + idx = int_list(ans.get("indices"), None, 0, len(P) - 1, "indices") + if len(set(idx)) != len(idx): + raise Invalid("indices must be distinct") + if len(idx) < k: + raise Invalid(f"{len(idx)} points given, need {k}") + pts = sorted(tuple(P[i]) for i in idx) + lower, upper = [], [] + for p in pts: # monotone chain, strict (collinear points dropped) + while len(lower) >= 2 and _cross(lower[-2], lower[-1], p) <= 0: + lower.pop() + lower.append(p) + for p in reversed(pts): + while len(upper) >= 2 and _cross(upper[-2], upper[-1], p) <= 0: + upper.pop() + upper.append(p) + if len(lower) + len(upper) - 2 != len(pts): + raise Invalid("the chosen points are not in convex position") + return None, {} diff --git a/tasks/construct-rlve-largest-convex-polygon-l4-s1/tests/instance.json b/tasks/construct-rlve-largest-convex-polygon-l4-s1/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..84df3e20cb3e3f4927c8aaba82e681de54c1a4f9 --- /dev/null +++ b/tasks/construct-rlve-largest-convex-polygon-l4-s1/tests/instance.json @@ -0,0 +1 @@ +{"points": [[15, 12], [8, 7], [9, 12], [12, 13], [18, 13], [15, 1], [4, 15], [13, 3], [5, 10], [2, 5], [13, 6], [18, 2], [2, 2], [8, 6], [16, 8], [16, 14], [6, 3], [7, 14]], "k": 10, "family": "rlve_largest_convex_polygon", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-largest-convex-polygon-l4-s1/tests/run.py b/tasks/construct-rlve-largest-convex-polygon-l4-s1/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-largest-convex-polygon-l4-s1/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-largest-convex-polygon-l4-s1/tests/test.sh b/tasks/construct-rlve-largest-convex-polygon-l4-s1/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-largest-convex-polygon-l4-s1/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-largest-rectangle-l3-s0/environment/Dockerfile b/tasks/construct-rlve-largest-rectangle-l3-s0/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-largest-rectangle-l3-s0/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-largest-rectangle-l3-s0/environment/instance.json b/tasks/construct-rlve-largest-rectangle-l3-s0/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..b3dd59df0f98ab23608858d7fb4db3f0e185b86b --- /dev/null +++ b/tasks/construct-rlve-largest-rectangle-l3-s0/environment/instance.json @@ -0,0 +1 @@ +{"points": [[6, -7], [11, -16], [13, 0], [-3, -5], [13, -14], [20, -7], [0, -15], [14, -7], [3, 13], [-7, 12], [-5, 11], [-8, 1], [-2, 0], [15, 9], [0, 16], [-7, 8]], "area": 98, "family": "rlve_largest_rectangle", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-largest-rectangle-l3-s0/solution/solve.sh b/tasks/construct-rlve-largest-rectangle-l3-s0/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..fd28d7886db97b51cd5b2dedc509ced98881db22 --- /dev/null +++ b/tasks/construct-rlve-largest-rectangle-l3-s0/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"indices": [0, 2, 5, 4]} +RLMATH_EOF diff --git a/tasks/construct-rlve-largest-rectangle-l3-s0/tests/check.py b/tasks/construct-rlve-largest-rectangle-l3-s0/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..2251b2af23a481e598fa1e48d0a8249f70b6cc44 --- /dev/null +++ b/tasks/construct-rlve-largest-rectangle-l3-s0/tests/check.py @@ -0,0 +1,24 @@ +from run import Invalid, int_list + + +def check(inst, ans): + P = inst["points"] + idx = int_list(ans.get("indices"), 4, 0, len(P) - 1, "indices") + if len(set(idx)) != 4: + raise Invalid("indices must be distinct") + A, *rest = [tuple(P[i]) for i in idx] + if len(set([A] + rest)) != 4: + raise Invalid("points must be distinct") + # the vertex farthest from A is opposite; the other two are A's neighbours + rest.sort(key=lambda X: (X[0] - A[0]) ** 2 + (X[1] - A[1]) ** 2) + B, D, C = rest + u = (B[0] - A[0], B[1] - A[1]) + v = (D[0] - A[0], D[1] - A[1]) + if u[0] * v[0] + u[1] * v[1] != 0: + raise Invalid("not a rectangle (no right angle at the first vertex)") + if (B[0] + D[0] - A[0], B[1] + D[1] - A[1]) != C: + raise Invalid("not a rectangle") + area = abs(u[0] * v[1] - u[1] * v[0]) + if area < inst["area"]: + raise Invalid(f"area {area} < {inst['area']}") + return None, {"area": area} diff --git a/tasks/construct-rlve-largest-rectangle-l3-s0/tests/instance.json b/tasks/construct-rlve-largest-rectangle-l3-s0/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..b3dd59df0f98ab23608858d7fb4db3f0e185b86b --- /dev/null +++ b/tasks/construct-rlve-largest-rectangle-l3-s0/tests/instance.json @@ -0,0 +1 @@ +{"points": [[6, -7], [11, -16], [13, 0], [-3, -5], [13, -14], [20, -7], [0, -15], [14, -7], [3, 13], [-7, 12], [-5, 11], [-8, 1], [-2, 0], [15, 9], [0, 16], [-7, 8]], "area": 98, "family": "rlve_largest_rectangle", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-largest-rectangle-l3-s0/tests/run.py b/tasks/construct-rlve-largest-rectangle-l3-s0/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-largest-rectangle-l3-s0/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-largest-rectangle-l3-s0/tests/test.sh b/tasks/construct-rlve-largest-rectangle-l3-s0/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-largest-rectangle-l3-s0/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-largest-rectangle-l3-s7/environment/Dockerfile b/tasks/construct-rlve-largest-rectangle-l3-s7/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-largest-rectangle-l3-s7/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-largest-rectangle-l3-s7/environment/instance.json b/tasks/construct-rlve-largest-rectangle-l3-s7/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..fa36965fd53f49d1e3ac8c240328de2bc1c6cc16 --- /dev/null +++ b/tasks/construct-rlve-largest-rectangle-l3-s7/environment/instance.json @@ -0,0 +1 @@ +{"points": [[0, -5], [-5, -10], [13, -9], [-16, 9], [-8, -4], [-3, 12], [-3, -6], [-10, -9], [-8, 2], [-5, -11], [8, 2], [-11, 13], [1, -7], [-12, -1], [4, 9], [7, -7]], "area": 29, "family": "rlve_largest_rectangle", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-largest-rectangle-l3-s7/solution/solve.sh b/tasks/construct-rlve-largest-rectangle-l3-s7/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..6b372dc1b534325b495f9efef9ff880d1242842b --- /dev/null +++ b/tasks/construct-rlve-largest-rectangle-l3-s7/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"indices": [4, 6, 9, 7]} +RLMATH_EOF diff --git a/tasks/construct-rlve-largest-rectangle-l3-s7/tests/check.py b/tasks/construct-rlve-largest-rectangle-l3-s7/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..2251b2af23a481e598fa1e48d0a8249f70b6cc44 --- /dev/null +++ b/tasks/construct-rlve-largest-rectangle-l3-s7/tests/check.py @@ -0,0 +1,24 @@ +from run import Invalid, int_list + + +def check(inst, ans): + P = inst["points"] + idx = int_list(ans.get("indices"), 4, 0, len(P) - 1, "indices") + if len(set(idx)) != 4: + raise Invalid("indices must be distinct") + A, *rest = [tuple(P[i]) for i in idx] + if len(set([A] + rest)) != 4: + raise Invalid("points must be distinct") + # the vertex farthest from A is opposite; the other two are A's neighbours + rest.sort(key=lambda X: (X[0] - A[0]) ** 2 + (X[1] - A[1]) ** 2) + B, D, C = rest + u = (B[0] - A[0], B[1] - A[1]) + v = (D[0] - A[0], D[1] - A[1]) + if u[0] * v[0] + u[1] * v[1] != 0: + raise Invalid("not a rectangle (no right angle at the first vertex)") + if (B[0] + D[0] - A[0], B[1] + D[1] - A[1]) != C: + raise Invalid("not a rectangle") + area = abs(u[0] * v[1] - u[1] * v[0]) + if area < inst["area"]: + raise Invalid(f"area {area} < {inst['area']}") + return None, {"area": area} diff --git a/tasks/construct-rlve-largest-rectangle-l3-s7/tests/instance.json b/tasks/construct-rlve-largest-rectangle-l3-s7/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..fa36965fd53f49d1e3ac8c240328de2bc1c6cc16 --- /dev/null +++ b/tasks/construct-rlve-largest-rectangle-l3-s7/tests/instance.json @@ -0,0 +1 @@ +{"points": [[0, -5], [-5, -10], [13, -9], [-16, 9], [-8, -4], [-3, 12], [-3, -6], [-10, -9], [-8, 2], [-5, -11], [8, 2], [-11, 13], [1, -7], [-12, -1], [4, 9], [7, -7]], "area": 29, "family": "rlve_largest_rectangle", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-largest-rectangle-l3-s7/tests/run.py b/tasks/construct-rlve-largest-rectangle-l3-s7/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-largest-rectangle-l3-s7/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-largest-rectangle-l3-s7/tests/test.sh b/tasks/construct-rlve-largest-rectangle-l3-s7/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-largest-rectangle-l3-s7/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-largest-rectangle-l6-s1/environment/Dockerfile b/tasks/construct-rlve-largest-rectangle-l6-s1/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-largest-rectangle-l6-s1/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-largest-rectangle-l6-s1/environment/instance.json b/tasks/construct-rlve-largest-rectangle-l6-s1/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..3c31f86e7689d597fc43352ddfba6e18225dea7f --- /dev/null +++ b/tasks/construct-rlve-largest-rectangle-l6-s1/environment/instance.json @@ -0,0 +1 @@ +{"points": [[57, -24], [9, 32], [55, -11], [-38, -1], [-22, 8], [34, 54], [-41, 55], [15, 15], [39, 57], [28, -42], [7, 48], [6, 36], [-23, -3], [21, 49], [33, -33], [41, -53], [-10, 20], [16, 49], [33, 42], [-26, -51], [-24, 0], [-4, -13], [-48, 47], [44, 18], [49, -3], [-14, 45], [30, -30], [-22, -31], [-34, -45], [-55, -31], [-34, -19], [30, 2], [-20, 50], [19, -49], [-38, -31], [10, 59], [32, 22], [47, 9], [-55, 42], [38, -55], [-54, -37], [29, -6], [32, 39], [44, -15], [15, -9], [-3, -15], [-19, -1], [26, 25], [13, -6], [-6, 58], [44, -24], [49, 5], [13, -5], [-11, -15], [-11, -7], [-51, -3], [11, -14], [-16, 30], [5, -46], [30, -2]], "area": 338, "family": "rlve_largest_rectangle", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-largest-rectangle-l6-s1/solution/solve.sh b/tasks/construct-rlve-largest-rectangle-l6-s1/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..e5fbb0ca2ff34bb8d509eedc9b9031e5e7b00a22 --- /dev/null +++ b/tasks/construct-rlve-largest-rectangle-l6-s1/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"indices": [1, 17, 18, 47]} +RLMATH_EOF diff --git a/tasks/construct-rlve-largest-rectangle-l6-s1/tests/check.py b/tasks/construct-rlve-largest-rectangle-l6-s1/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..2251b2af23a481e598fa1e48d0a8249f70b6cc44 --- /dev/null +++ b/tasks/construct-rlve-largest-rectangle-l6-s1/tests/check.py @@ -0,0 +1,24 @@ +from run import Invalid, int_list + + +def check(inst, ans): + P = inst["points"] + idx = int_list(ans.get("indices"), 4, 0, len(P) - 1, "indices") + if len(set(idx)) != 4: + raise Invalid("indices must be distinct") + A, *rest = [tuple(P[i]) for i in idx] + if len(set([A] + rest)) != 4: + raise Invalid("points must be distinct") + # the vertex farthest from A is opposite; the other two are A's neighbours + rest.sort(key=lambda X: (X[0] - A[0]) ** 2 + (X[1] - A[1]) ** 2) + B, D, C = rest + u = (B[0] - A[0], B[1] - A[1]) + v = (D[0] - A[0], D[1] - A[1]) + if u[0] * v[0] + u[1] * v[1] != 0: + raise Invalid("not a rectangle (no right angle at the first vertex)") + if (B[0] + D[0] - A[0], B[1] + D[1] - A[1]) != C: + raise Invalid("not a rectangle") + area = abs(u[0] * v[1] - u[1] * v[0]) + if area < inst["area"]: + raise Invalid(f"area {area} < {inst['area']}") + return None, {"area": area} diff --git a/tasks/construct-rlve-largest-rectangle-l6-s1/tests/instance.json b/tasks/construct-rlve-largest-rectangle-l6-s1/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..3c31f86e7689d597fc43352ddfba6e18225dea7f --- /dev/null +++ b/tasks/construct-rlve-largest-rectangle-l6-s1/tests/instance.json @@ -0,0 +1 @@ +{"points": [[57, -24], [9, 32], [55, -11], [-38, -1], [-22, 8], [34, 54], [-41, 55], [15, 15], [39, 57], [28, -42], [7, 48], [6, 36], [-23, -3], [21, 49], [33, -33], [41, -53], [-10, 20], [16, 49], [33, 42], [-26, -51], [-24, 0], [-4, -13], [-48, 47], [44, 18], [49, -3], [-14, 45], [30, -30], [-22, -31], [-34, -45], [-55, -31], [-34, -19], [30, 2], [-20, 50], [19, -49], [-38, -31], [10, 59], [32, 22], [47, 9], [-55, 42], [38, -55], [-54, -37], [29, -6], [32, 39], [44, -15], [15, -9], [-3, -15], [-19, -1], [26, 25], [13, -6], [-6, 58], [44, -24], [49, 5], [13, -5], [-11, -15], [-11, -7], [-51, -3], [11, -14], [-16, 30], [5, -46], [30, -2]], "area": 338, "family": "rlve_largest_rectangle", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-largest-rectangle-l6-s1/tests/run.py b/tasks/construct-rlve-largest-rectangle-l6-s1/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-largest-rectangle-l6-s1/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-largest-rectangle-l6-s1/tests/test.sh b/tasks/construct-rlve-largest-rectangle-l6-s1/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-largest-rectangle-l6-s1/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-matrix-permutation-equivalence-l4-s2/environment/Dockerfile b/tasks/construct-rlve-matrix-permutation-equivalence-l4-s2/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-matrix-permutation-equivalence-l4-s2/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-matrix-permutation-equivalence-l4-s2/environment/instance.json b/tasks/construct-rlve-matrix-permutation-equivalence-l4-s2/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..eeae488d69d486ca5b607d341520265014609125 --- /dev/null +++ b/tasks/construct-rlve-matrix-permutation-equivalence-l4-s2/environment/instance.json @@ -0,0 +1 @@ +{"A": ["011", "111", "110", "100", "110", "101", "110", "111", "010"], "B": ["110", "101", "010", "110", "111", "110", "011", "100", "111"], "family": "rlve_matrix_permutation_equivalence", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-matrix-permutation-equivalence-l4-s2/solution/solve.sh b/tasks/construct-rlve-matrix-permutation-equivalence-l4-s2/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..a46918f14523ad4b25bbdfdb8893e42dde606a24 --- /dev/null +++ b/tasks/construct-rlve-matrix-permutation-equivalence-l4-s2/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"a": [2, 5, 8, 4, 1, 6, 0, 3, 7], "b": [0, 1, 2]} +RLMATH_EOF diff --git a/tasks/construct-rlve-matrix-permutation-equivalence-l4-s2/tests/check.py b/tasks/construct-rlve-matrix-permutation-equivalence-l4-s2/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..310a1d2c8b6afd7a82a35ba2a4c802c1ce289d03 --- /dev/null +++ b/tasks/construct-rlve-matrix-permutation-equivalence-l4-s2/tests/check.py @@ -0,0 +1,15 @@ +from run import Invalid, int_list + + +def check(inst, ans): + A, B = inst["A"], inst["B"] + N, M = len(A), len(A[0]) + a = int_list(ans.get("a"), N, 0, N - 1, "a") + b = int_list(ans.get("b"), M, 0, M - 1, "b") + if len(set(a)) != N or len(set(b)) != M: + raise Invalid("a and b must be permutations") + for i in range(N): + for j in range(M): + if A[a[i]][b[j]] != B[i][j]: + raise Invalid(f"mismatch at ({i}, {j})") + return None, {} diff --git a/tasks/construct-rlve-matrix-permutation-equivalence-l4-s2/tests/instance.json b/tasks/construct-rlve-matrix-permutation-equivalence-l4-s2/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..eeae488d69d486ca5b607d341520265014609125 --- /dev/null +++ b/tasks/construct-rlve-matrix-permutation-equivalence-l4-s2/tests/instance.json @@ -0,0 +1 @@ +{"A": ["011", "111", "110", "100", "110", "101", "110", "111", "010"], "B": ["110", "101", "010", "110", "111", "110", "011", "100", "111"], "family": "rlve_matrix_permutation_equivalence", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-matrix-permutation-equivalence-l4-s2/tests/run.py b/tasks/construct-rlve-matrix-permutation-equivalence-l4-s2/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-matrix-permutation-equivalence-l4-s2/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-matrix-permutation-equivalence-l4-s2/tests/test.sh b/tasks/construct-rlve-matrix-permutation-equivalence-l4-s2/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-matrix-permutation-equivalence-l4-s2/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-matrix-permutation-equivalence-l4-s5/environment/Dockerfile b/tasks/construct-rlve-matrix-permutation-equivalence-l4-s5/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-matrix-permutation-equivalence-l4-s5/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-matrix-permutation-equivalence-l4-s5/environment/instance.json b/tasks/construct-rlve-matrix-permutation-equivalence-l4-s5/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..00955e911a33ad329054fe13c7d80d1c89963716 --- /dev/null +++ b/tasks/construct-rlve-matrix-permutation-equivalence-l4-s5/environment/instance.json @@ -0,0 +1 @@ +{"A": ["101100000", "101110010", "000111001", "110100011", "011111001", "111011101", "111011001", "110111110", "010101110", "101011101"], "B": ["111000011", "001010110", "110111110", "101111011", "101100101", "110011110", "011110110", "110110110", "111000000", "001111001"], "family": "rlve_matrix_permutation_equivalence", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-matrix-permutation-equivalence-l4-s5/solution/solve.sh b/tasks/construct-rlve-matrix-permutation-equivalence-l4-s5/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..8274c305666f62dd13123e39487e433201214c16 --- /dev/null +++ b/tasks/construct-rlve-matrix-permutation-equivalence-l4-s5/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"a": [1, 2, 5, 7, 3, 9, 4, 6, 0, 8], "b": [0, 2, 3, 1, 5, 6, 8, 4, 7]} +RLMATH_EOF diff --git a/tasks/construct-rlve-matrix-permutation-equivalence-l4-s5/tests/check.py b/tasks/construct-rlve-matrix-permutation-equivalence-l4-s5/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..310a1d2c8b6afd7a82a35ba2a4c802c1ce289d03 --- /dev/null +++ b/tasks/construct-rlve-matrix-permutation-equivalence-l4-s5/tests/check.py @@ -0,0 +1,15 @@ +from run import Invalid, int_list + + +def check(inst, ans): + A, B = inst["A"], inst["B"] + N, M = len(A), len(A[0]) + a = int_list(ans.get("a"), N, 0, N - 1, "a") + b = int_list(ans.get("b"), M, 0, M - 1, "b") + if len(set(a)) != N or len(set(b)) != M: + raise Invalid("a and b must be permutations") + for i in range(N): + for j in range(M): + if A[a[i]][b[j]] != B[i][j]: + raise Invalid(f"mismatch at ({i}, {j})") + return None, {} diff --git a/tasks/construct-rlve-matrix-permutation-equivalence-l4-s5/tests/instance.json b/tasks/construct-rlve-matrix-permutation-equivalence-l4-s5/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..00955e911a33ad329054fe13c7d80d1c89963716 --- /dev/null +++ b/tasks/construct-rlve-matrix-permutation-equivalence-l4-s5/tests/instance.json @@ -0,0 +1 @@ +{"A": ["101100000", "101110010", "000111001", "110100011", "011111001", "111011101", "111011001", "110111110", "010101110", "101011101"], "B": ["111000011", "001010110", "110111110", "101111011", "101100101", "110011110", "011110110", "110110110", "111000000", "001111001"], "family": "rlve_matrix_permutation_equivalence", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-matrix-permutation-equivalence-l4-s5/tests/run.py b/tasks/construct-rlve-matrix-permutation-equivalence-l4-s5/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-matrix-permutation-equivalence-l4-s5/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-matrix-permutation-equivalence-l4-s5/tests/test.sh b/tasks/construct-rlve-matrix-permutation-equivalence-l4-s5/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-matrix-permutation-equivalence-l4-s5/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-max-achromatic-coloring-l1-s6/environment/Dockerfile b/tasks/construct-rlve-max-achromatic-coloring-l1-s6/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-max-achromatic-coloring-l1-s6/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-max-achromatic-coloring-l1-s6/environment/instance.json b/tasks/construct-rlve-max-achromatic-coloring-l1-s6/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..2e12df3b129f4bea00620ce7c2811dae3a202538 --- /dev/null +++ b/tasks/construct-rlve-max-achromatic-coloring-l1-s6/environment/instance.json @@ -0,0 +1 @@ +{"n": 6, "k": 3, "edges": [[1, 4], [2, 3], [2, 5], [3, 5]], "family": "rlve_max_achromatic_coloring", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-max-achromatic-coloring-l1-s6/solution/solve.sh b/tasks/construct-rlve-max-achromatic-coloring-l1-s6/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..6a171bad59214cf5771f115c0c7eff29e994f16e --- /dev/null +++ b/tasks/construct-rlve-max-achromatic-coloring-l1-s6/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"colors": [0, 0, 0, 1, 1, 2]} +RLMATH_EOF diff --git a/tasks/construct-rlve-max-achromatic-coloring-l1-s6/tests/check.py b/tasks/construct-rlve-max-achromatic-coloring-l1-s6/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..bb676a518264e5db4fb0964e27ccffccf6980807 --- /dev/null +++ b/tasks/construct-rlve-max-achromatic-coloring-l1-s6/tests/check.py @@ -0,0 +1,16 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["n"], inst["k"] + c = int_list(ans.get("colors"), n, 0, k - 1, "colors") + if len(set(c)) != k: + raise Invalid(f"uses {len(set(c))} colours, need all {k}") + pairs = set() + for u, v in inst["edges"]: + if c[u] == c[v]: + raise Invalid(f"edge ({u},{v}) is monochromatic") + pairs.add((min(c[u], c[v]), max(c[u], c[v]))) + if len(pairs) != k * (k - 1) // 2: + raise Invalid("some pair of colours is not joined by an edge") + return None, {} diff --git a/tasks/construct-rlve-max-achromatic-coloring-l1-s6/tests/instance.json b/tasks/construct-rlve-max-achromatic-coloring-l1-s6/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..2e12df3b129f4bea00620ce7c2811dae3a202538 --- /dev/null +++ b/tasks/construct-rlve-max-achromatic-coloring-l1-s6/tests/instance.json @@ -0,0 +1 @@ +{"n": 6, "k": 3, "edges": [[1, 4], [2, 3], [2, 5], [3, 5]], "family": "rlve_max_achromatic_coloring", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-max-achromatic-coloring-l1-s6/tests/run.py b/tasks/construct-rlve-max-achromatic-coloring-l1-s6/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-max-achromatic-coloring-l1-s6/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-max-achromatic-coloring-l1-s6/tests/test.sh b/tasks/construct-rlve-max-achromatic-coloring-l1-s6/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-max-achromatic-coloring-l1-s6/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-max-achromatic-coloring-l4-s0/environment/Dockerfile b/tasks/construct-rlve-max-achromatic-coloring-l4-s0/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-max-achromatic-coloring-l4-s0/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-max-achromatic-coloring-l4-s0/environment/instance.json b/tasks/construct-rlve-max-achromatic-coloring-l4-s0/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..2373f3601ea43c2759a38d767cd6b87761f06703 --- /dev/null +++ b/tasks/construct-rlve-max-achromatic-coloring-l4-s0/environment/instance.json @@ -0,0 +1 @@ +{"n": 12, "k": 8, "edges": [[0, 1], [0, 2], [0, 3], [0, 5], [0, 7], [0, 8], [0, 9], [0, 11], [1, 3], [1, 4], [1, 5], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [2, 4], [2, 5], [2, 6], [2, 9], [2, 11], [3, 5], [3, 6], [3, 7], [3, 8], [3, 9], [4, 5], [4, 8], [4, 11], [5, 6], [5, 7], [5, 8], [5, 9], [6, 7], [6, 9], [6, 10], [7, 8], [7, 9], [7, 10], [8, 9], [8, 11], [9, 10]], "family": "rlve_max_achromatic_coloring", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-max-achromatic-coloring-l4-s0/solution/solve.sh b/tasks/construct-rlve-max-achromatic-coloring-l4-s0/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..597a68a54c6abcdc3ac7d916b55c49db167df517 --- /dev/null +++ b/tasks/construct-rlve-max-achromatic-coloring-l4-s0/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"colors": [0, 1, 1, 2, 0, 3, 4, 5, 6, 7, 0, 4]} +RLMATH_EOF diff --git a/tasks/construct-rlve-max-achromatic-coloring-l4-s0/tests/check.py b/tasks/construct-rlve-max-achromatic-coloring-l4-s0/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..bb676a518264e5db4fb0964e27ccffccf6980807 --- /dev/null +++ b/tasks/construct-rlve-max-achromatic-coloring-l4-s0/tests/check.py @@ -0,0 +1,16 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["n"], inst["k"] + c = int_list(ans.get("colors"), n, 0, k - 1, "colors") + if len(set(c)) != k: + raise Invalid(f"uses {len(set(c))} colours, need all {k}") + pairs = set() + for u, v in inst["edges"]: + if c[u] == c[v]: + raise Invalid(f"edge ({u},{v}) is monochromatic") + pairs.add((min(c[u], c[v]), max(c[u], c[v]))) + if len(pairs) != k * (k - 1) // 2: + raise Invalid("some pair of colours is not joined by an edge") + return None, {} diff --git a/tasks/construct-rlve-max-achromatic-coloring-l4-s0/tests/instance.json b/tasks/construct-rlve-max-achromatic-coloring-l4-s0/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..2373f3601ea43c2759a38d767cd6b87761f06703 --- /dev/null +++ b/tasks/construct-rlve-max-achromatic-coloring-l4-s0/tests/instance.json @@ -0,0 +1 @@ +{"n": 12, "k": 8, "edges": [[0, 1], [0, 2], [0, 3], [0, 5], [0, 7], [0, 8], [0, 9], [0, 11], [1, 3], [1, 4], [1, 5], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [2, 4], [2, 5], [2, 6], [2, 9], [2, 11], [3, 5], [3, 6], [3, 7], [3, 8], [3, 9], [4, 5], [4, 8], [4, 11], [5, 6], [5, 7], [5, 8], [5, 9], [6, 7], [6, 9], [6, 10], [7, 8], [7, 9], [7, 10], [8, 9], [8, 11], [9, 10]], "family": "rlve_max_achromatic_coloring", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-max-achromatic-coloring-l4-s0/tests/run.py b/tasks/construct-rlve-max-achromatic-coloring-l4-s0/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-max-achromatic-coloring-l4-s0/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-max-achromatic-coloring-l4-s0/tests/test.sh b/tasks/construct-rlve-max-achromatic-coloring-l4-s0/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-max-achromatic-coloring-l4-s0/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-maximum-clique-l3-s2/environment/Dockerfile b/tasks/construct-rlve-maximum-clique-l3-s2/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-maximum-clique-l3-s2/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-maximum-clique-l3-s2/environment/instance.json b/tasks/construct-rlve-maximum-clique-l3-s2/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..37021d6360160aed1d5850280853442ab6bb3c4a --- /dev/null +++ b/tasks/construct-rlve-maximum-clique-l3-s2/environment/instance.json @@ -0,0 +1 @@ +{"n": 22, "k": 11, "edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 7], [0, 8], [0, 9], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 18], [0, 19], [0, 20], [0, 21], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 17], [1, 19], [1, 20], [1, 21], [2, 3], [2, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 14], [2, 15], [2, 16], [2, 18], [2, 19], [2, 20], [2, 21], [3, 4], [3, 5], [3, 6], [3, 7], [3, 10], [3, 11], [3, 13], [3, 14], [3, 15], [3, 16], [3, 17], [3, 18], [3, 19], [3, 20], [3, 21], [4, 5], [4, 6], [4, 7], [4, 8], [4, 9], [4, 10], [4, 11], [4, 12], [4, 13], [4, 14], [4, 15], [4, 17], [4, 18], [4, 20], [4, 21], [5, 6], [5, 8], [5, 10], [5, 11], [5, 12], [5, 13], [5, 14], [5, 15], [5, 16], [5, 17], [5, 18], [5, 20], [5, 21], [6, 7], [6, 8], [6, 9], [6, 10], [6, 11], [6, 12], [6, 14], [6, 15], [6, 16], [6, 17], [6, 18], [6, 19], [7, 8], [7, 9], [7, 10], [7, 11], [7, 13], [7, 14], [7, 15], [7, 16], [7, 17], [7, 18], [7, 19], [7, 20], [7, 21], [8, 9], [8, 10], [8, 11], [8, 12], [8, 13], [8, 14], [8, 16], [8, 17], [8, 18], [8, 19], [8, 20], [8, 21], [9, 10], [9, 12], [9, 15], [9, 16], [9, 17], [9, 19], [9, 20], [10, 11], [10, 12], [10, 13], [10, 14], [10, 16], [10, 17], [10, 18], [10, 19], [10, 20], [11, 12], [11, 13], [11, 14], [11, 15], [11, 16], [11, 17], [11, 18], [11, 19], [11, 20], [11, 21], [12, 14], [12, 16], [12, 18], [12, 19], [12, 20], [12, 21], [13, 14], [13, 15], [13, 16], [13, 17], [13, 18], [13, 19], [13, 20], [13, 21], [14, 15], [14, 16], [14, 17], [14, 18], [14, 19], [14, 20], [14, 21], [15, 16], [15, 17], [15, 18], [16, 17], [16, 18], [16, 19], [16, 20], [16, 21], [17, 18], [17, 19], [17, 20], [17, 21], [18, 20], [18, 21], [19, 20], [19, 21], [20, 21]], "family": "rlve_maximum_clique", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-maximum-clique-l3-s2/solution/solve.sh b/tasks/construct-rlve-maximum-clique-l3-s2/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..0abed6511114327dd7fbebf66129437bd497d740 --- /dev/null +++ b/tasks/construct-rlve-maximum-clique-l3-s2/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"clique": [0, 1, 2, 4, 5, 8, 11, 12, 14, 20, 21]} +RLMATH_EOF diff --git a/tasks/construct-rlve-maximum-clique-l3-s2/tests/check.py b/tasks/construct-rlve-maximum-clique-l3-s2/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..95e00c78f7c986ba3aecbdc8af3cf8ed221abd05 --- /dev/null +++ b/tasks/construct-rlve-maximum-clique-l3-s2/tests/check.py @@ -0,0 +1,16 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["n"], inst["k"] + c = int_list(ans.get("clique"), None, 0, n - 1, "clique") + if len(set(c)) != len(c): + raise Invalid("vertices must be distinct") + if len(c) < k: + raise Invalid(f"clique has {len(c)} vertices, need {k}") + es = {(min(u, v), max(u, v)) for u, v in inst["edges"]} + for i in range(len(c)): + for j in range(i + 1, len(c)): + if (min(c[i], c[j]), max(c[i], c[j])) not in es: + raise Invalid(f"{c[i]} and {c[j]} are not adjacent") + return None, {} diff --git a/tasks/construct-rlve-maximum-clique-l3-s2/tests/instance.json b/tasks/construct-rlve-maximum-clique-l3-s2/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..37021d6360160aed1d5850280853442ab6bb3c4a --- /dev/null +++ b/tasks/construct-rlve-maximum-clique-l3-s2/tests/instance.json @@ -0,0 +1 @@ +{"n": 22, "k": 11, "edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 7], [0, 8], [0, 9], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 18], [0, 19], [0, 20], [0, 21], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 17], [1, 19], [1, 20], [1, 21], [2, 3], [2, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 14], [2, 15], [2, 16], [2, 18], [2, 19], [2, 20], [2, 21], [3, 4], [3, 5], [3, 6], [3, 7], [3, 10], [3, 11], [3, 13], [3, 14], [3, 15], [3, 16], [3, 17], [3, 18], [3, 19], [3, 20], [3, 21], [4, 5], [4, 6], [4, 7], [4, 8], [4, 9], [4, 10], [4, 11], [4, 12], [4, 13], [4, 14], [4, 15], [4, 17], [4, 18], [4, 20], [4, 21], [5, 6], [5, 8], [5, 10], [5, 11], [5, 12], [5, 13], [5, 14], [5, 15], [5, 16], [5, 17], [5, 18], [5, 20], [5, 21], [6, 7], [6, 8], [6, 9], [6, 10], [6, 11], [6, 12], [6, 14], [6, 15], [6, 16], [6, 17], [6, 18], [6, 19], [7, 8], [7, 9], [7, 10], [7, 11], [7, 13], [7, 14], [7, 15], [7, 16], [7, 17], [7, 18], [7, 19], [7, 20], [7, 21], [8, 9], [8, 10], [8, 11], [8, 12], [8, 13], [8, 14], [8, 16], [8, 17], [8, 18], [8, 19], [8, 20], [8, 21], [9, 10], [9, 12], [9, 15], [9, 16], [9, 17], [9, 19], [9, 20], [10, 11], [10, 12], [10, 13], [10, 14], [10, 16], [10, 17], [10, 18], [10, 19], [10, 20], [11, 12], [11, 13], [11, 14], [11, 15], [11, 16], [11, 17], [11, 18], [11, 19], [11, 20], [11, 21], [12, 14], [12, 16], [12, 18], [12, 19], [12, 20], [12, 21], [13, 14], [13, 15], [13, 16], [13, 17], [13, 18], [13, 19], [13, 20], [13, 21], [14, 15], [14, 16], [14, 17], [14, 18], [14, 19], [14, 20], [14, 21], [15, 16], [15, 17], [15, 18], [16, 17], [16, 18], [16, 19], [16, 20], [16, 21], [17, 18], [17, 19], [17, 20], [17, 21], [18, 20], [18, 21], [19, 20], [19, 21], [20, 21]], "family": "rlve_maximum_clique", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-maximum-clique-l3-s2/tests/run.py b/tasks/construct-rlve-maximum-clique-l3-s2/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-maximum-clique-l3-s2/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-maximum-clique-l3-s2/tests/test.sh b/tasks/construct-rlve-maximum-clique-l3-s2/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-maximum-clique-l3-s2/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-maximum-clique-l3-s5/environment/Dockerfile b/tasks/construct-rlve-maximum-clique-l3-s5/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-maximum-clique-l3-s5/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-maximum-clique-l3-s5/environment/instance.json b/tasks/construct-rlve-maximum-clique-l3-s5/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..66adc389f7f1bb367710447c2c43f5b5bdf48c6a --- /dev/null +++ b/tasks/construct-rlve-maximum-clique-l3-s5/environment/instance.json @@ -0,0 +1 @@ +{"n": 22, "k": 5, "edges": [[0, 4], [0, 6], [0, 8], [0, 9], [0, 11], [0, 15], [0, 16], [0, 20], [1, 4], [1, 11], [1, 12], [1, 14], [1, 15], [1, 16], [1, 19], [2, 3], [2, 4], [2, 5], [2, 6], [2, 7], [2, 10], [2, 17], [3, 4], [3, 5], [3, 6], [3, 8], [3, 11], [3, 12], [3, 13], [3, 14], [3, 19], [3, 21], [4, 6], [4, 8], [4, 9], [4, 10], [4, 13], [4, 16], [4, 17], [4, 18], [4, 19], [4, 21], [5, 8], [5, 9], [5, 12], [5, 13], [5, 14], [5, 16], [5, 20], [6, 8], [6, 10], [6, 11], [6, 12], [6, 14], [6, 16], [6, 17], [6, 18], [6, 19], [6, 20], [6, 21], [7, 10], [7, 15], [7, 16], [7, 17], [7, 18], [7, 20], [7, 21], [8, 14], [8, 16], [8, 17], [8, 18], [9, 10], [9, 11], [9, 13], [9, 14], [9, 16], [9, 18], [10, 11], [10, 15], [10, 16], [10, 19], [10, 20], [10, 21], [11, 12], [11, 19], [11, 21], [12, 14], [12, 15], [12, 17], [12, 18], [12, 21], [13, 20], [13, 21], [14, 15], [14, 18], [14, 19], [15, 19], [16, 18], [16, 19], [17, 18], [19, 20], [19, 21], [20, 21]], "family": "rlve_maximum_clique", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-maximum-clique-l3-s5/solution/solve.sh b/tasks/construct-rlve-maximum-clique-l3-s5/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..569536f59ae7f170e277e6d6b3442fc7c8ee5cea --- /dev/null +++ b/tasks/construct-rlve-maximum-clique-l3-s5/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"clique": [0, 4, 6, 8, 16]} +RLMATH_EOF diff --git a/tasks/construct-rlve-maximum-clique-l3-s5/tests/check.py b/tasks/construct-rlve-maximum-clique-l3-s5/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..95e00c78f7c986ba3aecbdc8af3cf8ed221abd05 --- /dev/null +++ b/tasks/construct-rlve-maximum-clique-l3-s5/tests/check.py @@ -0,0 +1,16 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["n"], inst["k"] + c = int_list(ans.get("clique"), None, 0, n - 1, "clique") + if len(set(c)) != len(c): + raise Invalid("vertices must be distinct") + if len(c) < k: + raise Invalid(f"clique has {len(c)} vertices, need {k}") + es = {(min(u, v), max(u, v)) for u, v in inst["edges"]} + for i in range(len(c)): + for j in range(i + 1, len(c)): + if (min(c[i], c[j]), max(c[i], c[j])) not in es: + raise Invalid(f"{c[i]} and {c[j]} are not adjacent") + return None, {} diff --git a/tasks/construct-rlve-maximum-clique-l3-s5/tests/instance.json b/tasks/construct-rlve-maximum-clique-l3-s5/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..66adc389f7f1bb367710447c2c43f5b5bdf48c6a --- /dev/null +++ b/tasks/construct-rlve-maximum-clique-l3-s5/tests/instance.json @@ -0,0 +1 @@ +{"n": 22, "k": 5, "edges": [[0, 4], [0, 6], [0, 8], [0, 9], [0, 11], [0, 15], [0, 16], [0, 20], [1, 4], [1, 11], [1, 12], [1, 14], [1, 15], [1, 16], [1, 19], [2, 3], [2, 4], [2, 5], [2, 6], [2, 7], [2, 10], [2, 17], [3, 4], [3, 5], [3, 6], [3, 8], [3, 11], [3, 12], [3, 13], [3, 14], [3, 19], [3, 21], [4, 6], [4, 8], [4, 9], [4, 10], [4, 13], [4, 16], [4, 17], [4, 18], [4, 19], [4, 21], [5, 8], [5, 9], [5, 12], [5, 13], [5, 14], [5, 16], [5, 20], [6, 8], [6, 10], [6, 11], [6, 12], [6, 14], [6, 16], [6, 17], [6, 18], [6, 19], [6, 20], [6, 21], [7, 10], [7, 15], [7, 16], [7, 17], [7, 18], [7, 20], [7, 21], [8, 14], [8, 16], [8, 17], [8, 18], [9, 10], [9, 11], [9, 13], [9, 14], [9, 16], [9, 18], [10, 11], [10, 15], [10, 16], [10, 19], [10, 20], [10, 21], [11, 12], [11, 19], [11, 21], [12, 14], [12, 15], [12, 17], [12, 18], [12, 21], [13, 20], [13, 21], [14, 15], [14, 18], [14, 19], [15, 19], [16, 18], [16, 19], [17, 18], [19, 20], [19, 21], [20, 21]], "family": "rlve_maximum_clique", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-maximum-clique-l3-s5/tests/run.py b/tasks/construct-rlve-maximum-clique-l3-s5/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-maximum-clique-l3-s5/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-maximum-clique-l3-s5/tests/test.sh b/tasks/construct-rlve-maximum-clique-l3-s5/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-maximum-clique-l3-s5/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-min-chromatic-number-l4-s0/environment/Dockerfile b/tasks/construct-rlve-min-chromatic-number-l4-s0/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-min-chromatic-number-l4-s0/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-min-chromatic-number-l4-s0/environment/instance.json b/tasks/construct-rlve-min-chromatic-number-l4-s0/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..2b50242fea2da83280c4926b4102f1b207d306ad --- /dev/null +++ b/tasks/construct-rlve-min-chromatic-number-l4-s0/environment/instance.json @@ -0,0 +1 @@ +{"n": 18, "k": 4, "edges": [[0, 1], [0, 3], [0, 5], [0, 6], [0, 8], [0, 10], [0, 11], [0, 12], [0, 16], [1, 3], [1, 4], [1, 6], [1, 7], [1, 11], [1, 12], [1, 13], [1, 16], [1, 17], [2, 3], [2, 6], [2, 9], [2, 12], [2, 17], [3, 4], [3, 7], [3, 13], [3, 14], [3, 15], [4, 6], [4, 9], [4, 13], [5, 10], [5, 13], [5, 14], [5, 15], [5, 16], [6, 7], [6, 8], [6, 9], [6, 13], [6, 15], [6, 17], [7, 10], [9, 10], [9, 11], [9, 13], [9, 14], [9, 17], [10, 17], [11, 17], [12, 14], [13, 15], [15, 17]], "family": "rlve_min_chromatic_number", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-min-chromatic-number-l4-s0/solution/solve.sh b/tasks/construct-rlve-min-chromatic-number-l4-s0/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..2252ece5939597862d6168b75cc246d570d56901 --- /dev/null +++ b/tasks/construct-rlve-min-chromatic-number-l4-s0/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"colors": [0, 1, 0, 2, 0, 1, 2, 0, 1, 1, 2, 2, 2, 3, 0, 0, 2, 3]} +RLMATH_EOF diff --git a/tasks/construct-rlve-min-chromatic-number-l4-s0/tests/instance.json b/tasks/construct-rlve-min-chromatic-number-l4-s0/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..2b50242fea2da83280c4926b4102f1b207d306ad --- /dev/null +++ b/tasks/construct-rlve-min-chromatic-number-l4-s0/tests/instance.json @@ -0,0 +1 @@ +{"n": 18, "k": 4, "edges": [[0, 1], [0, 3], [0, 5], [0, 6], [0, 8], [0, 10], [0, 11], [0, 12], [0, 16], [1, 3], [1, 4], [1, 6], [1, 7], [1, 11], [1, 12], [1, 13], [1, 16], [1, 17], [2, 3], [2, 6], [2, 9], [2, 12], [2, 17], [3, 4], [3, 7], [3, 13], [3, 14], [3, 15], [4, 6], [4, 9], [4, 13], [5, 10], [5, 13], [5, 14], [5, 15], [5, 16], [6, 7], [6, 8], [6, 9], [6, 13], [6, 15], [6, 17], [7, 10], [9, 10], [9, 11], [9, 13], [9, 14], [9, 17], [10, 17], [11, 17], [12, 14], [13, 15], [15, 17]], "family": "rlve_min_chromatic_number", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-min-chromatic-number-l4-s0/tests/test.sh b/tasks/construct-rlve-min-chromatic-number-l4-s0/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-min-chromatic-number-l4-s0/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-min-chromatic-number-l5-s9/environment/Dockerfile b/tasks/construct-rlve-min-chromatic-number-l5-s9/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-min-chromatic-number-l5-s9/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-min-chromatic-number-l5-s9/environment/instance.json b/tasks/construct-rlve-min-chromatic-number-l5-s9/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..ea36c1cdc556f852389aacd5ad6f291b0346efe1 --- /dev/null +++ b/tasks/construct-rlve-min-chromatic-number-l5-s9/environment/instance.json @@ -0,0 +1 @@ +{"n": 24, "k": 6, "edges": [[0, 2], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 11], [0, 12], [0, 14], [0, 15], [0, 18], [0, 20], [0, 22], [1, 3], [1, 4], [1, 7], [1, 10], [1, 11], [1, 15], [1, 17], [1, 18], [1, 20], [2, 3], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 17], [2, 18], [2, 19], [2, 21], [3, 6], [3, 8], [3, 14], [3, 15], [3, 18], [3, 19], [3, 20], [3, 23], [4, 7], [4, 12], [4, 13], [4, 14], [4, 16], [4, 17], [4, 18], [4, 20], [4, 21], [4, 23], [5, 6], [5, 7], [5, 10], [5, 15], [5, 16], [5, 17], [5, 18], [5, 19], [5, 22], [6, 10], [6, 14], [6, 17], [6, 20], [6, 21], [6, 22], [6, 23], [7, 9], [7, 10], [7, 13], [7, 14], [7, 16], [7, 17], [7, 18], [7, 22], [8, 9], [8, 10], [8, 16], [8, 19], [9, 14], [9, 17], [9, 21], [9, 23], [10, 14], [10, 16], [10, 18], [10, 19], [11, 12], [11, 14], [11, 15], [11, 16], [11, 18], [11, 19], [11, 21], [12, 13], [12, 20], [12, 21], [13, 14], [13, 17], [13, 19], [13, 20], [13, 21], [13, 22], [14, 19], [14, 21], [14, 22], [15, 16], [15, 18], [15, 19], [15, 21], [15, 22], [16, 19], [16, 20], [17, 18], [17, 22], [17, 23], [18, 19], [18, 20], [18, 21], [18, 22], [19, 20], [19, 21], [19, 22], [20, 21], [22, 23]], "family": "rlve_min_chromatic_number", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-min-chromatic-number-l5-s9/solution/solve.sh b/tasks/construct-rlve-min-chromatic-number-l5-s9/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..5837fcb086dda1765c68d5f19ce50d24782139ee --- /dev/null +++ b/tasks/construct-rlve-min-chromatic-number-l5-s9/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"colors": [0, 0, 1, 2, 1, 1, 3, 2, 4, 3, 5, 5, 4, 3, 4, 4, 3, 4, 3, 0, 5, 2, 5, 0]} +RLMATH_EOF diff --git a/tasks/construct-rlve-min-chromatic-number-l5-s9/tests/check.py b/tasks/construct-rlve-min-chromatic-number-l5-s9/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..d2b77793fb15e0d97174b3c28e69a86e2a26996f --- /dev/null +++ b/tasks/construct-rlve-min-chromatic-number-l5-s9/tests/check.py @@ -0,0 +1,10 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["n"], inst["k"] + c = int_list(ans.get("colors"), n, 0, k - 1, "colors") + for u, v in inst["edges"]: + if c[u] == c[v]: + raise Invalid(f"edge ({u},{v}) is monochromatic") + return None, {} diff --git a/tasks/construct-rlve-min-chromatic-number-l5-s9/tests/instance.json b/tasks/construct-rlve-min-chromatic-number-l5-s9/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..ea36c1cdc556f852389aacd5ad6f291b0346efe1 --- /dev/null +++ b/tasks/construct-rlve-min-chromatic-number-l5-s9/tests/instance.json @@ -0,0 +1 @@ +{"n": 24, "k": 6, "edges": [[0, 2], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 11], [0, 12], [0, 14], [0, 15], [0, 18], [0, 20], [0, 22], [1, 3], [1, 4], [1, 7], [1, 10], [1, 11], [1, 15], [1, 17], [1, 18], [1, 20], [2, 3], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 17], [2, 18], [2, 19], [2, 21], [3, 6], [3, 8], [3, 14], [3, 15], [3, 18], [3, 19], [3, 20], [3, 23], [4, 7], [4, 12], [4, 13], [4, 14], [4, 16], [4, 17], [4, 18], [4, 20], [4, 21], [4, 23], [5, 6], [5, 7], [5, 10], [5, 15], [5, 16], [5, 17], [5, 18], [5, 19], [5, 22], [6, 10], [6, 14], [6, 17], [6, 20], [6, 21], [6, 22], [6, 23], [7, 9], [7, 10], [7, 13], [7, 14], [7, 16], [7, 17], [7, 18], [7, 22], [8, 9], [8, 10], [8, 16], [8, 19], [9, 14], [9, 17], [9, 21], [9, 23], [10, 14], [10, 16], [10, 18], [10, 19], [11, 12], [11, 14], [11, 15], [11, 16], [11, 18], [11, 19], [11, 21], [12, 13], [12, 20], [12, 21], [13, 14], [13, 17], [13, 19], [13, 20], [13, 21], [13, 22], [14, 19], [14, 21], [14, 22], [15, 16], [15, 18], [15, 19], [15, 21], [15, 22], [16, 19], [16, 20], [17, 18], [17, 22], [17, 23], [18, 19], [18, 20], [18, 21], [18, 22], [19, 20], [19, 21], [19, 22], [20, 21], [22, 23]], "family": "rlve_min_chromatic_number", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-min-chromatic-number-l5-s9/tests/run.py b/tasks/construct-rlve-min-chromatic-number-l5-s9/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-min-chromatic-number-l5-s9/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-min-chromatic-number-l5-s9/tests/test.sh b/tasks/construct-rlve-min-chromatic-number-l5-s9/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-min-chromatic-number-l5-s9/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-min-harmonious-coloring-l5-s3/environment/Dockerfile b/tasks/construct-rlve-min-harmonious-coloring-l5-s3/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-min-harmonious-coloring-l5-s3/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-min-harmonious-coloring-l5-s3/environment/instance.json b/tasks/construct-rlve-min-harmonious-coloring-l5-s3/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..58d8cf7cd9c42d3eaccffd1901b3b91df2af9e00 --- /dev/null +++ b/tasks/construct-rlve-min-harmonious-coloring-l5-s3/environment/instance.json @@ -0,0 +1 @@ +{"n": 15, "k": 10, "edges": [[0, 3], [0, 5], [0, 8], [0, 9], [0, 11], [0, 13], [0, 14], [1, 4], [1, 6], [1, 7], [1, 10], [1, 11], [2, 3], [2, 10], [3, 4], [3, 8], [4, 5], [4, 11], [4, 13], [5, 8], [6, 10], [6, 13], [7, 8], [7, 13], [7, 14], [8, 14], [9, 12], [10, 13], [11, 12], [12, 13], [12, 14]], "family": "rlve_min_harmonious_coloring", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-min-harmonious-coloring-l5-s3/solution/solve.sh b/tasks/construct-rlve-min-harmonious-coloring-l5-s3/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..20796fc55df77a3d7f04325dbc16054989ed8cdc --- /dev/null +++ b/tasks/construct-rlve-min-harmonious-coloring-l5-s3/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"colors": [0, 1, 2, 3, 4, 5, 3, 2, 6, 1, 5, 7, 8, 9, 4]} +RLMATH_EOF diff --git a/tasks/construct-rlve-min-harmonious-coloring-l5-s3/tests/check.py b/tasks/construct-rlve-min-harmonious-coloring-l5-s3/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..91282a31c765b6103e6575180adb47abddb6a506 --- /dev/null +++ b/tasks/construct-rlve-min-harmonious-coloring-l5-s3/tests/check.py @@ -0,0 +1,15 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["n"], inst["k"] + c = int_list(ans.get("colors"), n, 0, k - 1, "colors") + seen = set() + for u, v in inst["edges"]: + if c[u] == c[v]: + raise Invalid(f"edge ({u},{v}) is monochromatic") + pair = (min(c[u], c[v]), max(c[u], c[v])) + if pair in seen: + raise Invalid(f"colour pair {pair} appears on two edges") + seen.add(pair) + return None, {} diff --git a/tasks/construct-rlve-min-harmonious-coloring-l5-s3/tests/instance.json b/tasks/construct-rlve-min-harmonious-coloring-l5-s3/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..58d8cf7cd9c42d3eaccffd1901b3b91df2af9e00 --- /dev/null +++ b/tasks/construct-rlve-min-harmonious-coloring-l5-s3/tests/instance.json @@ -0,0 +1 @@ +{"n": 15, "k": 10, "edges": [[0, 3], [0, 5], [0, 8], [0, 9], [0, 11], [0, 13], [0, 14], [1, 4], [1, 6], [1, 7], [1, 10], [1, 11], [2, 3], [2, 10], [3, 4], [3, 8], [4, 5], [4, 11], [4, 13], [5, 8], [6, 10], [6, 13], [7, 8], [7, 13], [7, 14], [8, 14], [9, 12], [10, 13], [11, 12], [12, 13], [12, 14]], "family": "rlve_min_harmonious_coloring", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-min-harmonious-coloring-l5-s3/tests/run.py b/tasks/construct-rlve-min-harmonious-coloring-l5-s3/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-min-harmonious-coloring-l5-s3/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-min-harmonious-coloring-l5-s3/tests/test.sh b/tasks/construct-rlve-min-harmonious-coloring-l5-s3/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-min-harmonious-coloring-l5-s3/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-pairwise-sums-recovery-l2-s5/environment/Dockerfile b/tasks/construct-rlve-pairwise-sums-recovery-l2-s5/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-pairwise-sums-recovery-l2-s5/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-pairwise-sums-recovery-l2-s5/environment/instance.json b/tasks/construct-rlve-pairwise-sums-recovery-l2-s5/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..381b115bf2b79572f39a4af03e7be69359d40fc5 --- /dev/null +++ b/tasks/construct-rlve-pairwise-sums-recovery-l2-s5/environment/instance.json @@ -0,0 +1 @@ +{"n": 5, "sums": [12, 9, 15, 13, 10, 16, 19, 13, 16, 17], "family": "rlve_pairwise_sums_recovery", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-pairwise-sums-recovery-l2-s5/solution/solve.sh b/tasks/construct-rlve-pairwise-sums-recovery-l2-s5/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..517deac1e9a2fb2da0329f83070de00dc89497bb --- /dev/null +++ b/tasks/construct-rlve-pairwise-sums-recovery-l2-s5/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"numbers": [3, 6, 7, 9, 10]} +RLMATH_EOF diff --git a/tasks/construct-rlve-pairwise-sums-recovery-l2-s5/tests/check.py b/tasks/construct-rlve-pairwise-sums-recovery-l2-s5/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..01b5b475e927688c0209fb93478a95f6dd1d3407 --- /dev/null +++ b/tasks/construct-rlve-pairwise-sums-recovery-l2-s5/tests/check.py @@ -0,0 +1,14 @@ +from collections import Counter + +from run import Invalid, int_list + + +def check(inst, ans): + n = inst["n"] + x = int_list(ans.get("numbers"), n, 1, None, "numbers") + if len(set(x)) != n: + raise Invalid("numbers must be distinct") + got = Counter(x[i] + x[j] for i in range(n) for j in range(i + 1, n)) + if got != Counter(inst["sums"]): + raise Invalid("pairwise sums do not match") + return None, {} diff --git a/tasks/construct-rlve-pairwise-sums-recovery-l2-s5/tests/instance.json b/tasks/construct-rlve-pairwise-sums-recovery-l2-s5/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..381b115bf2b79572f39a4af03e7be69359d40fc5 --- /dev/null +++ b/tasks/construct-rlve-pairwise-sums-recovery-l2-s5/tests/instance.json @@ -0,0 +1 @@ +{"n": 5, "sums": [12, 9, 15, 13, 10, 16, 19, 13, 16, 17], "family": "rlve_pairwise_sums_recovery", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-pairwise-sums-recovery-l2-s5/tests/run.py b/tasks/construct-rlve-pairwise-sums-recovery-l2-s5/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-pairwise-sums-recovery-l2-s5/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-pairwise-sums-recovery-l2-s5/tests/test.sh b/tasks/construct-rlve-pairwise-sums-recovery-l2-s5/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-pairwise-sums-recovery-l2-s5/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-pan-solar-panels-l2-s9/environment/Dockerfile b/tasks/construct-rlve-pan-solar-panels-l2-s9/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-pan-solar-panels-l2-s9/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-pan-solar-panels-l2-s9/environment/instance.json b/tasks/construct-rlve-pan-solar-panels-l2-s9/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..4e2cfa5aa19daeaa5ca14696503aa21cfb3b7a45 --- /dev/null +++ b/tasks/construct-rlve-pan-solar-panels-l2-s9/environment/instance.json @@ -0,0 +1 @@ +{"A": 141, "B": 344, "C": 383, "D": 759, "target": 344, "family": "rlve_pan_solar_panels", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-pan-solar-panels-l2-s9/solution/solve.sh b/tasks/construct-rlve-pan-solar-panels-l2-s9/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..d1e26206ef2bb2b6a0877a95e2a2676a9dbbd524 --- /dev/null +++ b/tasks/construct-rlve-pan-solar-panels-l2-s9/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"X": 344, "Y": 688} +RLMATH_EOF diff --git a/tasks/construct-rlve-pan-solar-panels-l2-s9/tests/check.py b/tasks/construct-rlve-pan-solar-panels-l2-s9/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..8bb2e7cc0b0280ab877755cc5d97b510680f7aa3 --- /dev/null +++ b/tasks/construct-rlve-pan-solar-panels-l2-s9/tests/check.py @@ -0,0 +1,12 @@ +import math + +from run import Invalid, as_int + + +def check(inst, ans): + X = as_int(ans.get("X"), "X", lo=inst["A"], hi=inst["B"]) + Y = as_int(ans.get("Y"), "Y", lo=inst["C"], hi=inst["D"]) + g = math.gcd(X, Y) + if g < inst["target"]: + raise Invalid(f"gcd(X, Y) = {g} < {inst['target']}") + return None, {"gcd": g} diff --git a/tasks/construct-rlve-pan-solar-panels-l2-s9/tests/instance.json b/tasks/construct-rlve-pan-solar-panels-l2-s9/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..4e2cfa5aa19daeaa5ca14696503aa21cfb3b7a45 --- /dev/null +++ b/tasks/construct-rlve-pan-solar-panels-l2-s9/tests/instance.json @@ -0,0 +1 @@ +{"A": 141, "B": 344, "C": 383, "D": 759, "target": 344, "family": "rlve_pan_solar_panels", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-pan-solar-panels-l2-s9/tests/run.py b/tasks/construct-rlve-pan-solar-panels-l2-s9/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-pan-solar-panels-l2-s9/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-pan-solar-panels-l2-s9/tests/test.sh b/tasks/construct-rlve-pan-solar-panels-l2-s9/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-pan-solar-panels-l2-s9/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-pan-solar-panels-l3-s0/environment/Dockerfile b/tasks/construct-rlve-pan-solar-panels-l3-s0/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-pan-solar-panels-l3-s0/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-pan-solar-panels-l3-s0/environment/instance.json b/tasks/construct-rlve-pan-solar-panels-l3-s0/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..25262fe157d3c058f12699174708d14ffc3cc451 --- /dev/null +++ b/tasks/construct-rlve-pan-solar-panels-l3-s0/environment/instance.json @@ -0,0 +1 @@ +{"A": 25043, "B": 32163, "C": 68416, "D": 73143, "target": 14628, "family": "rlve_pan_solar_panels", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-pan-solar-panels-l3-s0/solution/solve.sh b/tasks/construct-rlve-pan-solar-panels-l3-s0/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..33c66a8e85e2c9bad9f5b3cf862aa76a078c4d74 --- /dev/null +++ b/tasks/construct-rlve-pan-solar-panels-l3-s0/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"X": 29256, "Y": 73140} +RLMATH_EOF diff --git a/tasks/construct-rlve-pan-solar-panels-l3-s0/tests/check.py b/tasks/construct-rlve-pan-solar-panels-l3-s0/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..8bb2e7cc0b0280ab877755cc5d97b510680f7aa3 --- /dev/null +++ b/tasks/construct-rlve-pan-solar-panels-l3-s0/tests/check.py @@ -0,0 +1,12 @@ +import math + +from run import Invalid, as_int + + +def check(inst, ans): + X = as_int(ans.get("X"), "X", lo=inst["A"], hi=inst["B"]) + Y = as_int(ans.get("Y"), "Y", lo=inst["C"], hi=inst["D"]) + g = math.gcd(X, Y) + if g < inst["target"]: + raise Invalid(f"gcd(X, Y) = {g} < {inst['target']}") + return None, {"gcd": g} diff --git a/tasks/construct-rlve-pan-solar-panels-l3-s0/tests/instance.json b/tasks/construct-rlve-pan-solar-panels-l3-s0/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..25262fe157d3c058f12699174708d14ffc3cc451 --- /dev/null +++ b/tasks/construct-rlve-pan-solar-panels-l3-s0/tests/instance.json @@ -0,0 +1 @@ +{"A": 25043, "B": 32163, "C": 68416, "D": 73143, "target": 14628, "family": "rlve_pan_solar_panels", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-pan-solar-panels-l3-s0/tests/run.py b/tasks/construct-rlve-pan-solar-panels-l3-s0/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-pan-solar-panels-l3-s0/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-pan-solar-panels-l3-s0/tests/test.sh b/tasks/construct-rlve-pan-solar-panels-l3-s0/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-pan-solar-panels-l3-s0/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-pan-solar-panels-l6-s6/environment/Dockerfile b/tasks/construct-rlve-pan-solar-panels-l6-s6/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-pan-solar-panels-l6-s6/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-pan-solar-panels-l6-s6/environment/instance.json b/tasks/construct-rlve-pan-solar-panels-l6-s6/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..6e2f5f6084d069c50c3fad045dde243a88ac9d14 --- /dev/null +++ b/tasks/construct-rlve-pan-solar-panels-l6-s6/environment/instance.json @@ -0,0 +1 @@ +{"A": 11707983753, "B": 63094150893, "C": 5203277709, "D": 8897864003, "target": 8897864003, "family": "rlve_pan_solar_panels", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-pan-solar-panels-l6-s6/solution/solve.sh b/tasks/construct-rlve-pan-solar-panels-l6-s6/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..20c4799c317c902407bf70fa418177ae17d233f9 --- /dev/null +++ b/tasks/construct-rlve-pan-solar-panels-l6-s6/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"X": 62285048021, "Y": 8897864003} +RLMATH_EOF diff --git a/tasks/construct-rlve-pan-solar-panels-l6-s6/tests/check.py b/tasks/construct-rlve-pan-solar-panels-l6-s6/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..8bb2e7cc0b0280ab877755cc5d97b510680f7aa3 --- /dev/null +++ b/tasks/construct-rlve-pan-solar-panels-l6-s6/tests/check.py @@ -0,0 +1,12 @@ +import math + +from run import Invalid, as_int + + +def check(inst, ans): + X = as_int(ans.get("X"), "X", lo=inst["A"], hi=inst["B"]) + Y = as_int(ans.get("Y"), "Y", lo=inst["C"], hi=inst["D"]) + g = math.gcd(X, Y) + if g < inst["target"]: + raise Invalid(f"gcd(X, Y) = {g} < {inst['target']}") + return None, {"gcd": g} diff --git a/tasks/construct-rlve-pan-solar-panels-l6-s6/tests/instance.json b/tasks/construct-rlve-pan-solar-panels-l6-s6/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..6e2f5f6084d069c50c3fad045dde243a88ac9d14 --- /dev/null +++ b/tasks/construct-rlve-pan-solar-panels-l6-s6/tests/instance.json @@ -0,0 +1 @@ +{"A": 11707983753, "B": 63094150893, "C": 5203277709, "D": 8897864003, "target": 8897864003, "family": "rlve_pan_solar_panels", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-pan-solar-panels-l6-s6/tests/run.py b/tasks/construct-rlve-pan-solar-panels-l6-s6/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-pan-solar-panels-l6-s6/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-pan-solar-panels-l6-s6/tests/test.sh b/tasks/construct-rlve-pan-solar-panels-l6-s6/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-pan-solar-panels-l6-s6/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-polynomial-global-minimum-l3-s3/environment/Dockerfile b/tasks/construct-rlve-polynomial-global-minimum-l3-s3/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-polynomial-global-minimum-l3-s3/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-polynomial-global-minimum-l3-s3/environment/instance.json b/tasks/construct-rlve-polynomial-global-minimum-l3-s3/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..2132e2b920e50a3082ef5cec78c934efef7765a4 --- /dev/null +++ b/tasks/construct-rlve-polynomial-global-minimum-l3-s3/environment/instance.json @@ -0,0 +1 @@ +{"coeffs": [131, 374, 493, 312, 122, 24, 2], "fmin": "29.2407259074097020484122474827769352880083035", "family": "rlve_polynomial_global_minimum", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-polynomial-global-minimum-l3-s3/solution/solve.sh b/tasks/construct-rlve-polynomial-global-minimum-l3-s3/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..402661d7d0ed4d0c7ec704f6155bd686cdc43331 --- /dev/null +++ b/tasks/construct-rlve-polynomial-global-minimum-l3-s3/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"x0": -0.7076803039181355} +RLMATH_EOF diff --git a/tasks/construct-rlve-polynomial-global-minimum-l3-s3/tests/check.py b/tasks/construct-rlve-polynomial-global-minimum-l3-s3/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..3be068f4391ad0838c29a4f7d521b8072cf39991 --- /dev/null +++ b/tasks/construct-rlve-polynomial-global-minimum-l3-s3/tests/check.py @@ -0,0 +1,19 @@ +from fractions import Fraction + +from run import Invalid, num + + +def check(inst, ans): + x0 = Fraction(num(ans.get("x0"), "x0")) + if abs(x0) > 10 ** 6: + raise Invalid("x0 out of range") + v = Fraction(0) + for a in reversed(inst["coeffs"]): + v = v * x0 + a + fmin = Fraction(inst["fmin"]) + tol = Fraction(1, 10 ** 9) * max(Fraction(1), abs(fmin)) + if v > fmin + tol: + raise Invalid(f"f(x0) = {float(v)} is above the global minimum {float(fmin)}") + if v < fmin - tol: # cannot happen for a correct f_min; guards against a bad instance + raise Invalid("internal: f(x0) below recorded minimum") + return None, {"f_x0": float(v)} diff --git a/tasks/construct-rlve-polynomial-global-minimum-l3-s3/tests/instance.json b/tasks/construct-rlve-polynomial-global-minimum-l3-s3/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..2132e2b920e50a3082ef5cec78c934efef7765a4 --- /dev/null +++ b/tasks/construct-rlve-polynomial-global-minimum-l3-s3/tests/instance.json @@ -0,0 +1 @@ +{"coeffs": [131, 374, 493, 312, 122, 24, 2], "fmin": "29.2407259074097020484122474827769352880083035", "family": "rlve_polynomial_global_minimum", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-polynomial-global-minimum-l3-s3/tests/run.py b/tasks/construct-rlve-polynomial-global-minimum-l3-s3/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-polynomial-global-minimum-l3-s3/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-polynomial-global-minimum-l3-s3/tests/test.sh b/tasks/construct-rlve-polynomial-global-minimum-l3-s3/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-polynomial-global-minimum-l3-s3/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-polynomial-integer-roots-l1-s0/environment/Dockerfile b/tasks/construct-rlve-polynomial-integer-roots-l1-s0/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-polynomial-integer-roots-l1-s0/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-polynomial-integer-roots-l1-s0/environment/instance.json b/tasks/construct-rlve-polynomial-integer-roots-l1-s0/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..af50869909eeb4624d6467ac680516af0cf1cf6a --- /dev/null +++ b/tasks/construct-rlve-polynomial-integer-roots-l1-s0/environment/instance.json @@ -0,0 +1 @@ +{"coeffs": [27, -9, -3, 1], "family": "rlve_polynomial_integer_roots", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-polynomial-integer-roots-l1-s0/solution/solve.sh b/tasks/construct-rlve-polynomial-integer-roots-l1-s0/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..079e972c3b9a91aabc78521fbc02e0721043419e --- /dev/null +++ b/tasks/construct-rlve-polynomial-integer-roots-l1-s0/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"roots": [-3, 3, 3]} +RLMATH_EOF diff --git a/tasks/construct-rlve-polynomial-integer-roots-l1-s0/tests/check.py b/tasks/construct-rlve-polynomial-integer-roots-l1-s0/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..2d30553cb884c5e03c8afe73ef652efc483ab791 --- /dev/null +++ b/tasks/construct-rlve-polynomial-integer-roots-l1-s0/tests/check.py @@ -0,0 +1,20 @@ +from run import Invalid, int_list + + +def check(inst, ans): + c = inst["coeffs"] # c[i] = coefficient of x^i, monic of degree len(c) - 1 + n = len(c) - 1 + r = int_list(ans.get("roots"), n, name="roots") + bound = 1 + max(abs(v) for v in c) # Cauchy bound on roots + if any(abs(a) > bound for a in r): # any integer root divides the constant term / is bounded by max|c_i| + raise Invalid("root out of range") + prod = [1] + for a in r: # multiply by (x - a) + nxt = [0] * (len(prod) + 1) + for i, v in enumerate(prod): + nxt[i + 1] += v + nxt[i] -= a * v + prod = nxt + if prod != c: + raise Invalid("the product does not expand to P(x)") + return None, {} diff --git a/tasks/construct-rlve-polynomial-integer-roots-l1-s0/tests/instance.json b/tasks/construct-rlve-polynomial-integer-roots-l1-s0/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..af50869909eeb4624d6467ac680516af0cf1cf6a --- /dev/null +++ b/tasks/construct-rlve-polynomial-integer-roots-l1-s0/tests/instance.json @@ -0,0 +1 @@ +{"coeffs": [27, -9, -3, 1], "family": "rlve_polynomial_integer_roots", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-polynomial-integer-roots-l1-s0/tests/run.py b/tasks/construct-rlve-polynomial-integer-roots-l1-s0/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-polynomial-integer-roots-l1-s0/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-polynomial-integer-roots-l1-s0/tests/test.sh b/tasks/construct-rlve-polynomial-integer-roots-l1-s0/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-polynomial-integer-roots-l1-s0/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-polynomial-integer-roots-l1-s7/environment/Dockerfile b/tasks/construct-rlve-polynomial-integer-roots-l1-s7/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-polynomial-integer-roots-l1-s7/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-polynomial-integer-roots-l1-s7/environment/instance.json b/tasks/construct-rlve-polynomial-integer-roots-l1-s7/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..62651eff3b6a05be7875370f5ae584840e634995 --- /dev/null +++ b/tasks/construct-rlve-polynomial-integer-roots-l1-s7/environment/instance.json @@ -0,0 +1 @@ +{"coeffs": [8, 12, 6, 1], "family": "rlve_polynomial_integer_roots", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-polynomial-integer-roots-l1-s7/solution/solve.sh b/tasks/construct-rlve-polynomial-integer-roots-l1-s7/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..5bde5d0ba4b6690a9d2aebc59eb7c6dd7bdd0707 --- /dev/null +++ b/tasks/construct-rlve-polynomial-integer-roots-l1-s7/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"roots": [-2, -2, -2]} +RLMATH_EOF diff --git a/tasks/construct-rlve-polynomial-integer-roots-l1-s7/tests/check.py b/tasks/construct-rlve-polynomial-integer-roots-l1-s7/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..2d30553cb884c5e03c8afe73ef652efc483ab791 --- /dev/null +++ b/tasks/construct-rlve-polynomial-integer-roots-l1-s7/tests/check.py @@ -0,0 +1,20 @@ +from run import Invalid, int_list + + +def check(inst, ans): + c = inst["coeffs"] # c[i] = coefficient of x^i, monic of degree len(c) - 1 + n = len(c) - 1 + r = int_list(ans.get("roots"), n, name="roots") + bound = 1 + max(abs(v) for v in c) # Cauchy bound on roots + if any(abs(a) > bound for a in r): # any integer root divides the constant term / is bounded by max|c_i| + raise Invalid("root out of range") + prod = [1] + for a in r: # multiply by (x - a) + nxt = [0] * (len(prod) + 1) + for i, v in enumerate(prod): + nxt[i + 1] += v + nxt[i] -= a * v + prod = nxt + if prod != c: + raise Invalid("the product does not expand to P(x)") + return None, {} diff --git a/tasks/construct-rlve-polynomial-integer-roots-l1-s7/tests/instance.json b/tasks/construct-rlve-polynomial-integer-roots-l1-s7/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..62651eff3b6a05be7875370f5ae584840e634995 --- /dev/null +++ b/tasks/construct-rlve-polynomial-integer-roots-l1-s7/tests/instance.json @@ -0,0 +1 @@ +{"coeffs": [8, 12, 6, 1], "family": "rlve_polynomial_integer_roots", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-polynomial-integer-roots-l1-s7/tests/run.py b/tasks/construct-rlve-polynomial-integer-roots-l1-s7/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-polynomial-integer-roots-l1-s7/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-polynomial-integer-roots-l1-s7/tests/test.sh b/tasks/construct-rlve-polynomial-integer-roots-l1-s7/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-polynomial-integer-roots-l1-s7/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-polynomial-integer-roots-l4-s6/environment/Dockerfile b/tasks/construct-rlve-polynomial-integer-roots-l4-s6/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-polynomial-integer-roots-l4-s6/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-polynomial-integer-roots-l4-s6/environment/instance.json b/tasks/construct-rlve-polynomial-integer-roots-l4-s6/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..5f252b1f8f187ac8fa6e4aea32a3ee68c16b2526 --- /dev/null +++ b/tasks/construct-rlve-polynomial-integer-roots-l4-s6/environment/instance.json @@ -0,0 +1 @@ +{"coeffs": [33949238400, -14402707200, -1205414136, 1301471388, -96715566, -36882099, 5735409, 245353, -95735, 3799, 427, -41, 1], "family": "rlve_polynomial_integer_roots", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-polynomial-integer-roots-l4-s6/solution/solve.sh b/tasks/construct-rlve-polynomial-integer-roots-l4-s6/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..85ec944a1db1cb5286b3cc732a258beb3e30dd6a --- /dev/null +++ b/tasks/construct-rlve-polynomial-integer-roots-l4-s6/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"roots": [-9, -7, -6, -5, 5, 6, 6, 7, 9, 11, 12, 12]} +RLMATH_EOF diff --git a/tasks/construct-rlve-polynomial-integer-roots-l4-s6/tests/check.py b/tasks/construct-rlve-polynomial-integer-roots-l4-s6/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..2d30553cb884c5e03c8afe73ef652efc483ab791 --- /dev/null +++ b/tasks/construct-rlve-polynomial-integer-roots-l4-s6/tests/check.py @@ -0,0 +1,20 @@ +from run import Invalid, int_list + + +def check(inst, ans): + c = inst["coeffs"] # c[i] = coefficient of x^i, monic of degree len(c) - 1 + n = len(c) - 1 + r = int_list(ans.get("roots"), n, name="roots") + bound = 1 + max(abs(v) for v in c) # Cauchy bound on roots + if any(abs(a) > bound for a in r): # any integer root divides the constant term / is bounded by max|c_i| + raise Invalid("root out of range") + prod = [1] + for a in r: # multiply by (x - a) + nxt = [0] * (len(prod) + 1) + for i, v in enumerate(prod): + nxt[i + 1] += v + nxt[i] -= a * v + prod = nxt + if prod != c: + raise Invalid("the product does not expand to P(x)") + return None, {} diff --git a/tasks/construct-rlve-polynomial-integer-roots-l4-s6/tests/instance.json b/tasks/construct-rlve-polynomial-integer-roots-l4-s6/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..5f252b1f8f187ac8fa6e4aea32a3ee68c16b2526 --- /dev/null +++ b/tasks/construct-rlve-polynomial-integer-roots-l4-s6/tests/instance.json @@ -0,0 +1 @@ +{"coeffs": [33949238400, -14402707200, -1205414136, 1301471388, -96715566, -36882099, 5735409, 245353, -95735, 3799, 427, -41, 1], "family": "rlve_polynomial_integer_roots", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-polynomial-integer-roots-l4-s6/tests/run.py b/tasks/construct-rlve-polynomial-integer-roots-l4-s6/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-polynomial-integer-roots-l4-s6/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-polynomial-integer-roots-l4-s6/tests/test.sh b/tasks/construct-rlve-polynomial-integer-roots-l4-s6/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-polynomial-integer-roots-l4-s6/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-polynomial-integer-roots-l5-s8/environment/Dockerfile b/tasks/construct-rlve-polynomial-integer-roots-l5-s8/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-polynomial-integer-roots-l5-s8/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-polynomial-integer-roots-l5-s8/environment/instance.json b/tasks/construct-rlve-polynomial-integer-roots-l5-s8/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..ce0b8a65395ee0ad0050dcb4874867a4cc685e17 --- /dev/null +++ b/tasks/construct-rlve-polynomial-integer-roots-l5-s8/environment/instance.json @@ -0,0 +1 @@ +{"coeffs": [0, -316141056000, 928413446400, -1066883883840, 605048463936, -163166481456, 7523211616, 6534060644, -1358819676, 11023387, 21787643, -1676673, -89761, 13969, -159, -31, 1], "family": "rlve_polynomial_integer_roots", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-polynomial-integer-roots-l5-s8/solution/solve.sh b/tasks/construct-rlve-polynomial-integer-roots-l5-s8/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..13b62cf4821ea15c9b312381c105973bb366c084 --- /dev/null +++ b/tasks/construct-rlve-polynomial-integer-roots-l5-s8/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"roots": [-16, -11, -10, -6, 0, 1, 2, 2, 3, 3, 4, 9, 10, 11, 14, 15]} +RLMATH_EOF diff --git a/tasks/construct-rlve-polynomial-integer-roots-l5-s8/tests/check.py b/tasks/construct-rlve-polynomial-integer-roots-l5-s8/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..2d30553cb884c5e03c8afe73ef652efc483ab791 --- /dev/null +++ b/tasks/construct-rlve-polynomial-integer-roots-l5-s8/tests/check.py @@ -0,0 +1,20 @@ +from run import Invalid, int_list + + +def check(inst, ans): + c = inst["coeffs"] # c[i] = coefficient of x^i, monic of degree len(c) - 1 + n = len(c) - 1 + r = int_list(ans.get("roots"), n, name="roots") + bound = 1 + max(abs(v) for v in c) # Cauchy bound on roots + if any(abs(a) > bound for a in r): # any integer root divides the constant term / is bounded by max|c_i| + raise Invalid("root out of range") + prod = [1] + for a in r: # multiply by (x - a) + nxt = [0] * (len(prod) + 1) + for i, v in enumerate(prod): + nxt[i + 1] += v + nxt[i] -= a * v + prod = nxt + if prod != c: + raise Invalid("the product does not expand to P(x)") + return None, {} diff --git a/tasks/construct-rlve-polynomial-integer-roots-l5-s8/tests/instance.json b/tasks/construct-rlve-polynomial-integer-roots-l5-s8/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..ce0b8a65395ee0ad0050dcb4874867a4cc685e17 --- /dev/null +++ b/tasks/construct-rlve-polynomial-integer-roots-l5-s8/tests/instance.json @@ -0,0 +1 @@ +{"coeffs": [0, -316141056000, 928413446400, -1066883883840, 605048463936, -163166481456, 7523211616, 6534060644, -1358819676, 11023387, 21787643, -1676673, -89761, 13969, -159, -31, 1], "family": "rlve_polynomial_integer_roots", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-polynomial-integer-roots-l5-s8/tests/run.py b/tasks/construct-rlve-polynomial-integer-roots-l5-s8/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-polynomial-integer-roots-l5-s8/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-polynomial-integer-roots-l5-s8/tests/test.sh b/tasks/construct-rlve-polynomial-integer-roots-l5-s8/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-polynomial-integer-roots-l5-s8/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-prefix-sum-permutation-l3-s2/environment/Dockerfile b/tasks/construct-rlve-prefix-sum-permutation-l3-s2/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-prefix-sum-permutation-l3-s2/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-prefix-sum-permutation-l3-s2/environment/instance.json b/tasks/construct-rlve-prefix-sum-permutation-l3-s2/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..a6198f9dd5d2e6740eb0d8cee81f2f57c3321c3e --- /dev/null +++ b/tasks/construct-rlve-prefix-sum-permutation-l3-s2/environment/instance.json @@ -0,0 +1 @@ +{"n": 294, "family": "rlve_prefix_sum_permutation", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-prefix-sum-permutation-l3-s2/solution/solve.sh b/tasks/construct-rlve-prefix-sum-permutation-l3-s2/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..2d2c51cac10abcbecfca89eee324070c3aeefafe --- /dev/null +++ b/tasks/construct-rlve-prefix-sum-permutation-l3-s2/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"perm": [294, 1, 292, 3, 290, 5, 288, 7, 286, 9, 284, 11, 282, 13, 280, 15, 278, 17, 276, 19, 274, 21, 272, 23, 270, 25, 268, 27, 266, 29, 264, 31, 262, 33, 260, 35, 258, 37, 256, 39, 254, 41, 252, 43, 250, 45, 248, 47, 246, 49, 244, 51, 242, 53, 240, 55, 238, 57, 236, 59, 234, 61, 232, 63, 230, 65, 228, 67, 226, 69, 224, 71, 222, 73, 220, 75, 218, 77, 216, 79, 214, 81, 212, 83, 210, 85, 208, 87, 206, 89, 204, 91, 202, 93, 200, 95, 198, 97, 196, 99, 194, 101, 192, 103, 190, 105, 188, 107, 186, 109, 184, 111, 182, 113, 180, 115, 178, 117, 176, 119, 174, 121, 172, 123, 170, 125, 168, 127, 166, 129, 164, 131, 162, 133, 160, 135, 158, 137, 156, 139, 154, 141, 152, 143, 150, 145, 148, 147, 146, 149, 144, 151, 142, 153, 140, 155, 138, 157, 136, 159, 134, 161, 132, 163, 130, 165, 128, 167, 126, 169, 124, 171, 122, 173, 120, 175, 118, 177, 116, 179, 114, 181, 112, 183, 110, 185, 108, 187, 106, 189, 104, 191, 102, 193, 100, 195, 98, 197, 96, 199, 94, 201, 92, 203, 90, 205, 88, 207, 86, 209, 84, 211, 82, 213, 80, 215, 78, 217, 76, 219, 74, 221, 72, 223, 70, 225, 68, 227, 66, 229, 64, 231, 62, 233, 60, 235, 58, 237, 56, 239, 54, 241, 52, 243, 50, 245, 48, 247, 46, 249, 44, 251, 42, 253, 40, 255, 38, 257, 36, 259, 34, 261, 32, 263, 30, 265, 28, 267, 26, 269, 24, 271, 22, 273, 20, 275, 18, 277, 16, 279, 14, 281, 12, 283, 10, 285, 8, 287, 6, 289, 4, 291, 2, 293]} +RLMATH_EOF diff --git a/tasks/construct-rlve-prefix-sum-permutation-l3-s2/tests/check.py b/tasks/construct-rlve-prefix-sum-permutation-l3-s2/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..60c3e0996cdfa8673fd7f34ad70cccb789b17654 --- /dev/null +++ b/tasks/construct-rlve-prefix-sum-permutation-l3-s2/tests/check.py @@ -0,0 +1,15 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n = inst["n"] + p = int_list(ans.get("perm"), n, 1, n, "perm") + if len(set(p)) != n: + raise Invalid("not a permutation") + seen, acc = set(), 0 + for v in p: + acc = (acc + v) % n + if acc in seen: + raise Invalid(f"prefix sum residue {acc} repeats") + seen.add(acc) + return None, {} diff --git a/tasks/construct-rlve-prefix-sum-permutation-l3-s2/tests/instance.json b/tasks/construct-rlve-prefix-sum-permutation-l3-s2/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..a6198f9dd5d2e6740eb0d8cee81f2f57c3321c3e --- /dev/null +++ b/tasks/construct-rlve-prefix-sum-permutation-l3-s2/tests/instance.json @@ -0,0 +1 @@ +{"n": 294, "family": "rlve_prefix_sum_permutation", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-prefix-sum-permutation-l3-s2/tests/run.py b/tasks/construct-rlve-prefix-sum-permutation-l3-s2/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-prefix-sum-permutation-l3-s2/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-prefix-sum-permutation-l3-s2/tests/test.sh b/tasks/construct-rlve-prefix-sum-permutation-l3-s2/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-prefix-sum-permutation-l3-s2/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-prefix-sum-permutation-l3-s5/environment/Dockerfile b/tasks/construct-rlve-prefix-sum-permutation-l3-s5/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-prefix-sum-permutation-l3-s5/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-prefix-sum-permutation-l3-s5/environment/instance.json b/tasks/construct-rlve-prefix-sum-permutation-l3-s5/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..8ebefbdee3198edd196e7737ee34160ac98fdfb1 --- /dev/null +++ b/tasks/construct-rlve-prefix-sum-permutation-l3-s5/environment/instance.json @@ -0,0 +1 @@ +{"n": 116, "family": "rlve_prefix_sum_permutation", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-prefix-sum-permutation-l3-s5/solution/solve.sh b/tasks/construct-rlve-prefix-sum-permutation-l3-s5/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..a4b6dda19946cbc928b1e05727e071cfe6feb1e7 --- /dev/null +++ b/tasks/construct-rlve-prefix-sum-permutation-l3-s5/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"perm": [116, 1, 114, 3, 112, 5, 110, 7, 108, 9, 106, 11, 104, 13, 102, 15, 100, 17, 98, 19, 96, 21, 94, 23, 92, 25, 90, 27, 88, 29, 86, 31, 84, 33, 82, 35, 80, 37, 78, 39, 76, 41, 74, 43, 72, 45, 70, 47, 68, 49, 66, 51, 64, 53, 62, 55, 60, 57, 58, 59, 56, 61, 54, 63, 52, 65, 50, 67, 48, 69, 46, 71, 44, 73, 42, 75, 40, 77, 38, 79, 36, 81, 34, 83, 32, 85, 30, 87, 28, 89, 26, 91, 24, 93, 22, 95, 20, 97, 18, 99, 16, 101, 14, 103, 12, 105, 10, 107, 8, 109, 6, 111, 4, 113, 2, 115]} +RLMATH_EOF diff --git a/tasks/construct-rlve-prefix-sum-permutation-l3-s5/tests/check.py b/tasks/construct-rlve-prefix-sum-permutation-l3-s5/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..60c3e0996cdfa8673fd7f34ad70cccb789b17654 --- /dev/null +++ b/tasks/construct-rlve-prefix-sum-permutation-l3-s5/tests/check.py @@ -0,0 +1,15 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n = inst["n"] + p = int_list(ans.get("perm"), n, 1, n, "perm") + if len(set(p)) != n: + raise Invalid("not a permutation") + seen, acc = set(), 0 + for v in p: + acc = (acc + v) % n + if acc in seen: + raise Invalid(f"prefix sum residue {acc} repeats") + seen.add(acc) + return None, {} diff --git a/tasks/construct-rlve-prefix-sum-permutation-l3-s5/tests/instance.json b/tasks/construct-rlve-prefix-sum-permutation-l3-s5/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..8ebefbdee3198edd196e7737ee34160ac98fdfb1 --- /dev/null +++ b/tasks/construct-rlve-prefix-sum-permutation-l3-s5/tests/instance.json @@ -0,0 +1 @@ +{"n": 116, "family": "rlve_prefix_sum_permutation", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-prefix-sum-permutation-l3-s5/tests/run.py b/tasks/construct-rlve-prefix-sum-permutation-l3-s5/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-prefix-sum-permutation-l3-s5/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-prefix-sum-permutation-l3-s5/tests/test.sh b/tasks/construct-rlve-prefix-sum-permutation-l3-s5/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-prefix-sum-permutation-l3-s5/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-prime-graph-coloring-l2-s3/environment/Dockerfile b/tasks/construct-rlve-prime-graph-coloring-l2-s3/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-prime-graph-coloring-l2-s3/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-prime-graph-coloring-l2-s3/environment/instance.json b/tasks/construct-rlve-prime-graph-coloring-l2-s3/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..aa331fad0b603f685cf3c9dd6545b60a3da6c2dc --- /dev/null +++ b/tasks/construct-rlve-prime-graph-coloring-l2-s3/environment/instance.json @@ -0,0 +1 @@ +{"n": 35, "k": 4, "family": "rlve_prime_graph_coloring", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-prime-graph-coloring-l2-s3/solution/solve.sh b/tasks/construct-rlve-prime-graph-coloring-l2-s3/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..ba759da86c85fbf6efa53ae3dd73f2dd74a88866 --- /dev/null +++ b/tasks/construct-rlve-prime-graph-coloring-l2-s3/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"colors": [1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3]} +RLMATH_EOF diff --git a/tasks/construct-rlve-prime-graph-coloring-l2-s3/tests/check.py b/tasks/construct-rlve-prime-graph-coloring-l2-s3/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..b3736f1375f1862241999142c975ced361b8fcb5 --- /dev/null +++ b/tasks/construct-rlve-prime-graph-coloring-l2-s3/tests/check.py @@ -0,0 +1,20 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["n"], inst["k"] + c = int_list(ans.get("colors"), n, 0, k - 1, "colors") + sieve = [True] * (n + 1) + sieve[0] = False + if n >= 1: + sieve[1] = False + for i in range(2, int(n ** 0.5) + 1): + if sieve[i]: + for j in range(i * i, n + 1, i): + sieve[j] = False + for p in range(2, n): + if sieve[p]: + for u in range(n - p): + if c[u] == c[u + p]: + raise Invalid(f"vertices {u + 1} and {u + p + 1} (difference {p}) share a colour") + return None, {} diff --git a/tasks/construct-rlve-prime-graph-coloring-l2-s3/tests/instance.json b/tasks/construct-rlve-prime-graph-coloring-l2-s3/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..aa331fad0b603f685cf3c9dd6545b60a3da6c2dc --- /dev/null +++ b/tasks/construct-rlve-prime-graph-coloring-l2-s3/tests/instance.json @@ -0,0 +1 @@ +{"n": 35, "k": 4, "family": "rlve_prime_graph_coloring", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-prime-graph-coloring-l2-s3/tests/run.py b/tasks/construct-rlve-prime-graph-coloring-l2-s3/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-prime-graph-coloring-l2-s3/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-prime-graph-coloring-l2-s3/tests/test.sh b/tasks/construct-rlve-prime-graph-coloring-l2-s3/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-prime-graph-coloring-l2-s3/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-prime-graph-coloring-l2-s4/environment/Dockerfile b/tasks/construct-rlve-prime-graph-coloring-l2-s4/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-prime-graph-coloring-l2-s4/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-prime-graph-coloring-l2-s4/environment/instance.json b/tasks/construct-rlve-prime-graph-coloring-l2-s4/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..93afe554fc3e2c578bc2d2de0c7948c7a6e9b0e7 --- /dev/null +++ b/tasks/construct-rlve-prime-graph-coloring-l2-s4/environment/instance.json @@ -0,0 +1 @@ +{"n": 23, "k": 4, "family": "rlve_prime_graph_coloring", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-prime-graph-coloring-l2-s4/solution/solve.sh b/tasks/construct-rlve-prime-graph-coloring-l2-s4/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..f53898303beb92f6851ca309694ae7ce5c5bedc9 --- /dev/null +++ b/tasks/construct-rlve-prime-graph-coloring-l2-s4/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"colors": [1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3]} +RLMATH_EOF diff --git a/tasks/construct-rlve-prime-graph-coloring-l2-s4/tests/check.py b/tasks/construct-rlve-prime-graph-coloring-l2-s4/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..b3736f1375f1862241999142c975ced361b8fcb5 --- /dev/null +++ b/tasks/construct-rlve-prime-graph-coloring-l2-s4/tests/check.py @@ -0,0 +1,20 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["n"], inst["k"] + c = int_list(ans.get("colors"), n, 0, k - 1, "colors") + sieve = [True] * (n + 1) + sieve[0] = False + if n >= 1: + sieve[1] = False + for i in range(2, int(n ** 0.5) + 1): + if sieve[i]: + for j in range(i * i, n + 1, i): + sieve[j] = False + for p in range(2, n): + if sieve[p]: + for u in range(n - p): + if c[u] == c[u + p]: + raise Invalid(f"vertices {u + 1} and {u + p + 1} (difference {p}) share a colour") + return None, {} diff --git a/tasks/construct-rlve-prime-graph-coloring-l2-s4/tests/instance.json b/tasks/construct-rlve-prime-graph-coloring-l2-s4/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..93afe554fc3e2c578bc2d2de0c7948c7a6e9b0e7 --- /dev/null +++ b/tasks/construct-rlve-prime-graph-coloring-l2-s4/tests/instance.json @@ -0,0 +1 @@ +{"n": 23, "k": 4, "family": "rlve_prime_graph_coloring", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-prime-graph-coloring-l2-s4/tests/run.py b/tasks/construct-rlve-prime-graph-coloring-l2-s4/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-prime-graph-coloring-l2-s4/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-prime-graph-coloring-l2-s4/tests/test.sh b/tasks/construct-rlve-prime-graph-coloring-l2-s4/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-prime-graph-coloring-l2-s4/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-prime-graph-coloring-l6-s2/environment/Dockerfile b/tasks/construct-rlve-prime-graph-coloring-l6-s2/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-prime-graph-coloring-l6-s2/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-prime-graph-coloring-l6-s2/environment/instance.json b/tasks/construct-rlve-prime-graph-coloring-l6-s2/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..91904613dee8ca2b76f5b181a49a2a0f76ef92d3 --- /dev/null +++ b/tasks/construct-rlve-prime-graph-coloring-l6-s2/environment/instance.json @@ -0,0 +1 @@ +{"n": 912, "k": 4, "family": "rlve_prime_graph_coloring", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-prime-graph-coloring-l6-s2/solution/solve.sh b/tasks/construct-rlve-prime-graph-coloring-l6-s2/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..afdd933d8c5ff128be7dc28d4129a4d1bd789284 --- /dev/null +++ b/tasks/construct-rlve-prime-graph-coloring-l6-s2/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"colors": [1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0]} +RLMATH_EOF diff --git a/tasks/construct-rlve-prime-graph-coloring-l6-s2/tests/check.py b/tasks/construct-rlve-prime-graph-coloring-l6-s2/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..b3736f1375f1862241999142c975ced361b8fcb5 --- /dev/null +++ b/tasks/construct-rlve-prime-graph-coloring-l6-s2/tests/check.py @@ -0,0 +1,20 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["n"], inst["k"] + c = int_list(ans.get("colors"), n, 0, k - 1, "colors") + sieve = [True] * (n + 1) + sieve[0] = False + if n >= 1: + sieve[1] = False + for i in range(2, int(n ** 0.5) + 1): + if sieve[i]: + for j in range(i * i, n + 1, i): + sieve[j] = False + for p in range(2, n): + if sieve[p]: + for u in range(n - p): + if c[u] == c[u + p]: + raise Invalid(f"vertices {u + 1} and {u + p + 1} (difference {p}) share a colour") + return None, {} diff --git a/tasks/construct-rlve-prime-graph-coloring-l6-s2/tests/instance.json b/tasks/construct-rlve-prime-graph-coloring-l6-s2/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..91904613dee8ca2b76f5b181a49a2a0f76ef92d3 --- /dev/null +++ b/tasks/construct-rlve-prime-graph-coloring-l6-s2/tests/instance.json @@ -0,0 +1 @@ +{"n": 912, "k": 4, "family": "rlve_prime_graph_coloring", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-prime-graph-coloring-l6-s2/tests/run.py b/tasks/construct-rlve-prime-graph-coloring-l6-s2/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-prime-graph-coloring-l6-s2/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-prime-graph-coloring-l6-s2/tests/test.sh b/tasks/construct-rlve-prime-graph-coloring-l6-s2/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-prime-graph-coloring-l6-s2/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-prime-graph-coloring-l6-s5/environment/Dockerfile b/tasks/construct-rlve-prime-graph-coloring-l6-s5/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-prime-graph-coloring-l6-s5/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-prime-graph-coloring-l6-s5/environment/instance.json b/tasks/construct-rlve-prime-graph-coloring-l6-s5/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..89625c893c64b380a20988991b50cb415781f480 --- /dev/null +++ b/tasks/construct-rlve-prime-graph-coloring-l6-s5/environment/instance.json @@ -0,0 +1 @@ +{"n": 1148, "k": 4, "family": "rlve_prime_graph_coloring", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-prime-graph-coloring-l6-s5/solution/solve.sh b/tasks/construct-rlve-prime-graph-coloring-l6-s5/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..a4fb1c58112250cfa0691f176f152770bfaddc9d --- /dev/null +++ b/tasks/construct-rlve-prime-graph-coloring-l6-s5/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"colors": [1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0]} +RLMATH_EOF diff --git a/tasks/construct-rlve-prime-graph-coloring-l6-s5/tests/check.py b/tasks/construct-rlve-prime-graph-coloring-l6-s5/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..b3736f1375f1862241999142c975ced361b8fcb5 --- /dev/null +++ b/tasks/construct-rlve-prime-graph-coloring-l6-s5/tests/check.py @@ -0,0 +1,20 @@ +from run import Invalid, int_list + + +def check(inst, ans): + n, k = inst["n"], inst["k"] + c = int_list(ans.get("colors"), n, 0, k - 1, "colors") + sieve = [True] * (n + 1) + sieve[0] = False + if n >= 1: + sieve[1] = False + for i in range(2, int(n ** 0.5) + 1): + if sieve[i]: + for j in range(i * i, n + 1, i): + sieve[j] = False + for p in range(2, n): + if sieve[p]: + for u in range(n - p): + if c[u] == c[u + p]: + raise Invalid(f"vertices {u + 1} and {u + p + 1} (difference {p}) share a colour") + return None, {} diff --git a/tasks/construct-rlve-prime-graph-coloring-l6-s5/tests/instance.json b/tasks/construct-rlve-prime-graph-coloring-l6-s5/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..89625c893c64b380a20988991b50cb415781f480 --- /dev/null +++ b/tasks/construct-rlve-prime-graph-coloring-l6-s5/tests/instance.json @@ -0,0 +1 @@ +{"n": 1148, "k": 4, "family": "rlve_prime_graph_coloring", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-prime-graph-coloring-l6-s5/tests/run.py b/tasks/construct-rlve-prime-graph-coloring-l6-s5/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-prime-graph-coloring-l6-s5/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-prime-graph-coloring-l6-s5/tests/test.sh b/tasks/construct-rlve-prime-graph-coloring-l6-s5/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-prime-graph-coloring-l6-s5/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-recursive-sequence-sum-l5-s8/environment/Dockerfile b/tasks/construct-rlve-recursive-sequence-sum-l5-s8/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-recursive-sequence-sum-l5-s8/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-recursive-sequence-sum-l5-s8/environment/instance.json b/tasks/construct-rlve-recursive-sequence-sum-l5-s8/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..ef5e2d019d6ebc8ae66e874f7273e22e2e43aeb9 --- /dev/null +++ b/tasks/construct-rlve-recursive-sequence-sum-l5-s8/environment/instance.json @@ -0,0 +1 @@ +{"F0": 125, "A": 1, "B": 14868, "S": 1353613, "family": "rlve_recursive_sequence_sum", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-recursive-sequence-sum-l5-s8/solution/solve.sh b/tasks/construct-rlve-recursive-sequence-sum-l5-s8/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..ec9e2963ceb2083a9de75839e2737153284703b8 --- /dev/null +++ b/tasks/construct-rlve-recursive-sequence-sum-l5-s8/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"indices": [3, 8, 22, 26, 32]} +RLMATH_EOF diff --git a/tasks/construct-rlve-recursive-sequence-sum-l5-s8/tests/check.py b/tasks/construct-rlve-recursive-sequence-sum-l5-s8/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..feda076c3f95e5e12198151dee30e1b8223924bc --- /dev/null +++ b/tasks/construct-rlve-recursive-sequence-sum-l5-s8/tests/check.py @@ -0,0 +1,29 @@ +from run import Invalid, int_list + + +def F(inst, n): + F0, A, B = inst["F0"], inst["A"], inst["B"] + if A == 1: + return F0 + n * B + An = A ** n + return An * F0 + B * (An - 1) // (A - 1) + + +def check(inst, ans): + S = inst["S"] + idx = int_list(ans.get("indices"), None, 1, None, "indices") + if not idx: + raise Invalid("need at least one index") + if len(set(idx)) != len(idx): + raise Invalid("indices must be distinct") + total = 0 + for n in idx: + # F is strictly increasing with F(n) >= n and, when A >= 2, F(n) >= 2^(n-1); bail out before big powers + if n > S or (inst["A"] >= 2 and n - 1 > S.bit_length()): + raise Invalid(f"F({n}) exceeds S") + total += F(inst, n) + if total > S: + raise Invalid("sum exceeds S") + if total != S: + raise Invalid(f"sum is {total}, need {S}") + return None, {} diff --git a/tasks/construct-rlve-recursive-sequence-sum-l5-s8/tests/instance.json b/tasks/construct-rlve-recursive-sequence-sum-l5-s8/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..ef5e2d019d6ebc8ae66e874f7273e22e2e43aeb9 --- /dev/null +++ b/tasks/construct-rlve-recursive-sequence-sum-l5-s8/tests/instance.json @@ -0,0 +1 @@ +{"F0": 125, "A": 1, "B": 14868, "S": 1353613, "family": "rlve_recursive_sequence_sum", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-recursive-sequence-sum-l5-s8/tests/run.py b/tasks/construct-rlve-recursive-sequence-sum-l5-s8/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-recursive-sequence-sum-l5-s8/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-recursive-sequence-sum-l5-s8/tests/test.sh b/tasks/construct-rlve-recursive-sequence-sum-l5-s8/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-recursive-sequence-sum-l5-s8/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-round-robin-scores-l4-s2/environment/Dockerfile b/tasks/construct-rlve-round-robin-scores-l4-s2/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-round-robin-scores-l4-s2/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-round-robin-scores-l4-s2/environment/instance.json b/tasks/construct-rlve-round-robin-scores-l4-s2/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..c511788a3a34bca39fa28f47a2c4c9b5a1147b9c --- /dev/null +++ b/tasks/construct-rlve-round-robin-scores-l4-s2/environment/instance.json @@ -0,0 +1 @@ +{"W": [14, 12, 12, 10, 12, 12, 14, 11, 14, 13, 17, 21, 13], "family": "rlve_round_robin_scores", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-round-robin-scores-l4-s2/solution/solve.sh b/tasks/construct-rlve-round-robin-scores-l4-s2/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..d6c8ff2624656ca77fa17396625ef3ad02ccca47 --- /dev/null +++ b/tasks/construct-rlve-round-robin-scores-l4-s2/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"A": ["0112111111111", "1001110111121", "1201111110101", "0110111210100", "1111021111001", "1111001112011", "1211110111111", "1110111011111", "1111111101112", "1122101110001", "1111221112001", "1022211112201", "1112111101110"]} +RLMATH_EOF diff --git a/tasks/construct-rlve-round-robin-scores-l4-s2/tests/check.py b/tasks/construct-rlve-round-robin-scores-l4-s2/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..214446acaa90ce170daad3989b42317353060f9d --- /dev/null +++ b/tasks/construct-rlve-round-robin-scores-l4-s2/tests/check.py @@ -0,0 +1,24 @@ +from run import Invalid + + +def check(inst, ans): + W = inst["W"] + n = len(W) + A = ans.get("A") + if not isinstance(A, list) or len(A) != n: + raise Invalid(f"A must be a list of {n} strings") + for r in A: + if not isinstance(r, str) or len(r) != n or set(r) - {"0", "1", "2"}: + raise Invalid(f"each row must be a string of {n} digits 0/1/2") + for i in range(n): + if A[i][i] != "0": + raise Invalid("diagonal must be 0") + w = 0 + for j in range(n): + if i != j: + if int(A[i][j]) + int(A[j][i]) != 2: + raise Invalid(f"A[{i}][{j}] + A[{j}][{i}] != 2") + w += 3 * (A[i][j] == "2") + (A[i][j] == "1") + if w != W[i]: + raise Invalid(f"W[{i}] = {w}, need {W[i]}") + return None, {} diff --git a/tasks/construct-rlve-round-robin-scores-l4-s2/tests/instance.json b/tasks/construct-rlve-round-robin-scores-l4-s2/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..c511788a3a34bca39fa28f47a2c4c9b5a1147b9c --- /dev/null +++ b/tasks/construct-rlve-round-robin-scores-l4-s2/tests/instance.json @@ -0,0 +1 @@ +{"W": [14, 12, 12, 10, 12, 12, 14, 11, 14, 13, 17, 21, 13], "family": "rlve_round_robin_scores", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-round-robin-scores-l4-s2/tests/run.py b/tasks/construct-rlve-round-robin-scores-l4-s2/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-round-robin-scores-l4-s2/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-round-robin-scores-l4-s2/tests/test.sh b/tasks/construct-rlve-round-robin-scores-l4-s2/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-round-robin-scores-l4-s2/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-round-robin-scores-l4-s5/environment/Dockerfile b/tasks/construct-rlve-round-robin-scores-l4-s5/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-round-robin-scores-l4-s5/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-round-robin-scores-l4-s5/environment/instance.json b/tasks/construct-rlve-round-robin-scores-l4-s5/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..90f0c770d5b3ab4888f5c5a0bd1da315815ff3d5 --- /dev/null +++ b/tasks/construct-rlve-round-robin-scores-l4-s5/environment/instance.json @@ -0,0 +1 @@ +{"W": [19, 19, 18, 9, 13, 9, 20, 17, 15, 22, 15, 16, 21], "family": "rlve_round_robin_scores", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-round-robin-scores-l4-s5/solution/solve.sh b/tasks/construct-rlve-round-robin-scores-l4-s5/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..6247d17c79cf5599925751fab3970b73b63458f9 --- /dev/null +++ b/tasks/construct-rlve-round-robin-scores-l4-s5/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"A": ["0122221010201", "1020122121020", "0002212120012", "0200021001100", "0102020201101", "0010002020011", "1001200222220", "2112020000022", "1002200201210", "2121120210202", "0221120200010", "2012210012100", "1202112020220"]} +RLMATH_EOF diff --git a/tasks/construct-rlve-round-robin-scores-l4-s5/tests/check.py b/tasks/construct-rlve-round-robin-scores-l4-s5/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..214446acaa90ce170daad3989b42317353060f9d --- /dev/null +++ b/tasks/construct-rlve-round-robin-scores-l4-s5/tests/check.py @@ -0,0 +1,24 @@ +from run import Invalid + + +def check(inst, ans): + W = inst["W"] + n = len(W) + A = ans.get("A") + if not isinstance(A, list) or len(A) != n: + raise Invalid(f"A must be a list of {n} strings") + for r in A: + if not isinstance(r, str) or len(r) != n or set(r) - {"0", "1", "2"}: + raise Invalid(f"each row must be a string of {n} digits 0/1/2") + for i in range(n): + if A[i][i] != "0": + raise Invalid("diagonal must be 0") + w = 0 + for j in range(n): + if i != j: + if int(A[i][j]) + int(A[j][i]) != 2: + raise Invalid(f"A[{i}][{j}] + A[{j}][{i}] != 2") + w += 3 * (A[i][j] == "2") + (A[i][j] == "1") + if w != W[i]: + raise Invalid(f"W[{i}] = {w}, need {W[i]}") + return None, {} diff --git a/tasks/construct-rlve-round-robin-scores-l4-s5/tests/instance.json b/tasks/construct-rlve-round-robin-scores-l4-s5/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..90f0c770d5b3ab4888f5c5a0bd1da315815ff3d5 --- /dev/null +++ b/tasks/construct-rlve-round-robin-scores-l4-s5/tests/instance.json @@ -0,0 +1 @@ +{"W": [19, 19, 18, 9, 13, 9, 20, 17, 15, 22, 15, 16, 21], "family": "rlve_round_robin_scores", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-round-robin-scores-l4-s5/tests/run.py b/tasks/construct-rlve-round-robin-scores-l4-s5/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-round-robin-scores-l4-s5/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-round-robin-scores-l4-s5/tests/test.sh b/tasks/construct-rlve-round-robin-scores-l4-s5/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-round-robin-scores-l4-s5/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-shortest-path-count-l3-s0/environment/Dockerfile b/tasks/construct-rlve-shortest-path-count-l3-s0/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-shortest-path-count-l3-s0/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-shortest-path-count-l3-s0/environment/instance.json b/tasks/construct-rlve-shortest-path-count-l3-s0/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..3ba279540a163754761764dae145afa621dad6e5 --- /dev/null +++ b/tasks/construct-rlve-shortest-path-count-l3-s0/environment/instance.json @@ -0,0 +1 @@ +{"K": 67567, "n_max": 105, "family": "rlve_shortest_path_count", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-shortest-path-count-l3-s0/solution/solve.sh b/tasks/construct-rlve-shortest-path-count-l3-s0/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..4d00746aca7b55bf45614756d4d4f6f858166e06 --- /dev/null +++ b/tasks/construct-rlve-shortest-path-count-l3-s0/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"n": 51, "adj": ["NNYYNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNYNNNNNNNNNNNNNNNN", "NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNY", "YNNNYYNNNNNNNNNNNNNNNNNNNNNNNNNNNNNYNNNNNNNNNNNNNNN", "YNNNYYNNNNNNNNNNNNNNNNNNNNNNNNNNNNNYNNNNNNNNNNNNNNN", "NNYYNNYYNNNNNNNNNNNNNNNNNNNNNNNNNNNNYNNNNNNNNNNNNNN", "NNYYNNYYNNNNNNNNNNNNNNNNNNNNNNNNNNNNYNNNNNNNNNNNNNN", "NNNNYYNNYYNNNNNNNNNNNNNNNNNNNNNNNNNNNYNNNNNNNNNNNNN", "NNNNYYNNYYNNNNNNNNNNNNNNNNNNNNNNNNNNNYNNNNNNNNNNNNN", "NNNNNNYYNNYYNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN", "NNNNNNYYNNYYNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN", "NNNNNNNNYYNNYYNNNNNNNNNNNNNNNNNNNNNNNNNYNNNNNNNNNNN", "NNNNNNNNYYNNYYNNNNNNNNNNNNNNNNNNNNNNNNNYNNNNNNNNNNN", "NNNNNNNNNNYYNNYYNNNNNNNNNNNNNNNNNNNNNNNNYNNNNNNNNNN", "NNNNNNNNNNYYNNYYNNNNNNNNNNNNNNNNNNNNNNNNYNNNNNNNNNN", "NNNNNNNNNNNNYYNNYYNNNNNNNNNNNNNNNNNNNNNNNYNNNNNNNNN", "NNNNNNNNNNNNYYNNYYNNNNNNNNNNNNNNNNNNNNNNNYNNNNNNNNN", "NNNNNNNNNNNNNNYYNNYYNNNNNNNNNNNNNNNNNNNNNNYNNNNNNNN", "NNNNNNNNNNNNNNYYNNYYNNNNNNNNNNNNNNNNNNNNNNYNNNNNNNN", "NNNNNNNNNNNNNNNNYYNNYYNNNNNNNNNNNNNNNNNNNNNYNNNNNNN", "NNNNNNNNNNNNNNNNYYNNYYNNNNNNNNNNNNNNNNNNNNNYNNNNNNN", "NNNNNNNNNNNNNNNNNNYYNNYYNNNNNNNNNNNNNNNNNNNNYNNNNNN", "NNNNNNNNNNNNNNNNNNYYNNYYNNNNNNNNNNNNNNNNNNNNYNNNNNN", "NNNNNNNNNNNNNNNNNNNNYYNNYYNNNNNNNNNNNNNNNNNNNNNNNNN", "NNNNNNNNNNNNNNNNNNNNYYNNYYNNNNNNNNNNNNNNNNNNNNNNNNN", "NNNNNNNNNNNNNNNNNNNNNNYYNNYYNNNNNNNNNNNNNNNNNNNNNNN", "NNNNNNNNNNNNNNNNNNNNNNYYNNYYNNNNNNNNNNNNNNNNNNNNNNN", "NNNNNNNNNNNNNNNNNNNNNNNNYYNNYYNNNNNNNNNNNNNNNNNNNNN", "NNNNNNNNNNNNNNNNNNNNNNNNYYNNYYNNNNNNNNNNNNNNNNNNNNN", "NNNNNNNNNNNNNNNNNNNNNNNNNNYYNNYYNNNNNNNNNNNNNNNNNNN", "NNNNNNNNNNNNNNNNNNNNNNNNNNYYNNYYNNNNNNNNNNNNNNNNNNN", "NNNNNNNNNNNNNNNNNNNNNNNNNNNNYYNNYYNNNNNNNNNNNNNNNNN", "NNNNNNNNNNNNNNNNNNNNNNNNNNNNYYNNYYNNNNNNNNNNNNNNNNN", "NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNYYNNNNNNNNNNNNNNNNNNY", "NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNYYNNNNNNNNNNNNNNNNNNY", "YNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNYNNNNNNNNNNNNNNN", "NNYYNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNYNYNNNNNNNNNNNNNN", "NNNNYYNNNNNNNNNNNNNNNNNNNNNNNNNNNNNYNYNNNNNNNNNNNNN", "NNNNNNYYNNNNNNNNNNNNNNNNNNNNNNNNNNNNYNYNNNNNNNNNNNN", "NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNYNYNNNNNNNNNNN", "NNNNNNNNNNYYNNNNNNNNNNNNNNNNNNNNNNNNNNYNYNNNNNNNNNN", "NNNNNNNNNNNNYYNNNNNNNNNNNNNNNNNNNNNNNNNYNYNNNNNNNNN", "NNNNNNNNNNNNNNYYNNNNNNNNNNNNNNNNNNNNNNNNYNYNNNNNNNN", "NNNNNNNNNNNNNNNNYYNNNNNNNNNNNNNNNNNNNNNNNYNYNNNNNNN", "NNNNNNNNNNNNNNNNNNYYNNNNNNNNNNNNNNNNNNNNNNYNYNNNNNN", "NNNNNNNNNNNNNNNNNNNNYYNNNNNNNNNNNNNNNNNNNNNYNYNNNNN", "NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNYNYNNNN", "NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNYNYNNN", "NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNYNYNN", "NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNYNYN", "NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNYNY", "NYNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNYYNNNNNNNNNNNNNNNYN"]} +RLMATH_EOF diff --git a/tasks/construct-rlve-shortest-path-count-l3-s0/tests/check.py b/tasks/construct-rlve-shortest-path-count-l3-s0/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..c59d4c4f4bb4e824a2019380643a5b3ade0ca974 --- /dev/null +++ b/tasks/construct-rlve-shortest-path-count-l3-s0/tests/check.py @@ -0,0 +1,34 @@ +from run import Invalid, as_int + + +def check(inst, ans): + n = as_int(ans.get("n"), "n", lo=2, hi=inst["n_max"]) + adj = ans.get("adj") + if not isinstance(adj, list) or len(adj) != n: + raise Invalid(f"adj must be a list of {n} strings") + for r in adj: + if not isinstance(r, str) or len(r) != n or set(r) - {"Y", "N"}: + raise Invalid("each row must be a string of length n over {'Y','N'}") + for i in range(n): + if adj[i][i] != "N": + raise Invalid("self-loop") + for j in range(i + 1, n): + if adj[i][j] != adj[j][i]: + raise Invalid("matrix not symmetric") + nb = [[j for j in range(n) if adj[i][j] == "Y"] for i in range(n)] + dist = [-1] * n + cnt = [0] * n + dist[0], cnt[0] = 0, 1 + q = [0] + for u in q: # BFS with exact (Python int) path counts + for v in nb[u]: + if dist[v] < 0: + dist[v] = dist[u] + 1 + q.append(v) + if dist[v] == dist[u] + 1: + cnt[v] += cnt[u] + if dist[1] < 0: + raise Invalid("vertex 2 is unreachable from vertex 1") + if cnt[1] != inst["K"]: + raise Invalid(f"{cnt[1]} shortest paths, need {inst['K']}") + return None, {} diff --git a/tasks/construct-rlve-shortest-path-count-l3-s0/tests/instance.json b/tasks/construct-rlve-shortest-path-count-l3-s0/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..3ba279540a163754761764dae145afa621dad6e5 --- /dev/null +++ b/tasks/construct-rlve-shortest-path-count-l3-s0/tests/instance.json @@ -0,0 +1 @@ +{"K": 67567, "n_max": 105, "family": "rlve_shortest_path_count", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-shortest-path-count-l3-s0/tests/run.py b/tasks/construct-rlve-shortest-path-count-l3-s0/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-shortest-path-count-l3-s0/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-shortest-path-count-l3-s0/tests/test.sh b/tasks/construct-rlve-shortest-path-count-l3-s0/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-shortest-path-count-l3-s0/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-shortest-path-count-l3-s7/environment/Dockerfile b/tasks/construct-rlve-shortest-path-count-l3-s7/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-shortest-path-count-l3-s7/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-shortest-path-count-l3-s7/environment/instance.json b/tasks/construct-rlve-shortest-path-count-l3-s7/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..21374f0970b40cb566633cc1078ca9ca49ea540b --- /dev/null +++ b/tasks/construct-rlve-shortest-path-count-l3-s7/environment/instance.json @@ -0,0 +1 @@ +{"K": 16763, "n_max": 93, "family": "rlve_shortest_path_count", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-shortest-path-count-l3-s7/solution/solve.sh b/tasks/construct-rlve-shortest-path-count-l3-s7/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..2100382e8a578b2f39e43b78dea48c326498d78a --- /dev/null +++ b/tasks/construct-rlve-shortest-path-count-l3-s7/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"n": 45, "adj": ["NNYYNNNNNNNNNNNNNNNNNNNNNNNNNNYNNNNNNNNNNNNNN", "NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNY", "YNNNYYNNNNNNNNNNNNNNNNNNNNNNNNNYNNNNNNNNNNNNN", "YNNNYYNNNNNNNNNNNNNNNNNNNNNNNNNYNNNNNNNNNNNNN", "NNYYNNYYNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN", "NNYYNNYYNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN", "NNNNYYNNYYNNNNNNNNNNNNNNNNNNNNNNNYNNNNNNNNNNN", "NNNNYYNNYYNNNNNNNNNNNNNNNNNNNNNNNYNNNNNNNNNNN", "NNNNNNYYNNYYNNNNNNNNNNNNNNNNNNNNNNYNNNNNNNNNN", "NNNNNNYYNNYYNNNNNNNNNNNNNNNNNNNNNNYNNNNNNNNNN", "NNNNNNNNYYNNYYNNNNNNNNNNNNNNNNNNNNNYNNNNNNNNN", "NNNNNNNNYYNNYYNNNNNNNNNNNNNNNNNNNNNYNNNNNNNNN", "NNNNNNNNNNYYNNYYNNNNNNNNNNNNNNNNNNNNYNNNNNNNN", "NNNNNNNNNNYYNNYYNNNNNNNNNNNNNNNNNNNNYNNNNNNNN", "NNNNNNNNNNNNYYNNYYNNNNNNNNNNNNNNNNNNNNNNNNNNN", "NNNNNNNNNNNNYYNNYYNNNNNNNNNNNNNNNNNNNNNNNNNNN", "NNNNNNNNNNNNNNYYNNYYNNNNNNNNNNNNNNNNNNYNNNNNN", "NNNNNNNNNNNNNNYYNNYYNNNNNNNNNNNNNNNNNNYNNNNNN", "NNNNNNNNNNNNNNNNYYNNYYNNNNNNNNNNNNNNNNNNNNNNN", "NNNNNNNNNNNNNNNNYYNNYYNNNNNNNNNNNNNNNNNNNNNNN", "NNNNNNNNNNNNNNNNNNYYNNYYNNNNNNNNNNNNNNNNNNNNN", "NNNNNNNNNNNNNNNNNNYYNNYYNNNNNNNNNNNNNNNNNNNNN", "NNNNNNNNNNNNNNNNNNNNYYNNYYNNNNNNNNNNNNNNNNNNN", "NNNNNNNNNNNNNNNNNNNNYYNNYYNNNNNNNNNNNNNNNNNNN", "NNNNNNNNNNNNNNNNNNNNNNYYNNYYNNNNNNNNNNNNNNNNN", "NNNNNNNNNNNNNNNNNNNNNNYYNNYYNNNNNNNNNNNNNNNNN", "NNNNNNNNNNNNNNNNNNNNNNNNYYNNYYNNNNNNNNNNNNNNN", "NNNNNNNNNNNNNNNNNNNNNNNNYYNNYYNNNNNNNNNNNNNNN", "NNNNNNNNNNNNNNNNNNNNNNNNNNYYNNNNNNNNNNNNNNNNY", "NNNNNNNNNNNNNNNNNNNNNNNNNNYYNNNNNNNNNNNNNNNNY", "YNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNYNNNNNNNNNNNNN", "NNYYNNNNNNNNNNNNNNNNNNNNNNNNNNYNYNNNNNNNNNNNN", "NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNYNYNNNNNNNNNNN", "NNNNNNYYNNNNNNNNNNNNNNNNNNNNNNNNYNYNNNNNNNNNN", "NNNNNNNNYYNNNNNNNNNNNNNNNNNNNNNNNYNYNNNNNNNNN", "NNNNNNNNNNYYNNNNNNNNNNNNNNNNNNNNNNYNYNNNNNNNN", "NNNNNNNNNNNNYYNNNNNNNNNNNNNNNNNNNNNYNYNNNNNNN", "NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNYNYNNNNNN", "NNNNNNNNNNNNNNNNYYNNNNNNNNNNNNNNNNNNNYNYNNNNN", "NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNYNYNNNN", "NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNYNYNNN", "NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNYNYNN", "NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNYNYN", "NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNYNY", "NYNNNNNNNNNNNNNNNNNNNNNNNNNNYYNNNNNNNNNNNNNYN"]} +RLMATH_EOF diff --git a/tasks/construct-rlve-shortest-path-count-l3-s7/tests/check.py b/tasks/construct-rlve-shortest-path-count-l3-s7/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..c59d4c4f4bb4e824a2019380643a5b3ade0ca974 --- /dev/null +++ b/tasks/construct-rlve-shortest-path-count-l3-s7/tests/check.py @@ -0,0 +1,34 @@ +from run import Invalid, as_int + + +def check(inst, ans): + n = as_int(ans.get("n"), "n", lo=2, hi=inst["n_max"]) + adj = ans.get("adj") + if not isinstance(adj, list) or len(adj) != n: + raise Invalid(f"adj must be a list of {n} strings") + for r in adj: + if not isinstance(r, str) or len(r) != n or set(r) - {"Y", "N"}: + raise Invalid("each row must be a string of length n over {'Y','N'}") + for i in range(n): + if adj[i][i] != "N": + raise Invalid("self-loop") + for j in range(i + 1, n): + if adj[i][j] != adj[j][i]: + raise Invalid("matrix not symmetric") + nb = [[j for j in range(n) if adj[i][j] == "Y"] for i in range(n)] + dist = [-1] * n + cnt = [0] * n + dist[0], cnt[0] = 0, 1 + q = [0] + for u in q: # BFS with exact (Python int) path counts + for v in nb[u]: + if dist[v] < 0: + dist[v] = dist[u] + 1 + q.append(v) + if dist[v] == dist[u] + 1: + cnt[v] += cnt[u] + if dist[1] < 0: + raise Invalid("vertex 2 is unreachable from vertex 1") + if cnt[1] != inst["K"]: + raise Invalid(f"{cnt[1]} shortest paths, need {inst['K']}") + return None, {} diff --git a/tasks/construct-rlve-shortest-path-count-l3-s7/tests/instance.json b/tasks/construct-rlve-shortest-path-count-l3-s7/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..21374f0970b40cb566633cc1078ca9ca49ea540b --- /dev/null +++ b/tasks/construct-rlve-shortest-path-count-l3-s7/tests/instance.json @@ -0,0 +1 @@ +{"K": 16763, "n_max": 93, "family": "rlve_shortest_path_count", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-shortest-path-count-l3-s7/tests/run.py b/tasks/construct-rlve-shortest-path-count-l3-s7/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-shortest-path-count-l3-s7/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-shortest-path-count-l3-s7/tests/test.sh b/tasks/construct-rlve-shortest-path-count-l3-s7/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-shortest-path-count-l3-s7/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-shortest-path-count-l3-s9/environment/Dockerfile b/tasks/construct-rlve-shortest-path-count-l3-s9/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-shortest-path-count-l3-s9/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-shortest-path-count-l3-s9/environment/instance.json b/tasks/construct-rlve-shortest-path-count-l3-s9/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..5afd2a80880a1127a8fcca4d2e90832f4aee4db8 --- /dev/null +++ b/tasks/construct-rlve-shortest-path-count-l3-s9/environment/instance.json @@ -0,0 +1 @@ +{"K": 45662, "n_max": 99, "family": "rlve_shortest_path_count", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-shortest-path-count-l3-s9/solution/solve.sh b/tasks/construct-rlve-shortest-path-count-l3-s9/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..109c6315eee33373c3f3dc5989a0fe1c9e028d51 --- /dev/null +++ b/tasks/construct-rlve-shortest-path-count-l3-s9/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"n": 48, "adj": ["NNYYNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN", "NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNY", "YNNNYYNNNNNNNNNNNNNNNNNNNNNNNNNNNYNNNNNNNNNNNNNN", "YNNNYYNNNNNNNNNNNNNNNNNNNNNNNNNNNYNNNNNNNNNNNNNN", "NNYYNNYYNNNNNNNNNNNNNNNNNNNNNNNNNNYNNNNNNNNNNNNN", "NNYYNNYYNNNNNNNNNNNNNNNNNNNNNNNNNNYNNNNNNNNNNNNN", "NNNNYYNNYYNNNNNNNNNNNNNNNNNNNNNNNNNYNNNNNNNNNNNN", "NNNNYYNNYYNNNNNNNNNNNNNNNNNNNNNNNNNYNNNNNNNNNNNN", "NNNNNNYYNNYYNNNNNNNNNNNNNNNNNNNNNNNNYNNNNNNNNNNN", "NNNNNNYYNNYYNNNNNNNNNNNNNNNNNNNNNNNNYNNNNNNNNNNN", "NNNNNNNNYYNNYYNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN", "NNNNNNNNYYNNYYNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN", "NNNNNNNNNNYYNNYYNNNNNNNNNNNNNNNNNNNNNNYNNNNNNNNN", "NNNNNNNNNNYYNNYYNNNNNNNNNNNNNNNNNNNNNNYNNNNNNNNN", "NNNNNNNNNNNNYYNNYYNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN", "NNNNNNNNNNNNYYNNYYNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN", "NNNNNNNNNNNNNNYYNNYYNNNNNNNNNNNNNNNNNNNNNNNNNNNN", "NNNNNNNNNNNNNNYYNNYYNNNNNNNNNNNNNNNNNNNNNNNNNNNN", "NNNNNNNNNNNNNNNNYYNNYYNNNNNNNNNNNNNNNNNNNYNNNNNN", "NNNNNNNNNNNNNNNNYYNNYYNNNNNNNNNNNNNNNNNNNYNNNNNN", "NNNNNNNNNNNNNNNNNNYYNNYYNNNNNNNNNNNNNNNNNNNNNNNN", "NNNNNNNNNNNNNNNNNNYYNNYYNNNNNNNNNNNNNNNNNNNNNNNN", "NNNNNNNNNNNNNNNNNNNNYYNNYYNNNNNNNNNNNNNNNNNNNNNN", "NNNNNNNNNNNNNNNNNNNNYYNNYYNNNNNNNNNNNNNNNNNNNNNN", "NNNNNNNNNNNNNNNNNNNNNNYYNNYYNNNNNNNNNNNNNNNNYNNN", "NNNNNNNNNNNNNNNNNNNNNNYYNNYYNNNNNNNNNNNNNNNNYNNN", "NNNNNNNNNNNNNNNNNNNNNNNNYYNNYYNNNNNNNNNNNNNNNYNN", "NNNNNNNNNNNNNNNNNNNNNNNNYYNNYYNNNNNNNNNNNNNNNYNN", "NNNNNNNNNNNNNNNNNNNNNNNNNNYYNNYYNNNNNNNNNNNNNNNN", "NNNNNNNNNNNNNNNNNNNNNNNNNNYYNNYYNNNNNNNNNNNNNNNN", "NNNNNNNNNNNNNNNNNNNNNNNNNNNNYYNNNNNNNNNNNNNNNNNY", "NNNNNNNNNNNNNNNNNNNNNNNNNNNNYYNNNNNNNNNNNNNNNNNY", "NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNYNNNNNNNNNNNNNN", "NNYYNNNNNNNNNNNNNNNNNNNNNNNNNNNNYNYNNNNNNNNNNNNN", "NNNNYYNNNNNNNNNNNNNNNNNNNNNNNNNNNYNYNNNNNNNNNNNN", "NNNNNNYYNNNNNNNNNNNNNNNNNNNNNNNNNNYNYNNNNNNNNNNN", "NNNNNNNNYYNNNNNNNNNNNNNNNNNNNNNNNNNYNYNNNNNNNNNN", "NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNYNYNNNNNNNNN", "NNNNNNNNNNNNYYNNNNNNNNNNNNNNNNNNNNNNNYNYNNNNNNNN", "NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNYNYNNNNNNN", "NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNYNYNNNNNN", "NNNNNNNNNNNNNNNNNNYYNNNNNNNNNNNNNNNNNNNNYNYNNNNN", "NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNYNYNNNN", "NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNYNYNNN", "NNNNNNNNNNNNNNNNNNNNNNNNYYNNNNNNNNNNNNNNNNNYNYNN", "NNNNNNNNNNNNNNNNNNNNNNNNNNYYNNNNNNNNNNNNNNNNYNYN", "NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNYNY", "NYNNNNNNNNNNNNNNNNNNNNNNNNNNNNYYNNNNNNNNNNNNNNYN"]} +RLMATH_EOF diff --git a/tasks/construct-rlve-shortest-path-count-l3-s9/tests/check.py b/tasks/construct-rlve-shortest-path-count-l3-s9/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..c59d4c4f4bb4e824a2019380643a5b3ade0ca974 --- /dev/null +++ b/tasks/construct-rlve-shortest-path-count-l3-s9/tests/check.py @@ -0,0 +1,34 @@ +from run import Invalid, as_int + + +def check(inst, ans): + n = as_int(ans.get("n"), "n", lo=2, hi=inst["n_max"]) + adj = ans.get("adj") + if not isinstance(adj, list) or len(adj) != n: + raise Invalid(f"adj must be a list of {n} strings") + for r in adj: + if not isinstance(r, str) or len(r) != n or set(r) - {"Y", "N"}: + raise Invalid("each row must be a string of length n over {'Y','N'}") + for i in range(n): + if adj[i][i] != "N": + raise Invalid("self-loop") + for j in range(i + 1, n): + if adj[i][j] != adj[j][i]: + raise Invalid("matrix not symmetric") + nb = [[j for j in range(n) if adj[i][j] == "Y"] for i in range(n)] + dist = [-1] * n + cnt = [0] * n + dist[0], cnt[0] = 0, 1 + q = [0] + for u in q: # BFS with exact (Python int) path counts + for v in nb[u]: + if dist[v] < 0: + dist[v] = dist[u] + 1 + q.append(v) + if dist[v] == dist[u] + 1: + cnt[v] += cnt[u] + if dist[1] < 0: + raise Invalid("vertex 2 is unreachable from vertex 1") + if cnt[1] != inst["K"]: + raise Invalid(f"{cnt[1]} shortest paths, need {inst['K']}") + return None, {} diff --git a/tasks/construct-rlve-shortest-path-count-l3-s9/tests/instance.json b/tasks/construct-rlve-shortest-path-count-l3-s9/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..5afd2a80880a1127a8fcca4d2e90832f4aee4db8 --- /dev/null +++ b/tasks/construct-rlve-shortest-path-count-l3-s9/tests/instance.json @@ -0,0 +1 @@ +{"K": 45662, "n_max": 99, "family": "rlve_shortest_path_count", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-shortest-path-count-l3-s9/tests/run.py b/tasks/construct-rlve-shortest-path-count-l3-s9/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-shortest-path-count-l3-s9/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-shortest-path-count-l3-s9/tests/test.sh b/tasks/construct-rlve-shortest-path-count-l3-s9/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-shortest-path-count-l3-s9/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-smallest-enclosing-circle-l4-s3/environment/Dockerfile b/tasks/construct-rlve-smallest-enclosing-circle-l4-s3/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-smallest-enclosing-circle-l4-s3/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-smallest-enclosing-circle-l4-s3/environment/instance.json b/tasks/construct-rlve-smallest-enclosing-circle-l4-s3/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..b7345e454f66bdce535d24008e1c669d36769599 --- /dev/null +++ b/tasks/construct-rlve-smallest-enclosing-circle-l4-s3/environment/instance.json @@ -0,0 +1 @@ +{"points": [[5, 10], [7, 43], [7, 49], [8, 17], [9, 40], [11, 5], [12, 24], [13, 44], [15, 19], [15, 55], [16, 45], [20, 13], [22, 40], [24, 14], [24, 22], [27, 9], [32, 11], [35, 25], [35, 36], [37, 2], [37, 25], [38, 4], [43, 31], [43, 55], [44, 42], [45, 26], [45, 39], [46, 3], [50, 17], [50, 51]], "r_opt": 30.55126652079344, "r2_num": 232412525, "r2_den": 249001, "family": "rlve_smallest_enclosing_circle", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-smallest-enclosing-circle-l4-s3/solution/solve.sh b/tasks/construct-rlve-smallest-enclosing-circle-l4-s3/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..e741dcf99c4dfdb0b49e4ac472be173720b41ba0 --- /dev/null +++ b/tasks/construct-rlve-smallest-enclosing-circle-l4-s3/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"x": 29.266533066132265, "y": 28.561122244488978, "r": 30.55126652179344} +RLMATH_EOF diff --git a/tasks/construct-rlve-smallest-enclosing-circle-l4-s3/tests/check.py b/tasks/construct-rlve-smallest-enclosing-circle-l4-s3/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..0eabf3219588f98db42bf5fd305dc24ce21ca495 --- /dev/null +++ b/tasks/construct-rlve-smallest-enclosing-circle-l4-s3/tests/check.py @@ -0,0 +1,17 @@ +import math + +from run import Invalid, num + +TOL = 1e-6 + + +def check(inst, ans): + x, y, r = num(ans.get("x"), "x"), num(ans.get("y"), "y"), num(ans.get("r"), "r") + if r <= 0: + raise Invalid("r must be positive") + if r > inst["r_opt"] + TOL: + raise Invalid(f"r = {r} exceeds the minimum radius {inst['r_opt']} by more than {TOL}") + for px, py in inst["points"]: + if math.hypot(px - x, py - y) > r + TOL: + raise Invalid(f"point ({px}, {py}) is outside the circle") + return None, {"r": r} diff --git a/tasks/construct-rlve-smallest-enclosing-circle-l4-s3/tests/instance.json b/tasks/construct-rlve-smallest-enclosing-circle-l4-s3/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..b7345e454f66bdce535d24008e1c669d36769599 --- /dev/null +++ b/tasks/construct-rlve-smallest-enclosing-circle-l4-s3/tests/instance.json @@ -0,0 +1 @@ +{"points": [[5, 10], [7, 43], [7, 49], [8, 17], [9, 40], [11, 5], [12, 24], [13, 44], [15, 19], [15, 55], [16, 45], [20, 13], [22, 40], [24, 14], [24, 22], [27, 9], [32, 11], [35, 25], [35, 36], [37, 2], [37, 25], [38, 4], [43, 31], [43, 55], [44, 42], [45, 26], [45, 39], [46, 3], [50, 17], [50, 51]], "r_opt": 30.55126652079344, "r2_num": 232412525, "r2_den": 249001, "family": "rlve_smallest_enclosing_circle", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-smallest-enclosing-circle-l4-s3/tests/run.py b/tasks/construct-rlve-smallest-enclosing-circle-l4-s3/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-smallest-enclosing-circle-l4-s3/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-smallest-enclosing-circle-l4-s3/tests/test.sh b/tasks/construct-rlve-smallest-enclosing-circle-l4-s3/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-smallest-enclosing-circle-l4-s3/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/construct-rlve-smallest-enclosing-circle-l4-s4/environment/Dockerfile b/tasks/construct-rlve-smallest-enclosing-circle-l4-s4/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/construct-rlve-smallest-enclosing-circle-l4-s4/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/construct-rlve-smallest-enclosing-circle-l4-s4/environment/instance.json b/tasks/construct-rlve-smallest-enclosing-circle-l4-s4/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..b73e7f6fe56c66a9d29ea0e7eaad1dbd4c50aba1 --- /dev/null +++ b/tasks/construct-rlve-smallest-enclosing-circle-l4-s4/environment/instance.json @@ -0,0 +1 @@ +{"points": [[3, 40], [9, 13], [9, 24], [12, 7], [13, 53], [13, 60], [19, 3], [19, 52], [20, 14], [20, 36], [23, 59], [24, 17], [25, 52], [26, 12], [27, 23], [27, 39], [29, 22], [31, 45], [36, 4], [36, 13], [41, 31], [43, 29], [45, 55], [48, 14], [48, 38], [50, 37], [55, 57], [56, 32], [58, 22], [58, 40]], "r_opt": 33.018867039245144, "r2_num": 1203737965, "r2_den": 1104098, "family": "rlve_smallest_enclosing_circle", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-smallest-enclosing-circle-l4-s4/solution/solve.sh b/tasks/construct-rlve-smallest-enclosing-circle-l4-s4/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..6600f4d8460df60d081211ebdff0a1326cf10ef1 --- /dev/null +++ b/tasks/construct-rlve-smallest-enclosing-circle-l4-s4/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"x": 32.187752355316285, "y": 33.128532974428, "r": 33.01886704024514} +RLMATH_EOF diff --git a/tasks/construct-rlve-smallest-enclosing-circle-l4-s4/tests/check.py b/tasks/construct-rlve-smallest-enclosing-circle-l4-s4/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..0eabf3219588f98db42bf5fd305dc24ce21ca495 --- /dev/null +++ b/tasks/construct-rlve-smallest-enclosing-circle-l4-s4/tests/check.py @@ -0,0 +1,17 @@ +import math + +from run import Invalid, num + +TOL = 1e-6 + + +def check(inst, ans): + x, y, r = num(ans.get("x"), "x"), num(ans.get("y"), "y"), num(ans.get("r"), "r") + if r <= 0: + raise Invalid("r must be positive") + if r > inst["r_opt"] + TOL: + raise Invalid(f"r = {r} exceeds the minimum radius {inst['r_opt']} by more than {TOL}") + for px, py in inst["points"]: + if math.hypot(px - x, py - y) > r + TOL: + raise Invalid(f"point ({px}, {py}) is outside the circle") + return None, {"r": r} diff --git a/tasks/construct-rlve-smallest-enclosing-circle-l4-s4/tests/instance.json b/tasks/construct-rlve-smallest-enclosing-circle-l4-s4/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..b73e7f6fe56c66a9d29ea0e7eaad1dbd4c50aba1 --- /dev/null +++ b/tasks/construct-rlve-smallest-enclosing-circle-l4-s4/tests/instance.json @@ -0,0 +1 @@ +{"points": [[3, 40], [9, 13], [9, 24], [12, 7], [13, 53], [13, 60], [19, 3], [19, 52], [20, 14], [20, 36], [23, 59], [24, 17], [25, 52], [26, 12], [27, 23], [27, 39], [29, 22], [31, 45], [36, 4], [36, 13], [41, 31], [43, 29], [45, 55], [48, 14], [48, 38], [50, 37], [55, 57], [56, 32], [58, 22], [58, 40]], "r_opt": 33.018867039245144, "r2_num": 1203737965, "r2_den": 1104098, "family": "rlve_smallest_enclosing_circle", "subset": "construct"} \ No newline at end of file diff --git a/tasks/construct-rlve-smallest-enclosing-circle-l4-s4/tests/run.py b/tasks/construct-rlve-smallest-enclosing-circle-l4-s4/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/construct-rlve-smallest-enclosing-circle-l4-s4/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/construct-rlve-smallest-enclosing-circle-l4-s4/tests/test.sh b/tasks/construct-rlve-smallest-enclosing-circle-l4-s4/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/construct-rlve-smallest-enclosing-circle-l4-s4/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/optimize-ae-p16-gagliardo-nirenberg-p6/environment/Dockerfile b/tasks/optimize-ae-p16-gagliardo-nirenberg-p6/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/optimize-ae-p16-gagliardo-nirenberg-p6/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/optimize-ae-p16-gagliardo-nirenberg-p6/environment/instance.json b/tasks/optimize-ae-p16-gagliardo-nirenberg-p6/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..4bfd134a8f4fe95d40d987ddb667738d64c1dfd0 --- /dev/null +++ b/tasks/optimize-ae-p16-gagliardo-nirenberg-p6/environment/instance.json @@ -0,0 +1 @@ +{"p": 6, "max_len": 200000, "direction": "maximize", "family": "ae_p16_gagliardo_nirenberg", "subset": "optimize"} \ No newline at end of file diff --git a/tasks/optimize-ae-p16-gagliardo-nirenberg-p6/solution/solve.sh b/tasks/optimize-ae-p16-gagliardo-nirenberg-p6/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..4f88ca4b501a2b93b73115715bd8d67f3f5775fd --- /dev/null +++ b/tasks/optimize-ae-p16-gagliardo-nirenberg-p6/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"values": [2.9185573244694702e-09, 2.9222078021983223e-09, 2.925862845877449e-09, 2.929522461217868e-09, 2.9331866539377388e-09, 2.936855429762343e-09, 2.9405287944241533e-09, 2.944206753662814e-09, 2.9478893132251154e-09, 2.951576478865069e-09, 2.9552682563438815e-09, 2.9589646514299353e-09, 2.962665669898859e-09, 2.9663713175334947e-09, 2.970081600123928e-09, 2.973796523467455e-09, 2.9775160933686554e-09, 2.981240315639368e-09, 2.9849691960986697e-09, 2.9887027405729475e-09, 2.992440954895876e-09, 2.9961838449083947e-09, 2.9999314164587808e-09, 3.003683675402626e-09, 3.0074406276028147e-09, 3.0112022789295955e-09, 3.014968635260561e-09, 3.0187397024806214e-09, 3.022515486482081e-09, 3.026295993164614e-09, 3.0300812284352413e-09, 3.0338711982084045e-09, 3.037665908405943e-09, 3.0414653649570703e-09, 3.0452695737984495e-09, 3.0490785408741683e-09, 3.052892272135716e-09, 3.0567107735420604e-09, 3.0605340510596105e-09, 3.0643621106622487e-09, 3.0681949583312976e-09, 3.072032600055593e-09, 3.075875041831462e-09, 3.0797222896626988e-09, 3.0835743495606394e-09, 3.0874312275441395e-09, 3.0912929296395503e-09, 3.0951594618807924e-09, 3.099030830309334e-09, 3.1029070409741678e-09, 3.1067880999318846e-09, 3.1106740132466502e-09, 3.1145647869901835e-09, 3.11846042724183e-09, 3.12236094008854e-09, 3.1262663316248427e-09, 3.130176607952925e-09, 3.1340917751826047e-09, 3.13801183943131e-09, 3.141936806824152e-09, 3.145866683493906e-09, 3.1498014755809815e-09, 3.1537411892335035e-09, 3.157685830607275e-09, 3.161635405865811e-09, 3.1655899211803004e-09, 3.1695493827296855e-09, 3.1735137967006376e-09, 3.177483169287531e-09, 3.181457506692523e-09, 3.185436815125528e-09, 3.1894211008041935e-09, 3.1934103699539776e-09, 3.1974046288081257e-09, 3.2014038836076457e-09, 3.205408140601385e-09, 3.2094174060460077e-09, 3.2134316862059686e-09, 3.2174509873535936e-09, 3.221475315769052e-09, 3.225504677740335e-09, 3.2295390795633335e-09, 3.233578527541812e-09, 3.2376230279873867e-09, 3.241672587219601e-09, 3.2457272115659037e-09, 3.2497869073616238e-09, 3.253851680950047e-09, 3.2579215386823845e-09, 3.2619964869178e-09, 3.266076532023379e-09, 3.2701616803742035e-09, 3.2742519383533302e-09, 3.2783473123517652e-09, 3.282447808768543e-09, 3.2865534340107016e-09, 3.2906641944932576e-09, 3.294780096639287e-09, 3.2989011468798993e-09, 3.303027351654213e-09, 3.307158717409436e-09, 3.3112952506008393e-09, 3.3154369576917335e-09, 3.3195838451535486e-09, 3.323735919465809e-09, 3.327893187116108e-09, 3.3320556546001892e-09, 3.33622332842192e-09, 3.3403962150932687e-09, 3.344574321134383e-09, 3.3487576530735666e-09, 3.352946217447252e-09, 3.357140020800085e-09, 3.3613390696848827e-09, 3.3655433706626733e-09, 3.3697529303026533e-09, 3.373967755182272e-09, 3.378187851887207e-09, 3.3824132270113355e-09, 3.3866438871568197e-09, 3.3908798389340784e-09, 3.3951210889617633e-09, 3.3993676438668405e-09, 3.403619510284565e-09, 3.4078766948584544e-09, 3.4121392042403734e-09, 3.416407045090505e-09, 3.4206802240773275e-09, 3.4249587478776962e-09, 3.429242623176817e-09, 3.4335318566682222e-09, 3.4378264550538523e-09, 3.44212642504403e-09, 3.4464317733574346e-09, 3.4507425067211866e-09, 3.4550586318708193e-09, 3.459380155550255e-09, 3.4637070845118877e-09, 3.468039425516545e-09, 3.4723771853335223e-09, 3.4767203707405456e-09, 3.4810689885238558e-09, 3.4854230454781807e-09, 3.489782548406711e-09, 3.494147504121184e-09, 3.4985179194418544e-09, 3.502893801197474e-09, 3.50727515622537e-09, 3.5116619913714243e-09, 3.5160543134900417e-09, 3.5204521294442396e-09, 3.524855446105618e-09, 3.5292642703543357e-09, 3.533678609079194e-09, 3.5380984691776104e-09, 3.5425238575555925e-09, 3.546954781127822e-09, 3.551391246817632e-09, 3.555833261556975e-09, 3.5602808322865123e-09, 3.564733965955587e-09, 3.5691926695221963e-09, 3.573656949953078e-09, 3.5781268142236706e-09, 3.5826022693181513e-09, 3.587083322229394e-09, 3.5915699799590576e-09, 3.596062249517558e-09, 3.6005601379240426e-09, 3.605063652206475e-09, 3.60957279940161e-09, 3.614087586554966e-09, 3.618608020720911e-09, 3.6231341089626377e-09, 3.6276658583521337e-09, 3.6322032759702714e-09, 3.63674636890678e-09, 3.641295144260217e-09, 3.6458496091380574e-09, 3.650409770656667e-09, 3.6549756359412726e-09, 3.6595472121260535e-09, 3.6641245063541104e-09, 3.6687075257774413e-09, 3.6732962775570272e-09, 3.6778907688628073e-09, 3.6824910068736493e-09, 3.6870969987774387e-09, 3.6917087517710382e-09, 3.696326273060327e-09, 3.700949569860157e-09, 3.7055786493944417e-09, 3.710213518896134e-09, 3.714854185607191e-09, 3.7195006567786682e-09, 3.7241529396706924e-09, 3.728811041552429e-09, 3.733474969702177e-09, 3.738144731407337e-09, 3.742820333964387e-09, 3.747501784678971e-09, 3.75218909086587e-09, 3.756882259848973e-09, 3.761581298961371e-09, 3.7662862155453275e-09, 3.770997016952249e-09, 3.775713710542776e-09, 3.780436303686757e-09, 3.785164803763219e-09, 3.789899218160457e-09, 3.794639554276008e-09, 3.7993858195166205e-09, 3.80413802129835e-09, 3.80889616704651e-09, 3.813660264195721e-09, 3.818430320189856e-09, 3.823206342482144e-09, 3.827988338535134e-09, 3.832776315820667e-09, 3.8375702818199736e-09, 3.84237024402364e-09, 3.847176209931581e-09, 3.851988187053133e-09, 3.856806182907024e-09, 3.861630205021347e-09, 3.866460260933651e-09, 3.8712963581909126e-09, 3.876138504349508e-09, 3.880986706975306e-09, 3.885840973643636e-09, 3.890701311939264e-09, 3.895567729456484e-09, 3.900440233799088e-09, 3.905318832580336e-09, 3.910203533423055e-09, 3.915094343959604e-09, 3.9199912718318484e-09, 3.9248943246912526e-09, 3.929803510198838e-09, 3.934718836025221e-09, 3.9396403098505725e-09, 3.9445679393647084e-09, 3.949501732267067e-09, 3.954441696266672e-09, 3.959387839082231e-09, 3.964340168442109e-09, 3.9692986920842926e-09, 3.97426341775649e-09, 3.9792343532161e-09, 3.984211506230183e-09, 3.989194884575554e-09, 3.9941844960387596e-09, 3.999180348416037e-09, 4.0041824495134235e-09, 4.009190807146716e-09, 4.014205429141446e-09, 4.0192263233329755e-09, 4.024253497566467e-09, 4.0292869596968536e-09, 4.034326717588934e-09, 4.039372779117346e-09, 4.044425152166533e-09, 4.0494838446308426e-09, 4.054548864414484e-09, 4.059620219431565e-09, 4.06469791760605e-09, 4.069781966871858e-09, 4.074872375172832e-09, 4.0799691504627075e-09, 4.08507230070521e-09, 4.0901818338740286e-09, 4.095297757952779e-09, 4.100420080935111e-09, 4.105548810824667e-09, 4.110683955635061e-09, 4.115825523389972e-09, 4.120973522123115e-09, 4.126127959878211e-09, 4.131288844709083e-09, 4.13645618467963e-09, 4.141629987863793e-09, 4.146810262345654e-09, 4.151997016219409e-09, 4.1571902575893315e-09, 4.162389994569877e-09, 4.1675962352856505e-09, 4.172808987871376e-09, 4.1780282604719926e-09, 4.183254061242617e-09, 4.188486398348577e-09, 4.193725279965373e-09, 4.198970714278772e-09, 4.20422270948478e-09, 4.209481273789613e-09, 4.214746415409793e-09, 4.220018142572119e-09, 4.2252964635136364e-09, 4.230581386481738e-09, 4.235872919734131e-09, 4.241171071538808e-09, 4.246475850174148e-09, 4.251787263928882e-09, 4.257105321102066e-09, 4.26243003000318e-09, 4.267761398952099e-09, 4.273099436279057e-09, 4.278444150324753e-09, 4.28379554944032e-09, 4.289153641987289e-09, 4.294518436337696e-09, 4.29988994087405e-09, 4.305268163989295e-09, 4.310653114086922e-09, 4.316044799580917e-09, 4.321443228895805e-09, 4.326848410466602e-09, 4.3322603527389205e-09, 4.337679064168937e-09, 4.343104553223358e-09, 4.348536828379528e-09, 4.3539758981253914e-09, 4.359421770959467e-09, 4.364874455390946e-09, 4.3703339599396655e-09, 4.375800293136071e-09, 4.381273463521324e-09, 4.386753479647271e-09, 4.392240350076407e-09, 4.397734083381984e-09, 4.403234688147976e-09, 4.408742172969049e-09, 4.414256546450664e-09, 4.419777817209046e-09, 4.425305993871152e-09, 4.430841085074773e-09, 4.436383099468506e-09, 4.44193204571172e-09, 4.447487932474659e-09, 4.453050768438397e-09, 4.458620562294883e-09, 4.464197322746888e-09, 4.4697810585081186e-09, 4.475371778303178e-09, 4.4809694908675355e-09, 4.486574204947634e-09, 4.492185929300858e-09, 4.497804672695493e-09, 4.5034304439108445e-09, 4.509063251737197e-09, 4.514703104975782e-09, 4.5203500124388865e-09, 4.526003982949821e-09, 4.5316650253428846e-09, 4.5373331484634705e-09, 4.543008361168042e-09, 4.548690672324085e-09, 4.554380090810229e-09, 4.560076625516208e-09, 4.565780285342826e-09, 4.571491079202068e-09, 4.577209016017068e-09, 4.582934104722071e-09, 4.588666354262544e-09, 4.594405773595129e-09, 4.600152371687688e-09, 4.605906157519245e-09, 4.611667140080112e-09, 4.61743532837184e-09, 4.6232107314071905e-09, 4.62899335821025e-09, 4.63478321781639e-09, 4.640580319272234e-09, 4.646384671635772e-09, 4.65219628397632e-09, 4.658015165374492e-09, 4.663841324922308e-09, 4.669674771723159e-09, 4.675515514891775e-09, 4.681363563554334e-09, 4.687218926848429e-09, 4.693081613923035e-09, 4.698951633938618e-09, 4.704828996067102e-09, 4.710713709491832e-09, 4.716605783407692e-09, 4.722505227021065e-09, 4.728412049549798e-09, 4.734326260223321e-09, 4.74024786828259e-09, 4.746176882980134e-09, 4.752113313580005e-09, 4.758057169357896e-09, 4.764008459601099e-09, 4.769967193608473e-09, 4.7759333806905575e-09, 4.781907030169538e-09, 4.787888151379209e-09, 4.79387675366509e-09, 4.799872846384392e-09, 4.805876438905975e-09, 4.811887540610471e-09, 4.817906160890247e-09, 4.823932309149361e-09, 4.82996599480369e-09, 4.836007227280886e-09, 4.842056016020341e-09, 4.848112370473306e-09, 4.854176300102854e-09, 4.860247814383841e-09, 4.8663269228030264e-09, 4.872413634859036e-09, 4.878507960062325e-09, 4.8846099079352935e-09, 4.890719488012237e-09, 4.896836709839393e-09, 4.902961582974886e-09, 4.909094116988851e-09, 4.91523432146339e-09, 4.921382205992538e-09, 4.927537780182385e-09, 4.933701053651033e-09, 4.939872036028564e-09, 4.9460507369571564e-09, 4.952237166091049e-09, 4.958431333096504e-09, 4.9646332476519244e-09, 4.970842919447823e-09, 4.977060358186777e-09, 4.983285573583552e-09, 4.989518575365068e-09, 4.9957593732703566e-09, 5.00200797705068e-09, 5.0082643964695055e-09, 5.01452864130245e-09, 5.020800721337418e-09, 5.02708064637455e-09, 5.033368426226199e-09, 5.039664070717038e-09, 5.045967589684012e-09, 5.0522789929763895e-09, 5.058598290455704e-09, 5.064925491995876e-09, 5.071260607483178e-09, 5.077603646816192e-09, 5.083954619905938e-09, 5.09031353667583e-09, 5.096680407061641e-09, 5.103055241011625e-09, 5.109438048486479e-09, 5.115828839459305e-09, 5.122227623915733e-09, 5.1286344118538845e-09, 5.13504921328433e-09, 5.1414720382302144e-09, 5.147902896727225e-09, 5.154341798823539e-09, 5.160788754579963e-09, 5.167243774069885e-09, 5.173706867379236e-09, 5.180178044606619e-09, 5.186657315863271e-09, 5.193144691273015e-09, 5.199640180972395e-09, 5.206143795110616e-09, 5.212655543849596e-09, 5.219175437363903e-09, 5.225703485840894e-09, 5.232239699480663e-09, 5.238784088496009e-09, 5.245336663112559e-09, 5.25189743356873e-09, 5.2584664101156914e-09, 5.265043603017488e-09, 5.271629022551005e-09, 5.278222679005923e-09, 5.284824582684851e-09, 5.291434743903283e-09, 5.29805317298956e-09, 5.304679880284999e-09, 5.311314876143848e-09, 5.317958170933252e-09, 5.3246097750333815e-09, 5.331269698837386e-09, 5.33793795275136e-09, 5.344614547194473e-09, 5.35129949259892e-09, 5.357992799409896e-09, 5.36469447808571e-09, 5.371404539097738e-09, 5.37812299293047e-09, 5.384849850081453e-09, 5.391585121061423e-09, 5.39832881639426e-09, 5.4050809466169525e-09, 5.411841522279724e-09, 5.4186105539459935e-09, 5.425388052192337e-09, 5.432174027608616e-09, 5.438968490797937e-09, 5.445771452376613e-09, 5.452582922974291e-09, 5.459402913233915e-09, 5.466231433811682e-09, 5.473068495377176e-09, 5.4799141086133275e-09, 5.486768284216369e-09, 5.493631032895971e-09, 5.500502365375199e-09, 5.507382292390473e-09, 5.514270824691699e-09, 5.521167973042229e-09, 5.5280737482188215e-09, 5.534988161011771e-09, 5.541911222224847e-09, 5.548842942675355e-09, 5.5557833331940704e-09, 5.562732404625375e-09, 5.569690167827212e-09, 5.57665663367105e-09, 5.5836318130420134e-09, 5.59061571683884e-09, 5.597608355973841e-09, 5.604609741373038e-09, 5.611619883976116e-09, 5.618638794736384e-09, 5.625666484620912e-09, 5.632702964610487e-09, 5.63974824569957e-09, 5.6468023388964344e-09, 5.6538652552231226e-09, 5.660937005715402e-09, 5.668017601422904e-09, 5.675107053409082e-09, 5.682205372751166e-09, 5.6893125705403e-09, 5.696428657881504e-09, 5.703553645893624e-09, 5.710687545709476e-09, 5.7178303684757804e-09, 5.724982125353219e-09, 5.732142827516373e-09, 5.7393124861538614e-09, 5.746491112468297e-09, 5.753678717676244e-09, 5.760875313008359e-09, 5.7680809097093435e-09, 5.775295519037901e-09, 5.782519152266883e-09, 5.789751820683237e-09, 5.796993535587969e-09, 5.804244308296279e-09, 5.811504150137521e-09, 5.818773072455161e-09, 5.82605108660691e-09, 5.8333382039646886e-09, 5.840634435914576e-09, 5.847939793856958e-09, 5.8552542892064785e-09, 5.862577933391996e-09, 5.869910737856728e-09, 5.877252714058203e-09, 5.884603873468218e-09, 5.891964227572982e-09, 5.899333787873051e-09, 5.906712565883385e-09, 5.9141005731332836e-09, 5.921497821166531e-09, 5.92890432154135e-09, 5.936320085830356e-09, 5.943745125620704e-09, 5.951179452514042e-09, 5.958623078126463e-09, 5.9660760140886565e-09, 5.973538272045857e-09, 5.981009863657801e-09, 5.988490800598874e-09, 5.995981094558063e-09, 6.003480757238911e-09, 6.010989800359663e-09, 6.018508235653223e-09, 6.026036074867104e-09, 6.033573329763578e-09, 6.041120012119629e-09, 6.048676133726906e-09, 6.056241706391873e-09, 6.063816741935759e-09, 6.0714012521945175e-09, 6.0789952490189674e-09, 6.086598744274731e-09, 6.094211749842292e-09, 6.10183427761693e-09, 6.109466339508868e-09, 6.117107947443228e-09, 6.124759113359977e-09, 6.132419849214087e-09, 6.140090166975481e-09, 6.147770078628988e-09, 6.1554595961744944e-09, 6.163158731626894e-09, 6.170867497016043e-09, 6.1785859043869125e-09, 6.186313965799535e-09, 6.194051693328968e-09, 6.20179909906543e-09, 6.209556195114269e-09, 6.217322993595904e-09, 6.225099506645981e-09, 6.232885746415326e-09, 6.240681725069896e-09, 6.248487454790931e-09, 6.256302947774908e-09, 6.264128216233491e-09, 6.2719632723936855e-09, 6.27980812849777e-09, 6.287662796803355e-09, 6.2955272895833175e-09, 6.30340161912595e-09, 6.311285797734918e-09, 6.319179837729206e-09, 6.327083751443276e-09, 6.3349975512270176e-09, 6.3429212494456995e-09, 6.3508548584801234e-09, 6.3587983907265786e-09, 6.366751858596791e-09, 6.374715274518078e-09, 6.3826886509333004e-09, 6.390672000300816e-09, 6.398665335094631e-09, 6.406668667804358e-09, 6.414682010935159e-09, 6.422705377007907e-09, 6.430738778559136e-09, 6.438782228140993e-09, 6.44683573832139e-09, 6.454899321683963e-09, 6.462972990828017e-09, 6.4710567583686834e-09, 6.4791506369368524e-09, 6.487254639179232e-09, 6.495368777758282e-09, 6.503493065352368e-09, 6.511627514655717e-09, 6.519772138378357e-09, 6.527926949246292e-09, 6.536091960001434e-09, 6.544267183401572e-09, 6.552452632220515e-09, 6.5606483192480515e-09, 6.568854257289898e-09, 6.5770704591678595e-09, 6.585296937719774e-09, 6.5935337057994704e-09, 6.601780776276923e-09, 6.610038162038206e-09, 6.618305875985438e-09, 6.6265839310369474e-09, 6.634872340127221e-09, 6.643171116206852e-09, 6.651480272242704e-09, 6.659799821217859e-09, 6.668129776131565e-09, 6.6764701499994034e-09, 6.684820955853209e-09, 6.6931822067411424e-09, 6.701553915727611e-09, 6.709936095893437e-09, 6.718328760335802e-09, 6.726731922168197e-09, 6.735145594520591e-09, 6.743569790539368e-09, 6.752004523387292e-09, 6.760449806243658e-09, 6.768905652304245e-09, 6.777372074781268e-09, 6.785849086903535e-09, 6.7943367019164055e-09, 6.802834933081731e-09, 6.811343793678023e-09, 6.8198632970004035e-09, 6.828393456360549e-09, 6.836934285086858e-09, 6.845485796524404e-09, 6.8540480040348755e-09, 6.862620920996747e-09, 6.8712045608052285e-09, 6.879798936872209e-09, 6.88840406262643e-09, 6.897019951513398e-09, 6.905646616995469e-09, 6.91428407255176e-09, 6.922932331678321e-09, 6.931591407888082e-09, 6.940261314710804e-09, 6.948942065693243e-09, 6.9576336743990976e-09, 6.96633615440896e-09, 6.97504951932048e-09, 6.983773782748318e-09, 6.992508958324088e-09, 7.0012550596965275e-09, 7.010012100531447e-09, 7.018780094511675e-09, 7.027559055337229e-09, 7.036348996725261e-09, 7.045149932410009e-09, 7.053961876142957e-09, 7.062784841692798e-09, 7.0716188428453655e-09, 7.080463893403815e-09, 7.089320007188562e-09, 7.098187198037237e-09, 7.107065479804855e-09, 7.11595486636373e-09, 7.124855371603557e-09, 7.133767009431326e-09, 7.142689793771499e-09, 7.151623738565953e-09, 7.160568857773928e-09, 7.1695251653722e-09, 7.178492675355028e-09, 7.1874714017340955e-09, 7.19646135853869e-09, 7.205462559815648e-09, 7.2144750196292955e-09, 7.223498752061628e-09, 7.232533771212258e-09, 7.24158009119835e-09, 7.250637726154808e-09, 7.259706690234214e-09, 7.268786997606774e-09, 7.2778786624604975e-09, 7.286981699001137e-09, 7.296096121452139e-09, 7.305221944054814e-09, 7.31435918106829e-09, 7.323507846769447e-09, 7.332667955453106e-09, 7.341839521431936e-09, 7.351022559036539e-09, 7.360217082615359e-09, 7.369423106534869e-09, 7.378640645179508e-09, 7.38786971295163e-09, 7.3971103242716815e-09, 7.406362493578146e-09, 7.415626235327487e-09, 7.42490156399433e-09, 7.434188494071403e-09, 7.443487040069485e-09, 7.452797216517581e-09, 7.462119037962871e-09, 7.471452518970648e-09, 7.480797674124508e-09, 7.49015451802628e-09, 7.499523065295986e-09, 7.508903330572005e-09, 7.518295328511034e-09, 7.527699073788018e-09, 7.537114581096334e-09, 7.546541865147743e-09, 7.555980940672326e-09, 7.565431822418666e-09, 7.574894525153768e-09, 7.584369063663132e-09, 7.593855452750676e-09, 7.603353707238908e-09, 7.612863841968882e-09, 7.622385871800132e-09, 7.631919811610857e-09, 7.641465676297867e-09, 7.651023480776524e-09, 7.660593239980927e-09, 7.670174968863853e-09, 7.6797686823967e-09, 7.689374395569677e-09, 7.698992123391737e-09, 7.708621880890531e-09, 7.718263683112581e-09, 7.727917545123233e-09, 7.737583482006596e-09, 7.747261508865722e-09, 7.75695164082256e-09, 7.766653893017887e-09, 7.776368280611503e-09, 7.786094818782166e-09, 7.79583352272754e-09, 7.80558440766438e-09, 7.815347488828445e-09, 7.825122781474579e-09, 7.834910300876623e-09, 7.844710062327606e-09, 7.854522081139686e-09, 7.864346372644086e-09, 7.874182952191295e-09, 7.884031835150997e-09, 7.893893036912017e-09, 7.903766572882512e-09, 7.913652458489915e-09, 7.923550709180865e-09, 7.93346134042141e-09, 7.943384367696943e-09, 7.953319806512138e-09, 7.963267672391149e-09, 7.973227980877546e-09, 7.983200747534257e-09, 7.99318598794376e-09, 8.003183717708024e-09, 8.013193952448446e-09, 8.02321670780605e-09, 8.03325199944142e-09, 8.043299843034646e-09, 8.053360254285513e-09, 8.063433248913415e-09, 8.073518842657438e-09, 8.083617051276266e-09, 8.093727890548382e-09, 8.103851376272003e-09, 8.113987524265017e-09, 8.12413635036519e-09, 8.134297870430092e-09, 8.144472100337043e-09, 8.154659055983309e-09, 8.164858753286036e-09, 8.175071208182198e-09, 8.185296436628785e-09, 8.19553445460275e-09, 8.205785278100938e-09, 8.216048923140291e-09, 8.226325405757789e-09, 8.236614742010377e-09, 8.246916947975176e-09, 8.257232039749414e-09, 8.267560033450362e-09, 8.277900945215546e-09, 8.28825479120267e-09, 8.298621587589563e-09, 8.309001350574376e-09, 8.319394096375486e-09, 8.329799841231597e-09, 8.340218601401624e-09, 8.350650393164913e-09, 8.361095232821169e-09, 8.371553136690397e-09, 8.382024121113106e-09, 8.392508202450238e-09, 8.403005397083116e-09, 8.413515721413634e-09, 8.42403919186421e-09, 8.434575824877706e-09, 8.445125636917646e-09, 8.455688644468141e-09, 8.466264864033833e-09, 8.476854312140098e-09, 8.48745700533298e-09, 8.49807296017913e-09, 8.508702193266008e-09, 8.519344721201826e-09, 8.530000560615472e-09, 8.540669728156731e-09, 8.551352240496208e-09, 8.562048114325269e-09, 8.572757366356252e-09, 8.583480013322363e-09, 8.594216071977773e-09, 8.60496555909751e-09, 8.615728491477688e-09, 8.626504885935416e-09, 8.637294759308752e-09, 8.648098128456906e-09, 8.658915010260177e-09, 8.669745421619883e-09, 8.680589379458574e-09, 8.691446900719966e-09, 8.70231800236888e-09, 8.713202701391442e-09, 8.724101014795029e-09, 8.735012959608194e-09, 8.745938552880887e-09, 8.756877811684379e-09, 8.767830753111201e-09, 8.77879739427536e-09, 8.789777752312263e-09, 8.800771844378664e-09, 8.811779687652861e-09, 8.822801299334643e-09, 8.83383669664522e-09, 8.844885896827432e-09, 8.855948917145658e-09, 8.867025774885899e-09, 8.878116487355688e-09, 8.889221071884293e-09, 8.900339545822664e-09, 8.911471926543353e-09, 8.922618231440742e-09, 8.933778477930963e-09, 8.944952683451843e-09, 8.95614086546311e-09, 8.967343041446335e-09, 8.978559228904853e-09, 8.989789445363991e-09, 9.001033708371001e-09, 9.012292035494979e-09, 9.023564444327096e-09, 9.034850952480527e-09, 9.046151577590374e-09, 9.057466337313903e-09, 9.068795249330459e-09, 9.080138331341406e-09, 9.091495601070341e-09, 9.102867076263036e-09, 9.114252774687356e-09, 9.125652714133493e-09, 9.13706691241385e-09, 9.14849538736315e-09, 9.159938156838322e-09, 9.171395238718726e-09, 9.18286665090609e-09, 9.194352411324433e-09, 9.205852537920288e-09, 9.217367048662639e-09, 9.228895961542847e-09, 9.240439294574871e-09, 9.251997065795208e-09, 9.263569293262809e-09, 9.275155995059313e-09, 9.286757189288982e-09, 9.298372894078614e-09, 9.310003127577786e-09, 9.32164790795877e-09, 9.333307253416477e-09, 9.344981182168664e-09, 9.356669712455882e-09, 9.368372862541397e-09, 9.380090650711417e-09, 9.391823095275019e-09, 9.403570214564084e-09, 9.415332026933524e-09, 9.42710855076117e-09, 9.43889980444788e-09, 9.45070580641742e-09, 9.462526575116705e-09, 9.474362129015723e-09, 9.48621248660746e-09, 9.49807766640814e-09, 9.509957686957139e-09, 9.521852566816924e-09, 9.533762324573283e-09, 9.545686978835247e-09, 9.557626548235024e-09, 9.569581051428227e-09, 9.581550507093803e-09, 9.593534933933962e-09, 9.605534350674408e-09, 9.617548776064264e-09, 9.629578228876005e-09, 9.641622727905689e-09, 9.653682291972882e-09, 9.665756939920584e-09, 9.677846690615472e-09, 9.689951562947816e-09, 9.702071575831416e-09, 9.714206748203826e-09, 9.726357099026258e-09, 9.738522647283669e-09, 9.750703411984663e-09, 9.762899412161723e-09, 9.775110666871136e-09, 9.78733719519292e-09, 9.79957901623106e-09, 9.811836149113443e-09, 9.824108612991772e-09, 9.836396427041805e-09, 9.848699610463292e-09, 9.86101818247989e-09, 9.873352162339405e-09, 9.885701569313716e-09, 9.898066422698706e-09, 9.910446741814494e-09, 9.922842546005369e-09, 9.935253854639704e-09, 9.94768068711021e-09, 9.960123062833848e-09, 9.972581001251762e-09, 9.98505452182952e-09, 9.997543644057037e-09, 1.0010048387448494e-08, 1.0022568771542593e-08, 1.0035104815902439e-08, 1.0047656540115634e-08, 1.0060223963794183e-08, 1.0072807106574723e-08, 1.0085405988118451e-08, 1.0098020628111052e-08, 1.011065104626294e-08, 1.0123297262309177e-08, 1.0135959296009414e-08, 1.014863716714811e-08, 1.0161330895534482e-08, 1.0174040501002411e-08, 1.018676600341069e-08, 1.019950742264296e-08, 1.0212264778607615e-08, 1.0225038091238066e-08, 1.0237827380492651e-08, 1.0250632666354563e-08, 1.0263453968832104e-08, 1.0276291307958593e-08, 1.0289144703792307e-08, 1.0302014176416713e-08, 1.0314899745940403e-08, 1.0327801432497007e-08, 1.0340719256245452e-08, 1.0353653237369836e-08, 1.0366603396079548e-08, 1.037956975260914e-08, 1.0392552327218582e-08, 1.0405551140193186e-08, 1.0418566211843525e-08, 1.043159756250569e-08, 1.0444645212541207e-08, 1.0457709182336958e-08, 1.0470789492305433e-08, 1.0483886162884656e-08, 1.0496999214538104e-08, 1.0510128667754962e-08, 1.0523274543050037e-08, 1.053643686096369e-08, 1.0549615642062083e-08, 1.05628109069371e-08, 1.057602267620627e-08, 1.0589250970513023e-08, 1.060249581052661e-08, 1.061575721694202e-08, 1.0629035210480241e-08, 1.064232981188818e-08, 1.0655641041938576e-08, 1.0668968921430269e-08, 1.0682313471188072e-08, 1.0695674712062885e-08, 1.0709052664931572e-08, 1.0722447350697228e-08, 1.073585879028909e-08, 1.0749287004662458e-08, 1.0762732014798955e-08, 1.0776193841706455e-08, 1.0789672506418987e-08, 1.0803168029997005e-08, 1.0816680433527307e-08, 1.0830209738122949e-08, 1.0843755964923508e-08, 1.0857319135095009e-08, 1.0870899269829827e-08, 1.0884496390346967e-08, 1.089811051789197e-08, 1.0911741673736836e-08, 1.0925389879180286e-08, 1.0939055155547685e-08, 1.0952737524190951e-08, 1.0966437006488826e-08, 1.0980153623846796e-08, 1.0993887397696995e-08, 1.1007638349498492e-08, 1.1021406500737149e-08, 1.1035191872925744e-08, 1.1048994487603847e-08, 1.1062814366338085e-08, 1.107665153072206e-08, 1.1090506002376266e-08, 1.1104377802948357e-08, 1.1118266954113065e-08, 1.113217347757211e-08, 1.114609739505448e-08, 1.1160038728316334e-08, 1.1173997499140935e-08, 1.11879737293389e-08, 1.1201967440748134e-08, 1.1215978655233732e-08, 1.1230007394688262e-08, 1.1244053681031672e-08, 1.1258117536211204e-08, 1.1272198982201678e-08, 1.1286298041005394e-08, 1.1300414734652057e-08, 1.131454908519904e-08, 1.1328701114731312e-08, 1.134287084536134e-08, 1.1357058299229373e-08, 1.1371263498503307e-08, 1.1385486465378812e-08, 1.1399727222079194e-08, 1.1413985790855681e-08, 1.1428262193987329e-08, 1.144255645378094e-08, 1.1456868592571338e-08, 1.1471198632721283e-08, 1.1485546596621385e-08, 1.149991250669038e-08, 1.1514296385375048e-08, 1.152869825515012e-08, 1.1543118138518561e-08, 1.1557556058011482e-08, 1.1572012036188055e-08, 1.1586486095635788e-08, 1.1600978258970446e-08, 1.161548854883595e-08, 1.1630016987904677e-08, 1.1644563598877353e-08, 1.1659128404482981e-08, 1.1673711427479113e-08, 1.1688312690651768e-08, 1.1702932216815337e-08, 1.1717570028812876e-08, 1.173222614951597e-08, 1.1746900601824849e-08, 1.1761593408668268e-08, 1.1776304593003781e-08, 1.1791034177817658e-08, 1.1805782186124796e-08, 1.1820548640969e-08, 1.1835333565422904e-08, 1.1850136982587869e-08, 1.186495891559428e-08, 1.1879799387601453e-08, 1.1894658421797543e-08, 1.1909536041399839e-08, 1.1924432269654664e-08, 1.1939347129837293e-08, 1.1954280645252243e-08, 1.1969232839233174e-08, 1.198420373514281e-08, 1.1999193356373222e-08, 1.2014201726345735e-08, 1.2029228868510847e-08, 1.2044274806348514e-08, 1.2059339563368058e-08, 1.2074423163108083e-08, 1.2089525629136756e-08, 1.2104646985051683e-08, 1.211978725448003e-08, 1.2134946461078385e-08, 1.2150124628533056e-08, 1.2165321780559972e-08, 1.2180537940904602e-08, 1.2195773133342244e-08, 1.2211027381677931e-08, 1.2226300709746343e-08, 1.2241593141412102e-08, 1.2256904700569676e-08, 1.2272235411143297e-08, 1.2287585297087243e-08, 1.2302954382385761e-08, 1.2318342691052961e-08, 1.233375024713312e-08, 1.2349177074700595e-08, 1.2364623197859717e-08, 1.2380088640745101e-08, 1.239557342752155e-08, 1.2411077582383957e-08, 1.2426601129557611e-08, 1.2442144093298103e-08, 1.2457706497891228e-08, 1.2473288367653289e-08, 1.2488889726930962e-08, 1.250451060010142e-08, 1.252015101157219e-08, 1.2535810985781463e-08, 1.2551490547197996e-08, 1.2567189720321017e-08, 1.2582908529680536e-08, 1.2598646999837233e-08, 1.2614405155382389e-08, 1.2630183020938165e-08, 1.2645980621157526e-08, 1.2661797980724137e-08, 1.2677635124352668e-08, 1.2693492076788704e-08, 1.2709368862808648e-08, 1.2725265507220026e-08, 1.2741182034861393e-08, 1.2757118470602235e-08, 1.2773074839343284e-08, 1.2789051166016415e-08, 1.2805047475584548e-08, 1.2821063793041968e-08, 1.2837100143414219e-08, 1.2853156551758007e-08, 1.2869233043161524e-08, 1.288532964274429e-08, 1.2901446375657288e-08, 1.2917583267082829e-08, 1.2933740342234853e-08, 1.2949917626358837e-08, 1.2966115144731703e-08, 1.2982332922662119e-08, 1.2998570985490415e-08, 1.3014829358588473e-08, 1.3031108067360053e-08, 1.3047407137240685e-08, 1.3063726593697578e-08, 1.308006646222993e-08, 1.3096426768368839e-08, 1.311280753767719e-08, 1.3129208795749986e-08, 1.3145630568214244e-08, 1.3162072880728893e-08, 1.3178535758985094e-08, 1.3195019228706148e-08, 1.3211523315647385e-08, 1.322804804559649e-08, 1.3244593444373404e-08, 1.3261159537830224e-08, 1.3277746351851517e-08, 1.3294353912354187e-08, 1.33109822452876e-08, 1.332763137663343e-08, 1.3344301332405997e-08, 1.3360992138652159e-08, 1.3377703821451208e-08, 1.33944364069152e-08, 1.341118992118885e-08, 1.3427964390449434e-08, 1.3444759840907107e-08, 1.3461576298804817e-08, 1.3478413790418184e-08, 1.3495272342055841e-08, 1.3512151980059327e-08, 1.3529052730802982e-08, 1.3545974620694282e-08, 1.3562917676173728e-08, 1.3579881923714759e-08, 1.3596867389824056e-08, 1.3613874101041463e-08, 1.3630902083939876e-08, 1.3647951365125568e-08, 1.3665021971238092e-08, 1.368211392895018e-08, 1.3699227264968064e-08, 1.3716362006031338e-08, 1.3733518178913084e-08, 1.375069581041973e-08, 1.3767894927391379e-08, 1.37851155567017e-08, 1.3802357725257836e-08, 1.3819621460000726e-08, 1.3836906787905007e-08, 1.3854213735978909e-08, 1.3871542331264593e-08, 1.388889260083804e-08, 1.3906264571808954e-08, 1.3923658271321089e-08, 1.3941073726552156e-08, 1.3958510964713708e-08, 1.3975970013051482e-08, 1.3993450898845294e-08, 1.4010953649408935e-08, 1.40284782920905e-08, 1.4046024854272303e-08, 1.4063593363370747e-08, 1.4081183846836683e-08, 1.4098796332155295e-08, 1.4116430846845995e-08, 1.4134087418462763e-08, 1.4151766074594e-08, 1.4169466842862657e-08, 1.4187189750926088e-08, 1.4204934826476392e-08, 1.4222702097240303e-08, 1.4240491590979083e-08, 1.4258303335488872e-08, 1.4276137358600576e-08, 1.4293993688179753e-08, 1.4311872352126977e-08, 1.4329773378377714e-08, 1.434769679490222e-08, 1.4365642629705887e-08, 1.4383610910829136e-08, 1.4401601666347309e-08, 1.4419614924371015e-08, 1.4437650713046026e-08, 1.4455709060553162e-08, 1.4473789995108645e-08, 1.4491893544963992e-08, 1.45100197384059e-08, 1.4528168603756603e-08, 1.4546340169373755e-08, 1.456453446365033e-08, 1.4582751515014967e-08, 1.4600991351931813e-08, 1.461925400290067e-08, 1.4637539496456827e-08, 1.4655847861171428e-08, 1.4674179125651344e-08, 1.4692533318539078e-08, 1.4710910468513112e-08, 1.4729310604287795e-08, 1.4747733754613244e-08, 1.4766179948275686e-08, 1.4784649214097352e-08, 1.480314158093637e-08, 1.482165707768712e-08, 1.4840195733280125e-08, 1.4858757576681927e-08, 1.4877342636895466e-08, 1.4895950942959955e-08, 1.4914582523950772e-08, 1.4933237408979815e-08, 1.49519156271954e-08, 1.497061720778214e-08, 1.4989342179961317e-08, 1.5008090572990753e-08, 1.5026862416164706e-08, 1.5045657738814245e-08, 1.506447657030706e-08, 1.5083318940047633e-08, 1.5102184877477066e-08, 1.5121074412073443e-08, 1.513998757335172e-08, 1.5158924390863607e-08, 1.5177884894197937e-08, 1.5196869112980558e-08, 1.5215877076874205e-08, 1.523490881557888e-08, 1.525396435883173e-08, 1.5273043736406945e-08, 1.5292146978116103e-08, 1.531127411380808e-08, 1.5330425173368922e-08, 1.5349600186722213e-08, 1.5368799183828975e-08, 1.5388022194687534e-08, 1.5407269249333905e-08, 1.5426540377841663e-08, 1.544583561032185e-08, 1.5465154976923318e-08, 1.548449850783264e-08, 1.5503866233273974e-08, 1.5523258183509452e-08, 1.5542674388839002e-08, 1.5562114879600498e-08, 1.5581579686169607e-08, 1.5601068838960145e-08, 1.5620582368423976e-08, 1.5640120305050877e-08, 1.5659682679368937e-08, 1.5679269521944426e-08, 1.5698880863381678e-08, 1.571851673432347e-08, 1.5738177165450914e-08, 1.5757862187483328e-08, 1.5777571831178614e-08, 1.5797306127333153e-08, 1.581706510678167e-08, 1.583684880039764e-08, 1.5856657239093136e-08, 1.5876490453818737e-08, 1.5896348475563903e-08, 1.5916231335356854e-08, 1.593613906426445e-08, 1.595607169339257e-08, 1.597602925388602e-08, 1.5996011776928368e-08, 1.6016019293742373e-08, 1.6036051835589782e-08, 1.6056109433771508e-08, 1.607619211962743e-08, 1.609629992453681e-08, 1.6116432879918157e-08, 1.6136591017229096e-08, 1.6156774367966787e-08, 1.617698296366777e-08, 1.6197216835907866e-08, 1.6217476016302564e-08, 1.6237760536506896e-08, 1.6258070428215314e-08, 1.627840572316208e-08, 1.629876645312116e-08, 1.631915264990608e-08, 1.6339564345370338e-08, 1.6360001571407267e-08, 1.638046435994992e-08, 1.640095274297147e-08, 1.6421466752485073e-08, 1.6442006420543763e-08, 1.6462571779240826e-08, 1.6483162860709705e-08, 1.650377969712385e-08, 1.6524422320697128e-08, 1.6545090763683644e-08, 1.6565785058377903e-08, 1.6586505237114627e-08, 1.660725133226916e-08, 1.6628023376257335e-08, 1.6648821401535358e-08, 1.666964544060021e-08, 1.6690495525989515e-08, 1.6711371690281416e-08, 1.673227396609498e-08, 1.6753202386090084e-08, 1.677415698296726e-08, 1.6795137789468138e-08, 1.681614483837529e-08, 1.683717816251211e-08, 1.6858237794743235e-08, 1.6879323767974405e-08, 1.6900436115152338e-08, 1.6921574869265138e-08, 1.6942740063342174e-08, 1.6963931730453947e-08, 1.69851499037125e-08, 1.7006394616271288e-08, 1.702766590132507e-08, 1.7048963792110283e-08, 1.7070288321904895e-08, 1.709163952402854e-08, 1.7113017431842355e-08, 1.7134422078749393e-08, 1.7155853498194476e-08, 1.7177311723664076e-08, 1.7198796788686742e-08, 1.722030872683295e-08, 1.7241847571714987e-08, 1.7263413356987362e-08, 1.728500611634668e-08, 1.730662588353151e-08, 1.7328272692322805e-08, 1.7349946576543768e-08, 1.7371647570059726e-08, 1.7393375706778545e-08, 1.7415131020650507e-08, 1.743691354566817e-08, 1.7458723315866797e-08, 1.7480560365324216e-08, 1.7502424728160704e-08, 1.7524316438539387e-08, 1.7546235530666134e-08, 1.7568182038789405e-08, 1.759015599720069e-08, 1.7612157440234293e-08, 1.7634186402267544e-08, 1.7656242917720577e-08, 1.7678327021056756e-08, 1.7700438746782568e-08, 1.772257812944746e-08, 1.7744745203644286e-08, 1.7766940004009163e-08, 1.778916256522135e-08, 1.7811412922003663e-08, 1.7833691109122355e-08, 1.7855997161386968e-08, 1.787833111365078e-08, 1.7900693000810658e-08, 1.7923082857806926e-08, 1.794550071962381e-08, 1.7967946621289282e-08, 1.799042059787494e-08, 1.801292268449644e-08, 1.8035452916313364e-08, 1.805801132852908e-08, 1.8080597956391166e-08, 1.8103212835191302e-08, 1.8125856000265115e-08, 1.8148527486992614e-08, 1.8171227330798005e-08, 1.819395556714986e-08, 1.8216712231560925e-08, 1.823949735958856e-08, 1.8262310986834595e-08, 1.8285153148945195e-08, 1.8308023881611312e-08, 1.8330923220568537e-08, 1.8353851201596954e-08, 1.8376807860521607e-08, 1.839979323321235e-08, 1.8422807355583697e-08, 1.8445850263595284e-08, 1.8468921993251725e-08, 1.8492022580602474e-08, 1.851515206174227e-08, 1.8538310472810992e-08, 1.8561497849993532e-08, 1.8584714229520242e-08, 1.8607959647666783e-08, 1.863123414075399e-08, 1.8654537745148336e-08, 1.8677870497261768e-08, 1.8701232433551585e-08, 1.8724623590520887e-08, 1.8748044004718355e-08, 1.8771493712738466e-08, 1.879497275122125e-08, 1.8818481156852785e-08, 1.8842018966365023e-08, 1.8865586216535663e-08, 1.8889182944188605e-08, 1.8912809186193807e-08, 1.893646497946714e-08, 1.896015036097086e-08, 1.898386536771344e-08, 1.9007610036749456e-08, 1.9031384405180017e-08, 1.9055188510152656e-08, 1.9079022388861148e-08, 1.9102886078546003e-08, 1.912677961649431e-08, 1.9150703040039593e-08, 1.9174656386562273e-08, 1.9198639693489527e-08, 1.922265299829514e-08, 1.9246696338499968e-08, 1.9270769751671814e-08, 1.929487327542525e-08, 1.9319006947422102e-08, 1.934317080537124e-08, 1.9367364887028765e-08, 1.93915892301978e-08, 1.941584387272895e-08, 1.944012885252017e-08, 1.946444420751661e-08, 1.948878997571108e-08, 1.9513166195143928e-08, 1.9537572903902854e-08, 1.9562010140123416e-08, 1.9586477941988872e-08, 1.961097634773003e-08, 1.9635505395625716e-08, 1.9660065124002652e-08, 1.968465557123527e-08, 1.9709276775746224e-08, 1.9733928776006224e-08, 1.9758611610533877e-08, 1.978332531789619e-08, 1.980806993670841e-08, 1.983284550563387e-08, 1.985765206338446e-08, 1.9882489648720514e-08, 1.990735830045062e-08, 1.9932258057432115e-08, 1.9957188958570886e-08, 1.9982151042821534e-08, 2.000714434918718e-08, 2.003216891671994e-08, 2.005722478452078e-08, 2.008231199173936e-08, 2.010743057757451e-08, 2.0132580581274098e-08, 2.0157762042134868e-08, 2.0182974999502932e-08, 2.020821949277361e-08, 2.0233495561391284e-08, 2.025880324484989e-08, 2.0284142582692762e-08, 2.0309513614512472e-08, 2.033491637995134e-08, 2.0360350918701256e-08, 2.0385817270503554e-08, 2.0411315475149486e-08, 2.043684557248007e-08, 2.0462407602385952e-08, 2.048800160480787e-08, 2.051362761973654e-08, 2.0539285687212466e-08, 2.0564975847326455e-08, 2.0590698140219394e-08, 2.0616452606082437e-08, 2.0642239285156795e-08, 2.0668058217734242e-08, 2.0693909444156927e-08, 2.0719793004817258e-08, 2.0745708940158372e-08, 2.0771657290674002e-08, 2.07976380969083e-08, 2.0823651399456354e-08, 2.0849697238964033e-08, 2.0875775656127813e-08, 2.0901886691695305e-08, 2.092803038646508e-08, 2.0954206781286518e-08, 2.098041591706031e-08, 2.1006657834738318e-08, 2.1032932575323395e-08, 2.10592401798699e-08, 2.108558068948354e-08, 2.1111954145321227e-08, 2.1138360588591558e-08, 2.1164800060554687e-08, 2.119127260252214e-08, 2.1217778255857347e-08, 2.1244317061975392e-08, 2.1270889062343246e-08, 2.1297494298479515e-08, 2.1324132811954956e-08, 2.135080464439233e-08, 2.1377509837466227e-08, 2.1404248432903598e-08, 2.1431020472483572e-08, 2.1457825998037322e-08, 2.148466505144856e-08, 2.1511537674653384e-08, 2.1538443909640127e-08, 2.1565383798449862e-08, 2.1592357383176242e-08, 2.1619364705965354e-08, 2.1646405809016217e-08, 2.1673480734580637e-08, 2.1700589524963037e-08, 2.1727732222520983e-08, 2.1754908869665025e-08, 2.1782119508858528e-08, 2.1809364182618193e-08, 2.1836642933513907e-08, 2.186395580416857e-08, 2.1891302837258625e-08, 2.191868407551382e-08, 2.1946099561717415e-08, 2.1973549338705967e-08, 2.200103344936983e-08, 2.2028551936653008e-08, 2.2056104843552994e-08, 2.2083692213121287e-08, 2.211131408846323e-08, 2.213897051273786e-08, 2.216666152915842e-08, 2.2194387180992205e-08, 2.22221475115604e-08, 2.2249942564238602e-08, 2.2277772382456667e-08, 2.230563700969853e-08, 2.233353648950276e-08, 2.236147086546238e-08, 2.2389440181224695e-08, 2.241744448049185e-08, 2.2445483807020645e-08, 2.2473558204622376e-08, 2.2501667717163376e-08, 2.2529812388564837e-08, 2.2557992262802662e-08, 2.2586207383907986e-08, 2.2614457795966945e-08, 2.264274354312089e-08, 2.2671064669566147e-08, 2.2699421219554562e-08, 2.2727813237393332e-08, 2.2756240767444827e-08, 2.2784703854127156e-08, 2.281320254191397e-08, 2.2841736875334315e-08, 2.2870306898973177e-08, 2.2898912657471302e-08, 2.292755419552503e-08, 2.2956231557886857e-08, 2.2984944789365243e-08, 2.3013693934824456e-08, 2.3042479039185126e-08, 2.3071300147424064e-08, 2.3100157304574094e-08, 2.3129050555724613e-08, 2.3157979946021414e-08, 2.3186945520666507e-08, 2.3215947324918696e-08, 2.3244985404093385e-08, 2.3274059803562415e-08, 2.330317056875462e-08, 2.333231774515558e-08, 2.336150137830785e-08, 2.3390721513810693e-08, 2.341997819732066e-08, 2.344927147455141e-08, 2.3478601391273522e-08, 2.3507967993315088e-08, 2.353737132656151e-08, 2.3566811436955334e-08, 2.359628837049682e-08, 2.3625802173243773e-08, 2.3655352891311345e-08, 2.368494057087262e-08, 2.371456525815844e-08, 2.3744226999457218e-08, 2.377392584111551e-08, 2.3803661829537856e-08, 2.3833435011186564e-08, 2.386324543258233e-08, 2.3893093140304017e-08, 2.392297818098852e-08, 2.3952900601331292e-08, 2.3982860448086215e-08, 2.401285776806538e-08, 2.4042892608139693e-08, 2.40729650152386e-08, 2.4103075036350328e-08, 2.4133222718521614e-08, 2.4163408108858312e-08, 2.4193631254525178e-08, 2.4223892202745718e-08, 2.4254191000802754e-08, 2.4284527696038247e-08, 2.431490233585312e-08, 2.434531496770784e-08, 2.4375765639122236e-08, 2.4406254397675317e-08, 2.4436781291005857e-08, 2.4467346366812225e-08, 2.4497949672852185e-08, 2.4528591256943487e-08, 2.4559271166963712e-08, 2.458998945085004e-08, 2.462074615659989e-08, 2.4651541332270704e-08, 2.4682375025979777e-08, 2.4713247285904854e-08, 2.474415816028393e-08, 2.4775107697415072e-08, 2.4806095945657038e-08, 2.4837122953428963e-08, 2.4868188769210646e-08, 2.489929344154225e-08, 2.4930437019024922e-08, 2.4961619550320598e-08, 2.499284108415181e-08, 2.5024101669302302e-08, 2.5055401354616832e-08, 2.5086740189000987e-08, 2.5118118221421792e-08, 2.5149535500907516e-08, 2.5180992076547492e-08, 2.5212487997492707e-08, 2.5244023312955637e-08, 2.527559807221004e-08, 2.5307212324591573e-08, 2.53388661194976e-08, 2.537055950638701e-08, 2.5402292534780804e-08, 2.5434065254261945e-08, 2.5465877714475128e-08, 2.5497729965127423e-08, 2.5529622055988067e-08, 2.5561554036888276e-08, 2.5593525957721868e-08, 2.5625537868444976e-08, 2.5657589819076306e-08, 2.568968185969686e-08, 2.5721814040450545e-08, 2.5753986411543993e-08, 2.5786199023246357e-08, 2.581845192588994e-08, 2.5850745169870005e-08, 2.5883078805644564e-08, 2.591545288373502e-08, 2.5947867454725974e-08, 2.598032256926501e-08, 2.601281827806335e-08, 2.6045354631895634e-08, 2.6077931681599735e-08, 2.6110549478077396e-08, 2.6143208072294022e-08, 2.6175907515278483e-08, 2.6208647858123765e-08, 2.624142915198675e-08, 2.627425144808803e-08, 2.6307114797712547e-08, 2.6340019252209376e-08, 2.637296486299155e-08, 2.6405951681536695e-08, 2.6438979759386712e-08, 2.6472049148148074e-08, 2.6505159899491523e-08, 2.6538312065152708e-08, 2.6571505696931985e-08, 2.660474084669423e-08, 2.663801756636946e-08, 2.6671335907952647e-08, 2.6704695923503524e-08, 2.6738097665147215e-08, 2.6771541185074044e-08, 2.6805026535539326e-08, 2.6838553768864025e-08, 2.687212293743454e-08, 2.6905734093702514e-08, 2.6939387290185492e-08, 2.697308257946668e-08, 2.7006820014194794e-08, 2.7040599647084674e-08, 2.7074421530917098e-08, 2.7108285718538577e-08, 2.714219226286201e-08, 2.7176141216866467e-08, 2.721013263359701e-08, 2.7244166566165328e-08, 2.727824306774945e-08, 2.731236219159401e-08, 2.7346523991009957e-08, 2.7380728519375204e-08, 2.7414975830134428e-08, 2.7449265976798866e-08, 2.748359901294698e-08, 2.7517974992224238e-08, 2.7552393968342925e-08, 2.758685599508279e-08, 2.762136112629086e-08, 2.7655909415881213e-08, 2.7690500917835653e-08, 2.7725135686203508e-08, 2.7759813775101416e-08, 2.7794535238713994e-08, 2.7829300131293637e-08, 2.78641085071603e-08, 2.789896042070217e-08, 2.793385592637548e-08, 2.796879507870425e-08, 2.8003777932281025e-08, 2.8038804541766618e-08, 2.807387496188991e-08, 2.8108989247448546e-08, 2.8144147453308595e-08, 2.8179349634404866e-08, 2.821459584574057e-08, 2.824988614238803e-08, 2.8285220579488434e-08, 2.8320599212251647e-08, 2.835602209595689e-08, 2.839148928595253e-08, 2.8427000837655853e-08, 2.8462556806553768e-08, 2.8498157248202586e-08, 2.8533802218227797e-08, 2.8569491772324787e-08, 2.860522596625858e-08, 2.8641004855863666e-08, 2.867682849704466e-08, 2.8712696945776124e-08, 2.8748610258102304e-08, 2.878456849013786e-08, 2.8820571698067638e-08, 2.885661993814646e-08, 2.8892713266699802e-08, 2.8928851740123608e-08, 2.896503541488404e-08, 2.90012643475182e-08, 2.90375385946338e-08, 2.907385821290947e-08, 2.9110223259094407e-08, 2.914663379000911e-08, 2.918308986254514e-08, 2.9219591533664918e-08, 2.925613886040241e-08, 2.9292731899862928e-08, 2.9329370709222893e-08, 2.9366055345730564e-08, 2.9402785866705787e-08, 2.9439562329539803e-08, 2.9476384791695953e-08, 2.951325331070944e-08, 2.955016794418712e-08, 2.958712874980823e-08, 2.9624135785324136e-08, 2.966118910855813e-08, 2.9698288777406136e-08, 2.9735434849836508e-08, 2.9772627383889772e-08, 2.9809866437679385e-08, 2.984715206939148e-08, 2.988448433728464e-08, 2.992186329969067e-08, 2.995928901501418e-08, 2.9996761541732985e-08, 3.00342809383977e-08, 3.007184726363248e-08, 3.0109460576134846e-08, 3.014712093467538e-08, 3.01848283980985e-08, 3.0222583025322243e-08, 3.0260384875338007e-08, 3.029823400721129e-08, 3.033613048008148e-08, 3.037407435316162e-08, 3.041206568573911e-08, 3.045010453717553e-08, 3.0488190966906376e-08, 3.052632503444181e-08, 3.056450679936643e-08, 3.0602736321339036e-08, 3.064101366009337e-08, 3.067933887543789e-08, 3.071771202725553e-08, 3.0756133175504466e-08, 3.0794602380217854e-08, 3.083311970150362e-08, 3.087168519954519e-08, 3.0910298934601165e-08, 3.094896096700563e-08, 3.0987671357167784e-08, 3.102643016557275e-08, 3.106523745278126e-08, 3.1104093279429504e-08, 3.1142997706229825e-08, 3.118195079397051e-08, 3.122095260351554e-08, 3.1260003195805365e-08, 3.129910263185666e-08, 3.133825097276207e-08, 3.1377448279691e-08, 3.141669461388937e-08, 3.145599003667934e-08, 3.1495334609460156e-08, 3.153472839370781e-08, 3.1574171450974887e-08, 3.161366384289128e-08, 3.165320563116397e-08, 3.169279687757679e-08, 3.1732437643991175e-08, 3.177212799234595e-08, 3.181186798465706e-08, 3.185165768301837e-08, 3.189149714960129e-08, 3.193138644665511e-08, 3.197132563650664e-08, 3.201131478156097e-08, 3.205135394430128e-08, 3.209144318728853e-08, 3.21315825731623e-08, 3.217177216464048e-08, 3.2212012024519104e-08, 3.225230221567307e-08, 3.229264280105592e-08, 3.233303384369961e-08, 3.2373475406715255e-08, 3.241396755329292e-08, 3.245451034670137e-08, 3.249510385028884e-08, 3.25357481274828e-08, 3.2576443241789716e-08, 3.261718925679583e-08, 3.26579862361669e-08, 3.2698834243647995e-08, 3.273973334306425e-08, 3.278068359832063e-08, 3.282168507340169e-08, 3.286273783237235e-08, 3.290384193937756e-08, 3.294499745864261e-08, 3.2986204454472776e-08, 3.3027462991254114e-08, 3.3068773133453204e-08, 3.3110134945616935e-08, 3.315154849237326e-08, 3.3193013838430956e-08, 3.323453104857941e-08, 3.327610018768939e-08, 3.331772132071281e-08, 3.335939451268244e-08, 3.340111982871279e-08, 3.344289733399979e-08, 3.348472709382055e-08, 3.352660917353422e-08, 3.356854363858166e-08, 3.361053055448524e-08, 3.3652569986849654e-08, 3.3694662001361635e-08, 3.373680666378973e-08, 3.37790040399851e-08, 3.3821254195881276e-08, 3.3863557197493897e-08, 3.390591311092152e-08, 3.3948322002345286e-08, 3.3990783938029204e-08, 3.4033298984319816e-08, 3.4075867207647024e-08, 3.411848867452379e-08, 3.416116345154594e-08, 3.420389160539292e-08, 3.424667320282762e-08, 3.4289508310696046e-08, 3.4332396995928184e-08, 3.437533932553773e-08, 3.441833536662185e-08, 3.446138518636198e-08, 3.45044888520236e-08, 3.454764643095595e-08, 3.459085799059287e-08, 3.463412359845257e-08, 3.46774433221373e-08, 3.472081722933429e-08, 3.4764245387815386e-08, 3.480772786543685e-08, 3.485126473014018e-08, 3.489485604995187e-08, 3.493850189298312e-08, 3.498220232743067e-08, 3.5025957421576485e-08, 3.506976724378802e-08, 3.511363186251788e-08, 3.515755134630467e-08, 3.5201525763772716e-08, 3.524555518363181e-08, 3.528963967467804e-08, 3.5333779305793574e-08, 3.537797414594634e-08, 3.54222242641909e-08, 3.546652972966821e-08, 3.5510890611605305e-08, 3.555530697931621e-08, 3.559977890220163e-08, 3.56443064497487e-08, 3.568888969153185e-08, 3.5733528697212535e-08, 3.5778223536538945e-08, 3.5822974279346914e-08, 3.586778099555961e-08, 3.591264375518728e-08, 3.595756262832812e-08, 3.6002537685168024e-08, 3.6047568995980244e-08, 3.609265663112636e-08, 3.6137800661055804e-08, 3.618300115630626e-08, 3.622825818750326e-08, 3.6273571825361044e-08, 3.6318942140682316e-08, 3.6364369204357944e-08, 3.640985308736785e-08, 3.645539386078074e-08, 3.650099159575383e-08, 3.654664636353371e-08, 3.6592358235456104e-08, 3.663812728294555e-08, 3.6683953577516336e-08, 3.672983719077218e-08, 3.6775778194405966e-08, 3.682177666020067e-08, 3.686783266002903e-08, 3.6913946265853286e-08, 3.69601175497261e-08, 3.700634658379023e-08, 3.7052633440278296e-08, 3.709897819151365e-08, 3.714538090991011e-08, 3.719184166797166e-08, 3.7238360538293396e-08, 3.728493759356104e-08, 3.73315729065514e-08, 3.7378266550131876e-08, 3.742501859726145e-08, 3.7471829120990327e-08, 3.75186981944597e-08, 3.756562589090263e-08, 3.7612612283643795e-08, 3.765965744609917e-08, 3.770676145177696e-08, 3.7753924374277334e-08, 3.7801146287292085e-08, 3.78484272646056e-08, 3.789576738009455e-08, 3.794316670772761e-08, 3.799062532156637e-08, 3.803814329576506e-08, 3.808572070457025e-08, 3.813335762232179e-08, 3.8181054123452505e-08, 3.822881028248793e-08, 3.827662617404719e-08, 3.832450187284278e-08, 3.83724374536802e-08, 3.842043299145895e-08, 3.846848856117206e-08, 3.8516604237906514e-08, 3.8564780096842796e-08, 3.861301621325582e-08, 3.8661312662514666e-08, 3.870966952008228e-08, 3.875808686151639e-08, 3.880656476246925e-08, 3.885510329868731e-08, 3.8903702546012175e-08, 3.8952362580380325e-08, 3.900108347782279e-08, 3.9049865314466126e-08, 3.9098708166532095e-08, 3.914761211033739e-08, 3.9196577222294577e-08, 3.924560357891179e-08, 3.929469125679244e-08, 3.9343840332636165e-08, 3.9393050883238553e-08, 3.9442322985490826e-08, 3.949165671638079e-08, 3.9541052152992547e-08, 3.9590509372506197e-08, 3.9640028452198795e-08, 3.9689609469443915e-08, 3.973925250171205e-08, 3.978895762657016e-08, 3.983872492168266e-08, 3.988855446481109e-08, 3.9938446333813845e-08, 3.998840060664713e-08, 4.003841736136463e-08, 4.008849667611727e-08, 4.013863862915412e-08, 4.0188843298822136e-08, 4.023911076356584e-08, 4.0289441101928295e-08, 4.033983439255082e-08, 4.039029071417264e-08, 4.044081014563192e-08, 4.049139276586543e-08, 4.054203865390822e-08, 4.0592747888894666e-08, 4.064352055005808e-08, 4.069435671673049e-08, 4.074525646834354e-08, 4.079621988442826e-08, 4.0847247044614705e-08, 4.0898338028632965e-08, 4.0949492916312715e-08, 4.100071178758363e-08, 4.105199472247491e-08, 4.1103341801116284e-08, 4.115475310373774e-08, 4.1206228710669145e-08, 4.125776870234129e-08, 4.130937315928558e-08, 4.136104216213368e-08, 4.141277579161858e-08, 4.1464574128574226e-08, 4.151643725393524e-08, 4.15683652487379e-08, 4.1620358194119874e-08, 4.167241617131985e-08, 4.172453926167856e-08, 4.177672754663851e-08, 4.1828981107743604e-08, 4.1881300026640185e-08, 4.193368438507673e-08, 4.198613426490351e-08, 4.203864974807362e-08, 4.209123091664266e-08, 4.2143877852768426e-08, 4.219659063871191e-08, 4.2249369356836854e-08, 4.2302214089610156e-08, 4.2355124919601434e-08, 4.240810192948402e-08, 4.2461145202034645e-08, 4.251425482013314e-08, 4.256743086676343e-08, 4.2620673425013273e-08, 4.267398257807386e-08, 4.27273584092409e-08, 4.278080100191431e-08, 4.283431043959783e-08, 4.288788680590013e-08, 4.294153018453444e-08, 4.299524065931825e-08, 4.304901831417433e-08, 4.3102863233130445e-08, 4.3156775500318974e-08, 4.321075519997801e-08, 4.326480241645098e-08, 4.331891723418638e-08, 4.337309973773877e-08, 4.342735001176848e-08, 4.348166814104126e-08, 4.3536054210429365e-08, 4.359050830491102e-08, 4.364503050957094e-08, 4.369962090959974e-08, 4.375427959029511e-08, 4.38090066370614e-08, 4.386380213540931e-08, 4.391866617095699e-08, 4.397359882942964e-08, 4.402860019665927e-08, 4.408367035858565e-08, 4.4138809401256095e-08, 4.4194017410825055e-08, 4.4249294473555206e-08, 4.430464067581713e-08, 4.4360056104088973e-08, 4.44155408449575e-08, 4.447109498511779e-08, 4.452671861137289e-08, 4.458241181063487e-08, 4.463817466992455e-08, 4.4694007276371063e-08, 4.474990971721303e-08, 4.4805882079798206e-08, 4.4861924451583086e-08, 4.4918036920134045e-08, 4.4974219573126834e-08, 4.5030472498347015e-08, 4.508679578368948e-08, 4.514318951715952e-08, 4.519965378687253e-08, 4.5256188681053624e-08, 4.531279428803873e-08, 4.5369470696274296e-08, 4.5426217994316895e-08, 4.548303627083435e-08, 4.553992561460539e-08, 4.559688611451931e-08, 4.565391785957706e-08, 4.5711020938890915e-08, 4.576819544168413e-08, 4.5825441457292025e-08, 4.5882759075161694e-08, 4.594014838485158e-08, 4.5997609476032666e-08, 4.605514243848808e-08, 4.6112747362112765e-08, 4.6170424336914586e-08, 4.622817345301399e-08, 4.6285994800643646e-08, 4.63438884701496e-08, 4.640185455199072e-08, 4.645989313673918e-08, 4.651800431507996e-08, 4.6576188177811936e-08, 4.6634444815847585e-08, 4.669277432021259e-08, 4.6751176782046954e-08, 4.680965229260473e-08, 4.6868200943253565e-08, 4.692682282547591e-08, 4.6985518030868633e-08, 4.7044286651142674e-08, 4.710312877812417e-08, 4.716204450375415e-08, 4.722103392008808e-08, 4.728009711929712e-08, 4.73392341936677e-08, 4.739844523560117e-08, 4.745773033761496e-08, 4.751708959234223e-08, 4.757652309253148e-08, 4.763603093104775e-08, 4.769561320087221e-08, 4.7755269995101827e-08, 4.7815001406950526e-08, 4.787480752974865e-08, 4.7934688456943456e-08, 4.799464428209855e-08, 4.805467509889511e-08, 4.8114781001131455e-08, 4.817496208272273e-08, 4.823521843770206e-08, 4.8295550160220186e-08, 4.835595734454509e-08, 4.841644008506319e-08, 4.8476998476278934e-08, 4.853763261281449e-08, 4.859834258941088e-08, 4.865912850092763e-08, 4.871999044234239e-08, 4.878092850875212e-08, 4.884194279537275e-08, 4.890303339753876e-08, 4.89642004107044e-08, 4.9025443930443315e-08, 4.908676405244818e-08, 4.914816087253186e-08, 4.9209634486627076e-08, 4.927118499078601e-08, 4.9332812481181526e-08, 4.9394517054106574e-08, 4.9456298805974744e-08, 4.951815783331968e-08, 4.958009423279632e-08, 4.964210810118045e-08, 4.970419953536842e-08, 4.976636863237827e-08, 4.9828615489349405e-08, 4.989094020354221e-08, 4.9953342872339235e-08, 5.001582359324483e-08, 5.0078382463884796e-08, 5.014101958200754e-08, 5.020373504548378e-08, 5.0266528952306045e-08, 5.032940140059003e-08, 5.039235248857413e-08, 5.045538231461906e-08, 5.051849097720912e-08, 5.058167857495179e-08, 5.064494520657735e-08, 5.070829097094009e-08, 5.0771715967017975e-08, 5.08352202939122e-08, 5.089880405084849e-08, 5.0962467337176456e-08, 5.102621025237018e-08, 5.1090032896027636e-08, 5.115393536787188e-08, 5.121791776775073e-08, 5.1281980195636324e-08, 5.1346122751626406e-08, 5.141034553594393e-08, 5.1474648648936614e-08, 5.153903219107829e-08, 5.1603496262968434e-08, 5.166804096533181e-08, 5.17326663990197e-08, 5.1797372665009554e-08, 5.186215986440454e-08, 5.192702809843487e-08, 5.199197746845736e-08, 5.205700807595503e-08, 5.212212002253841e-08, 5.218731340994511e-08, 5.225258834003946e-08, 5.231794491481371e-08, 5.2383383236387724e-08, 5.244890340700851e-08, 5.2514505529051546e-08, 5.258018970502016e-08, 5.2645956037546065e-08, 5.2711804629388804e-08, 5.2777735583437e-08, 5.2843749002707974e-08, 5.290984499034733e-08, 5.297602364963024e-08, 5.304228508396107e-08, 5.3108629396872947e-08, 5.3175056692029064e-08, 5.324156707322227e-08, 5.330816064437467e-08, 5.337483750953892e-08, 5.344159777289783e-08, 5.350844153876394e-08, 5.357536891158085e-08, 5.364237999592276e-08, 5.3709474896494146e-08, 5.377665371813098e-08, 5.384391656580039e-08, 5.391126354460019e-08, 5.397869475976024e-08, 5.404621031664204e-08, 5.411381032073826e-08, 5.418149487767411e-08, 5.4249264093206734e-08, 5.4317118073225734e-08, 5.438505692375258e-08, 5.4453080750941933e-08, 5.452118966108123e-08, 5.458938376059027e-08, 5.465766315602255e-08, 5.472602795406482e-08, 5.47944782615367e-08, 5.486301418539203e-08, 5.493163583271837e-08, 5.500034331073668e-08, 5.50691367268026e-08, 5.513801618840606e-08, 5.520698180317084e-08, 5.527603367885591e-08, 5.534517192335505e-08, 5.5414396644696387e-08, 5.5483707951043754e-08, 5.555310595069627e-08, 5.562259075208795e-08, 5.5692162463789e-08, 5.576182119450542e-08, 5.58315670530786e-08, 5.590140014848666e-08, 5.5971320589843835e-08, 5.604132848640101e-08, 5.611142394754515e-08, 5.6181607082800624e-08, 5.62518780018288e-08, 5.632223681442759e-08, 5.6392683630532863e-08, 5.646321856021798e-08, 5.653384171369339e-08, 5.660455320130798e-08, 5.6675353133548654e-08, 5.674624162103994e-08, 5.68172187745453e-08, 5.688828470496676e-08, 5.6959439523344433e-08, 5.703068334085796e-08, 5.7102016268826005e-08, 5.717343841870589e-08, 5.7244949902094934e-08, 5.731655083073005e-08, 5.73882413164873e-08, 5.746002147138328e-08, 5.75318914075747e-08, 5.760385123735795e-08, 5.7675901073170476e-08, 5.7748041027590164e-08, 5.782027121333591e-08, 5.7892591743266984e-08, 5.7965002730384444e-08, 5.803750428783066e-08, 5.811009652888893e-08, 5.818277956698484e-08, 5.8255553515685876e-08, 5.8328418488700925e-08, 5.840137459988173e-08, 5.847442196322244e-08, 5.8547560692859155e-08, 5.862079090307136e-08, 5.8694112708281485e-08, 5.876752622305445e-08, 5.88410315620991e-08, 5.8914628840267744e-08, 5.8988318172555726e-08, 5.906209967410286e-08, 5.913597346019295e-08, 5.92099396462534e-08, 5.928399834785659e-08, 5.935814968071947e-08, 5.943239376070309e-08, 5.950673070381406e-08, 5.9581160626203855e-08, 5.965568364416947e-08, 5.97302998741527e-08, 5.980500943274163e-08, 5.987981243667018e-08, 5.995470900281764e-08, 6.002969924821011e-08, 6.010478329002009e-08, 6.017996124556596e-08, 6.025523323231352e-08, 6.033059936787549e-08, 6.040605977001103e-08, 6.048161455662724e-08, 6.055726384577872e-08, 6.063300775566707e-08, 6.070884640464237e-08, 6.078477991120275e-08, 6.086080839399388e-08, 6.093693197181052e-08, 6.101315076359597e-08, 6.108946488844169e-08, 6.116587446558873e-08, 6.124237961442728e-08, 6.131898045449622e-08, 6.13956771054846e-08, 6.147246968723093e-08, 6.15493583197239e-08, 6.162634312310153e-08, 6.170342421765283e-08, 6.178060172381725e-08, 6.18578757621842e-08, 6.193524645349462e-08, 6.201271391864044e-08, 6.209027827866416e-08, 6.216793965476033e-08, 6.224569816827506e-08, 6.232355394070564e-08, 6.240150709370192e-08, 6.247955774906596e-08, 6.255770602875146e-08, 6.263595205486537e-08, 6.271429594966733e-08, 6.279273783556924e-08, 6.28712778351368e-08, 6.294991607108899e-08, 6.302865266629762e-08, 6.310748774378887e-08, 6.318642142674278e-08, 6.326545383849281e-08, 6.334458510252732e-08, 6.342381534248895e-08, 6.350314468217518e-08, 6.358257324553767e-08, 6.366210115668378e-08, 6.374172853987614e-08, 6.382145551953207e-08, 6.390128222022525e-08, 6.398120876668512e-08, 6.406123528379648e-08, 6.4141361896601e-08, 6.422158873029676e-08, 6.430191591023776e-08, 6.438234356193545e-08, 6.446287181105827e-08, 6.45435007834312e-08, 6.462423060503722e-08, 6.470506140201694e-08, 6.478599330066804e-08, 6.486702642744685e-08, 6.494816090896788e-08, 6.50293968720033e-08, 6.51107344434846e-08, 6.519217375050191e-08, 6.527371492030375e-08, 6.535535808029844e-08, 6.543710335805341e-08, 6.551895088129594e-08, 6.560090077791231e-08, 6.568295317594949e-08, 6.576510820361461e-08, 6.584736598927444e-08, 6.592972666145702e-08, 6.601219034885116e-08, 6.609475718030593e-08, 6.617742728483223e-08, 6.626020079160235e-08, 6.634307782994947e-08, 6.642605852936919e-08, 6.650914301951911e-08, 6.65923314302183e-08, 6.66756238914489e-08, 6.675902053335562e-08, 6.684252148624528e-08, 6.692612688058835e-08, 6.700983684701854e-08, 6.709365151633218e-08, 6.717757101948998e-08, 6.72615954876164e-08, 6.734572505199922e-08, 6.742995984409112e-08, 6.7514299995509e-08, 6.75987456380346e-08, 6.768329690361378e-08, 6.776795392435814e-08, 6.785271683254452e-08, 6.793758576061453e-08, 6.802256084117612e-08, 6.810764220700309e-08, 6.819282999103462e-08, 6.827812432637689e-08, 6.836352534630256e-08, 6.844903318425024e-08, 6.853464797382621e-08, 6.86203698488038e-08, 6.870619894312302e-08, 6.879213539089206e-08, 6.887817932638689e-08, 6.896433088405068e-08, 6.905059019849552e-08, 6.913695740450184e-08, 6.922343263701791e-08, 6.931001603116156e-08, 6.939670772221962e-08, 6.948350784564735e-08, 6.957041653707023e-08, 6.965743393228312e-08, 6.974456016725093e-08, 6.983179537810795e-08, 6.991913970115944e-08, 7.000659327288121e-08, 7.009415622991896e-08, 7.018182870909007e-08, 7.026961084738307e-08, 7.035750278195707e-08, 7.044550465014347e-08, 7.053361658944547e-08, 7.06218387375375e-08, 7.071017123226692e-08, 7.079861421165354e-08, 7.0887167813889e-08, 7.09758321773386e-08, 7.106460744054066e-08, 7.115349374220606e-08, 7.12424912212199e-08, 7.133160001664103e-08, 7.142082026770145e-08, 7.151015211380807e-08, 7.159959569454215e-08, 7.168915114965883e-08, 7.177881861908877e-08, 7.186859824293739e-08, 7.195849016148566e-08, 7.204849451518918e-08, 7.213861144468004e-08, 7.222884109076622e-08, 7.231918359443104e-08, 7.240963909683494e-08, 7.250020773931491e-08, 7.259088966338397e-08, 7.268168501073291e-08, 7.277259392322971e-08, 7.286361654291908e-08, 7.29547530120241e-08, 7.304600347294581e-08, 7.313736806826254e-08, 7.322884694073178e-08, 7.33204402332895e-08, 7.341214808904977e-08, 7.350397065130634e-08, 7.359590806353227e-08, 7.368796046937926e-08, 7.378012801267949e-08, 7.3872410837445e-08, 7.396480908786722e-08, 7.405732290831868e-08, 7.414995244335225e-08, 7.424269783770187e-08, 7.433555923628169e-08, 7.442853678418796e-08, 7.452163062669835e-08, 7.461484090927148e-08, 7.470816777754872e-08, 7.480161137735359e-08, 7.489517185469118e-08, 7.498884935575002e-08, 7.508264402690152e-08, 7.517655601469931e-08, 7.527058546588117e-08, 7.53647325273684e-08, 7.545899734626526e-08, 7.555338006986085e-08, 7.564788084562843e-08, 7.574249982122494e-08, 7.583723714449284e-08, 7.593209296345948e-08, 7.602706742633654e-08, 7.612216068152192e-08, 7.621737287759915e-08, 7.631270416333671e-08, 7.640815468769007e-08, 7.650372459980067e-08, 7.659941404899678e-08, 7.669522318479267e-08, 7.679115215689038e-08, 7.688720111517924e-08, 7.69833702097352e-08, 7.707965959082279e-08, 7.717606940889444e-08, 7.727259981458997e-08, 7.736925095873841e-08, 7.746602299235752e-08, 7.756291606665303e-08, 7.765993033302067e-08, 7.775706594304553e-08, 7.785432304850147e-08, 7.795170180135301e-08, 7.804920235375477e-08, 7.81468248580508e-08, 7.824456946677656e-08, 7.834243633265831e-08, 7.84404256086125e-08, 7.853853744774765e-08, 7.863677200336383e-08, 7.873512942895198e-08, 7.883360987819589e-08, 7.893221350497126e-08, 7.903094046334658e-08, 7.912979090758217e-08, 7.922876499213214e-08, 7.932786287164383e-08, 7.942708470095711e-08, 7.95264306351064e-08, 7.962590082932e-08, 7.972549543901958e-08, 7.9825214619822e-08, 7.992505852753877e-08, 8.00250273181755e-08, 8.012512114793367e-08, 8.022534017321023e-08, 8.032568455059683e-08, 8.042615443688191e-08, 8.052674998904993e-08, 8.06274713642809e-08, 8.07283187199523e-08, 8.082929221363839e-08, 8.093039200310973e-08, 8.103161824633505e-08, 8.113297110148064e-08, 8.12344507269098e-08, 8.133605728118474e-08, 8.143779092306575e-08, 8.153965181151191e-08, 8.164164010568033e-08, 8.174375596492804e-08, 8.184599954881136e-08, 8.194837101708534e-08, 8.20508705297057e-08, 8.215349824682825e-08, 8.225625432880822e-08, 8.235913893620233e-08, 8.246215222976807e-08, 8.256529437046315e-08, 8.266856551944749e-08, 8.277196583808256e-08, 8.28754954879308e-08, 8.297915463075761e-08, 8.30829434285307e-08, 8.318686204341951e-08, 8.329091063779718e-08, 8.339508937423997e-08, 8.349939841552657e-08, 8.360383792464019e-08, 8.370840806476787e-08, 8.381310899929988e-08, 8.391794089183174e-08, 8.402290390616334e-08, 8.412799820629968e-08, 8.423322395645003e-08, 8.433858132102996e-08, 8.444407046466065e-08, 8.454969155216833e-08, 8.465544474858626e-08, 8.476133021915412e-08, 8.486734812931741e-08, 8.497349864472941e-08, 8.507978193125063e-08, 8.518619815494813e-08, 8.529274748209758e-08, 8.539943007918262e-08, 8.550624611289424e-08, 8.561319575013281e-08, 8.572027915800744e-08, 8.582749650383541e-08, 8.593484795514411e-08, 8.604233367967055e-08, 8.614995384536055e-08, 8.625770862037097e-08, 8.636559817306895e-08, 8.647362267203136e-08, 8.658178228604678e-08, 8.669007718411463e-08, 8.679850753544603e-08, 8.69070735094628e-08, 8.701577527579963e-08, 8.712461300430332e-08, 8.723358686503224e-08, 8.73426970282584e-08, 8.745194366446675e-08, 8.756132694435455e-08, 8.76708470388335e-08, 8.778050411902912e-08, 8.789029835627996e-08, 8.800022992213987e-08, 8.811029898837725e-08, 8.82205057269744e-08, 8.833085031012972e-08, 8.844133291025691e-08, 8.855195369998447e-08, 8.866271285215769e-08, 8.877361053983809e-08, 8.888464693630272e-08, 8.899582221504626e-08, 8.910713654978044e-08, 8.921859011443329e-08, 8.933018308315134e-08, 8.944191563029864e-08, 8.955378793045762e-08, 8.966580015842815e-08, 8.977795248922967e-08, 8.989024509810053e-08, 9.000267816049734e-08, 9.011525185209707e-08, 9.022796634879648e-08, 9.034082182671134e-08, 9.04538184621787e-08, 9.056695643175612e-08, 9.068023591222107e-08, 9.079365708057308e-08, 9.090722011403308e-08, 9.102092519004268e-08, 9.11347724862664e-08, 9.1248762180591e-08, 9.136289445112474e-08, 9.147716947619966e-08, 9.159158743437082e-08, 9.170614850441565e-08, 9.182085286533617e-08, 9.193570069635831e-08, 9.205069217693116e-08, 9.216582748672927e-08, 9.228110680565157e-08, 9.239653031382236e-08, 9.251209819159025e-08, 9.262781061953037e-08, 9.274366777844376e-08, 9.28596698493566e-08, 9.297581701352245e-08, 9.309210945242165e-08, 9.320854734776048e-08, 9.33251308814735e-08, 9.344186023572283e-08, 9.355873559289747e-08, 9.36757571356155e-08, 9.379292504672345e-08, 9.391023950929555e-08, 9.402770070663596e-08, 9.41453088222782e-08, 9.42630640399843e-08, 9.438096654374713e-08, 9.449901651778974e-08, 9.461721414656453e-08, 9.473555961475569e-08, 9.485405310727834e-08, 9.497269480927795e-08, 9.509148490613251e-08, 9.52104235834516e-08, 9.532951102707723e-08, 9.544874742308289e-08, 9.556813295777584e-08, 9.568766781769629e-08, 9.580735218961686e-08, 9.59271862605447e-08, 9.604717021772093e-08, 9.616730424861985e-08, 9.62875885409512e-08, 9.640802328265958e-08, 9.652860866192361e-08, 9.664934486715832e-08, 9.677023208701439e-08, 9.689127051037744e-08, 9.701246032637037e-08, 9.713380172435265e-08, 9.725529489391954e-08, 9.737694002490448e-08, 9.749873730737837e-08, 9.76206869316488e-08, 9.774278908826241e-08, 9.786504396800421e-08, 9.798745176189678e-08, 9.811001266120265e-08, 9.823272685742326e-08, 9.835559454229993e-08, 9.847861590781273e-08, 9.860179114618293e-08, 9.87251204498722e-08, 9.884860401158191e-08, 9.89722420242555e-08, 9.909603468107773e-08, 9.921998217547396e-08, 9.934408470111254e-08, 9.946834245190403e-08, 9.959275562200047e-08, 9.971732440579783e-08, 9.984204899793523e-08, 9.996692959329413e-08, 1.0009196638700089e-07, 1.0021715957442582e-07, 1.0034250935118262e-07, 1.004680159131307e-07, 1.0059367945637445e-07, 1.0071950017726245e-07, 1.0084547827238998e-07, 1.0097161393859817e-07, 1.0109790737297332e-07, 1.0122435877284932e-07, 1.013509683358065e-07, 1.0147773625967268e-07, 1.0160466274252205e-07, 1.0173174798267763e-07, 1.0185899217871049e-07, 1.0198639552943899e-07, 1.0211395823393126e-07, 1.022416804915044e-07, 1.0236956250172374e-07, 1.0249760446440532e-07, 1.0262580657961511e-07, 1.0275416904766818e-07, 1.028826920691313e-07, 1.0301137584482206e-07, 1.0314022057580818e-07, 1.0326922646340993e-07, 1.0339839370919941e-07, 1.0352772251499973e-07, 1.0365721308288754e-07, 1.0378686561519226e-07, 1.0391668031449524e-07, 1.0404665738363234e-07, 1.0417679702569317e-07, 1.0430709944402016e-07, 1.0443756484221124e-07, 1.0456819342411866e-07, 1.0469898539384994e-07, 1.0482994095576682e-07, 1.0496106031448778e-07, 1.0509234367488721e-07, 1.0522379124209464e-07, 1.0535540322149727e-07, 1.0548717981873928e-07, 1.0561912123972082e-07, 1.0575122769060079e-07, 1.0588349937779592e-07, 1.0601593650797999e-07, 1.0614853928808643e-07, 1.0628130792530747e-07, 1.0641424262709338e-07, 1.0654734360115508e-07, 1.0668061105546318e-07, 1.068140451982474e-07, 1.0694764623799896e-07, 1.070814143834699e-07, 1.0721534984367224e-07, 1.0734945282788052e-07, 1.0748372354563104e-07, 1.0761816220672111e-07, 1.0775276902121153e-07, 1.0788754419942544e-07, 1.0802248795194952e-07, 1.081576004896326e-07, 1.0829288202358846e-07, 1.084283327651949e-07, 1.0856395292609295e-07, 1.0869974271818954e-07, 1.0883570235365664e-07, 1.089718320449304e-07, 1.0910813200471393e-07, 1.0924460244597628e-07, 1.0938124358195179e-07, 1.0951805562614267e-07, 1.0965503879231812e-07, 1.097921932945136e-07, 1.0992951934703344e-07, 1.1006701716445003e-07, 1.1020468696160293e-07, 1.1034252895360164e-07, 1.1048054335582466e-07, 1.1061873038391877e-07, 1.1075709025380163e-07, 1.1089562318166092e-07, 1.1103432938395359e-07, 1.1117320907740853e-07, 1.1131226247902526e-07, 1.1145148980607516e-07, 1.1159089127610015e-07, 1.1173046710691547e-07, 1.1187021751660878e-07, 1.1201014272353932e-07, 1.1215024294634066e-07, 1.122905184039198e-07, 1.1243096931545641e-07, 1.1257159590040544e-07, 1.1271239837849638e-07, 1.128533769697323e-07, 1.129945318943927e-07, 1.1313586337303259e-07, 1.132773716264816e-07, 1.1341905687584682e-07, 1.135609193425119e-07, 1.1370295924813614e-07, 1.1384517681465735e-07, 1.139875722642909e-07, 1.1413014581952887e-07, 1.1427289770314294e-07, 1.1441582813818331e-07, 1.1455893734797802e-07, 1.1470222555613565e-07, 1.1484569298654403e-07, 1.149893398633715e-07, 1.1513316641106547e-07, 1.1527717285435538e-07, 1.1542135941825174e-07, 1.1556572632804529e-07, 1.1571027380930972e-07, 1.1585500208790092e-07, 1.1599991138995605e-07, 1.1614500194189633e-07, 1.1629027397042618e-07, 1.1643572770253236e-07, 1.1658136336548676e-07, 1.1672718118684555e-07, 1.1687318139444829e-07, 1.1701936421642074e-07, 1.1716572988117399e-07, 1.173122786174036e-07, 1.1745901065409241e-07, 1.1760592622050969e-07, 1.177530255462102e-07, 1.1790030886103708e-07, 1.1804777639512096e-07, 1.1819542837887907e-07, 1.1834326504301804e-07, 1.1849128661853274e-07, 1.186394933367073e-07, 1.1878788542911392e-07, 1.1893646312761569e-07, 1.1908522666436571e-07, 1.192341762718062e-07, 1.193833121826714e-07, 1.1953263462998656e-07, 1.1968214384706721e-07, 1.19831840067522e-07, 1.1998172352525172e-07, 1.201317944544484e-07, 1.2028205308959838e-07, 1.204324996654812e-07, 1.205831344171688e-07, 1.207339575800285e-07, 1.2088496938972188e-07, 1.210361700822041e-07, 1.211875598937267e-07, 1.2133913906083674e-07, 1.214909078203758e-07, 1.2164286640948306e-07, 1.2179501506559425e-07, 1.2194735402644084e-07, 1.2209988353005288e-07, 1.222526038147578e-07, 1.2240551511918148e-07, 1.22558617682247e-07, 1.227119117431776e-07, 1.228653975414957e-07, 1.23019075317022e-07, 1.231729453098785e-07, 1.2332700776048757e-07, 1.2348126290957091e-07, 1.2363571099815267e-07, 1.2379035226755844e-07, 1.239451869594144e-07, 1.2410021531565018e-07, 1.242554375784981e-07, 1.2441085399049207e-07, 1.245664647944707e-07, 1.2472227023357637e-07, 1.2487827055125422e-07, 1.2503446599125518e-07, 1.2519085679763516e-07, 1.253474432147539e-07, 1.2550422548727818e-07, 1.2566120386018075e-07, 1.2581837857873946e-07, 1.2597574988854032e-07, 1.2613331803547601e-07, 1.2629108326574723e-07, 1.264490458258613e-07, 1.266072059626352e-07, 1.2676556392319462e-07, 1.2692411995497302e-07, 1.2708287430571465e-07, 1.272418272234737e-07, 1.2740097895661325e-07, 1.275603297538083e-07, 1.2771987986404501e-07, 1.2787962953661955e-07, 1.2803957902114126e-07, 1.2819972856753168e-07, 1.2836007842602362e-07, 1.2852062884716423e-07, 1.28681380081814e-07, 1.2884233238114587e-07, 1.290034859966483e-07, 1.291648411801243e-07, 1.2932639818369047e-07, 1.294881572597801e-07, 1.2965011866114228e-07, 1.2981228264084076e-07, 1.299746494522573e-07, 1.3013721934909004e-07, 1.3029999258535495e-07, 1.304629694153843e-07, 1.3062615009382995e-07, 1.3078953487566213e-07, 1.3095312401616872e-07, 1.311169177709582e-07, 1.3128091639595885e-07, 1.3144512014741762e-07, 1.3160952928190335e-07, 1.3177414405630585e-07, 1.3193896472783477e-07, 1.321039915540229e-07, 1.322692247927252e-07, 1.3243466470211766e-07, 1.3260031154070068e-07, 1.327661655672979e-07, 1.3293222704105541e-07, 1.3309849622144468e-07, 1.3326497336826187e-07, 1.3343165874162656e-07, 1.335985526019852e-07, 1.3376565521010994e-07, 1.3393296682709768e-07, 1.3410048771437333e-07, 1.3426821813368831e-07, 1.3443615834712193e-07, 1.3460430861707984e-07, 1.3477266920629734e-07, 1.3494124037783838e-07, 1.351100223950945e-07, 1.3527901552178808e-07, 1.354482200219714e-07, 1.3561763616002561e-07, 1.357872642006639e-07, 1.3595710440893063e-07, 1.3612715705020015e-07, 1.3629742239018026e-07, 1.3646790069491108e-07, 1.3663859223076403e-07, 1.368094972644451e-07, 1.36980616062994e-07, 1.3715194889378287e-07, 1.3732349602451977e-07, 1.3749525772324767e-07, 1.3766723425834324e-07, 1.3783942589852032e-07, 1.380118329128289e-07, 1.3818445557065404e-07, 1.3835729414171907e-07, 1.385303488960844e-07, 1.3870362010414852e-07, 1.3887710803664678e-07, 1.3905081296465461e-07, 1.3922473515958646e-07, 1.3939887489319485e-07, 1.3957323243757362e-07, 1.3974780806515696e-07, 1.3992260204871836e-07, 1.400976146613739e-07, 1.4027284617658135e-07, 1.40448296868139e-07, 1.4062396701018908e-07, 1.4079985687721673e-07, 1.4097596674404887e-07, 1.4115229688585777e-07, 1.4132884757815974e-07, 1.4150561909681432e-07, 1.416826117180275e-07, 1.4185982571835086e-07, 1.4203726137468024e-07, 1.4221491896425942e-07, 1.4239279876467893e-07, 1.4257090105387495e-07, 1.427492261101329e-07, 1.4292777421208566e-07, 1.4310654563871523e-07, 1.4328554066935095e-07, 1.4346475958367314e-07, 1.4364420266171188e-07, 1.4382387018384597e-07, 1.440037624308065e-07, 1.4418387968367563e-07, 1.443642222238856e-07, 1.4454479033322216e-07, 1.4472558429382352e-07, 1.4490660438817927e-07, 1.4508785089913388e-07, 1.4526932410988554e-07, 1.4545102430398517e-07, 1.4563295176533987e-07, 1.4581510677821184e-07, 1.459974896272173e-07, 1.4618010059733e-07, 1.4636293997388014e-07, 1.4654600804255326e-07, 1.4672930508939378e-07, 1.4691283140080385e-07, 1.4709658726354236e-07, 1.4728057296472838e-07, 1.4746478879183962e-07, 1.476492350327139e-07, 1.4783391197554743e-07, 1.480188199088985e-07, 1.4820395912168627e-07, 1.4838932990318982e-07, 1.4857493254305157e-07, 1.4876076733127614e-07, 1.489468345582294e-07, 1.4913313451464197e-07, 1.493196674916081e-07, 1.495064337805845e-07, 1.4969343367339416e-07, 1.4988066746222487e-07, 1.5006813543962847e-07, 1.5025583789852422e-07, 1.5044377513219778e-07, 1.5063194743430006e-07, 1.5082035509885088e-07, 1.5100899842023773e-07, 1.5119787769321481e-07, 1.5138699321290655e-07, 1.515763452748065e-07, 1.5176593417477628e-07, 1.5195576020904907e-07, 1.521458236742281e-07, 1.5233612486728812e-07, 1.525266640855737e-07, 1.5271744162680294e-07, 1.5290845778906633e-07, 1.5309971287082558e-07, 1.5329120717091733e-07, 1.5348294098855203e-07, 1.536749146233127e-07, 1.5386712837515875e-07, 1.5405958254442472e-07, 1.5425227743181922e-07, 1.5444521333842858e-07, 1.5463839056571578e-07, 1.5483180941551912e-07, 1.5502547019005618e-07, 1.552193731919225e-07, 1.5541351872409047e-07, 1.5560790708991306e-07, 1.558025385931227e-07, 1.5599741353783003e-07, 1.5619253222852774e-07, 1.563878949700894e-07, 1.565835020677682e-07, 1.5677935382720085e-07, 1.5697545055440575e-07, 1.5717179255578465e-07, 1.573683801381208e-07, 1.5756521360858296e-07, 1.57762293274724e-07, 1.579596194444798e-07, 1.5815719242617313e-07, 1.5835501252851238e-07, 1.5855308006059033e-07, 1.5875139533188815e-07, 1.5894995865227404e-07, 1.591487703320021e-07, 1.5934783068171644e-07, 1.595471400124484e-07, 1.5974669863561934e-07, 1.599465068630394e-07, 1.6014656500690871e-07, 1.603468733798187e-07, 1.6054743229475068e-07, 1.6074824206507858e-07, 1.609493030045674e-07, 1.6115061542737462e-07, 1.6135217964805153e-07, 1.6155399598154194e-07, 1.617560647431837e-07, 1.6195838624870978e-07, 1.6216096081424735e-07, 1.6236378875631888e-07, 1.6256687039184367e-07, 1.627702060381365e-07, 1.6297379601290911e-07, 1.6317764063427145e-07, 1.6338174022073015e-07, 1.635860950911915e-07, 1.6379070556495973e-07, 1.639955719617384e-07, 1.6420069460163194e-07, 1.644060738051442e-07, 1.6461170989317993e-07, 1.6481760318704616e-07, 1.650237540084509e-07, 1.6523016267950453e-07, 1.654368295227213e-07, 1.6564375486101755e-07, 1.6585093901771478e-07, 1.6605838231653793e-07, 1.6626608508161695e-07, 1.6647404763748806e-07, 1.6668227030909244e-07, 1.668907534217778e-07, 1.6709949730129963e-07, 1.6730850227382e-07, 1.675177686659089e-07, 1.6772729680454577e-07, 1.6793708701711796e-07, 1.6814713963142252e-07, 1.6835745497566724e-07, 1.6856803337846935e-07, 1.6877887516885816e-07, 1.689899806762738e-07, 1.6920135023056828e-07, 1.6941298416200726e-07, 1.6962488280126845e-07, 1.6983704647944322e-07, 1.7004947552803798e-07, 1.7026217027897282e-07, 1.7047513106458308e-07, 1.7068835821762063e-07, 1.709018520712523e-07, 1.711156129590629e-07, 1.7132964121505357e-07, 1.715439371736432e-07, 1.7175850116966987e-07, 1.7197333353838954e-07, 1.7218843461547756e-07, 1.7240380473703e-07, 1.7261944423956243e-07, 1.728353534600113e-07, 1.730515327357354e-07, 1.7326798240451461e-07, 1.7348470280455128e-07, 1.737016942744717e-07, 1.739189571533244e-07, 1.741364917805834e-07, 1.743542984961462e-07, 1.745723776403356e-07, 1.7479072955390088e-07, 1.7500935457801662e-07, 1.7522825305428423e-07, 1.7544742532473316e-07, 1.7566687173181986e-07, 1.758865926184291e-07, 1.7610658832787535e-07, 1.7632685920390143e-07, 1.7654740559068116e-07, 1.7676822783281808e-07, 1.7698932627534663e-07, 1.7721070126373378e-07, 1.7743235314387774e-07, 1.7765428226210926e-07, 1.7787648896519327e-07, 1.780989736003275e-07, 1.7832173651514386e-07, 1.7854477805771016e-07, 1.7876809857652846e-07, 1.7899169842053686e-07, 1.7921557793911078e-07, 1.7943973748206138e-07, 1.796641773996386e-07, 1.7988889804252958e-07, 1.8011389976186002e-07, 1.803391829091958e-07, 1.8056474783654158e-07, 1.8079059489634226e-07, 1.8101672444148455e-07, 1.8124313682529561e-07, 1.8146983240154454e-07, 1.8169681152444383e-07, 1.8192407454864776e-07, 1.8215162182925553e-07, 1.8237945372180945e-07, 1.8260757058229658e-07, 1.8283597276715024e-07, 1.8306466063324854e-07, 1.83293634537916e-07, 1.8352289483892505e-07, 1.8375244189449461e-07, 1.839822760632917e-07, 1.842123977044329e-07, 1.8444280717748296e-07, 1.8467350484245646e-07, 1.8490449105981917e-07, 1.8513576619048646e-07, 1.853673305958264e-07, 1.8559918463765813e-07, 1.8583132867825328e-07, 1.860637630803376e-07, 1.8629648820708962e-07, 1.8652950442214205e-07, 1.867628120895834e-07, 1.8699641157395662e-07, 1.8723030324026063e-07, 1.874644874539519e-07, 1.8769896458094262e-07, 1.8793373498760403e-07, 1.8816879904076458e-07, 1.8840415710771158e-07, 1.8863980955619275e-07, 1.8887575675441468e-07, 1.8911199907104468e-07, 1.89348536875212e-07, 1.8958537053650676e-07, 1.8982250042498116e-07, 1.9005992691115148e-07, 1.9029765036599624e-07, 1.9053567116095808e-07, 1.907739896679452e-07, 1.9101260625932966e-07, 1.9125152130795061e-07, 1.914907351871125e-07, 1.9173024827058675e-07, 1.9197006093261326e-07, 1.9221017354789904e-07, 1.9245058649161976e-07, 1.9269130013942135e-07, 1.9293231486741865e-07, 1.931736310521968e-07, 1.9341524907081314e-07, 1.9365716930079514e-07, 1.9389939212014392e-07, 1.9414191790733233e-07, 1.9438474704130663e-07, 1.9462787990148809e-07, 1.9487131686777147e-07, 1.9511505832052678e-07, 1.9535910464060072e-07, 1.9560345620931544e-07, 1.9584811340846992e-07, 1.960930766203418e-07, 1.9633834622768582e-07, 1.965839226137354e-07, 1.9682980616220438e-07, 1.9707599725728523e-07, 1.973224962836522e-07, 1.9756930362645977e-07, 1.9781641967134411e-07, 1.980638448044248e-07, 1.9831157941230326e-07, 1.9855962388206454e-07, 1.988079786012789e-07, 1.9905664395800028e-07, 1.99305620340768e-07, 1.995549081386084e-07, 1.99804507741033e-07, 2.0005441953804193e-07, 2.0030464392012212e-07, 2.0055518127824882e-07, 2.0080603200388745e-07, 2.010571964889919e-07, 2.0130867512600643e-07, 2.0156046830786716e-07, 2.0181257642800065e-07, 2.0206499988032547e-07, 2.023177390592541e-07, 2.0257079435969115e-07, 2.0282416617703527e-07, 2.0307785490718064e-07, 2.0333186094651528e-07, 2.0358618469192434e-07, 2.0384082654078843e-07, 2.0409578689098508e-07, 2.0435106614089067e-07, 2.0460666468937865e-07, 2.0486258293582147e-07, 2.051188212800922e-07, 2.053753801225629e-07, 2.0563225986410644e-07, 2.0588946090609822e-07, 2.061469836504142e-07, 2.0640482849943446e-07, 2.066629958560412e-07, 2.069214861236207e-07, 2.0718029970606467e-07, 2.0743943700776912e-07, 2.0769889843363572e-07, 2.0795868438907377e-07, 2.0821879527999846e-07, 2.0847923151283278e-07, 2.0873999349450911e-07, 2.0900108163246776e-07, 2.092624963346586e-07, 2.0952423800954292e-07, 2.0978630706609136e-07, 2.1004870391378768e-07, 2.1031142896262658e-07, 2.1057448262311565e-07, 2.1083786530627704e-07, 2.1110157742364587e-07, 2.1136561938727197e-07, 2.1162999160972175e-07, 2.1189469450407651e-07, 2.1215972848393412e-07, 2.1242509396341108e-07, 2.1269079135714016e-07, 2.129568210802744e-07, 2.132231835484849e-07, 2.134898791779627e-07, 2.1375690838542052e-07, 2.1402427158809118e-07, 2.1429196920372936e-07, 2.145600016506134e-07, 2.1482836934754366e-07, 2.1509707271384438e-07, 2.1536611216936536e-07, 2.156354881344804e-07, 2.1590520103008914e-07, 2.1617525127761883e-07, 2.1644563929902218e-07, 2.1671636551678139e-07, 2.1698743035390583e-07, 2.1725883423393394e-07, 2.1753057758093513e-07, 2.1780266081950802e-07, 2.180750843747824e-07, 2.1834784867242086e-07, 2.186209541386173e-07, 2.1889440120009864e-07, 2.191681902841268e-07, 2.1944232181849647e-07, 2.1971679623153903e-07, 2.1999161395212044e-07, 2.2026677540964297e-07, 2.2054228103404726e-07, 2.2081813125581058e-07, 2.210943265059485e-07, 2.2137086721601698e-07, 2.216477538181105e-07, 2.2192498674486407e-07, 2.2220256642945498e-07, 2.2248049330560113e-07, 2.2275876780756295e-07, 2.230373903701452e-07, 2.2331636142869483e-07, 2.2359568141910507e-07, 2.23875350777813e-07, 2.241553699418017e-07, 2.244357393486019e-07, 2.247164594362905e-07, 2.249975306434923e-07, 2.252789534093819e-07, 2.2556072817368205e-07, 2.2584285537666546e-07, 2.261253354591567e-07, 2.2640816886253026e-07, 2.266913560287141e-07, 2.2697489740018787e-07, 2.2725879341998458e-07, 2.2754304453169265e-07, 2.2782765117945412e-07, 2.281126138079665e-07, 2.2839793286248473e-07, 2.2868360878881957e-07, 2.2896964203333926e-07, 2.292560330429716e-07, 2.2954278226520221e-07, 2.298298901480764e-07, 2.3011735714020112e-07, 2.304051836907428e-07, 2.3069337024943125e-07, 2.3098191726655768e-07, 2.3127082519297643e-07, 2.3156009448010697e-07, 2.3184972557993226e-07, 2.3213971894500054e-07, 2.3243007502842728e-07, 2.3272079428389355e-07, 2.3301187716564785e-07, 2.3330332412850802e-07, 2.3359513562785918e-07, 2.3388731211965773e-07, 2.3417985406042905e-07, 2.3447276190726955e-07, 2.3476603611784864e-07, 2.3505967715040693e-07, 2.353536854637582e-07, 2.356480615172913e-07, 2.3594280577096845e-07, 2.362379186853272e-07, 2.365334007214824e-07, 2.3682925234112433e-07, 2.3712547400652083e-07, 2.374220661805191e-07, 2.3771902932654365e-07, 2.3801636390860033e-07, 2.3831407039127405e-07, 2.386121492397308e-07, 2.389106009197197e-07, 2.392094258975712e-07, 2.395086246401988e-07, 2.3980819761510167e-07, 2.4010814529036204e-07, 2.4040846813464787e-07, 2.4070916661721447e-07, 2.410102412079025e-07, 2.413116923771418e-07, 2.4161352059594963e-07, 2.419157263359321e-07, 2.4221831006928657e-07, 2.425212722687998e-07, 2.428246134078499e-07, 2.431283339604083e-07, 2.4343243440103796e-07, 2.4373691520489543e-07, 2.4404177684773296e-07, 2.4434701980589645e-07, 2.4465264455632766e-07, 2.4495865157656624e-07, 2.4526504134474726e-07, 2.4557181433960575e-07, 2.458789710404741e-07, 2.461865119272843e-07, 2.464944374805699e-07, 2.468027481814642e-07, 2.471114445117023e-07, 2.474205269536232e-07, 2.4772999599016774e-07, 2.4803985210488103e-07, 2.483500957819141e-07, 2.48660727506022e-07, 2.489717477625676e-07, 2.492831570375197e-07, 2.4959495581745496e-07, 2.4990714458955993e-07, 2.5021972384162917e-07, 2.505326940620674e-07, 2.5084605573989147e-07, 2.5115980936472866e-07, 2.5147395542681865e-07, 2.517884944170156e-07, 2.5210342682678635e-07, 2.524187531482123e-07, 2.527344738739919e-07, 2.5305058949743786e-07, 2.5336710051248184e-07, 2.5368400741367195e-07, 2.5400131069617475e-07, 2.543190108557777e-07, 2.546371083888868e-07, 2.5495560379252917e-07, 2.5527449756435475e-07, 2.555937902026347e-07, 2.559134822062634e-07, 2.562335740747606e-07, 2.5655406630826894e-07, 2.5687495940755857e-07, 2.5719625387402446e-07, 2.5751795020968896e-07, 2.578400489172035e-07, 2.581625504998469e-07, 2.5848545546152756e-07, 2.588087643067855e-07, 2.591324775407902e-07, 2.5945659566934333e-07, 2.597811191988805e-07, 2.601060486364692e-07, 2.604313844898114e-07, 2.607571272672453e-07, 2.610832774777432e-07, 2.6140983563091566e-07, 2.617368022370095e-07, 2.6206417780690965e-07, 2.6239196285214133e-07, 2.6272015788486843e-07, 2.6304876341789517e-07, 2.633777799646688e-07, 2.637072080392771e-07, 2.6403704815645123e-07, 2.643673008315672e-07, 2.646979665806441e-07, 2.650290459203481e-07, 2.653605393679903e-07, 2.6569244744152876e-07, 2.660247706595709e-07, 2.6635750954137124e-07, 2.6669066460683403e-07, 2.6702423637651496e-07, 2.6735822537161956e-07, 2.6769263211400524e-07, 2.680274571261835e-07, 2.683627009313181e-07, 2.68698364053227e-07, 2.6903444701638485e-07, 2.6937095034592046e-07, 2.6970787456762125e-07, 2.7004522020793096e-07, 2.7038298779395167e-07, 2.707211778534463e-07, 2.7105979091483637e-07, 2.713988275072045e-07, 2.7173828816029623e-07, 2.720781734045185e-07, 2.7241848377094165e-07, 2.7275921979130156e-07, 2.731003819979974e-07, 2.7344197092409616e-07, 2.737839871033301e-07, 2.7412643107009913e-07, 2.7446930335947296e-07, 2.748126045071891e-07, 2.7515633504965527e-07, 2.755004955239514e-07, 2.758450864678278e-07, 2.761901084197075e-07, 2.7653556191868823e-07, 2.768814475045407e-07, 2.772277657177108e-07, 2.775745170993217e-07, 2.7792170219117155e-07, 2.7826932153573816e-07, 2.786173756761762e-07, 2.7896586515632e-07, 2.793147905206853e-07, 2.7966415231446763e-07, 2.8001395108354436e-07, 2.803641873744771e-07, 2.807148617345097e-07, 2.810659747115703e-07, 2.8141752685427414e-07, 2.817695187119204e-07, 2.821219508344975e-07, 2.8247482377268017e-07, 2.8282813807783197e-07, 2.8318189430200755e-07, 2.835360929979506e-07, 2.838907347190961e-07, 2.8424582001957287e-07, 2.8460134945420127e-07, 2.849573235784956e-07, 2.853137429486665e-07, 2.8567060812161876e-07, 2.860279196549539e-07, 2.863856781069721e-07, 2.8674388403667017e-07, 2.871025380037459e-07, 2.874616405685956e-07, 2.8782119229231676e-07, 2.881811937367099e-07, 2.8854164546427686e-07, 2.889025480382231e-07, 2.8926390202245993e-07, 2.8962570798160247e-07, 2.899879664809722e-07, 2.9035067808659903e-07, 2.9071384336521896e-07, 2.910774628842788e-07, 2.9144153721193356e-07, 2.9180606691704905e-07, 2.92171052569204e-07, 2.92536494738688e-07, 2.92902393996504e-07, 2.932687509143708e-07, 2.936355660647205e-07, 2.940028400207014e-07, 2.9437057335618024e-07, 2.947387666457398e-07, 2.9510742046468165e-07, 2.954765353890286e-07, 2.9584611199552165e-07, 2.962161508616254e-07, 2.9658665256552516e-07, 2.9695761768612937e-07, 2.9732904680307216e-07, 2.97700940496711e-07, 2.980732993481295e-07, 2.9844612393913936e-07, 2.988194148522786e-07, 2.991931726708138e-07, 2.995673979787427e-07, 2.999420913607914e-07, 3.003172534024194e-07, 3.0069288468981686e-07, 3.010689858099074e-07, 3.0144555735035e-07, 3.018225998995373e-07, 3.0220011404659775e-07, 3.025781003813985e-07, 3.029565594945426e-07, 3.0333549197737206e-07, 3.0371489842197e-07, 3.0409477942115843e-07, 3.044751355685011e-07, 3.0485596745830557e-07, 3.0523727568562067e-07, 3.0561906084624164e-07, 3.0600132353670744e-07, 3.063840643543029e-07, 3.067672838970618e-07, 3.0715098276376427e-07, 3.075351615539392e-07, 3.0791982086786715e-07, 3.083049613065779e-07, 3.086905834718528e-07, 3.090766879662278e-07, 3.094632753929901e-07, 3.098503463561836e-07, 3.102379014606064e-07, 3.1062594131181285e-07, 3.1101446651611626e-07, 3.114034776805869e-07, 3.117929754130542e-07, 3.121829603221096e-07, 3.1257343301710404e-07, 3.1296439410815057e-07, 3.133558442061271e-07, 3.13747783922674e-07, 3.1414021387019656e-07, 3.1453313466186777e-07, 3.1492654691162524e-07, 3.1532045123417696e-07, 3.1571484824499784e-07, 3.1610973856033283e-07, 3.1650512279719915e-07, 3.1690100157338425e-07, 3.1729737550744825e-07, 3.176942452187266e-07, 3.1809161132732766e-07, 3.1848947445413564e-07, 3.188878352208128e-07, 3.192866942497968e-07, 3.1968605216430607e-07, 3.2008590958833695e-07, 3.204862671466661e-07, 3.2088712546485333e-07, 3.212884851692395e-07, 3.2169034688694853e-07, 3.220927112458905e-07, 3.2249557887475944e-07, 3.228989504030354e-07, 3.2330282646098754e-07, 3.2370720767967185e-07, 3.241120946909335e-07, 3.245174881274095e-07, 3.2492338862252626e-07, 3.2532979681050435e-07, 3.2573671332635623e-07, 3.261441388058883e-07, 3.265520738857042e-07, 3.26960519203202e-07, 3.2736947539657696e-07, 3.277789431048245e-07, 3.281889229677372e-07, 3.2859941562590834e-07, 3.2901042172073377e-07, 3.294219418944095e-07, 3.2983397678993706e-07, 3.3024652705112043e-07, 3.3065959332256897e-07, 3.3107317624969985e-07, 3.3148727647873606e-07, 3.319018946567086e-07, 3.3231703143145966e-07, 3.327326874516399e-07, 3.3314886336671147e-07, 3.3356555982695035e-07, 3.3398277748344436e-07, 3.3440051698809553e-07, 3.348187789936231e-07, 3.3523756415356044e-07, 3.356568731222605e-07, 3.3607670655489313e-07, 3.3649706510744753e-07, 3.3691794943673516e-07, 3.3733936020038744e-07, 3.3776129805685796e-07, 3.381837636654261e-07, 3.386067576861937e-07, 3.3903028078008854e-07, 3.3945433360886664e-07, 3.3987891683510946e-07, 3.403040311222296e-07, 3.407296771344676e-07, 3.411558555368948e-07, 3.4158256699541635e-07, 3.420098121767683e-07, 3.424375917485208e-07, 3.4286590637908057e-07, 3.432947567376889e-07, 3.4372414349442383e-07, 3.4415406732020355e-07, 3.4458452888678346e-07, 3.450155288667592e-07, 3.454470679335697e-07, 3.458791467614934e-07, 3.46311766025655e-07, 3.4674492640202145e-07, 3.471786285674053e-07, 3.4761287319946754e-07, 3.480476609767149e-07, 3.484829925785027e-07, 3.4891886868503795e-07, 3.4935528997737645e-07, 3.4979225713742606e-07, 3.502297708479492e-07, 3.5066783179255996e-07, 3.5110644065572984e-07, 3.515455981227847e-07, 3.519853048799075e-07, 3.524255616141414e-07, 3.5286636901338706e-07, 3.533077277664054e-07, 3.537496385628209e-07, 3.541921020931187e-07, 3.546351190486474e-07, 3.550786901216224e-07, 3.5552281600512296e-07, 3.559674973930952e-07, 3.564127349803552e-07, 3.568585294625855e-07, 3.573048815363413e-07, 3.5775179189904715e-07, 3.5819926124900004e-07, 3.5864729028537214e-07, 3.590958797082083e-07, 3.5954503021842887e-07, 3.59994742517833e-07, 3.604450173090955e-07, 3.608958552957703e-07, 3.61347257182293e-07, 3.61799223673978e-07, 3.622517554770242e-07, 3.62704853298512e-07, 3.631585178464063e-07, 3.636127498295592e-07, 3.640675499577077e-07, 3.6452291894147647e-07, 3.6497885749238085e-07, 3.654353663228243e-07, 3.6589244614610136e-07, 3.663500976764006e-07, 3.6680832162880204e-07, 3.6726711871928e-07, 3.677264896647063e-07, 3.6818643518284683e-07, 3.6864695599236795e-07, 3.691080528128328e-07, 3.695697263647046e-07, 3.700319773693497e-07, 3.704948065490347e-07, 3.7095821462692965e-07, 3.714222023271111e-07, 3.7188677037455925e-07, 3.723519194951611e-07, 3.7281765041571363e-07, 3.732839638639201e-07, 3.7375086056839666e-07, 3.742183412586689e-07, 3.746864066651749e-07, 3.7515505751926814e-07, 3.7562429455321515e-07, 3.760941185001981e-07, 3.765645300943184e-07, 3.770355300705936e-07, 3.775071191649606e-07, 3.779792981142787e-07, 3.7845206765632706e-07, 3.789254285298074e-07, 3.7939938147434766e-07, 3.798739272304979e-07, 3.8034906653973743e-07, 3.808248001444708e-07, 3.8130112878803125e-07, 3.817780532146837e-07, 3.822555741696219e-07, 3.827336923989719e-07, 3.8321240864979476e-07, 3.8369172367008413e-07, 3.841716382087691e-07, 3.846521530157176e-07, 3.851332688417328e-07, 3.8561498643855957e-07, 3.8609730655888114e-07, 3.8658022995632206e-07, 3.870637573854516e-07, 3.875478896017808e-07, 3.8803262736176567e-07, 3.8851797142281046e-07, 3.8900392254326463e-07, 3.894904814824262e-07, 3.8997764900054506e-07, 3.904654258588198e-07, 3.909538128194012e-07, 3.9144281064539537e-07, 3.9193242010086006e-07, 3.924226419508117e-07, 3.9291347696122114e-07, 3.9340492589901757e-07, 3.9389698953209147e-07, 3.943896686292917e-07, 3.9488296396042864e-07, 3.9537687629627787e-07, 3.958714064085767e-07, 3.9636655507002786e-07, 3.9686232305430273e-07, 3.9735871113603734e-07, 3.9785572009083976e-07, 3.9835335069528566e-07, 3.988516037269224e-07, 3.993504799642718e-07, 3.998499801868274e-07, 4.003501051750577e-07, 4.0085085571040947e-07, 4.0135223257530486e-07, 4.0185423655314457e-07, 4.023568684283114e-07, 4.02860128986167e-07, 4.0336401901305537e-07, 4.0386853929630623e-07, 4.043736906242312e-07, 4.0487947378613075e-07, 4.053858895722905e-07, 4.058929387739844e-07, 4.0640062218347847e-07, 4.069089405940274e-07, 4.07417894799878e-07, 4.0792748559627293e-07, 4.08437713779447e-07, 4.089485801466313e-07, 4.0946008549605596e-07, 4.0997223062694684e-07, 4.104850163395322e-07, 4.1099844343503906e-07, 4.115125127156967e-07, 4.120272249847399e-07, 4.12542581046406e-07, 4.130585817059381e-07, 4.13575227769589e-07, 4.1409252004461736e-07, 4.1461045933929186e-07, 4.151290464628941e-07, 4.1564828222571597e-07, 4.1616816743906257e-07, 4.166887029152562e-07, 4.172098894676322e-07, 4.177317279105461e-07, 4.182542190593699e-07, 4.187773637304953e-07, 4.193011627413375e-07, 4.198256169103317e-07, 4.203507270569371e-07, 4.2087649400163973e-07, 4.214029185659499e-07, 4.2193000157240525e-07, 4.224577438445747e-07, 4.2298614620705413e-07, 4.2351520948547377e-07, 4.240449345064944e-07, 4.2457532209781074e-07, 4.2510637308815495e-07, 4.2563808830729364e-07, 4.2617046858603114e-07, 4.2670351475621325e-07, 4.27237227650724e-07, 4.2777160810348914e-07, 4.283066569494797e-07, 4.2884237502470886e-07, 4.293787631662355e-07, 4.2991582221216774e-07, 4.304535530016588e-07, 4.309919563749149e-07, 4.3153103317319043e-07, 4.3207078423879237e-07, 4.326112104150833e-07, 4.3315231254647856e-07, 4.336940914784495e-07, 4.342365480575274e-07, 4.347796831313e-07, 4.353234975484152e-07, 4.358679921585846e-07, 4.3641316781257965e-07, 4.36959025362239e-07, 4.3750556566046437e-07, 4.380527895612243e-07, 4.386006979195578e-07, 4.391492915915711e-07, 4.396985714344411e-07, 4.402485383064191e-07, 4.4079919306682784e-07, 4.413505365760646e-07, 4.419025696956054e-07, 4.424552932880012e-07, 4.4300870821688206e-07, 4.4356281534696034e-07, 4.441176155440271e-07, 4.446731096749593e-07, 4.452292986077158e-07, 4.4578618321134117e-07, 4.4634376435596936e-07, 4.4690204291282015e-07, 4.4746101975420306e-07, 4.480206957535212e-07, 4.485810717852676e-07, 4.4914214872502915e-07, 4.497039274494902e-07, 4.5026640883642864e-07, 4.508295937647233e-07, 4.5139348311434993e-07, 4.519580777663849e-07, 4.525233786030092e-07, 4.5308938650750465e-07, 4.5365610236425783e-07, 4.542235270587641e-07, 4.547916614776238e-07, 4.5536050650854625e-07, 4.559300630403536e-07, 4.5650033196297723e-07, 4.570713141674616e-07, 4.5764301054596814e-07, 4.5821542199177097e-07, 4.5878854939926473e-07, 4.593623936639602e-07, 4.599369556824884e-07, 4.6051223635260435e-07, 4.610882365731832e-07, 4.6166495724422475e-07, 4.6224239926685673e-07, 4.628205635433316e-07, 4.633994509770303e-07, 4.639790624724663e-07, 4.64559398935281e-07, 4.651404612722518e-07, 4.65722250391288e-07, 4.663047672014344e-07, 4.6688801261287525e-07, 4.674719875369308e-07, 4.6805669288606114e-07, 4.6864212957387016e-07, 4.6922829851510196e-07, 4.6981520062564486e-07, 4.704028368225351e-07, 4.7099120802395367e-07, 4.715803151492297e-07, 4.7217015911884494e-07, 4.72760740854429e-07, 4.7335206127876775e-07, 4.739441213157985e-07, 4.745369218906144e-07, 4.7513046392946813e-07, 4.7572474835976845e-07, 4.76319776110084e-07, 4.769155481101474e-07, 4.775120652908519e-07, 4.781093285842546e-07, 4.787073389235814e-07, 4.793060972432218e-07, 4.799056044787375e-07, 4.805058615668578e-07, 4.811068694454837e-07, 4.817086290536919e-07, 4.82311141331731e-07, 4.829144072210257e-07, 4.835184276641808e-07, 4.841232036049774e-07, 4.847287359883774e-07, 4.853350257605268e-07, 4.859420738687527e-07, 4.86549881261567e-07, 4.871584488886706e-07, 4.877677777009489e-07, 4.883778686504799e-07, 4.8898872269053e-07, 4.89600340775558e-07, 4.902127238612189e-07, 4.908258729043606e-07, 4.914397888630278e-07, 4.920544726964658e-07, 4.926699253651175e-07, 4.93286147830627e-07, 4.939031410558437e-07, 4.945209060048179e-07, 4.951394436428092e-07, 4.95758754936282e-07, 4.963788408529094e-07, 4.969997023615773e-07, 4.976213404323814e-07, 4.982437560366303e-07, 4.988669501468503e-07, 4.994909237367813e-07, 5.001156777813814e-07, 5.007412132568307e-07, 5.013675311405276e-07, 5.019946324110929e-07, 5.026225180483745e-07, 5.032511890334418e-07, 5.038806463485953e-07, 5.045108909773613e-07, 5.051419239044962e-07, 5.057737461159907e-07, 5.064063585990665e-07, 5.070397623421798e-07, 5.076739583350258e-07, 5.08308947568535e-07, 5.089447310348772e-07, 5.095813097274661e-07, 5.102186846409543e-07, 5.10856856771242e-07, 5.114958271154722e-07, 5.121355966720355e-07, 5.127761664405736e-07, 5.134175374219763e-07, 5.140597106183846e-07, 5.147026870331962e-07, 5.153464676710612e-07, 5.159910535378857e-07, 5.166364456408373e-07, 5.172826449883403e-07, 5.179296525900805e-07, 5.185774694570091e-07, 5.192260966013383e-07, 5.198755350365501e-07, 5.20525785777391e-07, 5.211768498398773e-07, 5.218287282412984e-07, 5.224814220002134e-07, 5.231349321364558e-07, 5.23789259671137e-07, 5.24444405626643e-07, 5.251003710266385e-07, 5.257571568960715e-07, 5.264147642611682e-07, 5.270731941494422e-07, 5.277324475896892e-07, 5.28392525611992e-07, 5.290534292477245e-07, 5.297151595295479e-07, 5.303777174914147e-07, 5.310411041685742e-07, 5.317053205975668e-07, 5.323703678162301e-07, 5.330362468637025e-07, 5.337029587804189e-07, 5.34370504608116e-07, 5.350388853898364e-07, 5.35708102169923e-07, 5.363781559940293e-07, 5.370490479091133e-07, 5.377207789634431e-07, 5.383933502066004e-07, 5.390667626894769e-07, 5.397410174642787e-07, 5.404161155845311e-07, 5.410920581050742e-07, 5.417688460820671e-07, 5.424464805729933e-07, 5.431249626366546e-07, 5.438042933331816e-07, 5.444844737240275e-07, 5.451655048719735e-07, 5.458473878411327e-07, 5.465301236969464e-07, 5.472137135061887e-07, 5.478981583369706e-07, 5.485834592587364e-07, 5.492696173422679e-07, 5.499566336596892e-07, 5.506445092844625e-07, 5.513332452913926e-07, 5.520228427566317e-07, 5.527133027576738e-07, 5.534046263733649e-07, 5.540968146838975e-07, 5.547898687708147e-07, 5.554837897170156e-07, 5.56178578606751e-07, 5.568742365256276e-07, 5.575707645606131e-07, 5.582681638000318e-07, 5.589664353335687e-07, 5.596655802522758e-07, 5.603655996485648e-07, 5.610664946162183e-07, 5.617682662503838e-07, 5.624709156475786e-07, 5.631744439056944e-07, 5.638788521239936e-07, 5.645841414031129e-07, 5.652903128450689e-07, 5.659973675532538e-07, 5.667053066324397e-07, 5.674141311887835e-07, 5.681238423298227e-07, 5.688344411644801e-07, 5.695459288030685e-07, 5.702583063572856e-07, 5.709715749402233e-07, 5.716857356663631e-07, 5.724007896515802e-07, 5.731167380131486e-07, 5.738335818697368e-07, 5.745513223414123e-07, 5.752699605496469e-07, 5.759894976173119e-07, 5.767099346686831e-07, 5.774312728294456e-07, 5.781535132266882e-07, 5.78876656988914e-07, 5.796007052460341e-07, 5.80325659129373e-07, 5.810515197716735e-07, 5.817782883070918e-07, 5.825059658712029e-07, 5.832345536010052e-07, 5.839640526349162e-07, 5.846944641127772e-07, 5.854257891758583e-07, 5.861580289668541e-07, 5.868911846298885e-07, 5.876252573105192e-07, 5.88360248155733e-07, 5.890961583139553e-07, 5.898329889350448e-07, 5.905707411702985e-07, 5.913094161724565e-07, 5.920490150956975e-07, 5.92789539095644e-07, 5.93530989329367e-07, 5.942733669553816e-07, 5.95016673133652e-07, 5.957609090255962e-07, 5.965060757940808e-07, 5.972521746034314e-07, 5.979992066194263e-07, 5.987471730093021e-07, 5.994960749417586e-07, 6.002459135869542e-07, 6.009966901165109e-07, 6.017484057035191e-07, 6.025010615225338e-07, 6.032546587495785e-07, 6.040091985621514e-07, 6.047646821392198e-07, 6.055211106612261e-07, 6.062784853100921e-07, 6.070368072692136e-07, 6.077960777234712e-07, 6.085562978592237e-07, 6.093174688643144e-07, 6.100795919280753e-07, 6.108426682413227e-07, 6.116066989963624e-07, 6.123716853869948e-07, 6.131376286085101e-07, 6.139045298576939e-07, 6.146723903328316e-07, 6.15441211233703e-07, 6.162109937615934e-07, 6.169817391192868e-07, 6.177534485110721e-07, 6.185261231427475e-07, 6.19299764221616e-07, 6.200743729564912e-07, 6.208499505577013e-07, 6.216264982370855e-07, 6.224040172079985e-07, 6.231825086853161e-07, 6.239619738854303e-07, 6.247424140262547e-07, 6.255238303272291e-07, 6.263062240093146e-07, 6.270895962950035e-07, 6.278739484083143e-07, 6.286592815747961e-07, 6.294455970215344e-07, 6.302328959771461e-07, 6.310211796717849e-07, 6.318104493371465e-07, 6.326007062064635e-07, 6.333919515145117e-07, 6.341841864976141e-07, 6.349774123936358e-07, 6.357716304419946e-07, 6.365668418836554e-07, 6.37363047961135e-07, 6.381602499185079e-07, 6.389584490014011e-07, 6.397576464569997e-07, 6.405578435340522e-07, 6.413590414828655e-07, 6.421612415553104e-07, 6.429644450048273e-07, 6.437686530864201e-07, 6.445738670566632e-07, 6.453800881737059e-07, 6.461873176972665e-07, 6.469955568886436e-07, 6.4780480701071e-07, 6.48615069327918e-07, 6.49426345106305e-07, 6.502386356134883e-07, 6.510519421186709e-07, 6.518662658926466e-07, 6.526816082077954e-07, 6.534979703380888e-07, 6.543153535590947e-07, 6.551337591479727e-07, 6.559531883834838e-07, 6.567736425459852e-07, 6.575951229174354e-07, 6.584176307814003e-07, 6.592411674230471e-07, 6.600657341291511e-07, 6.608913321881001e-07, 6.6171796288989e-07, 6.625456275261304e-07, 6.633743273900498e-07, 6.642040637764907e-07, 6.650348379819153e-07, 6.658666513044106e-07, 6.666995050436829e-07, 6.675334005010687e-07, 6.683683389795285e-07, 6.692043217836528e-07, 6.700413502196673e-07, 6.708794255954278e-07, 6.71718549220426e-07, 6.725587224057953e-07, 6.733999464643051e-07, 6.742422227103671e-07, 6.750855524600405e-07, 6.759299370310258e-07, 6.767753777426763e-07, 6.776218759159924e-07, 6.784694328736261e-07, 6.793180499398879e-07, 6.801677284407411e-07, 6.810184697038071e-07, 6.818702750583717e-07, 6.827231458353798e-07, 6.835770833674411e-07, 6.844320889888354e-07, 6.852881640355079e-07, 6.861453098450749e-07, 6.870035277568295e-07, 6.878628191117346e-07, 6.887231852524358e-07, 6.895846275232541e-07, 6.90447147270192e-07, 6.913107458409391e-07, 6.921754245848674e-07, 6.93041184853036e-07, 6.939080279981983e-07, 6.947759553747955e-07, 6.95644968338963e-07, 6.965150682485365e-07, 6.973862564630444e-07, 6.982585343437213e-07, 6.991319032535001e-07, 7.000063645570187e-07, 7.008819196206256e-07, 7.017585698123745e-07, 7.026363165020303e-07, 7.035151610610748e-07, 7.043951048627016e-07, 7.052761492818219e-07, 7.061582956950701e-07, 7.070415454807989e-07, 7.079259000190852e-07, 7.088113606917355e-07, 7.0969792888228e-07, 7.105856059759839e-07, 7.114743933598417e-07, 7.123642924225826e-07, 7.132553045546766e-07, 7.141474311483292e-07, 7.150406735974869e-07, 7.159350332978439e-07, 7.168305116468361e-07, 7.177271100436472e-07, 7.18624829889215e-07, 7.195236725862246e-07, 7.204236395391202e-07, 7.213247321540991e-07, 7.222269518391176e-07, 7.231303000038965e-07, 7.240347780599162e-07, 7.249403874204227e-07, 7.258471295004334e-07, 7.267550057167316e-07, 7.276640174878726e-07, 7.285741662341904e-07, 7.294854533777912e-07, 7.3039788034256e-07, 7.313114485541668e-07, 7.322261594400593e-07, 7.331420144294764e-07, 7.3405901495344e-07, 7.349771624447626e-07, 7.358964583380524e-07, 7.36816904069708e-07, 7.377385010779248e-07, 7.38661250802701e-07, 7.395851546858318e-07, 7.405102141709159e-07, 7.414364307033618e-07, 7.423638057303801e-07, 7.432923407009972e-07, 7.442220370660478e-07, 7.451528962781815e-07, 7.460849197918685e-07, 7.470181090633945e-07, 7.479524655508665e-07, 7.488879907142195e-07, 7.498246860152104e-07, 7.507625529174243e-07, 7.517015928862814e-07, 7.526418073890301e-07, 7.535831978947548e-07, 7.545257658743807e-07, 7.554695128006681e-07, 7.564144401482242e-07, 7.57360549393497e-07, 7.583078420147809e-07, 7.592563194922236e-07, 7.6020598330782e-07, 7.611568349454186e-07, 7.62108875890728e-07, 7.63062107631311e-07, 7.640165316565911e-07, 7.649721494578587e-07, 7.659289625282641e-07, 7.668869723628308e-07, 7.678461804584477e-07, 7.688065883138763e-07, 7.697681974297572e-07, 7.70731009308603e-07, 7.716950254548063e-07, 7.726602473746452e-07, 7.736266765762779e-07, 7.745943145697489e-07, 7.755631628669952e-07, 7.765332229818412e-07, 7.775044964300049e-07, 7.784769847291038e-07, 7.794506893986483e-07, 7.804256119600549e-07, 7.81401753936639e-07, 7.823791168536212e-07, 7.833577022381342e-07, 7.843375116192161e-07, 7.853185465278182e-07, 7.863008084968104e-07, 7.872842990609759e-07, 7.882690197570174e-07, 7.89254972123564e-07, 7.902421577011638e-07, 7.912305780322972e-07, 7.922202346613697e-07, 7.932111291347187e-07, 7.942032630006196e-07, 7.951966378092807e-07, 7.961912551128486e-07, 7.971871164654162e-07, 7.981842234230152e-07, 7.991825775436245e-07, 8.001821803871751e-07, 8.011830335155454e-07, 8.021851384925671e-07, 8.031884968840324e-07, 8.04193110257686e-07, 8.051989801832394e-07, 8.062061082323633e-07, 8.072144959786938e-07, 8.082241449978399e-07, 8.092350568673771e-07, 8.102472331668538e-07, 8.112606754777986e-07, 8.122753853837139e-07, 8.132913644700827e-07, 8.143086143243753e-07, 8.15327136536042e-07, 8.16346932696527e-07, 8.173680043992603e-07, 8.183903532396653e-07, 8.194139808151653e-07, 8.20438888725177e-07, 8.214650785711177e-07, 8.224925519564124e-07, 8.235213104864869e-07, 8.24551355768775e-07, 8.255826894127257e-07, 8.266153130297966e-07, 8.276492282334608e-07, 8.28684436639214e-07, 8.297209398645666e-07, 8.30758739529058e-07, 8.317978372542489e-07, 8.328382346637282e-07, 8.338799333831202e-07, 8.349229350400777e-07, 8.359672412642896e-07, 8.370128536874876e-07, 8.380597739434397e-07, 8.391080036679576e-07, 8.401575444989035e-07, 8.412083980761821e-07, 8.422605660417553e-07, 8.433140500396343e-07, 8.443688517158866e-07, 8.45424972718643e-07, 8.464824146980912e-07, 8.475411793064832e-07, 8.486012681981417e-07, 8.496626830294545e-07, 8.507254254588808e-07, 8.517894971469589e-07, 8.528548997562997e-07, 8.539216349515934e-07, 8.549897043996169e-07, 8.560591097692259e-07, 8.571298527313697e-07, 8.582019349590828e-07, 8.592753581274923e-07, 8.603501239138252e-07, 8.614262339974017e-07, 8.625036900596427e-07, 8.635824937840764e-07, 8.646626468563322e-07, 8.657441509641482e-07, 8.668270077973777e-07, 8.679112190479818e-07, 8.689967864100436e-07, 8.700837115797612e-07, 8.711719962554534e-07, 8.722616421375686e-07, 8.733526509286771e-07, 8.744450243334789e-07, 8.755387640588107e-07, 8.766338718136394e-07, 8.777303493090695e-07, 8.788281982583506e-07, 8.799274203768703e-07, 8.810280173821618e-07, 8.821299909939114e-07, 8.832333429339495e-07, 8.843380749262675e-07, 8.854441886970073e-07, 8.865516859744706e-07, 8.876605684891252e-07, 8.887708379735987e-07, 8.898824961626857e-07, 8.909955447933556e-07, 8.921099856047455e-07, 8.932258203381678e-07, 8.943430507371178e-07, 8.954616785472648e-07, 8.965817055164684e-07, 8.977031333947693e-07, 8.98825963934397e-07, 8.99950198889778e-07, 9.010758400175277e-07, 9.022028890764592e-07, 9.033313478275901e-07, 9.044612180341359e-07, 9.055925014615171e-07, 9.067251998773676e-07, 9.078593150515276e-07, 9.089948487560502e-07, 9.101318027652109e-07, 9.112701788554967e-07, 9.124099788056241e-07, 9.135512043965288e-07, 9.146938574113748e-07, 9.158379396355608e-07, 9.169834528567136e-07, 9.181303988646964e-07, 9.19278779451616e-07, 9.204285964118155e-07, 9.215798515418825e-07, 9.227325466406566e-07, 9.238866835092211e-07, 9.250422639509181e-07, 9.261992897713407e-07, 9.273577627783403e-07, 9.285176847820347e-07, 9.296790575948004e-07, 9.308418830312811e-07, 9.320061629083949e-07, 9.331718990453282e-07, 9.343390932635416e-07, 9.355077473867803e-07, 9.366778632410644e-07, 9.378494426546988e-07, 9.390224874582797e-07, 9.401969994846869e-07, 9.413729805690985e-07, 9.425504325489839e-07, 9.437293572641102e-07, 9.449097565565509e-07, 9.460916322706783e-07, 9.472749862531722e-07, 9.484598203530264e-07, 9.496461364215429e-07, 9.508339363123391e-07, 9.520232218813558e-07, 9.532139949868488e-07, 9.544062574894047e-07, 9.556000112519319e-07, 9.567952581396694e-07, 9.57992000020194e-07, 9.591902387634139e-07, 9.60389976241575e-07, 9.615912143292713e-07, 9.627939549034354e-07, 9.639981998433485e-07, 9.652039510306464e-07, 9.664112103493142e-07, 9.676199796856933e-07, 9.68830260928489e-07, 9.700420559687628e-07, 9.712553666999482e-07, 9.724701950178419e-07, 9.73686542820611e-07, 9.749044120088033e-07, 9.761238044853378e-07, 9.773447221555135e-07, 9.785671669270182e-07, 9.797911407099203e-07, 9.810166454166775e-07, 9.822436829621445e-07, 9.83472255263564e-07, 9.847023642405842e-07, 9.85934011815249e-07, 9.87167199912006e-07, 9.884019304577156e-07, 9.896382053816426e-07, 9.90876026615465e-07, 9.921153960932824e-07, 9.933563157516078e-07, 9.945987875293773e-07, 9.958428133679562e-07, 9.970883952111336e-07, 9.983355350051297e-07, 9.995842346986039e-07, 1.0008344962426468e-06, 1.002086321590795e-06, 1.003339712699025e-06, 1.0045946715257581e-06, 1.005851200031872e-06, 1.0071093001806903e-06, 1.0083689739379932e-06, 1.009630223272025e-06, 1.010893050153486e-06, 1.0121574565555417e-06, 1.0134234444538312e-06, 1.0146910158264567e-06, 1.0159601726540029e-06, 1.0172309169195255e-06, 1.018503250608561e-06, 1.0197771757091346e-06, 1.0210526942117527e-06, 1.0223298081094113e-06, 1.023608519397605e-06, 1.0248888300743185e-06, 1.0261707421400357e-06, 1.027454257597748e-06, 1.028739378452947e-06, 1.0300261067136322e-06, 1.0313144443903205e-06, 1.032604393496036e-06, 1.0338959560463286e-06, 1.0351891340592627e-06, 1.0364839295554274e-06, 1.037780344557945e-06, 1.039078381092462e-06, 1.040378041187159e-06, 1.041679326872759e-06, 1.042982240182519e-06, 1.0442867831522397e-06, 1.0455929578202732e-06, 1.0469007662275144e-06, 1.0482102104174178e-06, 1.049521292435988e-06, 1.0508340143317893e-06, 1.0521483781559536e-06, 1.053464385962173e-06, 1.0547820398067078e-06, 1.0561013417483964e-06, 1.0574222938486462e-06, 1.0587448981714434e-06, 1.0600691567833614e-06, 1.0613950717535524e-06, 1.0627226451537571e-06, 1.064051879058313e-06, 1.0653827755441446e-06, 1.0667153366907814e-06, 1.068049564580349e-06, 1.0693854612975766e-06, 1.070723028929807e-06, 1.072062269566988e-06, 1.0734031853016813e-06, 1.074745778229072e-06, 1.0760900504469597e-06, 1.0774360040557682e-06, 1.0787836411585544e-06, 1.0801329638609972e-06, 1.081483974271418e-06, 1.0828366745007683e-06, 1.0841910666626412e-06, 1.085547152873278e-06, 1.0869049352515621e-06, 1.088264415919027e-06, 1.0896255969998648e-06, 1.0909884806209198e-06, 1.0923530689116956e-06, 1.0937193640043658e-06, 1.0950873680337649e-06, 1.0964570831373973e-06, 1.0978285114554472e-06, 1.0992016551307675e-06, 1.1005765163088996e-06, 1.1019530971380623e-06, 1.1033313997691616e-06, 1.1047114263557995e-06, 1.1060931790542658e-06, 1.1074766600235473e-06, 1.1088618714253375e-06, 1.1102488154240274e-06, 1.1116374941867154e-06, 1.113027909883216e-06, 1.1144200646860505e-06, 1.1158139607704646e-06, 1.1172096003144194e-06, 1.1186069854986002e-06, 1.1200061185064252e-06, 1.1214070015240384e-06, 1.1228096367403175e-06, 1.1242140263468844e-06, 1.1256201725380963e-06, 1.1270280775110549e-06, 1.1284377434656158e-06, 1.1298491726043805e-06, 1.1312623671327051e-06, 1.1326773292587105e-06, 1.1340940611932716e-06, 1.1355125651500357e-06, 1.136932843345414e-06, 1.1383548979985895e-06, 1.1397787313315265e-06, 1.1412043455689632e-06, 1.14263174293842e-06, 1.1440609256702097e-06, 1.1454918959974283e-06, 1.1469246561559657e-06, 1.1483592083845135e-06, 1.1497955549245561e-06, 1.1512336980203893e-06, 1.1526736399191097e-06, 1.1541153828706251e-06, 1.1555589291276629e-06, 1.1570042809457626e-06, 1.1584514405832847e-06, 1.1599004103014206e-06, 1.1613511923641835e-06, 1.1628037890384184e-06, 1.1642582025938127e-06, 1.1657144353028853e-06, 1.167172489440998e-06, 1.1686323672863652e-06, 1.1700940711200417e-06, 1.1715576032259447e-06, 1.173022965890841e-06, 1.1744901614043582e-06, 1.1759591920589936e-06, 1.1774300601501056e-06, 1.178902767975924e-06, 1.1803773178375597e-06, 1.1818537120389945e-06, 1.1833319528870928e-06, 1.1848120426916102e-06, 1.1862939837651832e-06, 1.1877777784233493e-06, 1.189263428984536e-06, 1.1907509377700702e-06, 1.192240307104189e-06, 1.1937315393140303e-06, 1.1952246367296427e-06, 1.196719601683995e-06, 1.1982164365129684e-06, 1.1997151435553657e-06, 1.2012157251529208e-06, 1.202718183650291e-06, 1.2042225213950656e-06, 1.2057287407377774e-06, 1.2072368440318894e-06, 1.208746833633818e-06, 1.21025871190292e-06, 1.2117724812015034e-06, 1.2132881438948375e-06, 1.2148057023511434e-06, 1.216325158941604e-06, 1.2178465160403753e-06, 1.2193697760245754e-06, 1.2208949412742966e-06, 1.222422014172614e-06, 1.2239509971055753e-06, 1.2254818924622205e-06, 1.2270147026345721e-06, 1.2285494300176442e-06, 1.2300860770094528e-06, 1.2316246460110068e-06, 1.2331651394263186e-06, 1.2347075596624139e-06, 1.2362519091293223e-06, 1.2377981902400881e-06, 1.2393464054107803e-06, 1.240896557060483e-06, 1.2424486476113061e-06, 1.2440026794883964e-06, 1.2455586551199242e-06, 1.2471165769371063e-06, 1.2486764473741935e-06, 1.2502382688684815e-06, 1.2518020438603213e-06, 1.2533677747931095e-06, 1.2549354641132982e-06, 1.2565051142704073e-06, 1.258076727717013e-06, 1.2596503069087596e-06, 1.2612258543043693e-06, 1.2628033723656306e-06, 1.2643828635574204e-06, 1.2659643303476918e-06, 1.2675477752074844e-06, 1.2691332006109363e-06, 1.2707206090352722e-06, 1.2723100029608159e-06, 1.2739013848710005e-06, 1.275494757252358e-06, 1.277090122594531e-06, 1.2786874833902827e-06, 1.2802868421354873e-06, 1.281888201329141e-06, 1.2834915634733723e-06, 1.2850969310734303e-06, 1.2867043066377068e-06, 1.2883136926777243e-06, 1.2899250917081464e-06, 1.2915385062467892e-06, 1.2931539388146106e-06, 1.2947713919357221e-06, 1.2963908681373994e-06, 1.2980123699500717e-06, 1.2996358999073342e-06, 1.3012614605459567e-06, 1.302889054405874e-06, 1.304518684030206e-06, 1.3061503519652473e-06, 1.3077840607604768e-06, 1.3094198129685697e-06, 1.3110576111453868e-06, 1.3126974578499856e-06, 1.3143393556446319e-06, 1.3159833070947886e-06, 1.3176293147691283e-06, 1.3192773812395426e-06, 1.3209275090811333e-06, 1.3225797008722236e-06, 1.3242339591943678e-06, 1.3258902866323404e-06, 1.327548685774158e-06, 1.329209159211067e-06, 1.3308717095375555e-06, 1.3325363393513634e-06, 1.3342030512534723e-06, 1.3358718478481182e-06, 1.3375427317428003e-06, 1.339215705548273e-06, 1.3408907718785557e-06, 1.3425679333509447e-06, 1.3442471925860001e-06, 1.34592855220757e-06, 1.3476120148427764e-06, 1.3492975831220278e-06, 1.3509852596790297e-06, 1.3526750471507748e-06, 1.3543669481775538e-06, 1.3560609654029674e-06, 1.3577571014739154e-06, 1.359455359040608e-06, 1.3611557407565782e-06, 1.3628582492786704e-06, 1.3645628872670519e-06, 1.3662696573852248e-06, 1.3679785623000127e-06, 1.3696896046815854e-06, 1.3714027872034437e-06, 1.3731181125424336e-06, 1.3748355833787562e-06, 1.3765552023959576e-06, 1.3782769722809402e-06, 1.380000895723975e-06, 1.38172697541869e-06, 1.383455214062083e-06, 1.3851856143545318e-06, 1.386918178999782e-06, 1.3886529107049722e-06, 1.3903898121806174e-06, 1.3921288861406248e-06, 1.3938701353023021e-06, 1.3956135623863498e-06, 1.39735917011687e-06, 1.3991069612213806e-06, 1.4008569384308023e-06, 1.402609104479473e-06, 1.4043634621051573e-06, 1.406120014049037e-06, 1.4078787630557221e-06, 1.4096397118732634e-06, 1.4114028632531388e-06, 1.4131682199502777e-06, 1.4149357847230476e-06, 1.4167055603332668e-06, 1.4184775495462145e-06, 1.4202517551306222e-06, 1.4220281798586836e-06, 1.423806826506068e-06, 1.4255876978519082e-06, 1.427370796678814e-06, 1.4291561257728824e-06, 1.4309436879236857e-06, 1.432733485924295e-06, 1.4345255225712676e-06, 1.4363198006646584e-06, 1.4381163230080327e-06, 1.439915092408454e-06, 1.441716111676498e-06, 1.443519383626262e-06, 1.4453249110753567e-06, 1.4471326968449165e-06, 1.4489427437596121e-06, 1.4507550546476394e-06, 1.4525696323407326e-06, 1.454386479674174e-06, 1.4562055994867835e-06, 1.458026994620941e-06, 1.459850667922574e-06, 1.4616766222411702e-06, 1.4635048604297886e-06, 1.4653353853450494e-06, 1.467168199847145e-06, 1.4690033067998542e-06, 1.470840709070529e-06, 1.4726804095301085e-06, 1.4745224110531298e-06, 1.476366716517716e-06, 1.4782133288055999e-06, 1.4800622508021104e-06, 1.4819134853961866e-06, 1.4837670354803878e-06, 1.4856229039508836e-06, 1.4874810937074668e-06, 1.489341607653564e-06, 1.491204448696226e-06, 1.49306961974614e-06, 1.4949371237176414e-06, 1.4968069635287025e-06, 1.498679142100946e-06, 1.5005536623596567e-06, 1.5024305272337674e-06, 1.5043097396558854e-06, 1.5061913025622775e-06, 1.5080752188928838e-06, 1.5099614915913289e-06, 1.5118501236049119e-06, 1.5137411178846179e-06, 1.5156344773851312e-06, 1.517530205064824e-06, 1.519428303885768e-06, 1.521328776813749e-06, 1.5232316268182502e-06, 1.525136856872481e-06, 1.527044469953361e-06, 1.5289544690415332e-06, 1.5308668571213773e-06, 1.532781637180997e-06, 1.5346988122122339e-06, 1.5366183852106797e-06, 1.538540359175665e-06, 1.540464737110272e-06, 1.542391522021347e-06, 1.5443207169194885e-06, 1.546252324819062e-06, 1.5481863487382103e-06, 1.5501227916988407e-06, 1.5520616567266513e-06, 1.5540029468511162e-06, 1.555946665105499e-06, 1.5578928145268654e-06, 1.5598413981560712e-06, 1.5617924190377766e-06, 1.563745880220457e-06, 1.5657017847563934e-06, 1.5676601357016844e-06, 1.569620936116259e-06, 1.571584189063863e-06, 1.5735498976120848e-06, 1.5755180648323419e-06, 1.577488693799893e-06, 1.5794617875938517e-06, 1.581437349297175e-06, 1.5834153819966755e-06, 1.5853958887830354e-06, 1.587378872750794e-06, 1.5893643369983615e-06, 1.5913522846280316e-06, 1.5933427187459703e-06, 1.5953356424622283e-06, 1.597331058890755e-06, 1.5993289711493836e-06, 1.6013293823598576e-06, 1.6033322956478175e-06, 1.6053377141428126e-06, 1.6073456409783157e-06, 1.6093560792917095e-06, 1.611369032224302e-06, 1.6133845029213378e-06, 1.615402494531988e-06, 1.6174230102093616e-06, 1.6194460531105204e-06, 1.621471626396464e-06, 1.6234997332321565e-06, 1.6255303767865125e-06, 1.62756356023241e-06, 1.6295992867467044e-06, 1.631637559510216e-06, 1.6336783817077434e-06, 1.6357217565280774e-06, 1.6377676871639888e-06, 1.6398161768122417e-06, 1.6418672286736072e-06, 1.6439208459528519e-06, 1.6459770318587497e-06, 1.6480357896040976e-06, 1.650097122405699e-06, 1.6521610334843932e-06, 1.6542275260650378e-06, 1.656296603376526e-06, 1.6583682686517967e-06, 1.6604425251278245e-06, 1.6625193760456326e-06, 1.664598824650307e-06, 1.6666808741909838e-06, 1.6687655279208627e-06, 1.670852789097221e-06, 1.6729426609813998e-06, 1.6750351468388293e-06, 1.6771302499390166e-06, 1.6792279735555578e-06, 1.6813283209661522e-06, 1.6834312954525902e-06, 1.6855369003007668e-06, 1.6876451388006962e-06, 1.6897560142464982e-06, 1.691869529936413e-06, 1.693985689172816e-06, 1.6961044952622027e-06, 1.6982259515152054e-06, 1.7003500612466059e-06, 1.7024768277753199e-06, 1.7046062544244268e-06, 1.706738344521153e-06, 1.7088731013968866e-06, 1.711010528387192e-06, 1.713150628831796e-06, 1.715293406074603e-06, 1.7174388634637094e-06, 1.719587004351389e-06, 1.7217378320941098e-06, 1.7238913500525464e-06, 1.7260475615915654e-06, 1.7282064700802536e-06, 1.7303680788919028e-06, 1.7325323914040241e-06, 1.7346994109983629e-06, 1.736869141060884e-06, 1.7390415849817885e-06, 1.7412167461555264e-06, 1.7433946279807843e-06, 1.7455752338605e-06, 1.747758567201877e-06, 1.7499446314163707e-06, 1.7521334299197039e-06, 1.7543249661318811e-06, 1.7565192434771716e-06, 1.7587162653841405e-06, 1.7609160352856318e-06, 1.7631185566187833e-06, 1.7653238328250415e-06, 1.7675318673501476e-06, 1.769742663644153e-06, 1.7719562251614335e-06, 1.7741725553606763e-06, 1.7763916577048946e-06, 1.7786135356614428e-06, 1.7808381927019989e-06, 1.7830656323025968e-06, 1.7852958579436078e-06, 1.7875288731097571e-06, 1.7897646812901373e-06, 1.7920032859781961e-06, 1.7942446906717507e-06, 1.7964888988730028e-06, 1.7987359140885248e-06, 1.8009857398292754e-06, 1.803238379610614e-06, 1.8054938369522876e-06, 1.8077521153784456e-06, 1.8100132184176547e-06, 1.812277149602883e-06, 1.8145439124715293e-06, 1.8168135105654078e-06, 1.8190859474307633e-06, 1.8213612266182847e-06, 1.8236393516830934e-06, 1.825920326184757e-06, 1.8282041536873046e-06, 1.8304908377592145e-06, 1.8327803819734278e-06, 1.8350727899073638e-06, 1.837368065142904e-06, 1.8396662112664235e-06, 1.841967231868772e-06, 1.8442711305452918e-06, 1.8465779108958317e-06, 1.8488875765247331e-06, 1.8512001310408457e-06, 1.8535155780575429e-06, 1.8558339211927076e-06, 1.8581551640687488e-06, 1.8604793103126152e-06, 1.8628063635557824e-06, 1.8651363274342684e-06, 1.8674692055886488e-06, 1.8698050016640394e-06, 1.872143719310129e-06, 1.874485362181161e-06, 1.8768299339359492e-06, 1.8791774382378943e-06, 1.8815278787549692e-06, 1.883881259159734e-06, 1.8862375831293528e-06, 1.888596854345579e-06, 1.8909590764947712e-06, 1.8933242532679084e-06, 1.8956923883605733e-06, 1.8980634854729837e-06, 1.9004375483099765e-06, 1.902814580581022e-06, 1.90519458600024e-06, 1.907577568286386e-06, 1.9099635311628674e-06, 1.9123524783577582e-06, 1.9147444136037855e-06, 1.917139340638345e-06, 1.919537263203518e-06, 1.9219381850460554e-06, 1.9243421099173944e-06, 1.9267490415736747e-06, 1.9291589837757213e-06, 1.931571940289076e-06, 1.9339879148839805e-06, 1.936406911335392e-06, 1.9388289334229996e-06, 1.9412539849312105e-06, 1.943682069649164e-06, 1.9461131913707505e-06, 1.9485473538945945e-06, 1.9509845610240717e-06, 1.9534248165673258e-06, 1.95586812433725e-06, 1.9583144881515198e-06, 1.9607639118325758e-06, 1.9632163992076395e-06, 1.9656719541087296e-06, 1.968130580372648e-06, 1.9705922818409954e-06, 1.9730570623601873e-06, 1.975524925781441e-06, 1.9779958759607894e-06, 1.9804699167590996e-06, 1.982947052042058e-06, 1.985427285680185e-06, 1.9879106215488536e-06, 1.990397063528269e-06, 1.9928866155035046e-06, 1.9953792813644826e-06, 1.9978750650059903e-06, 2.0003739703276965e-06, 2.002876001234139e-06, 2.005381161634737e-06, 2.0078894554438112e-06, 2.0104008865805685e-06, 2.0129154589691164e-06, 2.0154331765384824e-06, 2.017954043222593e-06, 2.0204780629603103e-06, 2.023005239695412e-06, 2.0255355773766083e-06, 2.0280690799575604e-06, 2.0306057513968623e-06, 2.0331455956580607e-06, 2.0356886167096692e-06, 2.038234818525156e-06, 2.040784205082957e-06, 2.0433367803664976e-06, 2.045892548364173e-06, 2.0484515130693683e-06, 2.0510136784804733e-06, 2.053579048600864e-06, 2.05614762743894e-06, 2.058719419008102e-06, 2.061294427326771e-06, 2.0638726564184065e-06, 2.0664541103114873e-06, 2.069038793039532e-06, 2.0716267086411155e-06, 2.0742178611598528e-06, 2.0768122546444167e-06, 2.0794098931485545e-06, 2.0820107807310698e-06, 2.0846149214558568e-06, 2.087222319391883e-06, 2.0898329786132043e-06, 2.0924469031989834e-06, 2.0950640972334746e-06, 2.0976845648060405e-06, 2.100308310011169e-06, 2.1029353369484593e-06, 2.1055656497226377e-06, 2.1081992524435757e-06, 2.110836149226275e-06, 2.113476344190883e-06, 2.1161198414627123e-06, 2.118766645172221e-06, 2.1214167594550473e-06, 2.124070188451992e-06, 2.1267269363090347e-06, 2.1293870071773516e-06, 2.1320504052133005e-06, 2.1347171345784377e-06, 2.1373871994395355e-06, 2.1400606039685673e-06, 2.1427373523427246e-06, 2.1454174487444344e-06, 2.148100897361341e-06, 2.15078770238634e-06, 2.153477868017562e-06, 2.1561713984583867e-06, 2.1588682979174644e-06, 2.1615685706086964e-06, 2.164272220751256e-06, 2.166979252569605e-06, 2.169689670293477e-06, 2.172403478157896e-06, 2.175120680403196e-06, 2.1778412812750014e-06, 2.1805652850242477e-06, 2.1832926959072e-06, 2.1860235181854294e-06, 2.188757756125855e-06, 2.1914954140007193e-06, 2.1942364960876102e-06, 2.196981006669477e-06, 2.1997289500346132e-06, 2.2024803304766776e-06, 2.2052351522947104e-06, 2.2079934197931174e-06, 2.210755137281688e-06, 2.213520309075614e-06, 2.21628893949547e-06, 2.2190610328672484e-06, 2.221836593522342e-06, 2.2246156257975612e-06, 2.2273981340351526e-06, 2.230184122582781e-06, 2.2329735957935514e-06, 2.235766558026023e-06, 2.2385630136441965e-06, 2.2413629670175305e-06, 2.24416642252096e-06, 2.2469733845348817e-06, 2.2497838574451694e-06, 2.2525978456431965e-06, 2.2554153535258115e-06, 2.2582363854953796e-06, 2.261060945959759e-06, 2.2638890393323226e-06, 2.2667206700319747e-06, 2.2695558424831353e-06, 2.2723945611157573e-06, 2.275236830365347e-06, 2.2780826546729476e-06, 2.280932038485155e-06, 2.2837849862541412e-06, 2.2866415024376287e-06, 2.289501591498933e-06, 2.29236525790694e-06, 2.2952325061361246e-06, 2.2981033406665712e-06, 2.300977765983955e-06, 2.303855786579563e-06, 2.3067374069503094e-06, 2.3096226315987235e-06, 2.3125114650329655e-06, 2.3154039117668462e-06, 2.3182999763198102e-06, 2.321199663216955e-06, 2.324102976989049e-06, 2.327009922172514e-06, 2.32992050330946e-06, 2.332834724947666e-06, 2.3357525916406007e-06, 2.338674107947439e-06, 2.3415992784330467e-06, 2.344528107667999e-06, 2.347460600228601e-06, 2.3503967606968685e-06, 2.3533365936605485e-06, 2.356280103713139e-06, 2.3592272954538667e-06, 2.362178173487728e-06, 2.365132742425466e-06, 2.3680910068835905e-06, 2.3710529714843997e-06, 2.374018640855959e-06, 2.3769880196321234e-06, 2.379961112452556e-06, 2.382937923962712e-06, 2.385918458813854e-06, 2.388902721663078e-06, 2.39189071717329e-06, 2.3948824500132305e-06, 2.3978779248574903e-06, 2.4008771463864915e-06, 2.4038801192865266e-06, 2.406886848249737e-06, 2.409897337974133e-06, 2.412911593163615e-06, 2.4159296185279515e-06, 2.4189514187828048e-06, 2.421976998649746e-06, 2.4250063628562403e-06, 2.4280395161356655e-06, 2.4310764632273332e-06, 2.4341172088764647e-06, 2.437161757834235e-06, 2.4402101148577475e-06, 2.4432622847100567e-06, 2.446318272160187e-06, 2.4493780819831154e-06, 2.452441718959791e-06, 2.4555091878771556e-06, 2.458580493528126e-06, 2.4616556407116132e-06, 2.4647346342325444e-06, 2.4678174789018427e-06, 2.4709041795364496e-06, 2.4739947409593444e-06, 2.4770891679995206e-06, 2.4801874654920306e-06, 2.4832896382779593e-06, 2.4863956912044494e-06, 2.4895056291247163e-06, 2.492619456898036e-06, 2.4957371793897596e-06, 2.498858801471338e-06, 2.5019843280203024e-06, 2.505113763920284e-06, 2.5082471140610355e-06, 2.5113843833384087e-06, 2.5145255766543963e-06, 2.517670698917109e-06, 2.5208197550407963e-06, 2.5239727499458686e-06, 2.5271296885588758e-06, 2.5302905758125316e-06, 2.533455416645731e-06, 2.536624216003534e-06, 2.5397969788371867e-06, 2.5429737101041395e-06, 2.546154414768032e-06, 2.549339097798711e-06, 2.5525277641722535e-06, 2.5557204188709427e-06, 2.5589170668833106e-06, 2.562117713204116e-06, 2.565322362834365e-06, 2.5685310207813323e-06, 2.5717436920585427e-06, 2.5749603816857897e-06, 2.5781810946891625e-06, 2.5814058361010197e-06, 2.5846346109600163e-06, 2.5878674243111235e-06, 2.5911042812056027e-06, 2.594345186701053e-06, 2.5975901458613856e-06, 2.6008391637568447e-06, 2.6040922454640312e-06, 2.6073493960658806e-06, 2.6106106206516877e-06, 2.6138759243171253e-06, 2.617145312164226e-06, 2.620418789301405e-06, 2.6236963608434804e-06, 2.626978031911653e-06, 2.6302638076335304e-06, 2.633553693143147e-06, 2.63684769358094e-06, 2.640145814093796e-06, 2.643448059835023e-06, 2.646754435964377e-06, 2.6500649476480804e-06, 2.6533796000588036e-06, 2.656698398375687e-06, 2.660021347784363e-06, 2.663348453476936e-06, 2.666679720652005e-06, 2.6700151545146847e-06, 2.6733547602765816e-06, 2.67669854315584e-06, 2.680046508377117e-06, 2.6833986611716035e-06, 2.6867550067770493e-06, 2.6901155504377396e-06, 2.6934802974045198e-06, 2.6968492529348174e-06, 2.7002224222926213e-06, 2.703599810748505e-06, 2.7069814235796477e-06, 2.7103672660698154e-06, 2.713757343509383e-06, 2.7171516611953566e-06, 2.720550224431349e-06, 2.7239530385276255e-06, 2.7273601088010785e-06, 2.730771440575252e-06, 2.7341870391803614e-06, 2.737606909953276e-06, 2.7410310582375397e-06, 2.7444594893833943e-06, 2.747892208747759e-06, 2.7513292216942547e-06, 2.7547705335932238e-06, 2.758216149821707e-06, 2.7616660757634905e-06, 2.765120316809079e-06, 2.7685788783557207e-06, 2.7720417658074275e-06, 2.7755089845749574e-06, 2.7789805400758354e-06, 2.782456437734378e-06, 2.7859366829816703e-06, 2.7894212812555917e-06, 2.7929102380008373e-06, 2.7964035586688985e-06, 2.7999012487180836e-06, 2.8034033136135447e-06, 2.8069097588272486e-06, 2.8104205898380267e-06, 2.813935812131548e-06, 2.817455431200344e-06, 2.820979452543829e-06, 2.8245078816682822e-06, 2.8280407240868706e-06, 2.8315779853196704e-06, 2.8351196708936487e-06, 2.8386657863426843e-06, 2.842216337207594e-06, 2.8457713290361035e-06, 2.8493307673828986e-06, 2.8528946578095977e-06, 2.8564630058847747e-06, 2.860035817183985e-06, 2.8636130972897407e-06, 2.867194851791539e-06, 2.8707810862858816e-06, 2.874371806376256e-06, 2.877967017673157e-06, 2.8815667257941137e-06, 2.885170936363666e-06, 2.888779655013388e-06, 2.892392887381914e-06, 2.89601063911491e-06, 2.8996329158651237e-06, 2.9032597232923584e-06, 2.9068910670634965e-06, 2.9105269528525233e-06, 2.914167386340506e-06, 2.9178123732156175e-06, 2.921461919173161e-06, 2.9251160299155475e-06, 2.928774711152321e-06, 2.9324379686001815e-06, 2.9361058079829594e-06, 2.9397782350316648e-06, 2.9434552554844608e-06, 2.9471368750866868e-06, 2.950823099590885e-06, 2.9545139347567767e-06, 2.9582093863512873e-06, 2.9619094601485713e-06, 2.9656141619299893e-06, 2.9693234974841332e-06, 2.9730374726068514e-06, 2.9767560931012254e-06, 2.9804793647775955e-06, 2.9842072934535847e-06, 2.9879398849540713e-06, 2.9916771451112418e-06, 2.99541907976456e-06, 2.9991656947607943e-06, 3.0029169959540424e-06, 3.0066729892057076e-06, 3.010433680384525e-06, 3.0141990753665853e-06, 3.0179691800353142e-06, 3.021744000281496e-06, 3.025523542003298e-06, 3.0293078111062446e-06, 3.0330968135032676e-06, 3.036890555114679e-06, 3.0406890418681956e-06, 3.0444922796989634e-06, 3.0483002745495385e-06, 3.0521130323699067e-06, 3.0559305591175142e-06, 3.059752860757243e-06, 3.063579943261433e-06, 3.067411812609913e-06, 3.0712484747899745e-06, 3.0750899357963973e-06, 3.078936201631476e-06, 3.0827872783049905e-06, 3.08664317183426e-06, 3.0905038882441136e-06, 3.0943694335669157e-06, 3.098239813842593e-06, 3.1021150351186095e-06, 3.105995103449994e-06, 3.1098800248993652e-06, 3.113769805536908e-06, 3.1176644514404e-06, 3.121563968695237e-06, 3.125468363394405e-06, 3.129377641638532e-06, 3.1332918095358605e-06, 3.1372108732022738e-06, 3.14113483876132e-06, 3.145063712344191e-06, 3.1489975000897466e-06, 3.1529362081445423e-06, 3.156879842662805e-06, 3.1608284098064583e-06, 3.164781915745151e-06, 3.1687403666562302e-06, 3.172703768724772e-06, 3.176672128143603e-06, 3.1806454511132753e-06, 3.184623743842118e-06, 3.188607012546208e-06, 3.1925952634493976e-06, 3.196588502783342e-06, 3.2005867367874726e-06, 3.2045899717090245e-06, 3.2085982138030654e-06, 3.2126114693324676e-06, 3.216629744567939e-06, 3.220653045788046e-06, 3.2246813792791873e-06, 3.2287147513356448e-06, 3.232753168259558e-06, 3.2367966363609493e-06, 3.240845161957749e-06, 3.244898751375773e-06, 3.248957410948751e-06, 3.2530211470183503e-06, 3.2570899659341533e-06, 3.2611638740536856e-06, 3.2652428777424397e-06, 3.269326983373855e-06, 3.273416197329341e-06, 3.2775105259983074e-06, 3.2816099757781314e-06, 3.285714553074216e-06, 3.2898242642999583e-06, 3.293939115876777e-06, 3.2980591142341406e-06, 3.3021842658095406e-06, 3.306314577048522e-06, 3.310450054404709e-06, 3.3145907043397794e-06, 3.3187365333234937e-06, 3.3228875478337225e-06, 3.3270437543564147e-06, 3.3312051593856564e-06, 3.3353717694236366e-06, 3.3395435909806794e-06, 3.3437206305752687e-06, 3.347902894734024e-06, 3.3520903899917267e-06, 3.356283122891352e-06, 3.3604810999840397e-06, 3.364684327829124e-06, 3.3688928129941607e-06, 3.3731065620549032e-06, 3.3773255815953293e-06, 3.38154987820767e-06, 3.385779458492377e-06, 3.390014329058183e-06, 3.3942544965220674e-06, 3.3984999675092876e-06, 3.4027507486534045e-06, 3.407006846596258e-06, 3.411268267987997e-06, 3.4155350194871043e-06, 3.419807107760375e-06, 3.424084539482941e-06, 3.4283673213383024e-06, 3.432655460018295e-06, 3.4369489622231483e-06, 3.4412478346614542e-06, 3.4455520840501964e-06, 3.4498617171147765e-06, 3.4541767405889914e-06, 3.45849716121506e-06, 3.462822985743653e-06, 3.467154220933866e-06, 3.471490873553248e-06, 3.4758329503778327e-06, 3.4801804581921094e-06, 3.4845334037890535e-06, 3.4888917939701568e-06, 3.4932556355453916e-06, 3.4976249353332737e-06, 3.501999700160829e-06, 3.506379936863622e-06, 3.5107656522857858e-06, 3.515156853279996e-06, 3.519553546707498e-06, 3.523955739438139e-06, 3.52836343835034e-06, 3.532776650331125e-06, 3.537195382276151e-06, 3.5416196410896755e-06, 3.5460494336846157e-06, 3.5504847669825173e-06, 3.554925647913584e-06, 3.559372083416705e-06, 3.56382408043943e-06, 3.5682816459379996e-06, 3.5727447868773734e-06, 3.5772135102312035e-06, 3.5816878229818645e-06, 3.5861677321204844e-06, 3.5906532446469155e-06, 3.595144367569765e-06, 3.5996411079064273e-06, 3.6041434726830458e-06, 3.6086514689345806e-06, 3.6131651037047697e-06, 3.617684384046162e-06, 3.6222093170201467e-06, 3.626739909696926e-06, 3.6312761691555463e-06, 3.635818102483926e-06, 3.64036571677883e-06, 3.6449190191459007e-06, 3.649478016699687e-06, 3.6540427165636107e-06, 3.6586131258700287e-06, 3.6631892517602002e-06, 3.667771101384316e-06, 3.6723586819015308e-06, 3.6769520004799336e-06, 3.6815510642965784e-06, 3.6861558805375165e-06, 3.690766456397768e-06, 3.6953827990813518e-06, 3.700004915801318e-06, 3.7046328137797175e-06, 3.709266500247636e-06, 3.713905982445222e-06, 3.718551267621655e-06, 3.7232023630352065e-06, 3.7278592759532074e-06, 3.7325220136520794e-06, 3.7371905834173634e-06, 3.7418649925436945e-06, 3.746545248334831e-06, 3.751231358103687e-06, 3.7559233291723036e-06, 3.7606211688718787e-06, 3.7653248845428027e-06, 3.7700344835346173e-06, 3.774749973206087e-06, 3.779471360925157e-06, 3.7841986540689914e-06, 3.7889318600239988e-06, 3.7936709861858087e-06, 3.7984160399592997e-06, 3.803167028758633e-06, 3.8079239600072215e-06, 3.812686841137766e-06, 3.817455679592282e-06, 3.822230482822074e-06, 3.827011258287767e-06, 3.831798013459336e-06, 3.836590755816074e-06, 3.841389492846655e-06, 3.8461942320491e-06, 3.851004980930809e-06, 3.85582174700859e-06, 3.860644537808636e-06, 3.865473360866551e-06, 3.870308223727384e-06, 3.875149133945606e-06, 3.879996099085131e-06, 3.8848491267193565e-06, 3.889708224431126e-06, 3.894573399812795e-06, 3.899444660466193e-06, 3.904322014002659e-06, 3.909205468043074e-06, 3.9140950302178276e-06, 3.918990708166856e-06, 3.923892509539669e-06, 3.928800441995327e-06, 3.9337145132024686e-06, 3.938634730839344e-06, 3.943561102593787e-06, 3.948493636163249e-06, 3.953432339254828e-06, 3.958377219585233e-06, 3.963328284880858e-06, 3.968285542877733e-06, 3.97324900132157e-06, 3.9782186679677855e-06, 3.983194550581481e-06, 3.988176656937463e-06, 3.993164994820291e-06, 3.9981595720242366e-06, 4.003160396353319e-06, 4.008167475621342e-06, 4.013180817651855e-06, 4.018200430278217e-06, 4.023226321343571e-06, 4.028258498700863e-06, 4.0332969702128854e-06, 4.038341743752245e-06, 4.043392827201393e-06, 4.0484502284526635e-06, 4.05351395540824e-06, 4.058584015980189e-06, 4.063660418090496e-06, 4.068743169671033e-06, 4.073832278663593e-06, 4.078927753019925e-06, 4.084029600701693e-06, 4.089137829680551e-06, 4.094252447938099e-06, 4.099373463465922e-06, 4.104500884265625e-06, 4.109634718348793e-06, 4.114774973737039e-06, 4.119921658462024e-06, 4.1250747805654395e-06, 4.130234348099031e-06, 4.135400369124639e-06, 4.140572851714159e-06, 4.145751803949609e-06, 4.150937233923096e-06, 4.156129149736848e-06, 4.161327559503249e-06, 4.166532471344809e-06, 4.171743893394196e-06, 4.176961833794272e-06, 4.182186300698063e-06, 4.1874173022687926e-06, 4.192654846679916e-06, 4.197898942115091e-06, 4.203149596768209e-06, 4.208406818843435e-06, 4.213670616555164e-06, 4.218940998128096e-06, 4.224217971797196e-06, 4.22950154580773e-06, 4.234791728415295e-06, 4.240088527885799e-06, 4.245391952495483e-06, 4.250702010530963e-06, 4.2560187102892e-06, 4.26134206007753e-06, 4.266672068213703e-06, 4.272008743025843e-06, 4.277352092852521e-06, 4.282702126042715e-06, 4.288058850955844e-06, 4.2934222759618075e-06, 4.298792409440951e-06, 4.304169259784101e-06, 4.309552835392603e-06, 4.314943144678286e-06, 4.320340196063504e-06, 4.325743997981165e-06, 4.331154558874702e-06, 4.336571887198111e-06, 4.341995991415984e-06, 4.34742688000347e-06, 4.352864561446347e-06, 4.358309044240988e-06, 4.363760336894389e-06, 4.369218447924212e-06, 4.374683385858748e-06, 4.380155159236958e-06, 4.385633776608502e-06, 4.391119246533715e-06, 4.3966115775836365e-06, 4.4021107783400495e-06, 4.407616857395442e-06, 4.4131298233530785e-06, 4.418649684826962e-06, 4.424176450441869e-06, 4.429710128833388e-06, 4.435250728647884e-06, 4.440798258542538e-06, 4.446352727185383e-06, 4.451914143255269e-06, 4.457482515441901e-06, 4.463057852445879e-06, 4.468640162978658e-06, 4.474229455762594e-06, 4.479825739530973e-06, 4.485429023027973e-06, 4.491039315008742e-06, 4.4966566242393544e-06, 4.502280959496849e-06, 4.507912329569267e-06, 4.513550743255617e-06, 4.519196209365913e-06, 4.524848736721215e-06, 4.5305083341535874e-06, 4.536175010506147e-06, 4.54184877463309e-06, 4.54752963539966e-06, 4.553217601682218e-06, 4.558912682368206e-06, 4.5646148863561785e-06, 4.5703242225558485e-06, 4.576040699888046e-06, 4.5817643272847596e-06, 4.587495113689176e-06, 4.5932330680556395e-06, 4.598978199349699e-06, 4.604730516548138e-06, 4.610490028638947e-06, 4.6162567446213545e-06, 4.622030673505873e-06, 4.6278118243142514e-06, 4.633600206079555e-06, 4.6393958278461234e-06, 4.6451986986696085e-06, 4.6510088276170135e-06, 4.656826223766658e-06, 4.662650896208216e-06, 4.668482854042756e-06, 4.674322106382705e-06, 4.680168662351889e-06, 4.686022531085568e-06, 4.691883721730397e-06, 4.697752243444504e-06, 4.703628105397447e-06, 4.709511316770253e-06, 4.715401886755459e-06, 4.721299824557071e-06, 4.727205139390612e-06, 4.7331178404831535e-06, 4.739037937073283e-06, 4.744965438411145e-06, 4.7509003537584795e-06, 4.756842692388582e-06, 4.762792463586352e-06, 4.768749676648322e-06, 4.7747143408826246e-06, 4.780686465609064e-06, 4.78666606015908e-06, 4.7926531338757796e-06, 4.798647696113984e-06, 4.80464975624019e-06, 4.810659323632609e-06, 4.816676407681209e-06, 4.822701017787676e-06, 4.828733163365455e-06, 4.834772853839794e-06, 4.8408200986476915e-06, 4.8468749072379865e-06, 4.852937289071311e-06, 4.859007253620127e-06, 4.865084810368774e-06, 4.871169968813428e-06, 4.87726273846214e-06, 4.883363128834883e-06, 4.889471149463507e-06, 4.8955868098917886e-06, 4.9017101196754656e-06, 4.907841088382201e-06, 4.913979725591628e-06, 4.920126040895383e-06, 4.926280043897071e-06, 4.932441744212338e-06, 4.9386111514688335e-06, 4.944788275306249e-06, 4.950973125376361e-06, 4.957165711342987e-06, 4.9633660428820375e-06, 4.969574129681548e-06, 4.975789981441648e-06, 4.982013607874596e-06, 4.98824501870483e-06, 4.9944842236689115e-06, 5.000731232515617e-06, 5.0069860550058915e-06, 5.013248700912886e-06, 5.019519180022006e-06, 5.025797502130864e-06, 5.032083677049334e-06, 5.038377714599582e-06, 5.0446796246160335e-06, 5.050989416945416e-06, 5.057307101446799e-06, 5.063632687991558e-06, 5.069966186463411e-06, 5.076307606758473e-06, 5.082656958785193e-06, 5.089014252464455e-06, 5.0953794977295215e-06, 5.101752704526081e-06, 5.108133882812288e-06, 5.114523042558727e-06, 5.1209201937484504e-06, 5.127325346377027e-06, 5.133738510452503e-06, 5.140159695995434e-06, 5.1465889130389465e-06, 5.153026171628674e-06, 5.159471481822851e-06, 5.165924853692268e-06, 5.172386297320312e-06, 5.1788558228030056e-06, 5.185333440248976e-06, 5.191819159779494e-06, 5.198312991528513e-06, 5.2048149456426405e-06, 5.211325032281169e-06, 5.217843261616131e-06, 5.22436964383225e-06, 5.2309041891269914e-06, 5.237446907710601e-06, 5.243997809806061e-06, 5.250556905649175e-06, 5.257124205488523e-06, 5.263699719585501e-06, 5.2702834582143714e-06, 5.2768754316622186e-06, 5.283475650228991e-06, 5.290084124227551e-06, 5.296700863983632e-06, 5.303325879835881e-06, 5.309959182135905e-06, 5.316600781248223e-06, 5.323250687550352e-06, 5.329908911432764e-06, 5.336575463298925e-06, 5.343250353565342e-06, 5.3499335926615235e-06, 5.356625191030023e-06, 5.363325159126483e-06, 5.370033507419595e-06, 5.376750246391145e-06, 5.383475386536059e-06, 5.3902089383623595e-06, 5.396950912391212e-06, 5.4037013191569745e-06, 5.410460169207137e-06, 5.417227473102425e-06, 5.424003241416741e-06, 5.4307874847372165e-06, 5.437580213664251e-06, 5.444381438811476e-06, 5.451191170805796e-06, 5.458009420287441e-06, 5.464836197909914e-06, 5.4716715143400484e-06, 5.478515380258047e-06, 5.485367806357433e-06, 5.4922288033451415e-06, 5.499098381941473e-06, 5.505976552880135e-06, 5.512863326908291e-06, 5.519758714786517e-06, 5.526662727288848e-06, 5.5335753752028246e-06, 5.54049666932945e-06, 5.54742662048324e-06, 5.554365239492262e-06, 5.561312537198101e-06, 5.5682685244559005e-06, 5.575233212134413e-06, 5.582206611115944e-06, 5.58918873229645e-06, 5.596179586585487e-06, 5.6031791849062565e-06, 5.610187538195653e-06, 5.617204657404219e-06, 5.624230553496196e-06, 5.631265237449566e-06, 5.638308720256015e-06, 5.645361012920977e-06, 5.6524221264636805e-06, 5.6594920719170965e-06, 5.666570860328035e-06, 5.6736585027570975e-06, 5.680755010278714e-06, 5.6878603939812e-06, 5.694974664966709e-06, 5.70209783435128e-06, 5.709229913264887e-06, 5.716370912851396e-06, 5.723520844268609e-06, 5.7306797186883154e-06, 5.737847547296249e-06, 5.745024341292132e-06, 5.7522101118897265e-06, 5.759404870316781e-06, 5.766608627815129e-06, 5.77382139564063e-06, 5.7810431850632256e-06, 5.788274007366985e-06, 5.795513873850059e-06, 5.8027627958247284e-06, 5.8100207846174585e-06, 5.8172878515688456e-06, 5.824564008033675e-06, 5.831849265380961e-06, 5.839143634993901e-06, 5.846447128269969e-06, 5.853759756620865e-06, 5.86108153147256e-06, 5.868412464265352e-06, 5.875752566453812e-06, 5.883101849506843e-06, 5.890460324907721e-06, 5.897828004154056e-06, 5.905204898757836e-06, 5.912591020245482e-06, 5.9199863801578e-06, 5.927390990050032e-06, 5.934804861491902e-06, 5.942228006067564e-06, 5.949660435375705e-06, 5.957102161029488e-06, 5.964553194656599e-06, 5.9720135478993e-06, 5.979483232414384e-06, 5.986962259873225e-06, 5.994450641961826e-06, 6.001948390380775e-06, 6.009455516845295e-06, 6.016972033085292e-06, 6.024497950845304e-06, 6.032033281884601e-06, 6.039578037977129e-06, 6.0471322309115585e-06, 6.05469587249134e-06, 6.062268974534655e-06, 6.069851548874463e-06, 6.077443607358564e-06, 6.085045161849538e-06, 6.092656224224803e-06, 6.100276806376669e-06, 6.107906920212287e-06, 6.115546577653699e-06, 6.123195790637894e-06, 6.130854571116747e-06, 6.138522931057126e-06, 6.1462008824408325e-06, 6.153888437264657e-06, 6.161585607540429e-06, 6.1692924052949655e-06, 6.17700884257013e-06, 6.184734931422879e-06, 6.192470683925216e-06, 6.200216112164245e-06, 6.2079712282422225e-06, 6.215736044276496e-06, 6.223510572399614e-06, 6.231294824759268e-06, 6.239088813518342e-06, 6.246892550854968e-06, 6.254706048962475e-06, 6.262529320049446e-06, 6.270362376339764e-06, 6.27820523007257e-06, 6.286057893502315e-06, 6.293920378898809e-06, 6.301792698547175e-06, 6.309674864747903e-06, 6.317566889816903e-06, 6.325468786085442e-06, 6.333380565900258e-06, 6.3413022416234964e-06, 6.349233825632765e-06, 6.357175330321191e-06, 6.365126768097363e-06, 6.373088151385394e-06, 6.3810594926249695e-06, 6.389040804271301e-06, 6.397032098795177e-06, 6.40503338868302e-06, 6.413044686436825e-06, 6.421066004574269e-06, 6.429097355628651e-06, 6.437138752148948e-06, 6.445190206699866e-06, 6.453251731861793e-06, 6.461323340230853e-06, 6.469405044418958e-06, 6.477496857053761e-06, 6.48559879077871e-06, 6.493710858253101e-06, 6.501833072152028e-06, 6.509965445166442e-06, 6.5181079900032e-06, 6.526260719385007e-06, 6.534423646050527e-06, 6.542596782754324e-06, 6.550780142266913e-06, 6.558973737374819e-06, 6.567177580880524e-06, 6.575391685602523e-06, 6.583616064375381e-06, 6.5918507300496795e-06, 6.600095695492072e-06, 6.608350973585344e-06, 6.616616577228345e-06, 6.624892519336105e-06, 6.633178812839774e-06, 6.641475470686677e-06, 6.649782505840365e-06, 6.6580999312805726e-06, 6.666427760003265e-06, 6.6747660050207e-06, 6.683114679361376e-06, 6.6914737960700865e-06, 6.699843368207977e-06, 6.708223408852493e-06, 6.716613931097438e-06, 6.725014948053028e-06, 6.733426472845832e-06, 6.741848518618881e-06, 6.7502810985316125e-06, 6.758724225759921e-06, 6.76717791349622e-06, 6.775642174949386e-06, 6.7841170233448165e-06, 6.7926024719244875e-06, 6.801098533946904e-06, 6.809605222687151e-06, 6.818122551436956e-06, 6.826650533504622e-06, 6.835189182215147e-06, 6.843738510910162e-06, 6.852298532947979e-06, 6.860869261703661e-06, 6.869450710568959e-06, 6.878042892952379e-06, 6.886645822279229e-06, 6.895259511991579e-06, 6.9038839755483065e-06, 6.912519226425163e-06, 6.921165278114717e-06, 6.929822144126413e-06, 6.9384898379866325e-06, 6.947168373238622e-06, 6.955857763442622e-06, 6.964558022175792e-06, 6.973269163032276e-06, 6.981991199623259e-06, 6.99072414557691e-06, 6.99946801453845e-06, 7.008222820170199e-06, 7.01698857615153e-06, 7.0257652961789264e-06, 7.03455299396604e-06, 7.043351683243626e-06, 7.0521613777596615e-06, 7.060982091279285e-06, 7.06981383758485e-06, 7.078656630475988e-06, 7.08751048376955e-06, 7.096375411299673e-06, 7.105251426917832e-06, 7.114138544492791e-06, 7.123036777910661e-06, 7.131946141074959e-06, 7.140866647906552e-06, 7.149798312343724e-06, 7.1587411483422245e-06, 7.167695169875214e-06, 7.176660390933378e-06, 7.185636825524863e-06, 7.194624487675336e-06, 7.203623391428048e-06, 7.2126335508437746e-06, 7.22165498000088e-06, 7.230687692995372e-06, 7.239731703940856e-06, 7.248787026968587e-06, 7.2578536762275364e-06, 7.266931665884318e-06, 7.27602101012332e-06, 7.28512172314663e-06, 7.2942338191741e-06, 7.303357312443412e-06, 7.312492217210008e-06, 7.32163854774717e-06, 7.330796318346065e-06, 7.3399655433156986e-06, 7.349146236982975e-06, 7.358338413692754e-06, 7.367542087807801e-06, 7.376757273708847e-06, 7.385983985794646e-06, 7.395222238481913e-06, 7.404472046205446e-06, 7.413733423418057e-06, 7.423006384590637e-06, 7.432290944212217e-06, 7.4415871167899085e-06, 7.450894916848972e-06, 7.46021435893287e-06, 7.469545457603223e-06, 7.47888822743986e-06, 7.4882426830408885e-06, 7.497608839022618e-06, 7.5069867100196975e-06, 7.5163763106850375e-06, 7.52577765568988e-06, 7.535190759723854e-06, 7.5446156374949235e-06, 7.5540523037294475e-06, 7.563500773172246e-06, 7.572961060586542e-06, 7.582433180754023e-06, 7.5919171484749035e-06, 7.601412978567874e-06, 7.610920685870157e-06, 7.620440285237573e-06, 7.629971791544472e-06, 7.63951521968386e-06, 7.649070584567334e-06, 7.658637901125138e-06, 7.668217184306236e-06, 7.677808449078244e-06, 7.6874117104275e-06, 7.697026983359133e-06, 7.706654282896995e-06, 7.716293624083727e-06, 7.725945021980828e-06, 7.735608491668586e-06, 7.7452840482462e-06, 7.754971706831715e-06, 7.764671482562086e-06, 7.774383390593241e-06, 7.784107446100027e-06, 7.793843664276267e-06, 7.80359206033483e-06, 7.813352649507577e-06, 7.823125447045414e-06, 7.832910468218368e-06, 7.842707728315521e-06, 7.852517242645083e-06, 7.862339026534446e-06, 7.872173095330126e-06, 7.88201946439788e-06, 7.891878149122654e-06, 7.901749164908626e-06, 7.91163252717929e-06, 7.921528251377387e-06, 7.931436352964975e-06, 7.941356847423492e-06, 7.951289750253698e-06, 7.961235076975744e-06, 7.97119284312923e-06, 7.98116306427314e-06, 7.991145755985979e-06, 8.001140933865686e-06, 8.011148613529716e-06, 8.021168810615097e-06, 8.03120154077838e-06, 8.041246819695687e-06, 8.051304663062802e-06, 8.06137508659509e-06, 8.071458106027577e-06, 8.08155373711501e-06, 8.091661995631804e-06, 8.101782897372097e-06, 8.111916458149828e-06, 8.122062693798662e-06, 8.132221620172122e-06, 8.142393253143519e-06, 8.152577608606015e-06, 8.162774702472699e-06, 8.172984550676513e-06, 8.183207169170339e-06, 8.193442573927045e-06, 8.203690780939439e-06, 8.213951806220334e-06, 8.224225665802611e-06, 8.234512375739152e-06, 8.244811952102967e-06, 8.255124410987136e-06, 8.265449768504861e-06, 8.275788040789546e-06, 8.286139243994729e-06, 8.296503394294151e-06, 8.30688050788183e-06, 8.317270600971992e-06, 8.327673689799146e-06, 8.33808979061815e-06, 8.348518919704146e-06, 8.358961093352639e-06, 8.369416327879556e-06, 8.379884639621172e-06, 8.390366044934258e-06, 8.400860560195997e-06, 8.411368201804056e-06, 8.421888986176656e-06, 8.432422929752509e-06, 8.442970048990891e-06, 8.453530360371707e-06, 8.464103880395433e-06, 8.474690625583176e-06, 8.485290612476764e-06, 8.495903857638643e-06, 8.506530377652043e-06, 8.51717018912089e-06, 8.527823308669874e-06, 8.538489752944529e-06, 8.54916953861116e-06, 8.559862682356918e-06, 8.570569200889877e-06, 8.581289110938953e-06, 8.592022429253996e-06, 8.602769172605848e-06, 8.613529357786282e-06, 8.624303001608076e-06, 8.63509012090508e-06, 8.645890732532139e-06, 8.65670485336524e-06, 8.667532500301439e-06, 8.678373690258917e-06, 8.689228440177066e-06, 8.70009676701642e-06, 8.710978687758728e-06, 8.721874219407023e-06, 8.73278337898556e-06, 8.743706183539889e-06, 8.754642650136924e-06, 8.765592795864865e-06, 8.776556637833348e-06, 8.787534193173363e-06, 8.798525479037329e-06, 8.80953051259916e-06, 8.820549311054209e-06, 8.831581891619337e-06, 8.842628271532982e-06, 8.853688468055101e-06, 8.864762498467236e-06, 8.875850380072595e-06, 8.886952130195978e-06, 8.898067766183856e-06, 8.909197305404446e-06, 8.920340765247621e-06, 8.931498163125075e-06, 8.942669516470223e-06, 8.953854842738297e-06, 8.965054159406399e-06, 8.976267483973447e-06, 8.987494833960251e-06, 8.998736226909579e-06, 9.00999168038609e-06, 9.02126121197642e-06, 9.032544839289244e-06, 9.043842579955202e-06, 9.055154451627046e-06, 9.066480471979564e-06, 9.077820658709647e-06, 9.089175029536374e-06, 9.100543602200931e-06, 9.111926394466704e-06, 9.123323424119338e-06, 9.134734708966679e-06, 9.146160266838844e-06, 9.157600115588303e-06, 9.169054273089806e-06, 9.18052275724046e-06, 9.192005585959807e-06, 9.203502777189734e-06, 9.21501434889464e-06, 9.226540319061341e-06, 9.238080705699151e-06, 9.249635526839961e-06, 9.261204800538163e-06, 9.272788544870732e-06, 9.284386777937307e-06, 9.29599951786011e-06, 9.307626782784036e-06, 9.31926859087672e-06, 9.330924960328455e-06, 9.342595909352357e-06, 9.354281456184269e-06, 9.365981619082842e-06, 9.377696416329615e-06, 9.389425866228949e-06, 9.401169987108091e-06, 9.412928797317267e-06, 9.424702315229605e-06, 9.43649055924121e-06, 9.448293547771253e-06, 9.460111299261885e-06, 9.47194383217833e-06, 9.483791165008956e-06, 9.495653316265192e-06, 9.507530304481682e-06, 9.519422148216206e-06, 9.531328866049758e-06, 9.543250476586619e-06, 9.555186998454291e-06, 9.567138450303575e-06, 9.579104850808651e-06, 9.591086218667006e-06, 9.60308257259951e-06, 9.615093931350508e-06, 9.627120313687711e-06, 9.639161738402379e-06, 9.651218224309225e-06, 9.663289790246492e-06, 9.67537645507604e-06, 9.687478237683269e-06, 9.699595156977197e-06, 9.71172723189055e-06, 9.723874481379675e-06, 9.73603692442464e-06, 9.748214580029298e-06, 9.76040746722122e-06, 9.772615605051778e-06, 9.784839012596225e-06, 9.797077708953602e-06, 9.809331713246911e-06, 9.821601044623016e-06, 9.833885722252736e-06, 9.846185765330914e-06, 9.858501193076354e-06, 9.870832024731896e-06, 9.883178279564502e-06, 9.89553997686518e-06, 9.90791713594907e-06, 9.920309776155516e-06, 9.932717916847988e-06, 9.945141577414245e-06, 9.95758077726624e-06, 9.970035535840205e-06, 9.982505872596744e-06, 9.994991807020738e-06, 1.0007493358621447e-05, 1.0020010546932582e-05, 1.0032543391512237e-05, 1.0045091911942963e-05, 1.0057656127831863e-05, 1.0070236058810508e-05, 1.0082831724535026e-05, 1.0095443144686185e-05, 1.0108070338969292e-05, 1.0120713327114378e-05, 1.0133372128876099e-05, 1.0146046764033812e-05, 1.0158737252391677e-05, 1.0171443613778566e-05, 1.0184165868048152e-05, 1.0196904035078999e-05, 1.0209658134774472e-05, 1.0222428187062843e-05, 1.0235214211897352e-05, 1.0248016229256133e-05, 1.0260834259142374e-05, 1.0273668321584233e-05, 1.0286518436634916e-05, 1.0299384624372767e-05, 1.031226690490119e-05, 1.0325165298348731e-05, 1.0338079824869169e-05, 1.0351010504641439e-05, 1.0363957357869708e-05, 1.0376920404783476e-05, 1.0389899665637488e-05, 1.0402895160711823e-05, 1.0415906910311981e-05, 1.0428934934768788e-05, 1.044197925443857e-05, 1.0455039889703061e-05, 1.046811686096949e-05, 1.0481210188670661e-05, 1.0494319893264884e-05, 1.0507445995236058e-05, 1.0520588515093755e-05, 1.0533747473373147e-05, 1.0546922890635092e-05, 1.0560114787466217e-05, 1.0573323184478826e-05, 1.0586548102311083e-05, 1.0599789561626903e-05, 1.061304758311605e-05, 1.0626322187494225e-05, 1.0639613395502978e-05, 1.0652921227909808e-05, 1.0666245705508244e-05, 1.0679586849117763e-05, 1.0692944679583889e-05, 1.070631921777827e-05, 1.071971048459861e-05, 1.0733118500968741e-05, 1.0746543287838733e-05, 1.075998486618478e-05, 1.077344325700939e-05, 1.078691848134128e-05, 1.0800410560235472e-05, 1.081391951477338e-05, 1.082744536606273e-05, 1.084098813523765e-05, 1.0854547843458756e-05, 1.0868124511913075e-05, 1.0881718161814136e-05, 1.0895328814402057e-05, 1.0908956490943449e-05, 1.0922601212731595e-05, 1.093626300108636e-05, 1.0949941877354269e-05, 1.0963637862908609e-05, 1.097735097914934e-05, 1.0991081247503192e-05, 1.1004828689423746e-05, 1.1018593326391367e-05, 1.1032375179913282e-05, 1.104617427152368e-05, 1.1059990622783626e-05, 1.107382425528115e-05, 1.1087675190631345e-05, 1.1101543450476261e-05, 1.1115429056485098e-05, 1.1129332030354098e-05, 1.1143252393806638e-05, 1.1157190168593331e-05, 1.117114537649193e-05, 1.1185118039307436e-05, 1.1199108178872174e-05, 1.1213115817045718e-05, 1.1227140975714988e-05, 1.1241183676794336e-05, 1.1255243942225449e-05, 1.1269321793977527e-05, 1.1283417254047205e-05, 1.1297530344458616e-05, 1.1311661087263508e-05, 1.1325809504541152e-05, 1.1339975618398431e-05, 1.135415945096994e-05, 1.1368361024417901e-05, 1.1382580360932257e-05, 1.139681748273076e-05, 1.1411072412058901e-05, 1.1425345171189987e-05, 1.1439635782425247e-05, 1.1453944268093725e-05, 1.1468270650552472e-05, 1.1482614952186442e-05, 1.1496977195408592e-05, 1.151135740265997e-05, 1.1525755596409631e-05, 1.1540171799154736e-05, 1.1554606033420646e-05, 1.1569058321760833e-05, 1.1583528686756982e-05, 1.1598017151019081e-05, 1.1612523737185316e-05, 1.1627048467922276e-05, 1.164159136592483e-05, 1.1656152453916243e-05, 1.1670731754648258e-05, 1.1685329290901012e-05, 1.169994508548314e-05, 1.1714579161231867e-05, 1.1729231541012916e-05, 1.1743902247720611e-05, 1.1758591304277982e-05, 1.1773298733636656e-05, 1.1788024558776977e-05, 1.1802768802708088e-05, 1.1817531488467836e-05, 1.1832312639122957e-05, 1.1847112277768986e-05, 1.1861930427530339e-05, 1.1876767111560418e-05, 1.1891622353041525e-05, 1.1906496175184958e-05, 1.1921388601231107e-05, 1.1936299654449373e-05, 1.1951229358138254e-05, 1.1966177735625461e-05, 1.1981144810267792e-05, 1.199613060545135e-05, 1.2011135144591418e-05, 1.2026158451132572e-05, 1.2041200548548775e-05, 1.2056261460343284e-05, 1.2071341210048756e-05, 1.2086439821227347e-05, 1.2101557317470617e-05, 1.2116693722399635e-05, 1.2131849059665082e-05, 1.2147023352947154e-05, 1.2162216625955663e-05, 1.2177428902430147e-05, 1.2192660206139747e-05, 1.2207910560883421e-05, 1.222317999048983e-05, 1.2238468518817439e-05, 1.225377616975462e-05, 1.226910296721956e-05, 1.2284448935160361e-05, 1.2299814097555145e-05, 1.2315198478411957e-05, 1.2330602101768876e-05, 1.234602499169411e-05, 1.2361467172285883e-05, 1.237692866767265e-05, 1.2392409502012977e-05, 1.240790969949565e-05, 1.2423429284339777e-05, 1.2438968280794686e-05, 1.2454526713140044e-05, 1.2470104605685948e-05, 1.2485701982772834e-05, 1.2501318868771586e-05, 1.2516955288083636e-05, 1.2532611265140872e-05, 1.2548286824405736e-05, 1.2563981990371337e-05, 1.2579696787561334e-05, 1.2595431240530141e-05, 1.2611185373862826e-05, 1.2626959212175201e-05, 1.2642752780113935e-05, 1.2658566102356462e-05, 1.2674399203611075e-05, 1.2690252108617045e-05, 1.2706124842144518e-05, 1.2722017428994618e-05, 1.2737929893999562e-05, 1.2753862262022533e-05, 1.2769814557957908e-05, 1.2785786806731127e-05, 1.280177903329881e-05, 1.281779126264886e-05, 1.2833823519800366e-05, 1.284987582980371e-05, 1.2865948217740673e-05, 1.2882040708724345e-05, 1.2898153327899223e-05, 1.2914286100441324e-05, 1.2930439051558083e-05, 1.2946612206488467e-05, 1.2962805590503082e-05, 1.2979019228904046e-05, 1.2995253147025218e-05, 1.3011507370232077e-05, 1.3027781923921827e-05, 1.3044076833523506e-05, 1.3060392124497891e-05, 1.3076727822337604e-05, 1.3093083952567224e-05, 1.3109460540743182e-05, 1.3125857612453881e-05, 1.3142275193319791e-05, 1.3158713308993342e-05, 1.317517198515914e-05, 1.3191651247533843e-05, 1.3208151121866284e-05, 1.322467163393756e-05, 1.3241212809560956e-05, 1.3257774674582038e-05, 1.3274357254878768e-05, 1.3290960576361412e-05, 1.3307584664972637e-05, 1.332422954668763e-05, 1.3340895247514e-05, 1.3357581793491887e-05, 1.3374289210694069e-05, 1.3391017525225836e-05, 1.3407766763225237e-05, 1.3424536950862932e-05, 1.344132811434232e-05, 1.3458140279899646e-05, 1.3474973473803898e-05, 1.349182772235692e-05, 1.3508703051893526e-05, 1.3525599488781401e-05, 1.3542517059421202e-05, 1.3559455790246691e-05, 1.3576415707724583e-05, 1.3593396838354808e-05, 1.3610399208670356e-05, 1.3627422845237415e-05, 1.3644467774655463e-05, 1.3661534023557188e-05, 1.3678621618608579e-05, 1.3695730586509056e-05, 1.3712860953991361e-05, 1.3730012747821672e-05, 1.374718599479972e-05, 1.376438072175868e-05, 1.3781596955565296e-05, 1.3798834723119981e-05, 1.3816094051356705e-05, 1.383337496724322e-05, 1.3850677497780936e-05, 1.3868001670005034e-05, 1.3885347510984588e-05, 1.3902715047822455e-05, 1.3920104307655385e-05, 1.3937515317654155e-05, 1.3954948105023443e-05, 1.397240269700196e-05, 1.3989879120862558e-05, 1.4007377403912102e-05, 1.4024897573491718e-05, 1.4042439656976645e-05, 1.4060003681776366e-05, 1.4077589675334728e-05, 1.409519766512982e-05, 1.4112827678674106e-05, 1.4130479743514537e-05, 1.4148153887232442e-05, 1.416585013744365e-05, 1.4183568521798604e-05, 1.420130906798226e-05, 1.4219071803714196e-05, 1.4236856756748748e-05, 1.425466395487485e-05, 1.4272493425916308e-05, 1.4290345197731646e-05, 1.430821929821424e-05, 1.4326115755292422e-05, 1.4344034596929388e-05, 1.4361975851123304e-05, 1.4379939545907435e-05, 1.4397925709350032e-05, 1.4415934369554452e-05, 1.4433965554659287e-05, 1.445201929283821e-05, 1.4470095612300241e-05, 1.4488194541289613e-05, 1.4506316108085877e-05, 1.4524460341004038e-05, 1.4542627268394437e-05, 1.4560816918642873e-05, 1.4579029320170734e-05, 1.4597264501434875e-05, 1.4615522490927743e-05, 1.4633803317177501e-05, 1.4652107008747921e-05, 1.4670433594238498e-05, 1.4688783102284576e-05, 1.4707155561557212e-05, 1.4725551000763432e-05, 1.4743969448646088e-05, 1.476241093398398e-05, 1.4780875485591986e-05, 1.4799363132320946e-05, 1.4817873903057784e-05, 1.4836407826725637e-05, 1.4854964932283736e-05, 1.4873545248727541e-05, 1.4892148805088847e-05, 1.4910775630435665e-05, 1.4929425753872465e-05, 1.4948099204540045e-05, 1.4966796011615645e-05, 1.4985516204313084e-05, 1.5004259811882643e-05, 1.5023026863611184e-05, 1.504181738882228e-05, 1.5060631416876107e-05, 1.5079468977169562e-05, 1.5098330099136388e-05, 1.5117214812247066e-05, 1.5136123146008936e-05, 1.5155055129966328e-05, 1.5174010793700417e-05, 1.5192990166829484e-05, 1.521199327900878e-05, 1.5231020159930644e-05, 1.5250070839324628e-05, 1.5269145346957406e-05, 1.5288243712632866e-05, 1.5307365966192264e-05, 1.53265121375141e-05, 1.534568225651424e-05, 1.5364876353146057e-05, 1.5384094457400273e-05, 1.5403336599305237e-05, 1.542260280892677e-05, 1.5441893116368303e-05, 1.5461207551771e-05, 1.5480546145313643e-05, 1.549990892721276e-05, 1.5519295927722755e-05, 1.5538707177135796e-05, 1.5558142705781934e-05, 1.5577602544029242e-05, 1.5597086722283695e-05, 1.5616595270989298e-05, 1.5636128220628214e-05, 1.565568560172063e-05, 1.5675267444825012e-05, 1.5694873780537968e-05, 1.571450463949437e-05, 1.5734160052367493e-05, 1.5753840049868903e-05, 1.5773544662748564e-05, 1.5793273921795002e-05, 1.5813027857835155e-05, 1.5832806501734523e-05, 1.5852609884397298e-05, 1.587243803676622e-05, 1.5892290989822827e-05, 1.591216877458734e-05, 1.593207142211877e-05, 1.5951998963515072e-05, 1.5971951429912997e-05, 1.5991928852488255e-05, 1.601193126245562e-05, 1.603195869106885e-05, 1.605201116962076e-05, 1.607208872944342e-05, 1.609219140190799e-05, 1.611231921842487e-05, 1.6132472210443837e-05, 1.6152650409453886e-05, 1.617285384698351e-05, 1.6193082554600565e-05, 1.621333656391238e-05, 1.6233615906565897e-05, 1.6253920614247577e-05, 1.627425071868349e-05, 1.6294606251639494e-05, 1.6314987244921078e-05, 1.6335393730373522e-05, 1.6355825739882024e-05, 1.6376283305371544e-05, 1.639676645880709e-05, 1.6417275232193562e-05, 1.6437809657575897e-05, 1.6458369767039193e-05, 1.64789555927086e-05, 1.6499567166749444e-05, 1.6520204521367372e-05, 1.654086768880823e-05, 1.656155670135818e-05, 1.6582271591343878e-05, 1.6603012391132313e-05, 1.6623779133130954e-05, 1.6644571849787906e-05, 1.6665390573591725e-05, 1.668623533707174e-05, 1.6707106172797863e-05, 1.672800311338075e-05, 1.6748926191471933e-05, 1.67698754397637e-05, 1.6790850890989223e-05, 1.681185257792271e-05, 1.683288053337927e-05, 1.6853934790215056e-05, 1.6875015381327414e-05, 1.6896122339654705e-05, 1.6917255698176622e-05, 1.693841548991401e-05, 1.6959601747929014e-05, 1.698081450532523e-05, 1.7002053795247568e-05, 1.702331965088239e-05, 1.7044612105457654e-05, 1.7065931192242808e-05, 1.708727694454889e-05, 1.71086493957287e-05, 1.7130048579176675e-05, 1.715147452832901e-05, 1.7172927276663814e-05, 1.7194406857700953e-05, 1.7215913305002335e-05, 1.723744665217176e-05, 1.7259006932855052e-05, 1.728059418074022e-05, 1.7302208429557313e-05, 1.7323849713078565e-05, 1.734551806511855e-05, 1.736721351953404e-05, 1.7388936110224158e-05, 1.7410685871130514e-05, 1.7432462836237057e-05, 1.745426703957036e-05, 1.747609851519946e-05, 1.7497957297236018e-05, 1.7519843419834444e-05, 1.7541756917191777e-05, 1.7563697823547828e-05, 1.7585666173185336e-05, 1.760766200042982e-05, 1.7629685339649726e-05, 1.7651736225256592e-05, 1.7673814691704904e-05, 1.7695920773492238e-05, 1.771805450515941e-05, 1.774021592129032e-05, 1.7762405056512248e-05, 1.778462194549569e-05, 1.780686662295451e-05, 1.782913912364608e-05, 1.785143948237116e-05, 1.787376773397403e-05, 1.7896123913342656e-05, 1.7918508055408535e-05, 1.7940920195146865e-05, 1.7963360367576682e-05, 1.798582860776069e-05, 1.8008324950805597e-05, 1.80308494318619e-05, 1.805340208612408e-05, 1.807598294883072e-05, 1.8098592055264398e-05, 1.812122944075181e-05, 1.8143895140663943e-05, 1.8166589190415927e-05, 1.8189311625467182e-05, 1.8212062481321587e-05, 1.8234841793527322e-05, 1.825764959767704e-05, 1.8280485929407997e-05, 1.830335082440191e-05, 1.832624431838524e-05, 1.8349166447129042e-05, 1.8372117246449125e-05, 1.839509675220617e-05, 1.841810500030564e-05, 1.8441142026697882e-05, 1.8464207867378327e-05, 1.848730255838732e-05, 1.851042613581029e-05, 1.8533578635777897e-05, 1.855676009446586e-05, 1.8579970548095277e-05, 1.8603210032932457e-05, 1.8626478585289065e-05, 1.8649776241522283e-05, 1.8673103038034677e-05, 1.869645901127433e-05, 1.8719844197735027e-05, 1.8743258633956093e-05, 1.876670235652255e-05, 1.8790175402065297e-05, 1.8813677807260928e-05, 1.883720960883193e-05, 1.886077084354681e-05, 1.8884361548219935e-05, 1.8907981759711854e-05, 1.893163151492912e-05, 1.895531085082445e-05, 1.897901980439687e-05, 1.90027584126916e-05, 1.9026526712800183e-05, 1.9050324741860656e-05, 1.907415253705741e-05, 1.909801013562136e-05, 1.912189757483006e-05, 1.9145814892007575e-05, 1.916976212452479e-05, 1.9193739309799226e-05, 1.9217746485295204e-05, 1.924178368852401e-05, 1.9265850957043745e-05, 1.9289948328459483e-05, 1.9314075840423444e-05, 1.9338233530634836e-05, 1.9362421436840018e-05, 1.938663959683267e-05, 1.9410888048453637e-05, 1.9435166829591092e-05, 1.945947597818071e-05, 1.9483815532205467e-05, 1.950818552969599e-05, 1.9532586008730374e-05, 1.9557017007434336e-05, 1.9581478563981382e-05, 1.960597071659267e-05, 1.963049350353716e-05, 1.9655046963131776e-05, 1.967963113374127e-05, 1.970424605377838e-05, 1.9728891761703992e-05, 1.975356829602696e-05, 1.9778275695304445e-05, 1.980301399814173e-05, 1.982778324319238e-05, 1.9852583469158418e-05, 1.987741471479016e-05, 1.9902277018886407e-05, 1.992717042029458e-05, 1.995209495791059e-05, 1.9977050670678992e-05, 2.000203759759317e-05, 2.0027055777695163e-05, 2.0052105250075847e-05, 2.00771860538751e-05, 2.010229822828161e-05, 2.0127441812533226e-05, 2.0152616845916773e-05, 2.0177823367768202e-05, 2.0203061417472788e-05, 2.0228331034464946e-05, 2.0253632258228426e-05, 2.0278965128296466e-05, 2.0304329684251647e-05, 2.0329725965726052e-05, 2.0355154012401452e-05, 2.0380613864009102e-05, 2.0406105560330094e-05, 2.0431629141195177e-05, 2.0457184646484914e-05, 2.048277211612986e-05, 2.0508391590110406e-05, 2.0534043108456942e-05, 2.0559726711250056e-05, 2.0585442438620338e-05, 2.0611190330748578e-05, 2.063697042786594e-05, 2.0662782770253797e-05, 2.0688627398243898e-05, 2.0714504352218557e-05, 2.0740413672610443e-05, 2.0766355399902945e-05, 2.079232957462999e-05, 2.0818336237376185e-05, 2.0844375428777024e-05, 2.0870447189518714e-05, 2.089655156033834e-05, 2.0922688582024076e-05, 2.0948858295414975e-05, 2.0975060741401182e-05, 2.1001295960924104e-05, 2.1027563994976203e-05, 2.105386488460136e-05, 2.108019867089468e-05, 2.110656539500267e-05, 2.1132965098123427e-05, 2.115939782150645e-05, 2.1185863606452834e-05, 2.121236249431545e-05, 2.1238894526498785e-05, 2.1265459744459093e-05, 2.129205818970462e-05, 2.13186899037954e-05, 2.1345354928343456e-05, 2.1372053305012966e-05, 2.1398785075520077e-05, 2.1425550281633258e-05, 2.1452348965173114e-05, 2.1479181168012553e-05, 2.150604693207698e-05, 2.1532946299344108e-05, 2.1559879311844174e-05, 2.158684601166009e-05, 2.161384644092729e-05, 2.164088064183391e-05, 2.166794865662098e-05, 2.169505052758219e-05, 2.1722186297064306e-05, 2.174935600746693e-05, 2.1776559701242702e-05, 2.1803797420897473e-05, 2.1831069208990154e-05, 2.1858375108132875e-05, 2.188571516099119e-05, 2.1913089410283896e-05, 2.1940497898783224e-05, 2.1967940669315023e-05, 2.1995417764758583e-05, 2.202292922804684e-05, 2.2050475102166536e-05, 2.2078055430158027e-05, 2.2105670255115657e-05, 2.213331962018756e-05, 2.2161003568575828e-05, 2.2188722143536723e-05, 2.221647538838048e-05, 2.2244263346471514e-05, 2.2272086061228595e-05, 2.2299943576124672e-05, 2.2327835934687087e-05, 2.2355763180497733e-05, 2.2383725357192854e-05, 2.2411722508463444e-05, 2.243975467805501e-05, 2.2467821909767785e-05, 2.2495924247456906e-05, 2.252406173503224e-05, 2.255223441645858e-05, 2.2580442335755823e-05, 2.260868553699881e-05, 2.2636964064317507e-05, 2.26652779618972e-05, 2.269362727397832e-05, 2.2722012044856632e-05, 2.2750432318883428e-05, 2.277888814046531e-05, 2.2807379554064587e-05, 2.2835906604199053e-05, 2.28644693354422e-05, 2.2893067792423374e-05, 2.292170201982763e-05, 2.2950372062395916e-05, 2.2979077964925258e-05, 2.3007819772268597e-05, 2.303659752933497e-05, 2.3065411281089708e-05, 2.3094261072554227e-05, 2.312314694880641e-05, 2.3152068954980406e-05, 2.3181027136266813e-05, 2.3210021537912875e-05, 2.3239052205222315e-05, 2.3268119183555513e-05, 2.329722251832971e-05, 2.332636225501883e-05, 2.335553843915368e-05, 2.3384751116322133e-05, 2.3414000332168964e-05, 2.3443286132396035e-05, 2.3472608562762498e-05, 2.3501967669084575e-05, 2.3531363497235962e-05, 2.3560796093147595e-05, 2.359026550280788e-05, 2.361977177226285e-05, 2.364931494761602e-05, 2.367889507502857e-05, 2.3708512200719532e-05, 2.373816637096563e-05, 2.376785763210147e-05, 2.3797586030519738e-05, 2.382735161267098e-05, 2.3857154425064003e-05, 2.3886994514265673e-05, 2.3916871926901085e-05, 2.3946786709653796e-05, 2.3976738909265607e-05, 2.4006728572536805e-05, 2.403675574632632e-05, 2.406682047755158e-05, 2.4096922813188692e-05, 2.412706280027264e-05, 2.4157240485897126e-05, 2.4187455917214745e-05, 2.4217709141437194e-05, 2.4248000205835066e-05, 2.4278329157738233e-05, 2.4308696044535646e-05, 2.4339100913675533e-05, 2.4369543812665594e-05, 2.4400024789072816e-05, 2.4430543890523695e-05, 2.4461101164704416e-05, 2.4491696659360686e-05, 2.4522330422297925e-05, 2.455300250138148e-05, 2.4583712944536393e-05, 2.461446179974783e-05, 2.4645249115060837e-05, 2.4676074938580558e-05, 2.470693931847243e-05, 2.4737842302962015e-05, 2.476878394033519e-05, 2.4799764278938355e-05, 2.483078336717825e-05, 2.4861841253522164e-05, 2.489293798649814e-05, 2.492407361469478e-05, 2.4955248186761474e-05, 2.498646175140858e-05, 2.5017714357407213e-05, 2.504900605358966e-05, 2.5080336888849164e-05, 2.5111706912140116e-05, 2.5143116172478273e-05, 2.5174564718940562e-05, 2.5206052600665305e-05, 2.5237579866852407e-05, 2.5269146566763183e-05, 2.530075274972057e-05, 2.5332398465109318e-05, 2.536408376237578e-05, 2.5395808691028323e-05, 2.5427573300637112e-05, 2.5459377640834312e-05, 2.5491221761314302e-05, 2.5523105711833482e-05, 2.555502954221048e-05, 2.5586993302326386e-05, 2.561899704212453e-05, 2.565104081161072e-05, 2.5683124660853442e-05, 2.571524863998367e-05, 2.5747412799195087e-05, 2.5779617188744283e-05, 2.581186185895054e-05, 2.5844146860196247e-05, 2.5876472242926683e-05, 2.5908838057650217e-05, 2.594124435493853e-05, 2.5973691185426426e-05, 2.6006178599812038e-05, 2.603870664885705e-05, 2.60712753833865e-05, 2.6103884854288993e-05, 2.6136535112516925e-05, 2.6169226209086246e-05, 2.6201958195076888e-05, 2.6234731121632538e-05, 2.626754503996086e-05, 2.6300400001333697e-05, 2.6333296057086883e-05, 2.6366233258620476e-05, 2.6399211657398943e-05, 2.6432231304950996e-05, 2.646529225286979e-05, 2.6498394552813167e-05, 2.653153825650342e-05, 2.6564723415727548e-05, 2.6597950082337466e-05, 2.6631218308249753e-05, 2.6664528145446113e-05, 2.6697879645973123e-05, 2.6731272861942465e-05, 2.6764707845531138e-05, 2.679818464898127e-05, 2.6831703324600316e-05, 2.6865263924761312e-05, 2.6898866501902662e-05, 2.6932511108528343e-05, 2.6966197797208156e-05, 2.699992662057747e-05, 2.7033697631337664e-05, 2.7067510882255913e-05, 2.710136642616537e-05, 2.7135264315965433e-05, 2.7169204604621508e-05, 2.7203187345165257e-05, 2.7237212590694818e-05, 2.7271280394374593e-05, 2.730539080943548e-05, 2.7339543889175116e-05, 2.737373968695764e-05, 2.740797825621394e-05, 2.7442259650441897e-05, 2.747658392320609e-05, 2.7510951128138298e-05, 2.7545361318937248e-05, 2.757981454936881e-05, 2.7614310873266267e-05, 2.7648850344530077e-05, 2.768343301712813e-05, 2.7718058945095954e-05, 2.7752728182536518e-05, 2.7787440783620466e-05, 2.7822196802586342e-05, 2.785699629374033e-05, 2.789183931145674e-05, 2.7926725910177756e-05, 2.796165614441364e-05, 2.7996630068742983e-05, 2.8031647737812504e-05, 2.806670920633727e-05, 2.8101814529100934e-05, 2.8136963760955515e-05, 2.8172156956821645e-05, 2.8207394171688802e-05, 2.8242675460615095e-05, 2.8278000878727486e-05, 2.8313370481222057e-05, 2.8348784323363713e-05, 2.8384242460486694e-05, 2.8419744947994293e-05, 2.8455291841359104e-05, 2.8490883196123258e-05, 2.8526519067898202e-05, 2.856219951236494e-05, 2.8597924585274283e-05, 2.8633694342446608e-05, 2.8669508839772116e-05, 2.870536813321107e-05, 2.874127227879352e-05, 2.8777221332619806e-05, 2.881321535086028e-05, 2.884925438975555e-05, 2.888533850561672e-05, 2.892146775482519e-05, 2.895764219383285e-05, 2.8993861879162388e-05, 2.903012686740701e-05, 2.9066437215230714e-05, 2.9102792979368537e-05, 2.9139194216626305e-05, 2.9175640983880917e-05, 2.9212133338080554e-05, 2.924867133624442e-05, 2.9285255035463256e-05, 2.9321884492899037e-05, 2.935855976578526e-05, 2.9395280911427134e-05, 2.9432047987201417e-05, 2.9468861050556613e-05, 2.9505720159013254e-05, 2.9542625370163643e-05, 2.9579576741672126e-05, 2.9616574331275347e-05, 2.9653618196781925e-05, 2.969070839607303e-05, 2.9727844987102036e-05, 2.9765028027894835e-05, 2.9802257576550035e-05, 2.983953369123876e-05, 2.9876856430204898e-05, 2.9914225851765338e-05, 2.995164201430976e-05, 2.9989104976300866e-05, 3.0026614796274654e-05, 3.006417153284017e-05, 3.0101775244679767e-05, 3.0139425990549368e-05, 3.0177123829278153e-05, 3.021486881976911e-05, 3.0252661020998756e-05, 3.029050049201734e-05, 3.032838729194916e-05, 3.03663214799923e-05, 3.040430311541887e-05, 3.04423322575753e-05, 3.0480408965882074e-05, 3.0518533299834e-05, 3.055670531900048e-05, 3.059492508302518e-05, 3.06331926516266e-05, 3.0671508084597776e-05, 3.070987144180651e-05, 3.074828278319568e-05, 3.078674216878295e-05, 3.082524965866108e-05, 3.0863805312998116e-05, 3.090240919203724e-05, 3.0941061356096955e-05, 3.0979761865571386e-05, 3.101851078093004e-05, 3.105730816271804e-05, 3.109615407155642e-05, 3.113504856814181e-05, 3.117399171324697e-05, 3.1212983567720534e-05, 3.125202419248722e-05, 3.129111364854811e-05, 3.1330251996980445e-05, 3.136943929893785e-05, 3.140867561565059e-05, 3.144796100842537e-05, 3.148729553864557e-05, 3.152667926777151e-05, 3.1566112257340165e-05, 3.16055945689657e-05, 3.164512626433918e-05, 3.168470740522883e-05, 3.1724338053480306e-05, 3.1764018271016444e-05, 3.180374811983753e-05, 3.1843527662021587e-05, 3.188335695972409e-05, 3.192323607517828e-05, 3.196316507069538e-05, 3.200314400866441e-05, 3.2043172951552403e-05, 3.2083251961904714e-05, 3.2123381102344687e-05, 3.216356043557423e-05, 3.2203790024373486e-05, 3.224406993160115e-05, 3.2284400220194704e-05, 3.232478095317017e-05, 3.23652121936224e-05, 3.2405694004725316e-05, 3.244622644973171e-05, 3.248680959197348e-05, 3.25274434948619e-05, 3.2568128221887335e-05, 3.2608863836619806e-05, 3.264965040270866e-05, 3.269048798388285e-05, 3.273137664395122e-05, 3.277231644680226e-05, 3.2813307456404356e-05, 3.2854349736806086e-05, 3.2895443352135965e-05, 3.293658836660272e-05, 3.2977784844495546e-05, 3.301903285018391e-05, 3.306033244811776e-05, 3.310168370282784e-05, 3.314308667892539e-05, 3.318454144110267e-05, 3.322604805413271e-05, 3.326760658286953e-05, 3.3309217092248464e-05, 3.3350879647285884e-05, 3.339259431307948e-05, 3.343436115480854e-05, 3.347618023773371e-05, 3.351805162719725e-05, 3.355997538862333e-05, 3.360195158751773e-05, 3.3643980289468384e-05, 3.368606156014508e-05, 3.372819546529976e-05, 3.377038207076677e-05, 3.381262144246265e-05, 3.385491364638634e-05, 3.389725874861956e-05, 3.393965681532646e-05, 3.398210791275399e-05, 3.40246121072321e-05, 3.4067169465173554e-05, 3.4109780053074165e-05, 3.4152443937513115e-05, 3.41951611851526e-05, 3.4237931862738454e-05, 3.428075603709981e-05, 3.432363377514939e-05, 3.436656514388379e-05, 3.440955021038321e-05, 3.445258904181178e-05, 3.44956817054178e-05, 3.45388282685335e-05, 3.458202879857533e-05, 3.462528336304426e-05, 3.466859202952543e-05, 3.4711954865688756e-05, 3.475537193928863e-05, 3.4798843318164156e-05, 3.4842369070239515e-05, 3.488594926352364e-05, 3.492958396611052e-05, 3.497327324617951e-05, 3.501701717199507e-05, 3.506081581190702e-05, 3.5104669234350874e-05, 3.514857750784755e-05, 3.519254070100366e-05, 3.523655888251185e-05, 3.5280632121150394e-05, 3.532476048578387e-05, 3.5368944045362795e-05, 3.5413182868923917e-05, 3.545747702559055e-05, 3.550182658457224e-05, 3.554623161516513e-05, 3.5590692186752214e-05, 3.563520836880308e-05, 3.5679780230874214e-05, 3.572440784260927e-05, 3.5769091273738793e-05, 3.5813830594080775e-05, 3.585862587354034e-05, 3.590347718211007e-05, 3.594838458987026e-05, 3.599334816698869e-05, 3.6038367983720883e-05, 3.6083444110410454e-05, 3.6128576617488786e-05, 3.617376557547537e-05, 3.6219011054978086e-05, 3.626431312669295e-05, 3.630967186140438e-05, 3.635508732998555e-05, 3.640055960339801e-05, 3.644608875269231e-05, 3.6491674849007703e-05, 3.6537317963572416e-05, 3.658301816770394e-05, 3.662877553280879e-05, 3.66745901303828e-05, 3.672046203201142e-05, 3.676639130936943e-05, 3.6812378034221276e-05, 3.685842227842136e-05, 3.6904524113913684e-05, 3.695068361273251e-05, 3.6996900847002e-05, 3.7043175888936524e-05, 3.708950881084098e-05, 3.713589968511049e-05, 3.718234858423075e-05, 3.722885558077831e-05, 3.727542074742029e-05, 3.7322044156914696e-05, 3.736872588211076e-05, 3.741546599594862e-05, 3.746226457145964e-05, 3.750912168176675e-05, 3.7556037400084045e-05, 3.7603011799717486e-05, 3.765004495406451e-05, 3.769713693661438e-05, 3.774428782094844e-05, 3.77914976807399e-05, 3.783876658975411e-05, 3.7886094621848886e-05, 3.793348185097421e-05, 3.798092835117258e-05, 3.8028434196579294e-05, 3.807599946142211e-05, 3.812362422002189e-05, 3.817130854679228e-05, 3.821905251623997e-05, 3.8266856202965056e-05, 3.831471968166075e-05, 3.8362643027113676e-05, 3.84106263142042e-05, 3.845866961790615e-05, 3.850677301328714e-05, 3.855493657550887e-05, 3.860316037982683e-05, 3.865144450159068e-05, 3.8699789016244494e-05, 3.874819399932645e-05, 3.879665952646948e-05, 3.8845185673400915e-05, 3.8893772515942805e-05, 3.894242013001223e-05, 3.899112859162102e-05, 3.903989797687611e-05, 3.9088728361979795e-05, 3.91376198232295e-05, 3.9186572437018076e-05, 3.923558627983412e-05, 3.928466142826164e-05, 3.933379795898071e-05, 3.938299594876709e-05, 3.943225547449258e-05, 3.948157661312534e-05, 3.95309594417296e-05, 3.958040403746595e-05, 3.9629910477591733e-05, 3.967947883946071e-05, 3.9729109200523365e-05, 3.9778801638327304e-05, 3.982855623051689e-05, 3.987837305483363e-05, 3.992825218911644e-05, 3.9978193711301356e-05, 4.0028197699422144e-05, 4.0078264231609986e-05, 4.012839338609377e-05, 4.017858524120046e-05, 4.022883987535476e-05, 4.027915736707948e-05, 4.032953779499585e-05, 4.0379981237823234e-05, 4.0430487774379445e-05, 4.04810574835811e-05, 4.053169044444323e-05, 4.058238673608001e-05, 4.063314643770431e-05, 4.068396962862812e-05, 4.073485638826282e-05, 4.078580679611892e-05, 4.0836820931806366e-05, 4.0887898875034894e-05, 4.093904070561373e-05, 4.099024650345193e-05, 4.10415163485587e-05, 4.1092850321043116e-05, 4.1144248501114446e-05, 4.1195710969082504e-05, 4.124723780535726e-05, 4.129882909044955e-05, 4.13504849049707e-05, 4.140220532963285e-05, 4.1453990445249326e-05, 4.15058403327343e-05, 4.155775507310317e-05, 4.1609734747472866e-05, 4.166177943706158e-05, 4.171388922318906e-05, 4.1766064187277014e-05, 4.181830441084868e-05, 4.1870609975529577e-05, 4.192298096304707e-05, 4.197541745523078e-05, 4.2027919534012874e-05, 4.208048728142779e-05, 4.213312077961258e-05, 4.2185820110807224e-05, 4.2238585357354376e-05, 4.229141660169967e-05, 4.2344313926392083e-05, 4.2397277414083615e-05, 4.245030714752967e-05, 4.250340320958934e-05, 4.2556565683225106e-05, 4.2609794651503486e-05, 4.2663090197594674e-05, 4.27164524047729e-05, 4.276988135641678e-05, 4.282337713600898e-05, 4.2876939827136587e-05, 4.293056951349147e-05, 4.298426627886996e-05, 4.303803020717317e-05, 4.3091861382407423e-05, 4.314575988868377e-05, 4.31997258102188e-05, 4.32537592313342e-05, 4.330786023645712e-05, 4.336202891012054e-05, 4.3416265336962965e-05, 4.347056960172873e-05, 4.352494178926842e-05, 4.357938198453851e-05, 4.363389027260174e-05, 4.3688466738627476e-05, 4.374311146789138e-05, 4.3797824545775774e-05, 4.385260605777001e-05, 4.390745608947005e-05, 4.3962374726579245e-05, 4.4017362054907893e-05, 4.407241816037363e-05, 4.412754312900179e-05, 4.4182737046925064e-05, 4.423800000038389e-05, 4.4293332075726784e-05, 4.434873335941007e-05, 4.4404203937998166e-05, 4.445974389816403e-05, 4.45153533266887e-05, 4.4571032310462076e-05, 4.4626780936482516e-05, 4.468259929185716e-05, 4.4738487463802373e-05, 4.4794445539643345e-05, 4.485047360681451e-05, 4.490657175285989e-05, 4.496274006543277e-05, 4.5018978632296065e-05, 4.507528754132272e-05, 4.513166688049532e-05, 4.5188116737906534e-05, 4.524463720175942e-05, 4.530122836036705e-05, 4.53578903021533e-05, 4.5414623115652374e-05, 4.547142688950923e-05, 4.552830171247992e-05, 4.558524767343131e-05, 4.564226486134138e-05, 4.569935336529966e-05, 4.575651327450687e-05, 4.58137446782753e-05, 4.587104766602919e-05, 4.592842232730432e-05, 4.598586875174875e-05, 4.604338702912247e-05, 4.61009772492977e-05, 4.615863950225935e-05, 4.621637387810461e-05, 4.627418046704337e-05, 4.633205935939861e-05, 4.639001064560603e-05, 4.644803441621444e-05, 4.6506130761886153e-05, 4.656429977339665e-05, 4.662254154163492e-05, 4.6680856157603926e-05, 4.673924371242009e-05, 4.679770429731415e-05, 4.68562380036307e-05, 4.691484492282857e-05, 4.6973525146481265e-05, 4.703227876627656e-05, 4.709110587401691e-05, 4.715000656161985e-05, 4.720898092111764e-05, 4.726802904465764e-05, 4.732715102450272e-05, 4.738634695303082e-05, 4.744561692273576e-05, 4.7504961026226796e-05, 4.756437935622902e-05, 4.762387200558374e-05, 4.7683439067248166e-05, 4.774308063429575e-05, 4.7802796799916616e-05, 4.786258765741722e-05, 4.7922453300220676e-05, 4.798239382186726e-05, 4.804240931601395e-05, 4.8102499876434883e-05, 4.8162665597021743e-05, 4.8222906571783315e-05, 4.82832228948463e-05, 4.8343614660454887e-05, 4.8404081962971125e-05, 4.846462489687537e-05, 4.852524355676587e-05, 4.858593803735922e-05, 4.864670843349071e-05, 4.870755484011404e-05, 4.8768477352301626e-05, 4.882947606524508e-05, 4.889055107425474e-05, 4.895170247476048e-05, 4.9012930362311304e-05, 4.9074234832575706e-05, 4.9135615981342095e-05, 4.9197073904518454e-05, 4.925860869813271e-05, 4.932022045833317e-05, 4.938190928138813e-05, 4.94436752636863e-05, 4.950551850173722e-05, 4.956743909217087e-05, 4.962943713173809e-05, 4.969151271731102e-05, 4.975366594588259e-05, 4.9815896914567414e-05, 4.98782057206013e-05, 4.9940592461341684e-05, 5.000305723426804e-05, 5.0065600136981495e-05, 5.012822126720526e-05, 5.019092072278505e-05, 5.025369860168867e-05, 5.0316555002006495e-05, 5.037949002195184e-05, 5.04425037598605e-05, 5.050559631419164e-05, 5.0568767783527295e-05, 5.063201826657281e-05, 5.069534786215726e-05, 5.075875666923305e-05, 5.082224478687638e-05, 5.0885812314287624e-05, 5.0949459350790955e-05, 5.1013185995834797e-05, 5.107699234899223e-05, 5.1140878509960594e-05, 5.120484457856195e-05, 5.1268890654743464e-05, 5.133301683857697e-05, 5.1397223230259814e-05, 5.1461509930114424e-05, 5.152587703858867e-05, 5.1590324656256366e-05, 5.1654852883816825e-05, 5.171946182209535e-05, 5.178415157204357e-05, 5.184892223473917e-05, 5.1913773911386205e-05, 5.1978706703315634e-05, 5.204372071198477e-05, 5.21088160389782e-05, 5.21739927860073e-05, 5.223925105491064e-05, 5.230459094765448e-05, 5.2370012566332315e-05, 5.2435516013165345e-05, 5.250110139050291e-05, 5.2566768800822074e-05, 5.26325183467281e-05, 5.269835013095484e-05, 5.276426425636438e-05, 5.283026082594746e-05, 5.289633994282392e-05, 5.296250171024222e-05, 5.30287462315803e-05, 5.309507361034516e-05, 5.3161483950173245e-05, 5.3227977354830914e-05, 5.329455392821402e-05, 5.33612137743484e-05, 5.3427956997390244e-05, 5.349478370162577e-05, 5.356169399147162e-05, 5.362868797147532e-05, 5.369576574631479e-05, 5.376292742079927e-05, 5.3830173099868774e-05, 5.38975028885946e-05, 5.3964916892179755e-05, 5.403241521595853e-05, 5.409999796539698e-05, 5.416766524609335e-05, 5.423541716377769e-05, 5.430325382431229e-05, 5.437117533369213e-05, 5.443918179804449e-05, 5.4507273323629394e-05, 5.457545001684005e-05, 5.4643711984202354e-05, 5.471205933237586e-05, 5.47804921681532e-05, 5.48490105984606e-05, 5.491761473035832e-05, 5.4986304671040226e-05, 5.505508052783427e-05, 5.5123942408202935e-05, 5.519289041974284e-05, 5.526192467018514e-05, 5.533104526739609e-05, 5.540025231937642e-05, 5.546954593426238e-05, 5.553892622032514e-05, 5.560839328597132e-05, 5.5677947239743426e-05, 5.574758819031942e-05, 5.58173162465132e-05, 5.588713151727507e-05, 5.595703411169131e-05, 5.602702413898464e-05, 5.609710170851468e-05, 5.616726692977755e-05, 5.623751991240633e-05, 5.630786076617151e-05, 5.637828960098049e-05, 5.644880652687855e-05, 5.651941165404829e-05, 5.659010509281014e-05, 5.666088695362281e-05, 5.673175734708287e-05, 5.6802716383925227e-05, 5.687376417502359e-05, 5.694490083139005e-05, 5.701612646417554e-05, 5.708744118467034e-05, 5.71588451043035e-05, 5.7230338334643856e-05, 5.730192098739952e-05, 5.737359317441827e-05, 5.744535500768814e-05, 5.7517206599336887e-05, 5.758914806163255e-05, 5.766117950698388e-05, 5.7733301047939925e-05, 5.7805512797190486e-05, 5.787781486756667e-05, 5.7950207372040356e-05, 5.8022690423724744e-05, 5.8095264135874826e-05, 5.816792862188684e-05, 5.824068399529926e-05, 5.8313530369792276e-05, 5.8386467859188253e-05, 5.8459496577452244e-05, 5.853261663869153e-05, 5.8605828157156125e-05, 5.867913124723923e-05, 5.8752526023476855e-05, 5.882601260054824e-05, 5.889959109327639e-05, 5.897326161662749e-05, 5.9047024285711983e-05, 5.912087921578392e-05, 5.919482652224157e-05, 5.9268866320627806e-05, 5.934299872662972e-05, 5.941722385607912e-05, 5.949154182495298e-05, 5.9565952749373044e-05, 5.96404567456063e-05, 5.9715053930065464e-05, 5.978974441930853e-05, 5.986452833003932e-05, 5.993940577910791e-05, 6.001437688351011e-05, 6.008944176038852e-05, 6.016460052703189e-05, 6.023985330087573e-05, 6.031520019950271e-05, 6.039064134064228e-05, 6.046617684217111e-05, 6.054180682211367e-05, 6.0617531398641716e-05, 6.069335069007479e-05, 6.076926481488077e-05, 6.084527389167529e-05, 6.0921378039222744e-05, 6.0997577376435784e-05, 6.107387202237578e-05, 6.115026209625333e-05, 6.122674771742785e-05, 6.130332900540803e-05, 6.138000607985237e-05, 6.145677906056869e-05, 6.153364806751469e-05, 6.161061322079841e-05, 6.168767464067784e-05, 6.176483244756134e-05, 6.184208676200819e-05, 6.191943770472811e-05, 6.199688539658212e-05, 6.20744299585822e-05, 6.21520715118916e-05, 6.222981017782548e-05, 6.230764607785044e-05, 6.238557933358496e-05, 6.246361006679999e-05, 6.254173839941846e-05, 6.261996445351578e-05, 6.269828835132042e-05, 6.277671021521326e-05, 6.285523016772867e-05, 6.293384833155403e-05, 6.30125648295301e-05, 6.309137978465163e-05, 6.317029332006692e-05, 6.324930555907826e-05, 6.332841662514252e-05, 6.340762664187065e-05, 6.348693573302818e-05, 6.356634402253582e-05, 6.364585163446894e-05, 6.372545869305807e-05, 6.380516532268949e-05, 6.388497164790459e-05, 6.3964877793401e-05, 6.404488388403198e-05, 6.412499004480693e-05, 6.420519640089201e-05, 6.428550307760952e-05, 6.436591020043854e-05, 6.444641789501547e-05, 6.452702628713347e-05, 6.460773550274305e-05, 6.468854566795262e-05, 6.476945690902784e-05, 6.485046935239278e-05, 6.493158312462928e-05, 6.501279835247749e-05, 6.509411516283647e-05, 6.517553368276364e-05, 6.525705403947534e-05, 6.533867636034737e-05, 6.54204007729145e-05, 6.550222740487104e-05, 6.558415638407133e-05, 6.566618783852932e-05, 6.574832189641905e-05, 6.583055868607524e-05, 6.591289833599265e-05, 6.599534097482722e-05, 6.607788673139552e-05, 6.616053573467515e-05, 6.624328811380545e-05, 6.63261439980869e-05, 6.640910351698171e-05, 6.649216680011441e-05, 6.657533397727126e-05, 6.665860517840087e-05, 6.674198053361476e-05, 6.682546017318669e-05, 6.690904422755385e-05, 6.699273282731623e-05, 6.707652610323718e-05, 6.716042418624391e-05, 6.72444272074271e-05, 6.732853529804137e-05, 6.741274858950587e-05, 6.749706721340374e-05, 6.758149130148275e-05, 6.766602098565578e-05, 6.775065639800037e-05, 6.783539767075925e-05, 6.792024493634092e-05, 6.800519832731899e-05, 6.80902579764334e-05, 6.817542401658975e-05, 6.826069658085987e-05, 6.834607580248243e-05, 6.843156181486233e-05, 6.851715475157135e-05, 6.860285474634874e-05, 6.868866193310063e-05, 6.877457644590065e-05, 6.886059841899047e-05, 6.894672798677922e-05, 6.903296528384458e-05, 6.911931044493225e-05, 6.920576360495643e-05, 6.929232489900044e-05, 6.937899446231622e-05, 6.946577243032482e-05, 6.95526589386171e-05, 6.963965412295314e-05, 6.972675811926278e-05, 6.981397106364629e-05, 6.990129309237378e-05, 6.998872434188585e-05, 7.007626494879405e-05, 7.016391504988036e-05, 7.025167478209835e-05, 7.033954428257247e-05, 7.042752368859872e-05, 7.051561313764519e-05, 7.060381276735154e-05, 7.069212271552956e-05, 7.078054312016384e-05, 7.086907411941115e-05, 7.095771585160106e-05, 7.104646845523655e-05, 7.113533206899333e-05, 7.122430683172106e-05, 7.131339288244272e-05, 7.140259036035513e-05, 7.149189940482964e-05, 7.15813201554115e-05, 7.167085275182056e-05, 7.176049733395174e-05, 7.18502540418746e-05, 7.194012301583391e-05, 7.203010439625018e-05, 7.212019832371922e-05, 7.221040493901269e-05, 7.23007243830787e-05, 7.239115679704114e-05, 7.248170232220092e-05, 7.257236110003534e-05, 7.266313327219862e-05, 7.275401898052255e-05, 7.284501836701591e-05, 7.293613157386519e-05, 7.302735874343501e-05, 7.311870001826773e-05, 7.321015554108397e-05, 7.330172545478326e-05, 7.339340990244338e-05, 7.348520902732151e-05, 7.35771229728537e-05, 7.366915188265538e-05, 7.3761295900522e-05, 7.385355517042847e-05, 7.394592983652978e-05, 7.403842004316164e-05, 7.413102593483987e-05, 7.422374765626109e-05, 7.431658535230325e-05, 7.440953916802514e-05, 7.450260924866699e-05, 7.459579573965108e-05, 7.468909878658105e-05, 7.478251853524322e-05, 7.48760551316058e-05, 7.496970872181963e-05, 7.506347945221871e-05, 7.515736746931973e-05, 7.525137291982256e-05, 7.534549595061103e-05, 7.543973670875225e-05, 7.553409534149728e-05, 7.56285719962818e-05, 7.57231668207253e-05, 7.581787996263251e-05, 7.591271156999259e-05, 7.60076617909798e-05, 7.610273077395415e-05, 7.619791866746083e-05, 7.62932256202308e-05, 7.638865178118145e-05, 7.648419729941604e-05, 7.657986232422436e-05, 7.667564700508325e-05, 7.67715514916562e-05, 7.686757593379384e-05, 7.696372048153465e-05, 7.705998528510423e-05, 7.715637049491664e-05, 7.725287626157363e-05, 7.734950273586537e-05, 7.744625006877102e-05, 7.754311841145814e-05, 7.764010791528342e-05, 7.773721873179326e-05, 7.783445101272318e-05, 7.79318049099985e-05, 7.802928057573499e-05, 7.812687816223812e-05, 7.822459782200441e-05, 7.832243970772071e-05, 7.842040397226484e-05, 7.851849076870628e-05, 7.861670025030553e-05, 7.871503257051476e-05, 7.881348788297854e-05, 7.891206634153318e-05, 7.901076810020738e-05, 7.910959331322296e-05, 7.920854213499418e-05, 7.930761472012848e-05, 7.940681122342703e-05, 7.950613179988415e-05, 7.960557660468851e-05, 7.970514579322253e-05, 7.980483952106291e-05, 7.990465794398143e-05, 8.000460121794423e-05, 8.010466949911258e-05, 8.020486294384345e-05, 8.0305181708689e-05, 8.040562595039716e-05, 8.050619582591236e-05, 8.060689149237479e-05, 8.070771310712172e-05, 8.080866082768679e-05, 8.09097348118007e-05, 8.101093521739186e-05, 8.111226220258578e-05, 8.121371592570575e-05, 8.131529654527353e-05, 8.141700422000868e-05, 8.151883910882938e-05, 8.162080137085289e-05, 8.172289116539516e-05, 8.182510865197134e-05, 8.19274539902966e-05, 8.202992734028523e-05, 8.213252886205218e-05, 8.223525871591218e-05, 8.233811706238051e-05, 8.244110406217364e-05, 8.254421987620864e-05, 8.264746466560384e-05, 8.275083859167956e-05, 8.28543418159574e-05, 8.295797450016104e-05, 8.306173680621687e-05, 8.31656288962532e-05, 8.326965093260176e-05, 8.337380307779682e-05, 8.347808549457602e-05, 8.358249834588093e-05, 8.368704179485653e-05, 8.379171600485179e-05, 8.389652113942051e-05, 8.40014573623206e-05, 8.410652483751473e-05, 8.421172372917118e-05, 8.431705420166311e-05, 8.442251641956923e-05, 8.452811054767457e-05, 8.463383675096969e-05, 8.473969519465212e-05, 8.484568604412551e-05, 8.495180946500046e-05, 8.505806562309514e-05, 8.516445468443466e-05, 8.52709768152518e-05, 8.537763218198771e-05, 8.548442095129128e-05, 8.559134329001982e-05, 8.569839936523982e-05, 8.580558934422611e-05, 8.591291339446336e-05, 8.602037168364527e-05, 8.612796437967528e-05, 8.623569165066731e-05, 8.634355366494509e-05, 8.64515505910429e-05, 8.655968259770622e-05, 8.666794985389124e-05, 8.677635252876536e-05, 8.688489079170813e-05, 8.699356481231043e-05, 8.71023747603753e-05, 8.72113208059186e-05, 8.732040311916825e-05, 8.742962187056571e-05, 8.753897723076511e-05, 8.76484693706341e-05, 8.775809846125447e-05, 8.786786467392154e-05, 8.797776818014488e-05, 8.808780915164904e-05, 8.819798776037295e-05, 8.83083041784705e-05, 8.841875857831147e-05, 8.852935113248055e-05, 8.864008201377892e-05, 8.87509513952235e-05, 8.886195945004752e-05, 8.897310635170142e-05, 8.908439227385209e-05, 8.919581739038365e-05, 8.93073818753982e-05, 8.941908590321509e-05, 8.953092964837174e-05, 8.964291328562435e-05, 8.97550369899472e-05, 8.986730093653345e-05, 8.997970530079585e-05, 9.009225025836593e-05, 9.020493598509553e-05, 9.031776265705597e-05, 9.043073045053876e-05, 9.054383954205644e-05, 9.065709010834183e-05, 9.07704823263488e-05, 9.088401637325303e-05, 9.099769242645134e-05, 9.111151066356241e-05, 9.122547126242758e-05, 9.133957440111001e-05, 9.145382025789619e-05, 9.156820901129513e-05, 9.16827408400391e-05, 9.179741592308447e-05, 9.191223443961088e-05, 9.202719656902215e-05, 9.214230249094694e-05, 9.225755238523812e-05, 9.23729464319735e-05, 9.248848481145665e-05, 9.260416770421612e-05, 9.271999529100631e-05, 9.283596775280818e-05, 9.295208527082838e-05, 9.306834802650089e-05, 9.318475620148614e-05, 9.330130997767172e-05, 9.34180095371733e-05, 9.353485506233379e-05, 9.36518467357242e-05, 9.376898474014431e-05, 9.38862692586222e-05, 9.40037004744147e-05, 9.412127857100851e-05, 9.423900373211907e-05, 9.435687614169228e-05, 9.447489598390368e-05, 9.459306344315909e-05, 9.471137870409556e-05, 9.482984195158051e-05, 9.494845337071264e-05, 9.506721314682265e-05, 9.518612146547255e-05, 9.530517851245643e-05, 9.542438447380128e-05, 9.55437395357663e-05, 9.56632438848436e-05, 9.578289770775912e-05, 9.590270119147163e-05, 9.602265452317441e-05, 9.614275789029443e-05, 9.626301148049305e-05, 9.638341548166685e-05, 9.650397008194696e-05, 9.662467546969979e-05, 9.674553183352786e-05, 9.68665393622691e-05, 9.698769824499764e-05, 9.710900867102459e-05, 9.723047082989717e-05, 9.735208491140038e-05, 9.747385110555606e-05, 9.759576960262377e-05, 9.77178405931015e-05, 9.784006426772504e-05, 9.796244081746873e-05, 9.80849704335463e-05, 9.820765330741013e-05, 9.833048963075204e-05, 9.845347959550421e-05, 9.857662339383826e-05, 9.869992121816624e-05, 9.88233732611414e-05, 9.894697971565719e-05, 9.90707407748491e-05, 9.919465663209363e-05, 9.931872748100915e-05, 9.944295351545674e-05, 9.956733492953942e-05, 9.969187191760302e-05, 9.981656467423694e-05, 9.994141339427348e-05, 0.00010006641827278861, 0.00010019157950510282, 0.00010031689728678022, 0.0001004423718136302, 0.00010056800328170659, 0.00010069379188730839, 0.00010081973782698068, 0.00010094584129751382, 0.00010107210249594436, 0.00010119852161955579, 0.00010132509886587784, 0.00010145183443268731, 0.00010157872851800888, 0.00010170578132011444, 0.00010183299303752383, 0.00010196036386900573, 0.00010208789401357674, 0.0001022155836705031, 0.00010234343303929974, 0.00010247144231973114, 0.0001025996117118122, 0.00010272794141580743, 0.00010285643163223183, 0.00010298508256185178, 0.00010311389440568419, 0.00010324286736499738, 0.00010337200164131204, 0.0001035012974364001, 0.00010363075495228666, 0.0001037603743912489, 0.00010389015595581706, 0.00010402009984877521, 0.00010415020627316055, 0.0001042804754322642, 0.0001044109075296321, 0.00010454150276906427, 0.00010467226135461559, 0.00010480318349059676, 0.00010493426938157347, 0.00010506551923236722, 0.00010519693324805636, 0.00010532851163397491, 0.0001054602545957145, 0.00010559216233912336, 0.00010572423507030715, 0.00010585647299562995, 0.00010598887632171334, 0.00010612144525543737, 0.00010625418000394137, 0.00010638708077462326, 0.00010652014777514031, 0.00010665338121341012, 0.00010678678129760958, 0.00010692034823617674, 0.00010705408223780978, 0.00010718798351146788, 0.00010732205226637223, 0.00010745628871200509, 0.00010759069305811072, 0.00010772526551469633, 0.00010786000629203124, 0.00010799491560064773, 0.000108129993651342, 0.00010826524065517336, 0.00010840065682346508, 0.00010853624236780532, 0.00010867199750004615, 0.00010880792243230539, 0.00010894401737696555, 0.00010908028254667485, 0.000109216718154348, 0.00010935332441316549, 0.00010949010153657443, 0.0001096270497382895, 0.00010976416923229208, 0.00010990146023283123, 0.00011003892295442454, 0.00011017655761185716, 0.00011031436442018366, 0.00011045234359472702, 0.00011059049535107951, 0.00011072881990510368, 0.0001108673174729315, 0.00011100598827096521, 0.00011114483251587837, 0.00011128385042461498, 0.00011142304221439029, 0.00011156240810269194, 0.00011170194830727894, 0.00011184166304618271, 0.00011198155253770793, 0.00011212161700043159, 0.00011226185665320481, 0.0001124022717151519, 0.0001125428624056712, 0.00011268362894443611, 0.00011282457155139417, 0.00011296569044676805, 0.00011310698585105641, 0.0001132484579850332, 0.00011339010706974841, 0.00011353193332652919, 0.0001136739369769787, 0.00011381611824297807, 0.00011395847734668534, 0.00011410101451053645, 0.00011424372995724615, 0.00011438662390980714, 0.00011452969659149106, 0.00011467294822584942, 0.00011481637903671271, 0.0001149599892481914, 0.00011510377908467687, 0.0001152477487708406, 0.00011539189853163502, 0.00011553622859229457, 0.00011568073917833459, 0.00011582543051555334, 0.00011597030283003083, 0.00011611535634812986, 0.00011626059129649702, 0.00011640600790206175, 0.0001165516063920373, 0.00011669738699392174, 0.00011684334993549712, 0.00011698949544483032, 0.00011713582375027417, 0.00011728233508046626, 0.00011742902966433097, 0.00011757590773107843, 0.00011772296951020543, 0.00011787021523149644, 0.00011801764512502274, 0.00011816525942114336, 0.00011831305835050606, 0.0001184610421440465, 0.0001186092110329892, 0.00011875756524884846, 0.00011890610502342759, 0.00011905483058881982, 0.00011920374217740926, 0.00011935284002186989, 0.00011950212435516754, 0.00011965159541055883, 0.00011980125342159207, 0.00011995109862210837, 0.00012010113124624065, 0.00012025135152841475, 0.00012040175970335028, 0.00012055235600605986, 0.00012070314067184998, 0.0001208541139363222, 0.00012100527603537179, 0.00012115662720519005, 0.00012130816768226296, 0.00012145989770337232, 0.00012161181750559677, 0.00012176392732631084, 0.0001219162274031859, 0.00012206871797419129, 0.00012222139927759335, 0.00012237427155195645, 0.00012252733503614394, 0.00012268058996931736, 0.00012283403659093736, 0.00012298767514076474, 0.0001231415058588593, 0.00012329552898558208, 0.00012344974476159395, 0.00012360415342785693, 0.000123758755225635, 0.0001239135503964933, 0.00012406853918229906, 0.00012422372182522277, 0.0001243790985677371, 0.00012453466965261804, 0.00012469043532294585, 0.000124846395822104, 0.00012500255139378125, 0.0001251589022819705, 0.00012531544873096978, 0.00012547219098538344, 0.00012562912929012105, 0.00012578626389039848, 0.00012594359503173907, 0.00012610112295997254, 0.00012625884792123604, 0.00012641677016197534, 0.00012657488992894373, 0.00012673320746920316, 0.0001268917230301253, 0.00012705043685939021, 0.00012720934920498883, 0.00012736846031522145, 0.000127527770438699, 0.00012768727982434403, 0.00012784698872138976, 0.00012800689737938115, 0.00012816700604817598, 0.00012832731497794384, 0.00012848782441916723, 0.00012864853462264263, 0.00012880944583947931, 0.00012897055832110157, 0.00012913187231924746, 0.00012929338808596988, 0.0001294551058736377, 0.0001296170259349348, 0.00012977914852286106, 0.00012994147389073352, 0.0001301040022921854, 0.00013026673398116705, 0.00013042966921194733, 0.00013059280823911226, 0.0001307561513175664, 0.00013091969870253383, 0.00013108345064955686, 0.00013124740741449843, 0.00013141156925354082, 0.00013157593642318665, 0.00013174050918026014, 0.00013190528778190603, 0.00013207027248559068, 0.0001322354635491032, 0.0001324008612305544, 0.000132566465788378, 0.00013273227748133157, 0.0001328982965684955, 0.0001330645233092751, 0.00013323095796339944, 0.00013339760079092243, 0.00013356445205222407, 0.0001337315120080092, 0.00013389878091930882, 0.0001340662590474811, 0.0001342339466542104, 0.00013440184400150847, 0.00013456995135171533, 0.00013473826896749858, 0.00013490679711185424, 0.0001350755360481081, 0.00013524448603991426, 0.0001354136473512576, 0.0001355830202464525, 0.0001357526049901439, 0.0001359224018473084, 0.00013609241108325347, 0.00013626263296361832, 0.00013643306775437512, 0.00013660371572182803, 0.00013677457713261434, 0.00013694565225370547, 0.00013711694135240586, 0.00013728844469635526, 0.00013746016255352742, 0.00013763209519223132, 0.00013780424288111217, 0.0001379766058891506, 0.00013814918448566352, 0.00013832197894030556, 0.00013849498952306783, 0.00013866821650427918, 0.00013884166015460726, 0.00013901532074505759, 0.0001391891985469746, 0.0001393632938320429, 0.00013953760687228595, 0.00013971213794006836, 0.00013988688730809474, 0.00014006185524941073, 0.0001402370420374043, 0.0001404124479458046, 0.0001405880732486831, 0.00014076391822045493, 0.0001409399831358776, 0.00014111626827005235, 0.00014129277389842524, 0.00014146950029678585, 0.0001416464477412697, 0.00014182361650835694, 0.0001420010068748736, 0.00014217861911799265, 0.00014235645351523297, 0.00014253451034446064, 0.00014271278988388996, 0.00014289129241208253, 0.0001430700182079483, 0.0001432489675507469, 0.0001434281407200864, 0.00014360753799592472, 0.00014378715965857064, 0.0001439670059886825, 0.0001441470772672708, 0.00014432737377569665, 0.00014450789579567312, 0.0001446886436092664, 0.00014486961749889482, 0.00014505081774732976, 0.0001452322446376972, 0.00014541389845347644, 0.00014559577947850132, 0.00014577788799696154, 0.00014596022429340115, 0.00014614278865272116, 0.00014632558136017817, 0.0001465086027013856, 0.00014669185296231477, 0.00014687533242929409, 0.00014705904138900992, 0.0001472429801285081, 0.0001474271489351927, 0.00014761154809682722, 0.00014779617790153596, 0.00014798103863780275, 0.00014816613059447222, 0.00014835145406075117, 0.000148537009326207, 0.0001487227966807704, 0.0001489088164147339, 0.00014909506881875305, 0.0001492815541838478, 0.00014946827280140135, 0.0001496552249631613, 0.000149842410961241, 0.00015002983108811826, 0.00015021748563663688, 0.00015040537490000762, 0.000150593499171807, 0.0001507818587459797, 0.0001509704539168374, 0.0001511592849790598, 0.000151348352227696, 0.00015153765595816334, 0.00015172719646624867, 0.00015191697404810963, 0.0001521069890002734, 0.00015229724161963822, 0.0001524877322034743, 0.00015267846104942295, 0.00015286942845549784, 0.000153060634720086, 0.00015325208014194683, 0.0001534437650202143, 0.00015363568965439585, 0.00015382785434437345, 0.00015402025939040506, 0.00015421290509312329, 0.00015440579175353682, 0.00015459891967303167, 0.00015479228915336993, 0.00015498590049669125, 0.00015517975400551387, 0.00015537384998273344, 0.0001555681887316255, 0.00015576277055584408, 0.00015595759575942307, 0.00015615266464677745, 0.00015634797752270215, 0.0001565435346923732, 0.00015673933646134937, 0.0001569353831355706, 0.0001571316750213597, 0.00015732821242542323, 0.00015752499565485067, 0.0001577220250171156, 0.000157919300820077, 0.00015811682337197778, 0.00015831459298144753, 0.000158512609957501, 0.00015871087460953953, 0.00015890938724735218, 0.00015910814818111474, 0.00015930715772139093, 0.00015950641617913373, 0.0001597059238656843, 0.0001599056810927731, 0.00016010568817252142, 0.0001603059454174398, 0.0001605064531404308, 0.00016070721165478748, 0.0001609082212741948, 0.00016110948231273084, 0.0001613109950848658, 0.00016151275990546312, 0.00016171477708978093, 0.00016191704695347084, 0.0001621195698125793, 0.0001623223459835488, 0.00016252537578321697, 0.00016272865952881758, 0.00016293219753798208, 0.0001631359901287381, 0.00016334003761951218, 0.00016354434032912827, 0.00016374889857680912, 0.0001639537126821776, 0.00016415878296525548, 0.00016436410974646486, 0.00016456969334662945, 0.00016477553408697338, 0.00016498163228912256, 0.00016518798827510603, 0.0001653946023673545, 0.0001656014748887031, 0.00016580860616238993, 0.00016601599651205732, 0.00016622364626175335, 0.00016643155573593045, 0.00016663972525944696, 0.0001668481551575684, 0.00016705684575596622, 0.00016726579738071922, 0.00016747501035831495, 0.00016768448501564841, 0.00016789422168002357, 0.00016810422067915456, 0.00016831448234116422, 0.00016852500699458714, 0.00016873579496836774, 0.000168946846591862, 0.00016915816219483873, 0.00016936974210747833, 0.00016958158666037412, 0.00016979369618453388, 0.00017000607101137844, 0.00017021871147274327, 0.0001704316179008797, 0.00017064479062845348, 0.00017085822998854763, 0.0001710719363146609, 0.00017128590994070918, 0.00017150015120102687, 0.0001717146604303657, 0.0001719294379638961, 0.0001721444841372086, 0.00017235979928631259, 0.00017257538374763773, 0.00017279123785803537, 0.00017300736195477733, 0.00017322375637555723, 0.00017344042145849204, 0.00017365735754212034, 0.00017387456496540543, 0.00017409204406773366, 0.00017430979518891584, 0.00017452781866918881, 0.00017474611484921394, 0.00017496468407007877, 0.00017518352667329838, 0.000175402643000814, 0.00017562203339499476, 0.0001758416981986387, 0.00017606163775497153, 0.0001762818524076495, 0.00017650234250075772, 0.0001767231083788117, 0.00017694415038675877, 0.00017716546886997685, 0.00017738706417427574, 0.00017760893664589883, 0.00017783108663152155, 0.000178053514478253, 0.00017827622053363736, 0.00017849920514565257, 0.00017872246866271183, 0.00017894601143366505, 0.0001791698338077972, 0.00017939393613483149, 0.00017961831876492747, 0.00017984298204868273, 0.00018006792633713437, 0.00018029315198175755, 0.00018051865933446702, 0.00018074444874761878, 0.00018097052057400848, 0.00018119687516687308, 0.0001814235128798923, 0.00018165043406718698, 0.0001818776390833222, 0.00018210512828330545, 0.0001823329020225884, 0.00018256096065706818, 0.0001827893045430861, 0.00018301793403742924, 0.0001832468494973319, 0.00018347605128047416, 0.00018370553974498356, 0.0001839353152494365, 0.00018416537815285695, 0.0001843957288147179, 0.00018462636759494295, 0.00018485729485390463, 0.00018508851095242745, 0.0001853200162517863, 0.00018555181111370788, 0.0001857838959003724, 0.0001860162709744121, 0.0001862489366989127, 0.00018648189343741512, 0.00018671514155391397, 0.00018694868141285918, 0.00018718251337915742, 0.0001874166378181706, 0.0001876510550957188, 0.0001878857655780788, 0.00018812076963198537, 0.00018835606762463312, 0.00018859165992367487, 0.00018882754689722325, 0.00018906372891385243, 0.0001893002063425965, 0.00018953697955295117, 0.00018977404891487527, 0.0001900114147987894, 0.0001902490775755775, 0.00019048703761658837, 0.00019072529529363388, 0.00019096385097899248, 0.00019120270504540706, 0.00019144185786608683, 0.0001916813098147088, 0.00019192106126541639, 0.00019216111259282088, 0.00019240146417200325, 0.00019264211637851252, 0.00019288306958836746, 0.00019312432417805823, 0.0001933658805245445, 0.00019360773900525878, 0.0001938498999981046, 0.00019409236388145832, 0.0001943351310341704, 0.00019457820183556426, 0.00019482157666543773, 0.00019506525590406475, 0.00019530923993219375, 0.00019555352913104958, 0.0001957981238823348, 0.0001960430245682284, 0.00019628823157138747, 0.00019653374527494862, 0.0001967795660625264, 0.00019702569431821653, 0.00019727213042659413, 0.00019751887477271533, 0.00019776592774211886, 0.00019801328972082473, 0.00019826096109533574, 0.00019850894225263913, 0.00019875723358020518, 0.0001990058354659888, 0.00019925474829843114, 0.0001995039724664579, 0.0001997535083594826, 0.00020000335636740475, 0.00020025351688061154, 0.00020050399028997956, 0.0002007547769868732, 0.00020100587736314639, 0.0002012572918111442, 0.0002015090207237014, 0.00020176106449414414, 0.00020201342351629153, 0.00020226609818445426, 0.00020251908889343622, 0.00020277239603853616, 0.00020302602001554576, 0.00020327996122075333, 0.00020353422005094164, 0.00020378879690338984, 0.00020404369217587502, 0.00020429890626667076, 0.0002045544395745487, 0.0002048102924987805, 0.00020506646543913597, 0.00020532295879588505, 0.0002055797729697994, 0.00020583690836215046, 0.00020609436537471308, 0.00020635214440976353, 0.00020661024587008121, 0.00020686867015895052, 0.00020712741768015903, 0.0002073864888379994, 0.00020764588403727116, 0.00020790560368327897, 0.00020816564818183447, 0.00020842601793925796, 0.00020868671336237693, 0.0002089477348585276, 0.00020920908283555682, 0.00020947075770182022, 0.00020973275986618548, 0.0002099950897380307, 0.00021025774772724602, 0.00021052073424423527, 0.00021078404969991464, 0.00021104769450571416, 0.00021131166907357969, 0.0002115759738159711, 0.0002118406091458643, 0.00021210557547675273, 0.00021237087322264564, 0.00021263650279807153, 0.00021290246461807633, 0.000213168759098225, 0.00021343538665460354, 0.00021370234770381712, 0.0002139696426629921, 0.00021423727194977768, 0.00021450523598234424, 0.0002147735351793853, 0.00021504216996011912, 0.00021531114074428728, 0.00021558044795215626, 0.00021585009200451944, 0.00021612007332269488, 0.00021639039232852924, 0.00021666104944439564, 0.0002169320450931955, 0.00021720337969836033, 0.00021747505368385013, 0.00021774706747415518, 0.00021801942149429784, 0.00021829211616983095, 0.0002185651519268396, 0.00021883852919194296, 0.00021911224839229234, 0.00021938630995557481, 0.0002196607143100112, 0.000219935461884358, 0.00022021055310790914, 0.00022048598841049432, 0.00022076176822248084, 0.00022103789297477555, 0.00022131436309882294, 0.00022159117902660735, 0.00022186834119065446, 0.00022214585002402982, 0.00022242370596034064, 0.0002227019094337377, 0.00022298046087891311, 0.00022325936073110445, 0.00022353860942609231, 0.0002238182074002025, 0.0002240981550903077, 0.00022437845293382582, 0.0002246591013687219, 0.00022494010083350997, 0.00022522145176725132, 0.00022550315460955652, 0.00022578520980058708, 0.0002260676177810535, 0.00022635037899221906, 0.00022663349387589784, 0.00022691696287445654, 0.0002272007864308163, 0.00022748496498845106, 0.0002277694989913895, 0.00022805438888421687, 0.00022833963511207327, 0.00022862523812065556, 0.00022891119835621935, 0.00022919751626557713, 0.00022948419229610034, 0.00022977122689572105, 0.00023005862051293018, 0.00023034637359678104, 0.00023063448659688753, 0.0002309229599634258, 0.00023121179414713644, 0.00023150098959932245, 0.00023179054677185143, 0.0002320804661171573, 0.00023237074808823868, 0.00023266139313866084, 0.0002329524017225575, 0.00023324377429462885, 0.0002335355113101454, 0.00023382761322494585, 0.00023412008049543916, 0.00023441291357860627, 0.00023470611293199855, 0.00023499967901373964, 0.00023529361228252738, 0.00023558791319763222, 0.0002358825822188989, 0.00023617761980674872, 0.00023647302642217755, 0.00023676880252675788, 0.0002370649485826407, 0.00023736146505255352, 0.00023765835239980418, 0.00023795561108827884, 0.00023825324158244378, 0.00023855124434734763, 0.00023884961984861928, 0.0002391483685524701, 0.0002394474909256959, 0.00023974698743567497, 0.00024004685855037025, 0.00024034710473833128, 0.00024064772646869195, 0.00024094872421117462, 0.00024125009843608785, 0.00024155184961432858, 0.0002418539782173839, 0.0002421564847173294, 0.00024245936958683107, 0.00024276263329914752, 0.00024306627632812787, 0.000243370299148214, 0.00024367470223444248, 0.00024397948606244278, 0.0002442846511084393, 0.0002445901978492533, 0.0002448961267623007, 0.0002452024383255965, 0.00024550913301775207, 0.00024581621131797743, 0.0002461236737060835, 0.00024643152066247974, 0.00024673975266817675, 0.0002470483702047879, 0.00024735737375452784, 0.0002476667638002141, 0.0002479765408252696, 0.0002482867053137202, 0.0002485972577501988, 0.00024890819861994324, 0.0002492195284087982, 0.0002495312476032174, 0.00024984335669026177, 0.00025015585615760136, 0.00025046874649351756, 0.0002507820281869011, 0.0002510957017272542, 0.0002514097676046929, 0.00025172422630994457, 0.0002520390783343506, 0.00025235432416986824, 0.0002526699643090683, 0.0002529859992451395, 0.00025330242947188596, 0.0002536192554837295, 0.00025393647777571186, 0.00025425409684349235, 0.0002545721131833505, 0.0002548905272921877, 0.00025520933966752566, 0.0002555285508075083, 0.00025584816121090404, 0.00025616817137710324, 0.00025648858180612284, 0.00025680939299860364, 0.0002571306054558128, 0.0002574522196796458, 0.00025777423617262443, 0.00025809665543789903, 0.0002584194779792507, 0.00025874270430108936, 0.0002590663349084556, 0.00025939037030702335, 0.00025971481100309744, 0.0002600396575036161, 0.00026036491031615304, 0.0002606905699489148, 0.00026101663691074564, 0.0002613431117111247, 0.00026166999486016855, 0.0002619972868686331, 0.00026232498824791165, 0.00026265309951003726, 0.00026298162116768475, 0.0002633105537341688, 0.0002636398977234462, 0.00026396965365011783, 0.0002642998220294266, 0.0002646304033772615, 0.0002649613982101555, 0.0002652928070452877, 0.0002656246304004853, 0.0002659568687942219, 0.00026628952274561975, 0.00026662259277445143, 0.0002669560794011386, 0.0002672899831467537, 0.00026762430453302233, 0.0002679590440823212, 0.0002682942023176805, 0.00026862977976278596, 0.0002689657769419765, 0.00026930219438024873, 0.0002696390326032544, 0.00026997629213730296, 0.0002703139735093634, 0.0002706520772470624, 0.00027099060387868667, 0.0002713295539331852, 0.00027166892794016685, 0.0002720087264299032, 0.0002723489499333305, 0.00027268959898204696, 0.0002730306741083178, 0.00027337217584507247, 0.000273714104725907, 0.0002740564612850864, 0.0002743992460575423, 0.00027474245957887546, 0.00027508610238535813, 0.00027543017501393174, 0.00027577467800220934, 0.00027611961188847795, 0.0002764649772116963, 0.00027681077451149726, 0.00027715700432819025, 0.0002775036672027584, 0.0002778507636768635, 0.00027819829429284336, 0.00027854625959371416, 0.0002788946601231727, 0.0002792434964255945, 0.00027959276904603573, 0.000279942478530236, 0.0002802926254246159, 0.0002806432102762796, 0.0002809942336330169, 0.00028134569604330097, 0.00028169759805629277, 0.0002820499402218389, 0.0002824027230904735, 0.0002827559472134209, 0.00028310961314259337, 0.00028346372143059345, 0.0002838182726307164, 0.0002841732672969481, 0.0002845287059839673, 0.00028488458924714793, 0.0002852409176425573, 0.00028559769172695795, 0.00028595491205781056, 0.00028631257919327086, 0.000286670693692195, 0.0002870292561141363, 0.0002873882670193482, 0.0002877477269687863, 0.00028810763652410633, 0.0002884679962476665, 0.00028882880670253006, 0.0002891900684524628, 0.00028955178206193586, 0.0002899139480961278, 0.0002902765671209221, 0.0002906396397029121, 0.00029100316640939827, 0.00029136714780839064, 0.0002917315844686113, 0.000292096476959492, 0.0002924618258511769, 0.0002928276317145246, 0.00029319389512110655, 0.0002935606166432087, 0.00029392779685383463, 0.00029429543632670293, 0.00029466353563624984, 0.00029503209535763165, 0.000295401116066722, 0.00029577059834011676, 0.00029614054275513166, 0.0002965109498898043, 0.000296881820322897, 0.0002972531546338944, 0.0002976249534030058, 0.000297997217211168, 0.0002983699466400427, 0.0002987431422720192, 0.00029911680469021685, 0.00029949093447848214, 0.000299865532221394, 0.000300240598504261, 0.00030061613391312367, 0.00030099213903475727, 0.00030136861445666935, 0.0003017455607671023, 0.00030212297855503593, 0.00030250086841018494, 0.0003028792309230019, 0.0003032580666846793, 0.00030363737628714765, 0.00030401716032307764, 0.00030439741938588304, 0.0003047781540697176, 0.00030515936496948047, 0.00030554105268081316, 0.0003059232178001023, 0.00030630586092448203, 0.0003066889826518318, 0.0003070725835807788, 0.00030745666431070064, 0.00030784122544172307, 0.0003082262675747223, 0.00030861179131132785, 0.0003089977972539196, 0.00030938428600563297, 0.00030977125817035616, 0.0003101587143527327, 0.0003105466551581641, 0.00031093508119280734, 0.0003113239930635777, 0.00031171339137815105, 0.00031210327674496184, 0.0003124936497732055, 0.0003128845110728411, 0.0003132758612545889, 0.0003136677009299331, 0.0003140600307111243, 0.0003144528512111769, 0.000314846163043874, 0.00031523996682376496, 0.00031563426316616764, 0.0003160290526871713, 0.0003164243360036341, 0.0003168201137331857, 0.00031721638649423, 0.00031761315490594274, 0.0003180104195882741, 0.00031840818116195133, 0.00031880644024847584, 0.00031920519747012866, 0.00031960445344996743, 0.00032000420881182924, 0.00032040446418033294, 0.0003208052201808772, 0.00032120647743964255, 0.0003216082365835949, 0.00032201049824048236, 0.00032241326303883823, 0.00032281653160798373, 0.0003232203045780256, 0.00032362458257985854, 0.0003240293662451682, 0.00032443465620642797, 0.0003248404530969046, 0.0003252467575506553, 0.0003256535702025303, 0.00032606089168817553, 0.00032646872264403034, 0.00032687706370733015, 0.0003272859155161091, 0.0003276952787091977, 0.00032810515392622526, 0.0003285155418076232, 0.00032892644299462146, 0.0003293378581292544, 0.0003297497878543577, 0.000330162232813571, 0.00033057519365134084, 0.000330988671012918, 0.0003314026655443604, 0.00033181717789253576, 0.000332232208705119, 0.0003326477586305954, 0.0003330638283182629, 0.0003334804184182299, 0.00033389752958141794, 0.0003343151624595645, 0.0003347333177052198, 0.0003351519959717527, 0.00033557119791334755, 0.0003359909241850068, 0.000336411175442554, 0.0003368319523426313, 0.00033725325554270205, 0.0003376750857010538, 0.0003380974434767957, 0.00033852032952986117, 0.000338943744521011, 0.0003393676891118301, 0.00033979216396473296, 0.0003402171697429612, 0.00034064270711058574, 0.0003410687767325101, 0.00034149537927446745, 0.0003419225154030238, 0.00034235018578558066, 0.00034277839109037245, 0.00034320713198646944, 0.0003436364091437806, 0.00034406622323305094, 0.00034449657492586453, 0.0003449274648946471, 0.00034535889381266313, 0.0003457908623540216, 0.0003462233711936729, 0.0003466564210074115, 0.00034709001247187904, 0.0003475241462645617, 0.00034795882306379295, 0.0003483940435487567, 0.00034882980839948433, 0.000349266118296858, 0.00034970297392261315, 0.0003501403759593356, 0.0003505783250904673, 0.0003510168220003033, 0.00035145586737399444, 0.00035189546189755055, 0.0003523356062578374, 0.0003527763011425801, 0.0003532175472403658, 0.00035365934524064085, 0.00035410169583371417, 0.00035454459971075993, 0.00035498805756381486, 0.0003554320700857813, 0.0003558766379704302, 0.00035632176191239775, 0.00035676744260719137, 0.00035721368075118665, 0.00035766047704163014, 0.00035810783217664246, 0.00035855574685521535, 0.00035900422177721504, 0.00035945325764338495, 0.000359902855155343, 0.00036035301501558486, 0.0003608037379274866, 0.00036125502459530165, 0.0003617068757241668, 0.00036215929202009883, 0.00036261227418999764, 0.0003630658229416493, 0.0003635199389837232, 0.0003639746230257751, 0.00036442987577825015, 0.0003648856979524802, 0.00036534209026068695, 0.00036579905341598473, 0.00036625658813237784, 0.00036671469512476377, 0.00036717337510893614, 0.0003676326288015811, 0.00036809245692028404, 0.0003685528601835258, 0.00036901383931068596, 0.00036947539502204575, 0.00036993752803878547, 0.0003704002390829873, 0.0003708635288776387, 0.0003713273981466295, 0.0003717918476147547, 0.0003722568780077182, 0.0003727224900521286, 0.0003731886844755062, 0.00037365546200627923, 0.000374122823373787, 0.0003745907693082831, 0.0003750593005409324, 0.00037552841780381447, 0.0003759981218299264, 0.0003764684133531802, 0.0003769392931084058, 0.0003774107618313542, 0.0003778828202586948, 0.00037835546912801826, 0.0003788287091778398, 0.00037930254114759595, 0.0003797769657776504, 0.0003802519838092912, 0.0003807275959847334, 0.0003812038030471224, 0.0003816806057405312, 0.0003821580048099635, 0.0003826360010013567, 0.0003831145950615794, 0.00038359378773843405, 0.00038407357978066084, 0.00038455397193793345, 0.0003850349649608661, 0.00038551655960100987, 0.0003859987566108558, 0.00038648155674383814, 0.0003869649607543315, 0.0003874489693976541, 0.0003879335834300709, 0.0003884188036087907, 0.0003889046306919695, 0.00038939106543871353, 0.0003898781086090766, 0.00039036576096406297, 0.00039085402326563095, 0.00039134289627668913, 0.000391832380761103, 0.0003923224774836916, 0.00039281318721023033, 0.0003933045107074547, 0.0003937964487430571, 0.00039428900208569005, 0.0003947821715049697, 0.00039527595777147265, 0.0003957703616567393, 0.0003962653839332773, 0.0003967610253745576, 0.00039725728675502146, 0.0003977541688500767, 0.000398251672436101, 0.0003987497982904452, 0.00039924854719143035, 0.000399747919918351, 0.0004002479172514786, 0.0004007485399720583, 0.00040124978886231256, 0.0004017516647054443, 0.0004022541682856338, 0.00040275730038804235, 0.00040326106179881544, 0.00040376545330507896, 0.0004042704756949461, 0.0004047761297575138, 0.00040528241628286584, 0.0004057893360620765, 0.00040629688988720727, 0.0004068050785513105, 0.00040731390284843243, 0.00040782336357361043, 0.00040833346152287627, 0.00040884419749325954, 0.00040935557228278385, 0.00040986758669047383, 0.0004103802415163514, 0.00041089353756143917, 0.00041140747562776366, 0.0004119220565183525, 0.00041243728103723773, 0.00041295314998945925, 0.0004134696641810616, 0.0004139868244190977, 0.00041450463151163183, 0.0004150230862677371, 0.0004155421894974983, 0.00041606194201201593, 0.00041658234462340184, 0.00041710339814478667, 0.00041762510339031603, 0.00041814746117515363, 0.0004186704723154851, 0.00041919413762851477, 0.00041971845793246904, 0.0004202434340465999, 0.00042076906679118205, 0.0004212953569875159, 0.0004218223054579315, 0.0004223499130257844, 0.0004228781805154631, 0.0004234071087523849, 0.0004239366985629996, 0.0004244669507747927, 0.00042499786621628277, 0.0004255294457170245, 0.00042606169010761253, 0.000426594600219678, 0.00042712817688589236, 0.00042766242093997075, 0.0004281973332166689, 0.00042873291455178654, 0.00042926916578217117, 0.0004298060877457138, 0.0004303436812813569, 0.0004308819472290895, 0.00043142088642995154, 0.00043196049972603714, 0.00043250078796049145, 0.00043304175197751417, 0.00043358339262236325, 0.0004341257107413515, 0.00043466870718185033, 0.00043521238279229334, 0.00043575673842217224, 0.00043630177492204433, 0.00043684749314352854, 0.00043739389393930887, 0.00043794097816313827, 0.0004384887466698351, 0.00043903720031528707, 0.0004395863399564546, 0.00044013616645136776, 0.0004406866806591298, 0.00044123788343992075, 0.00044178977565499444, 0.0004423423581666816, 0.0004428956318383942, 0.0004434495975346209, 0.0004440042561209347, 0.00044455960846398907, 0.0004451156554315213, 0.00044567239789235647, 0.00044622983671640403, 0.00044678797277466147, 0.0004473468069392181, 0.0004479063400832515, 0.0004484665730810317, 0.0004490275068079243, 0.0004495891421403869, 0.0004501514799559763, 0.00045071452113334476, 0.0004512782665522434, 0.0004518427170935261, 0.0004524078736391462, 0.0004529737370721601, 0.0004535403082767311, 0.0004541075881381261, 0.0004546755775427192, 0.00045524427737799546, 0.00045581368853254777, 0.00045638381189608035, 0.0004569546483594126, 0.0004575261988144751, 0.0004580984641543172, 0.0004586714452731027, 0.0004592451430661139, 0.00045981955842975544, 0.0004603946922615506, 0.0004609705454601452, 0.00046154711892531174, 0.0004621244135579455, 0.0004627024302600686, 0.000463281169934834, 0.00046386063348652086, 0.0004644408218205427, 0.00046502173584344307, 0.00046560337646289957, 0.00046618574458772734, 0.00046676884112787585, 0.00046735266699443276, 0.0004679372230996278, 0.00046852251035682903, 0.0004691085296805473, 0.00046969528198643936, 0.00047028276819130514, 0.0004708709892130911, 0.00047145994597089426, 0.00047204963938495817, 0.0004726400703766804, 0.0004732312398686088, 0.00047382314878444495, 0.0004744157980490483, 0.0004750091885884322, 0.0004756033213297703, 0.00047619819720139437, 0.0004767938171327984, 0.0004773901820546388, 0.0004779872928987361, 0.0004785851505980754, 0.00047918375608680996, 0.00047978311030026123, 0.0004803832141749196, 0.00048098406864844777, 0.0004815856746596811, 0.0004821880331486295, 0.00048279114505647735, 0.0004833950113255876, 0.0004839996328995014, 0.0004846050107229404, 0.00048521114574180696, 0.00048581803890318737, 0.00048642569115535286, 0.0004870341034477593, 0.00048764327673105155, 0.00048825321195706287, 0.0004888639100788176, 0.0004894753720505309, 0.0004900875988276125, 0.0004907005913666675, 0.0004913143506254958, 0.000491928877563097, 0.0004925441731396695, 0.0004931602383166132, 0.0004937770740565292, 0.0004943946813232237, 0.0004950130610817089, 0.0004956322142982023, 0.0004962521419401314, 0.0004968728449761332, 0.0004974943243760568, 0.0004981165811109631, 0.0004987396161531286, 0.0004993634304760459, 0.0004999880250544253, 0.0005006134008641951, 0.0005012395588825057, 0.0005018665000877295, 0.0005024942254594612, 0.0005031227359785225, 0.0005037520326269611, 0.0005043821163880537, 0.0005050129882463052, 0.0005056446491874537, 0.0005062771001984698, 0.0005069103422675576, 0.0005075443763841582, 0.0005081792035389501, 0.0005088148247238515, 0.0005094512409320196, 0.0005100884531578553, 0.0005107264623970033, 0.0005113652696463522, 0.000512004875904039, 0.0005126452821694486, 0.0005132864894432163, 0.0005139284987272277, 0.000514571311024623, 0.0005152149273397964, 0.000515859348678399, 0.0005165045760473384, 0.000517150610454783, 0.0005177974529101621, 0.0005184451044241663, 0.0005190935660087517, 0.0005197428386771395, 0.000520392923443819, 0.0005210438213245467, 0.0005216955333363513, 0.0005223480604975333, 0.0005230014038276656, 0.0005236555643475979, 0.0005243105430794559, 0.0005249663410466447, 0.0005256229592738476, 0.0005262803987870315, 0.0005269386606134459, 0.0005275977457816243, 0.0005282576553213878, 0.0005289183902638452, 0.0005295799516413955, 0.0005302423404877275, 0.0005309055578378244, 0.0005315696047279634, 0.0005322344821957185, 0.0005329001912799598, 0.0005335667330208583, 0.0005342341084598862, 0.0005349023186398169, 0.0005355713646047291, 0.0005362412474000076, 0.0005369119680723448, 0.0005375835276697407, 0.000538255927241508, 0.0005389291678382718, 0.0005396032505119693, 0.0005402781763158556, 0.0005409539463045023, 0.0005416305615338006, 0.000542308023060961, 0.0005429863319445177, 0.0005436654892443292, 0.0005443454960215777, 0.0005450263533387745, 0.0005457080622597592, 0.0005463906238497027, 0.0005470740391751067, 0.0005477583093038081, 0.0005484434353049794, 0.0005491294182491303, 0.0005498162592081085, 0.0005505039592551036, 0.0005511925194646474, 0.0005518819409126147, 0.0005525722246762268, 0.0005532633718340525, 0.0005539553834660097, 0.0005546482606533657, 0.0005553420044787418, 0.0005560366160261135, 0.0005567320963808103, 0.000557428446629521, 0.0005581256678602929, 0.000558823761162535, 0.000559522727627017, 0.0005602225683458748, 0.0005609232844126102, 0.000561624876922091, 0.0005623273469705562, 0.0005630306956556155, 0.0005637349240762519, 0.0005644400333328213, 0.0005651460245270576, 0.0005658528987620722, 0.0005665606571423568, 0.0005672693007737829, 0.0005679788307636069, 0.0005686892482204699, 0.0005694005542543986, 0.0005701127499768091, 0.0005708258365005075, 0.0005715398149396919, 0.0005722546864099531, 0.0005729704520282782, 0.0005736871129130515, 0.0005744046701840552, 0.0005751231249624727, 0.0005758424783708901, 0.0005765627315332977, 0.0005772838855750899, 0.0005780059416230709, 0.0005787289008054537, 0.0005794527642518613, 0.000580177533093331, 0.000580903208462314, 0.0005816297914926791, 0.0005823572833197112, 0.0005830856850801169, 0.0005838149979120242, 0.000584545222954985, 0.0005852763613499751, 0.0005860084142393989, 0.0005867413827670897, 0.0005874752680783098, 0.000588210071319756, 0.0005889457936395582, 0.0005896824361872832, 0.0005904200001139344, 0.0005911584865719558, 0.0005918978967152333, 0.0005926382316990942, 0.0005933794926803129, 0.0005941216808171094, 0.0005948647972691538, 0.0005956088431975643, 0.0005963538197649135, 0.0005970997281352279, 0.0005978465694739884, 0.0005985943449481355, 0.0005993430557260683, 0.0006000927029776482, 0.000600843287874198, 0.0006015948115885073, 0.0006023472752948321, 0.0006031006801688977, 0.0006038550273878982, 0.0006046103181305019, 0.0006053665535768512, 0.000606123734908563, 0.000606881863308734, 0.0006076409399619399, 0.0006084009660542386, 0.00060916194277317, 0.0006099238713077609, 0.0006106867528485254, 0.0006114505885874649, 0.0006122153797180735, 0.0006129811274353375, 0.0006137478329357383, 0.0006145154974172524, 0.0006152841220793562, 0.0006160537081230266, 0.0006168242567507405, 0.0006175957691664813, 0.000618368246575737, 0.0006191416901855043, 0.000619916101204288, 0.0006206914808421059, 0.0006214678303104889, 0.0006222451508224837, 0.0006230234435926527, 0.0006238027098370791, 0.0006245829507733671, 0.0006253641676206422, 0.0006261463615995565, 0.0006269295339322882, 0.0006277136858425447, 0.0006284988185555623, 0.000629284933298112, 0.0006300720312984985, 0.0006308601137865616, 0.0006316491819936807, 0.0006324392371527753, 0.0006332302804983071, 0.0006340223132662805, 0.0006348153366942474, 0.0006356093520213075, 0.000636404360488109, 0.0006372003633368532, 0.0006379973618112946, 0.0006387953571567443, 0.0006395943506200691, 0.0006403943434496967, 0.0006411953368956163, 0.0006419973322093808, 0.0006428003306441068, 0.0006436043334544804, 0.0006444093418967565, 0.0006452153572287598, 0.00064602238070989, 0.0006468304136011216, 0.0006476394571650066, 0.0006484495126656745, 0.000649260581368838, 0.0006500726645417924, 0.0006508857634534169, 0.0006516998793741793, 0.0006525150135761358, 0.0006533311673329342, 0.000654148341919814, 0.0006549665386136112, 0.0006557857586927587, 0.000656606003437287, 0.0006574272741288294, 0.0006582495720506212, 0.0006590728984875039, 0.0006598972547259241, 0.0006607226420539389, 0.0006615490617612164, 0.0006623765151390381, 0.0006632050034802988, 0.0006640345280795125, 0.0006648650902328118, 0.0006656966912379495, 0.0006665293323943025, 0.0006673630150028731, 0.000668197740366291, 0.0006690335097888136, 0.0006698703245763312, 0.000670708186036368, 0.0006715470954780814, 0.0006723870542122679, 0.0006732280635513635, 0.000674070124809446, 0.000674913239302235, 0.0006757574083470977, 0.0006766026332630491, 0.0006774489153707519, 0.000678296255992523, 0.000679144656452332, 0.0006799941180758054, 0.000680844642190226, 0.0006816962301245386, 0.0006825488832093496, 0.0006834026027769299, 0.0006842573901612155, 0.0006851132466978126, 0.0006859701737239975, 0.0006868281725787178, 0.0006876872446025975, 0.0006885473911379369, 0.0006894086135287155, 0.0006902709131205925, 0.0006911342912609116, 0.0006919987492987021, 0.0006928642885846785, 0.0006937309104712468, 0.0006945986163125038, 0.0006954674074642408, 0.0006963372852839428, 0.0006972082511307947, 0.0006980803063656815, 0.0006989534523511884, 0.0006998276904516068, 0.0007007030220329339, 0.0007015794484628761, 0.0007024569711108486, 0.0007033355913479815, 0.0007042153105471188, 0.0007050961300828229, 0.000705978051331373, 0.0007068610756707719, 0.000707745204480746, 0.0007086304391427454, 0.0007095167810399503, 0.0007104042315572698, 0.0007112927920813462, 0.0007121824640005545, 0.0007130732487050076, 0.0007139651475865574, 0.0007148581620387951, 0.0007157522934570563, 0.0007166475432384217, 0.00071754391278172, 0.0007184414034875271, 0.0007193400167581735, 0.0007202397539977429, 0.000721140616612074, 0.0007220426060087652, 0.0007229457235971751, 0.0007238499707884259, 0.0007247553489954028, 0.0007256618596327598, 0.0007265695041169201, 0.0007274782838660792, 0.0007283882003002041, 0.0007292992548410402, 0.000730211448912111, 0.0007311247839387186, 0.0007320392613479499, 0.000732954882568676, 0.0007338716490315558, 0.000734789562169036, 0.0007357086234153564, 0.0007366288342065513, 0.0007375501959804489, 0.0007384727101766778, 0.0007393963782366665, 0.0007403212016036474, 0.0007412471817226556, 0.0007421743200405362, 0.0007431026180059434, 0.0007440320770693418, 0.000744962698683012, 0.0007458944843010505, 0.0007468274353793731, 0.0007477615533757147, 0.0007486968397496357, 0.0007496332959625211, 0.0007505709234775845, 0.0007515097237598679, 0.0007524496982762478, 0.0007533908484954348, 0.0007543331758879751, 0.0007552766819262564, 0.0007562213680845067, 0.0007571672358387993, 0.0007581142866670513, 0.0007590625220490302, 0.0007600119434663551, 0.0007609625524024956, 0.000761914350342779, 0.0007628673387743899, 0.0007638215191863735, 0.0007647768930696355, 0.0007657334619169485, 0.0007666912272229523, 0.0007676501904841538, 0.0007686103531989343, 0.0007695717168675478, 0.0007705342829921264, 0.000771498053076678, 0.0007724630286270947, 0.0007734292111511508, 0.0007743966021585072, 0.0007753652031607114, 0.0007763350156712033, 0.0007773060412053159, 0.0007782782812802753, 0.0007792517374152075, 0.0007802264111311379, 0.0007812023039509952, 0.0007821794173996107, 0.000783157753003725, 0.0007841373122919882, 0.000785118096794961, 0.0007861001080451196, 0.0007870833475768569, 0.0007880678169264857, 0.000789053517632238, 0.0007900404512342723, 0.000791028619274673, 0.0007920180232974516, 0.0007930086648485526, 0.0007940005454758538, 0.0007949936667291696, 0.0007959880301602507, 0.0007969836373227909, 0.0007979804897724265, 0.0007989785890667404, 0.0007999779367652616, 0.0008009785344294717, 0.0008019803836228057, 0.0008029834859106514, 0.0008039878428603572, 0.0008049934560412311, 0.0008060003270245445, 0.0008070084573835321, 0.0008080178486933986, 0.0008090285025313189, 0.0008100404204764381, 0.0008110536041098793, 0.0008120680550147418, 0.0008130837747761062, 0.0008141007649810334, 0.0008151190272185715, 0.0008161385630797561, 0.000817159374157611, 0.0008181814620471541, 0.0008192048283453983, 0.000820229474651354, 0.0008212554025660301, 0.0008222826136924398, 0.0008233111096356006, 0.0008243408920025385, 0.0008253719624022871, 0.0008264043224458948, 0.0008274379737464254, 0.0008284729179189574, 0.0008295091565805923, 0.0008305466913504531, 0.0008315855238496888, 0.0008326256557014739, 0.0008336670885310156, 0.0008347098239655534, 0.0008357538636343603, 0.000836799209168749, 0.0008378458622020724, 0.0008388938243697266, 0.0008399430973091514, 0.0008409936826598366, 0.0008420455820633228, 0.0008430987971632015, 0.0008441533296051223, 0.0008452091810367924, 0.0008462663531079805, 0.0008473248474705168, 0.0008483846657782997, 0.0008494458096872954, 0.0008505082808555423, 0.0008515720809431504, 0.0008526372116123081, 0.0008537036745272833, 0.0008547714713544229, 0.0008558406037621602, 0.0008569110734210152, 0.0008579828820035974, 0.0008590560311846066, 0.0008601305226408392, 0.0008612063580511893, 0.0008622835390966482, 0.0008633620674603124, 0.0008644419448273826, 0.0008655231728851684, 0.000866605753323087, 0.0008676896878326716, 0.0008687749781075706, 0.000869861625843549, 0.0008709496327384947, 0.0008720390004924187, 0.0008731297308074592, 0.0008742218253878809, 0.0008753152859400827, 0.0008764101141725967, 0.0008775063117960934, 0.00087860388052338, 0.0008797028220694085, 0.0008808031381512764, 0.000881904830488226, 0.0008830079008016527, 0.000884112350815104, 0.0008852181822542842, 0.0008863253968470534, 0.0008874339963234355, 0.0008885439824156181, 0.0008896553568579534, 0.0008907681213869646, 0.0008918822777413468, 0.0008929978276619702, 0.0008941147728918803, 0.0008952331151763047, 0.0008963528562626547, 0.0008974739979005241, 0.0008985965418416979, 0.000899720489840151, 0.0009008458436520534, 0.000901972605035769, 0.0009031007757518635, 0.0009042303575631038, 0.0009053613522344626, 0.0009064937615331175, 0.0009076275872284594, 0.0009087628310920917, 0.0009098994948978316, 0.0009110375804217176, 0.0009121770894420082, 0.0009133180237391875, 0.0009144603850959639, 0.000915604175297278, 0.0009167493961303032, 0.0009178960493844454, 0.0009190441368513516, 0.0009201936603249086, 0.0009213446216012478, 0.0009224970224787451, 0.0009236508647580275, 0.0009248061502419748, 0.0009259628807357193, 0.0009271210580466534, 0.0009282806839844291, 0.0009294417603609634, 0.0009306042889904364, 0.0009317682716893003, 0.0009329337102762784, 0.0009341006065723693, 0.0009352689624008472, 0.0009364387795872691, 0.0009376100599594755, 0.0009387828053475906, 0.0009399570175840299, 0.0009411326985035005, 0.0009423098499430048, 0.0009434884737418404, 0.0009446685717416083, 0.0009458501457862125, 0.0009470331977218611, 0.0009482177293970739, 0.0009494037426626817, 0.0009505912393718315, 0.0009517802213799853, 0.0009529706905449286, 0.0009541626487267706, 0.0009553560977879445, 0.0009565510395932157, 0.0009577474760096807, 0.0009589454089067728, 0.0009601448401562605, 0.0009613457716322563, 0.0009625482052112158, 0.0009637521427719427, 0.000964957586195588, 0.0009661645373656578, 0.0009673729981680148, 0.0009685829704908773, 0.0009697944562248283, 0.0009710074572628145, 0.000972221975500151, 0.0009734380128345212, 0.0009746555711659846, 0.0009758746523969769, 0.0009770952584323114, 0.0009783173911791859, 0.0009795410525471832, 0.000980766244448275, 0.0009819929687968228, 0.000983221227509584, 0.000984451022505714, 0.0009856823557067662, 0.0009869152290366996, 0.0009881496444218794, 0.0009893856037910802, 0.0009906231090754875, 0.0009918621622087042, 0.000993102765126751, 0.0009943449197680717, 0.0009955886280735306, 0.0009968338919864234, 0.0009980807134524763, 0.000999329094419846, 0.001000579036839129, 0.0010018305426633609, 0.00100308361384802, 0.0010043382523510292, 0.0010055944601327618, 0.001006852239156044, 0.001008111591386154, 0.0010093725187908305, 0.0010106350233402728, 0.0010118991070071457, 0.0010131647717665784, 0.0010144320195961728, 0.0010157008524760054, 0.0010169712723886255, 0.0010182432813190658, 0.0010195168812548402, 0.0010207920741859499, 0.0010220688621048824, 0.0010233472470066198, 0.0010246272308886387, 0.0010259088157509155, 0.0010271920035959245, 0.001028476796428648, 0.0010297631962565763, 0.0010310512050897072, 0.001032340824940556, 0.0010336320578241537, 0.0010349249057580528, 0.001036219370762327, 0.0010375154548595787, 0.0010388131600749407, 0.0010401124884360756, 0.0010414134419731854, 0.0010427160227190102, 0.0010440202327088334, 0.0010453260739804817, 0.0010466335485743335, 0.0010479426585333186, 0.00104925340590292, 0.0010505657927311815, 0.001051879821068708, 0.0010531954929686698, 0.0010545128104868025, 0.0010558317756814164, 0.0010571523906133945, 0.001058474657346199, 0.00105979857794587, 0.0010611241544810346, 0.0010624513890229073, 0.0010637802836452907, 0.0010651108404245836, 0.0010664430614397815, 0.0010677769487724808, 0.0010691125045068789, 0.0010704497307297825, 0.0010717886295306092, 0.0010731292030013869, 0.0010744714532367624, 0.001075815382334002, 0.0010771609923929965, 0.0010785082855162599, 0.001079857263808939, 0.001081207929378813, 0.001082560284336296, 0.0010839143307944433, 0.001085270070868953, 0.0010866275066781703, 0.001087986640343087, 0.0010893474739873503, 0.0010907100097372635, 0.0010920742497217896, 0.0010934401960725523, 0.0010948078509238437, 0.001096177216412626, 0.0010975482946785308, 0.0010989210878638695, 0.0011002955981136314, 0.0011016718275754904, 0.001103049778399803, 0.0011044294527396187, 0.00110581085275068, 0.0011071939805914228, 0.0011085788384229854, 0.0011099654284092086, 0.0011113537527166406, 0.0011127438135145361, 0.0011141356129748667, 0.0011155291532723203, 0.001116924436584302, 0.0011183214650909428, 0.0011197202409751004, 0.0011211207664223633, 0.0011225230436210508, 0.0011239270747622225, 0.001125332862039677, 0.0011267404076499585, 0.0011281497137923552, 0.0011295607826689092, 0.0011309736164844169, 0.0011323882174464294, 0.001133804587765262, 0.0011352227296539937, 0.0011366426453284723, 0.0011380643370073147, 0.0011394878069119151, 0.0011409130572664465, 0.0011423400902978611, 0.0011437689082358993, 0.0011451995133130893, 0.0011466319077647526, 0.0011480660938290043, 0.001149502073746761, 0.0011509398497617429, 0.0011523794241204731, 0.001153820799072288, 0.0011552639768693362, 0.0011567089597665843, 0.0011581557500218163, 0.0011596043498956433, 0.001161054761651503, 0.001162506987555665, 0.0011639610298772305, 0.0011654168908881422, 0.0011668745728631838, 0.0011683340780799818, 0.0011697954088190146, 0.0011712585673636117, 0.0011727235559999595, 0.0011741903770171012, 0.0011756590327069458, 0.0011771295253642693, 0.0011786018572867145, 0.0011800760307748015, 0.0011815520481319268, 0.0011830299116643687, 0.0011845096236812872, 0.0011859911864947337, 0.0011874746024196513, 0.0011889598737738758, 0.0011904470028781448, 0.0011919359920560982, 0.0011934268436342827, 0.001194919559942152, 0.0011964141433120769, 0.001197910596079344, 0.0011994089205821623, 0.001200909119161662, 0.0012024111941619047, 0.001203915147929884, 0.0012054209828155258, 0.0012069287011716983, 0.001208438305354212, 0.0012099497977218249, 0.0012114631806362417, 0.0012129784564621246, 0.0012144956275670937, 0.001216014696321727, 0.0012175356650995705, 0.0012190585362771384, 0.0012205833122339183, 0.001222109995352371, 0.0012236385880179399, 0.0012251690926190525, 0.0012267015115471208, 0.0012282358471965502, 0.0012297721019647408, 0.001231310278252092, 0.0012328503784620024, 0.0012343924050008798, 0.0012359363602781413, 0.0012374822467062182, 0.0012390300667005562, 0.0012405798226796255, 0.0012421315170649213, 0.0012436851522809641, 0.0012452407307553103, 0.0012467982549185517, 0.0012483577272043211, 0.0012499191500492922, 0.0012514825258931894, 0.001253047857178789, 0.0012546151463519195, 0.0012561843958614712, 0.001257755608159397, 0.0012593287857007175, 0.001260903930943521, 0.0012624810463489728, 0.0012640601343813177, 0.0012656411975078784, 0.0012672242381990678, 0.0012688092589283873, 0.0012703962621724329, 0.0012719852504108956, 0.001273576226126571, 0.0012751691918053585, 0.001276764149936269, 0.0012783611030114223, 0.001279960053526059, 0.0012815610039785409, 0.0012831639568703511, 0.001284768914706105, 0.0012863758799935496, 0.0012879848552435696, 0.0012895958429701864, 0.0012912088456905704, 0.0012928238659250398, 0.0012944409061970614, 0.0012960599690332623, 0.0012976810569634283, 0.0012993041725205112, 0.0013009293182406267, 0.0013025564966630669, 0.001304185710330299, 0.0013058169617879676, 0.0013074502535849047, 0.001309085588273129, 0.0013107229684078524, 0.0013123623965474798, 0.0013140038752536185, 0.0013156474070910795, 0.0013172929946278832, 0.0013189406404352576, 0.001320590347087651, 0.0013222421171627315, 0.001323895953241388, 0.0013255518579077408, 0.0013272098337491411, 0.001328869883356178, 0.0013305320093226767, 0.0013321962142457107, 0.0013338625007256015, 0.0013355308713659199, 0.0013372013287734968, 0.0013388738755584215, 0.0013405485143340506, 0.001342225247717005, 0.0013439040783271817, 0.0013455850087877555, 0.001347268041725178, 0.00134895317976919, 0.0013506404255528195, 0.0013523297817123901, 0.0013540212508875186, 0.001355714835721127, 0.0013574105388594417, 0.001359108362952001, 0.0013608083106516529, 0.0013625103846145667, 0.001364214587500235, 0.0013659209219714725, 0.0013676293906944286, 0.0013693399963385857, 0.001371052741576767, 0.0013727676290851347, 0.001374484661543202, 0.001376203841633834, 0.0013779251720432472, 0.0013796486554610219, 0.0013813742945801015, 0.0013831020920967987, 0.0013848320507107948, 0.001386564173125152, 0.0013882984620463132, 0.0013900349201841022, 0.001391773550251737, 0.001393514354965827, 0.0013952573370463815, 0.0013970024992168075, 0.001398749844203923, 0.0014004993747379546, 0.0014022510935525452, 0.0014040050033847537, 0.0014057611069750655, 0.001407519407067394, 0.0014092799064090813, 0.0014110426077509092, 0.0014128075138470986, 0.0014145746274553171, 0.0014163439513366774, 0.0014181154882557498, 0.0014198892409805625, 0.0014216652122826018, 0.0014234434049368245, 0.0014252238217216568, 0.001427006465419002, 0.0014287913388142382, 0.0014305784446962322, 0.0014323677858573381, 0.0014341593650933997, 0.001435953185203761, 0.001437749248991266, 0.0014395475592622667, 0.0014413481188266203, 0.0014431509304977026, 0.0014449559970924073, 0.001446763321431153, 0.0014485729063378812, 0.0014503847546400704, 0.0014521988691687348, 0.0014540152527584267, 0.0014558339082472466, 0.0014576548384768444, 0.0014594780462924251, 0.001461303534542749, 0.0014631313060801427, 0.001464961363760501, 0.001466793710443287, 0.0014686283489915438, 0.0014704652822718949, 0.00147230451315455, 0.001474146044513305, 0.0014759898792255544, 0.0014778360201722915, 0.0014796844702381097, 0.0014815352323112136, 0.0014833883092834192, 0.0014852437040501613, 0.0014871014195104919, 0.0014889614585670927, 0.0014908238241262757, 0.0014926885190979884, 0.0014945555463958145, 0.001496424908936986, 0.0014982966096423833, 0.0015001706514365365, 0.001502047037247638, 0.0015039257700075407, 0.0015058068526517662, 0.001507690288119504, 0.0015095760793536238, 0.001511464229300676, 0.0015133547409108925, 0.0015152476171381996, 0.0015171428609402167, 0.001519040475278264, 0.0015209404631173614, 0.001522842827426242, 0.0015247475711773516, 0.00152665469734685, 0.0015285642089146235, 0.0015304761088642844, 0.001532390400183178, 0.0015343070858623825, 0.0015362261688967207, 0.0015381476522847602, 0.0015400715390288208, 0.0015419978321349727, 0.0015439265346130515, 0.0015458576494766557, 0.0015477911797431505, 0.0015497271284336783, 0.0015516654985731596, 0.0015536062931902996, 0.0015555495153175873, 0.001557495167991309, 0.001559443254251549, 0.0015613937771421895, 0.0015633467397109246, 0.0015653021450092585, 0.0015672599960925135, 0.00156922029601983, 0.0015711830478541784, 0.00157314825466236, 0.001575115919515008, 0.0015770860454866007, 0.0015790586356554603, 0.0015810336931037607, 0.0015830112209175267, 0.0015849912221866476, 0.0015869737000048757, 0.001588958657469834, 0.0015909460976830166, 0.0015929360237498002, 0.0015949284387794466, 0.0015969233458851015, 0.0015989207481838094, 0.0016009206487965113, 0.0016029230508480543, 0.0016049279574671886, 0.001606935371786583, 0.0016089452969428244, 0.0016109577360764178, 0.0016129726923318015, 0.0016149901688573454, 0.0016170101688053578, 0.0016190326953320867, 0.0016210577515977313, 0.001623085340766444, 0.0016251154660063302, 0.0016271481304894627, 0.00162918333739188, 0.001631221089893595, 0.0016332613911785932, 0.0016353042444348473, 0.0016373496528543161, 0.001639397619632952, 0.0016414481479707006, 0.0016435012410715144, 0.001645556902143353, 0.0016476151343981845, 0.0016496759410519987, 0.001651739325324806, 0.0016538052904406472, 0.0016558738396275892, 0.0016579449761177426, 0.00166001870314726, 0.001662095023956337, 0.0016641739417892275, 0.00166625545989424, 0.0016683395815237493, 0.0016704263099341927, 0.001672515648386085, 0.0016746076001440196, 0.0016767021684766686, 0.001678799356656797, 0.0016808991679612615, 0.0016830016056710196, 0.001685106673071127, 0.001687214373450754, 0.001689324710103183, 0.0016914376863258163, 0.0016935533054201774, 0.0016956715706919225, 0.0016977924854508432, 0.0016999160530108664, 0.0017020422766900682, 0.0017041711598106734, 0.0017063027056990639, 0.0017084369176857779, 0.001710573799105523, 0.0017127133532971789, 0.001714855583603796, 0.0017170004933726114, 0.001719148085955047, 0.0017212983647067182, 0.0017234513329874327, 0.0017256069941612056, 0.0017277653515962593, 0.0017299264086650251, 0.001732090168744156, 0.001734256635214528, 0.0017364258114612467, 0.0017385977008736477, 0.0017407723068453098, 0.0017429496327740555, 0.0017451296820619583, 0.0017473124581153432, 0.001749497964344799, 0.0017516862041651814, 0.0017538771809956126, 0.001756070898259496, 0.0017582673593845152, 0.0017604665678026424, 0.0017626685269501385, 0.0017648732402675664, 0.0017670807111997927, 0.0017692909431959883, 0.0017715039397096424, 0.0017737197041985627, 0.0017759382401248832, 0.0017781595509550633, 0.0017803836401599038, 0.0017826105112145455, 0.0017848401675984722, 0.0017870726127955235, 0.001789307850293896, 0.00179154588358615, 0.0017937867161692102, 0.001796030351544379, 0.0017982767932173374, 0.001800526044698153, 0.0018027781095012775, 0.0018050329911455652, 0.0018072906931542701, 0.001809551219055049, 0.0018118145723799758, 0.0018140807566655406, 0.001816349775452658, 0.0018186216322866676, 0.0018208963307173474, 0.001823173874298916, 0.0018254542665900326, 0.0018277375111538118, 0.001830023611557824, 0.0018323125713741032, 0.0018346043941791462, 0.001836899083553928, 0.0018391966430839036, 0.001841497076359006, 0.001843800386973665, 0.0018461065785268036, 0.0018484156546218482, 0.0018507276188667278, 0.0018530424748738879, 0.001855360226260292, 0.001857680876647429, 0.0018600044296613115, 0.001862330888932494, 0.0018646602580960705, 0.0018669925407916782, 0.0018693277406635104, 0.001871665861360318, 0.0018740069065354159, 0.001876350879846685, 0.0018786977849565853, 0.0018810476255321585, 0.0018834004052450276, 0.0018857561277714127, 0.0018881147967921312, 0.0018904764159926053, 0.0018928409890628622, 0.0018952085196975498, 0.0018975790115959362, 0.0018999524684619124, 0.0019023288940040073, 0.001904708291935386, 0.0019070906659738598, 0.0019094760198418853, 0.0019118643572665804, 0.0019142556819797224, 0.0019166499977177585, 0.0019190473082218043, 0.0019214476172376596, 0.001923850928515809, 0.001926257245811424, 0.0019286665728843772, 0.001931078913499243, 0.0019334942714253054, 0.0019359126504365587, 0.001938334054311722, 0.0019407584868342408, 0.0019431859517922885, 0.001945616452978781, 0.001948049994191377, 0.001950486579232487, 0.001952926211909272, 0.0019553688960336603, 0.001957814635422348, 0.0019602634338968, 0.001962715295283266, 0.00196517022341278, 0.00196762822212117, 0.001970089295249055, 0.0019725534466418647, 0.001975020680149836, 0.0019774909996280233, 0.0019799644089362983, 0.0019824409119393645, 0.001984920512506761, 0.0019874032145128597, 0.0019898890218368855, 0.001992377938362913, 0.0019948699679798758, 0.0019973651145815674, 0.0019998633820666567, 0.0020023647743386895, 0.002004869295306087, 0.0020073769488821664, 0.0020098877389851367, 0.00201240166953811, 0.0020149187444690993, 0.002017438967711036, 0.0020199623432017727, 0.0020224888748840795, 0.002025018566705664, 0.0020275514226191713, 0.002030087446582191, 0.002032626642557256, 0.0020351690145118642, 0.002037714566418471, 0.0020402633022545045, 0.0020428152260023604, 0.0020453703416494226, 0.0020479286531880614, 0.0020504901646156357, 0.002053054879934509, 0.0020556228031520496, 0.00205819393828064, 0.002060768289337676, 0.002063345860345583, 0.0020659266553318184, 0.002068510678328871, 0.002071097933374279, 0.002073688424510629, 0.002076282155785566, 0.0020788791312517916, 0.002081479354967083, 0.0020840828309942913, 0.002086689563401345, 0.0020892995562612664, 0.0020919128136521687, 0.0020945293396572697, 0.0020971491383648885, 0.0020997722138684618, 0.0021023985702665468, 0.002105028211662827, 0.002107661142166114, 0.0021102973658903646, 0.00211293688695468, 0.0021155797094833096, 0.002118225837605665, 0.0021208752754563226, 0.0021235280271750313, 0.0021261840969067124, 0.002128843488801477, 0.002131506207014628, 0.002134172255706659, 0.0021368416390432736, 0.002139514361195384, 0.00214219042633912, 0.002144869838655831, 0.0021475526023321014, 0.0021502387215597517, 0.0021529282005358394, 0.0021556210434626783, 0.0021583172545478362, 0.002161016838004145, 0.0021637197980497007, 0.0021664261389078804, 0.0021691358648073433, 0.0021718489799820375, 0.002174565488671203, 0.0021772853951193866, 0.0021800087035764447, 0.0021827354182975436, 0.0021854655435431776, 0.0021881990835791675, 0.002190936042676672, 0.0021936764251121875, 0.002196420235167563, 0.002199167477130005, 0.0022019181552920745, 0.00220467227395171, 0.002207429837412221, 0.0022101908499823045, 0.0022129553159760383, 0.0022157232397129033, 0.002218494625517783, 0.002221269477720964, 0.002224047800658156, 0.0022268295986704882, 0.0022296148761045236, 0.0022324036373122537, 0.0022351958866511216, 0.0022379916284840165, 0.0022407908671792883, 0.0022435936071107435, 0.002246399852657666, 0.002249209608204817, 0.002252022878142436, 0.0022548396668662604, 0.0022576599787775225, 0.0022604838182829624, 0.002263311189794826, 0.0022661420977308842, 0.002268976546514433, 0.0022718145405742946, 0.002274656084344838, 0.0022775011822659752, 0.002280349838783175, 0.00228320205834746, 0.002286057845415425, 0.00228891720444924, 0.002291780139916651, 0.0022946466562909964, 0.0022975167580512085, 0.0023003904496818246, 0.0023032677356729834, 0.002306148620520448, 0.002309033108725601, 0.002311921204795458, 0.002314812913242665, 0.00231770823858552, 0.002320607185347971, 0.0023235097580596186, 0.002326415961255736, 0.002329325799477266, 0.002332239277270833, 0.0023351563991887425, 0.0023380771697890006, 0.002341001593635314, 0.002343929675297092, 0.0023468614193494636, 0.00234979683037328, 0.0023527359129551237, 0.0023556786716873077, 0.0023586251111678952, 0.0023615752360007006, 0.00236452905079529, 0.0023674865601670024, 0.002370447768736946, 0.0023734126811320124, 0.0023763813019848736, 0.002379353635934002, 0.0023823296876236705, 0.0023853094617039623, 0.0023882929628307706, 0.002391280195665819, 0.0023942711648766617, 0.002397265875136684, 0.0024002643311251235, 0.0024032665375270683, 0.0024062724990334683, 0.0024092822203411355, 0.0024122957061527618, 0.0024153129611769217, 0.002418333990128072, 0.0024213587977265734, 0.0024243873886986888, 0.0024274197677765937, 0.0024304559396983775, 0.0024334959092080608, 0.0024365396810555992, 0.002439587259996882, 0.0024426386507937553, 0.0024456938582140164, 0.0024487528870314303, 0.002451815742025726, 0.002454882427982617, 0.002457952949693801, 0.0024610273119569704, 0.002464105519575813, 0.0024671875773600305, 0.0024702734901253416, 0.002473363262693481, 0.002476456899892221, 0.0024795544065553707, 0.002482655787522787, 0.0024857610476403734, 0.002488870191760102, 0.002491983224740013, 0.002495100151444218, 0.002498220976742916, 0.0025013457055123984, 0.002504474342635056, 0.002507606892999381, 0.002510743361499986, 0.002513883753037606, 0.002517028072519099, 0.0025201763248574663, 0.0025233285149718543, 0.0025264846477875613, 0.002529644728236042, 0.0025328087612549247, 0.002535976751788012, 0.0025391487047852915, 0.002542324625202936, 0.0025455045180033243, 0.0025486883881550414, 0.002551876240632881, 0.002555068080417865, 0.002558263912497244, 0.0025614637418645086, 0.0025646675735193883, 0.0025678754124678726, 0.0025710872637222134, 0.002574303132300924, 0.0025775230232288017, 0.0025807469415369275, 0.0025839748922626762, 0.0025872068804497165, 0.0025904429111480334, 0.0025936829894139283, 0.0025969271203100186, 0.002600175308905262, 0.0026034275602749546, 0.002606683879500741, 0.002609944271670617, 0.0026132087418789477, 0.0026164772952264686, 0.0026197499368202973, 0.0026230266717739326, 0.0026263075052072754, 0.0026295924422466313, 0.00263288148802471, 0.0026361746476806494, 0.002639471926360011, 0.0026427733292147967, 0.002646078861403444, 0.0026493885280908496, 0.002652702334448371, 0.0026560202856538272, 0.002659342386891519, 0.0026626686433522313, 0.0026659990602332416, 0.0026693336427383234, 0.0026726723960777644, 0.0026760153254683696, 0.0026793624361334625, 0.002682713733302906, 0.0026860692222131035, 0.002689428908107008, 0.0026927927962341267, 0.0026961608918505357, 0.0026995332002188862, 0.0027029097266084135, 0.0027062904762949354, 0.002709675454560876, 0.002713064666695268, 0.00271645811799375, 0.0027198558137585933, 0.0027232577592986988, 0.0027266639599296083, 0.0027300744209735072, 0.0027334891477592436, 0.002736908145622331, 0.0027403314199049497, 0.002743758975955969, 0.002747190819130946, 0.0027506269547921377, 0.002754067388308503, 0.0027575121250557224, 0.0027609611704161995, 0.002764414529779064, 0.002767872208540193, 0.0027713342121022107, 0.0027748005458744997, 0.002778271215273203, 0.002781746225721245, 0.0027852255826483294, 0.0027887092914909554, 0.002792197357692413, 0.0027956897867028097, 0.0027991865839790686, 0.0028026877549849312, 0.00280619330519098, 0.0028097032400746383, 0.002813217565120183, 0.0028167362858187417, 0.0028202594076683195, 0.0028237869361737973, 0.0028273188768469337, 0.0028308552352063897, 0.002834396016777726, 0.0028379412270934166, 0.0028414908716928484, 0.0028450449561223446, 0.0028486034859351657, 0.002852166466691509, 0.002855733903958536, 0.0028593058033103687, 0.0028628821703281016, 0.0028664630105998054, 0.002870048329720545, 0.002873638133292383, 0.0028772324269243903, 0.0028808312162326467, 0.0028844345068402637, 0.0028880423043773865, 0.0028916546144811934, 0.002895271442795923, 0.00289889279497287, 0.0029025186766704005, 0.0029061490935539504, 0.002909784051296049, 0.0029134235555763215, 0.002917067612081489, 0.0029207162265053924, 0.0029243694045489933, 0.0029280271519203853, 0.0029316894743347944, 0.0029353563775146026, 0.002939027867189349, 0.002942703949095732, 0.002946384628977634, 0.002950069912586117, 0.0029537598056794396, 0.0029574543140230562, 0.0029611534433896395, 0.002964857199559079, 0.0029685655883184975, 0.002972278615462248, 0.002975996286791939, 0.002979718608116435, 0.0029834455852518586, 0.002987177224021615, 0.002990913530256391, 0.0029946545097941676, 0.0029984001684802216, 0.0030021505121671475, 0.003005905546714861, 0.003009665277990599, 0.003013429711868945, 0.0030171988542318277, 0.0030209727109685356, 0.003024751287975715, 0.003028534591157396, 0.0030323226264249935, 0.0030361153996973076, 0.0030399129169005504, 0.0030437151839683434, 0.0030475222068417317, 0.0030513339914691844, 0.003055150543806618, 0.003058971869817397, 0.003062797975472346, 0.0030666288667497515, 0.0030704645496353834, 0.0030743050301225002, 0.0030781503142118484, 0.0030820004079116876, 0.003085855317237789, 0.003089715048213454, 0.0030935796068695056, 0.003097448999244321, 0.0031013232313838296, 0.0031052023093415143, 0.003109086239178437, 0.0031129750269632407, 0.003116868678772158, 0.003120767200689016, 0.0031246705988052584, 0.003128578879219949, 0.0031324920480397703, 0.0031364101113790527, 0.003140333075359771, 0.003144260946111559, 0.003148193729771712, 0.003152131432485206, 0.0031560740604047034, 0.0031600216196905635, 0.003163974116510843, 0.0031679315570413216, 0.0031718939474655043, 0.0031758612939746206, 0.003179833602767654, 0.0031838108800513365, 0.0031877931320401683, 0.0031917803649564127, 0.0031957725850301254, 0.003199769798499154, 0.003203772011609139, 0.0032077792306135426, 0.003211791461773645, 0.0032158087113585607, 0.003219830985645238, 0.003223858290918484, 0.0032278906334709664, 0.003231928019603216, 0.0032359704556236524, 0.0032400179478485817, 0.0032440705026022154, 0.003248128126216665, 0.0032521908250319705, 0.0032562586053961, 0.0032603314736649644, 0.003264409436202415, 0.0032684924993802724, 0.0032725806695783257, 0.003276673953184337, 0.0032807723565940645, 0.003284875886211265, 0.003288984548447707, 0.0032930983497231705, 0.0032972172964654736, 0.0033013413951104745, 0.003305470652102072, 0.0033096050738922337, 0.0033137446669409955, 0.0033178894377164743, 0.0033220393926948694, 0.00332619453836049, 0.0033303548812057544, 0.003334520427731194, 0.0033386911844454775, 0.0033428671578654146, 0.0033470483545159665, 0.0033512347809302487, 0.003355426443649556, 0.0033596233492233615, 0.0033638255042093357, 0.003368032915173339, 0.0033722455886894555, 0.0033764635313399912, 0.0033806867497154767, 0.0033849152504146947, 0.0033891490400446774, 0.003393388125220726, 0.0033976325125664054, 0.003401882208713575, 0.0034061372203023884, 0.0034103975539812965, 0.003414663216407074, 0.00341893421424482, 0.0034232105541679727, 0.003427492242858307, 0.0034317792870059657, 0.0034360716933094595, 0.003440369468475668, 0.0034446726192198687, 0.0034489811522657354, 0.003453295074345355, 0.0034576143921992253, 0.003461939112576285, 0.0034662692422339097, 0.003470604787937931, 0.003474945756462635, 0.0034792921545907874, 0.00348364398911364, 0.003488001266830929, 0.0034923639945509044, 0.00349673217909033, 0.0035011058272744968, 0.003505484945937226, 0.0035098695419208932, 0.003514259622076435, 0.0035186551932633453, 0.0035230562623497085, 0.003527462836212196, 0.0035318749217360832, 0.003536292525815249, 0.0035407156553522025, 0.003545144317258089, 0.003549578518452686, 0.003554018265864438, 0.0035584635664304507, 0.0035629144270965104, 0.0035673708548170815, 0.0035718328565553367, 0.0035763004392831534, 0.0035807736099811352, 0.003585252375638605, 0.0035897367432536384, 0.0035942267198330637, 0.0035987223123924643, 0.003603223527956207, 0.0036077303735574423, 0.0036122428562381207, 0.0036167609830489913, 0.0036212847610496302, 0.0036258141973084454, 0.0036303492989026758, 0.003634890072918421, 0.003639436526450642, 0.003643988666603176, 0.0036485465004887367, 0.003653110035228944, 0.003657679277954324, 0.0036622542358043146, 0.00366683491592729, 0.003671421325480565, 0.0036760134716304076, 0.003680611361552041, 0.003685215002429673, 0.0036898244014564926, 0.00369443956583469, 0.0036990605027754546, 0.0037036872194990043, 0.003708319723234588, 0.0037129580212204864, 0.0037176021207040453, 0.0037222520289416712, 0.0037269077531988494, 0.0037315693007501432, 0.003736236678879226, 0.0037409098948788786, 0.003745588956050997, 0.003750273869706617, 0.003754964643165919, 0.003759661283758239, 0.0037643637988220733, 0.0037690721957051054, 0.00377378648176421, 0.003778506664365453, 0.0037832327508841245, 0.0037879647487047354, 0.003792702665221036, 0.0037974465078360158, 0.0038021962839619333, 0.0038069520010203138, 0.0038117136664419706, 0.003816481287666999, 0.003821254872144812, 0.0038260344273341406, 0.003830819960703033, 0.0038356114797288886, 0.0038404089918984584, 0.0038452125047078586, 0.0038500220256625726, 0.003854837562277481, 0.0038596591220768635, 0.0038644867125944026, 0.0038693203413732126, 0.0038741600159658387, 0.003879005743934277, 0.0038838575328499726, 0.003888715390293849, 0.003893579323856313, 0.0038984493411372556, 0.003903325449746082, 0.003908207657301713, 0.003913095971432605, 0.003917990399776738, 0.0039228909499816654, 0.003927797629704495, 0.003932710446611919, 0.003937629408380209, 0.003942554522695246, 0.003947485797252525, 0.003952423239757159, 0.003957366857923903, 0.003962316659477164, 0.00396727265215101, 0.003972234843689175, 0.003977203241845086, 0.00398217785438187, 0.003987158689072354, 0.003992145753699096, 0.003997139056054385, 0.004002138603940262, 0.004007144405168514, 0.004012156467560708, 0.0040171747989481985, 0.004022199407172121, 0.004027230300083431, 0.004032267485542898, 0.004037310971421132, 0.00404236076559857, 0.004047416875965522, 0.004052479310422161, 0.004057548076878545, 0.004062623183254618, 0.0040677046374802345, 0.004072792447495173, 0.0040778866212491304, 0.004082987166701758, 0.004088094091822659, 0.004093207404591409, 0.004098327112997552, 0.004103453225040638, 0.00410858574873022, 0.004113724692085863, 0.004118870063137167, 0.004124021869923777, 0.004129180120495397, 0.0041343448229117855, 0.004139515985242795, 0.004144693615568372, 0.004149877721978557, 0.004155068312573521, 0.004160265395463564, 0.00416546897876913, 0.004170679070620815, 0.004175895679159389, 0.004181118812535806, 0.004186348478911216, 0.004191584686456966, 0.004196827443354635, 0.004202076757796037, 0.004207332637983217, 0.004212595092128494, 0.004217864128454453, 0.004223139755193968, 0.004228421980590201, 0.004233710812896631, 0.004239006260377065, 0.004244308331305634, 0.004249617033966827, 0.004254932376655495, 0.0042602543676768636, 0.004265583015346538, 0.004270918327990535, 0.004276260313945285, 0.0042816089815576365, 0.004286964339184885, 0.004292326395194779, 0.004297695157965535, 0.0043030706358858405, 0.004308452837354882, 0.0043138417707823526, 0.004319237444588463, 0.00432463986720395, 0.004330049047070101, 0.004335464992638767, 0.004340887712372354, 0.004346317214743867, 0.004351753508236906, 0.004357196601345684, 0.004362646502575026, 0.004368103220440409, 0.004373566763467959, 0.004379037140194455, 0.004384514359167365, 0.004389998428944847, 0.004395489358095763, 0.004400987155199684, 0.004406491828846923, 0.004412003387638536, 0.004417521840186329, 0.004423047195112888, 0.004428579461051582, 0.00443411864664658, 0.004439664760552854, 0.00444521781143621, 0.0044507778079732946, 0.004456344758851604, 0.004461918672769494, 0.00446749955843621, 0.00447308742457189, 0.00447868227990757, 0.004484284133185214, 0.00448989299315772, 0.0044955088685889365, 0.004501131768253663, 0.0045067617009376835, 0.004512398675437775, 0.004518042700561701, 0.004523693785128258, 0.004529351937967265, 0.004535017167919592, 0.004540689483837153, 0.004546368894582948, 0.00455205540903106, 0.0045577490360666625, 0.004563449784586051, 0.004569157663496647, 0.004574872681717018, 0.004580594848176869, 0.0045863241718170945, 0.004592060661589762, 0.004597804326458141, 0.004603555175396703, 0.004609313217391153, 0.004615078461438438, 0.004620850916546742, 0.004626630591735535, 0.004632417496035559, 0.004638211638488856, 0.004644013028148769, 0.004649821674079972, 0.004655637585358481, 0.00466146077107165, 0.004667291240318212, 0.004673129002208276, 0.004678974065863351, 0.004684826440416341, 0.004690686135011586, 0.004696553158804865, 0.004702427520963396, 0.0047083092306658735, 0.004714198297102471, 0.004720094729474861, 0.004725998536996211, 0.004731909728891225, 0.004737828314396141, 0.004743754302758757, 0.00474968770323842, 0.004755628525106074, 0.004761576777644258, 0.004767532470147112, 0.004773495611920408, 0.0047794662122815565, 0.004785444280559627, 0.004791429826095345, 0.0047974228582411274, 0.004803423386361094, 0.004809431419831064, 0.004815446968038594, 0.004821470040382979, 0.004827500646275275, 0.0048335387951382956, 0.0048395844964066554, 0.004845637759526767, 0.004851698593956847, 0.004857767009166954, 0.004863843014638989, 0.004869926619866716, 0.00487601783435576, 0.004882116667623649, 0.004888223129199811, 0.004894337228625599, 0.004900458975454284, 0.004906588379251103, 0.004912725449593253, 0.0049188701960698996, 0.004925022628282216, 0.004931182755843376, 0.004937350588378586, 0.004943526135525078, 0.004949709406932148, 0.004955900412261164, 0.004962099161185564, 0.004968305663390899, 0.004974519928574829, 0.00498074196644715, 0.004986971786729788, 0.004993209399156842, 0.004999454813474589, 0.005005708039441481, 0.005011969086828187, 0.005018237965417597, 0.005024514685004837, 0.005030799255397276, 0.00503709168641456, 0.005043391987888613, 0.005049700169663663, 0.005056016241596236, 0.005062340213555199, 0.005068672095421764, 0.00507501189708949, 0.005081359628464322, 0.005087715299464591, 0.0050940789200210395, 0.005100450500076815, 0.0051068300495875196, 0.005113217578521204, 0.005119613096858374, 0.005126016614592032, 0.005132428141727678, 0.005138847688283327, 0.005145275264289513, 0.005151710879789329, 0.005158154544838431, 0.005164606269505037, 0.005171066063869972, 0.005177533938026667, 0.00518400990208118, 0.005190493966152198, 0.005196986140371077, 0.00520348643488184, 0.005209994859841202, 0.00521651142541857, 0.005223036141796084, 0.005229569019168619, 0.005236110067743786, 0.0052426592977419815, 0.005249216719396378, 0.005255782342952951, 0.005262356178670482, 0.005268938236820594, 0.005275528527687759, 0.005282127061569297, 0.005288733848775424, 0.005295348899629247, 0.005301972224466788, 0.005308603833636984, 0.005315243737501731, 0.005321891946435882, 0.00532854847082726, 0.005335213321076685, 0.005341886507597992, 0.005348568040818036, 0.005355257931176708, 0.005361956189126966, 0.0053686628251348395, 0.005375377849679453, 0.0053821012732530255, 0.005388833106360911, 0.005395573359521605, 0.0054023220432667446, 0.005409079168141154, 0.005415844744702843, 0.00542261878352303, 0.005429401295186142, 0.005436192290289862, 0.0054429917794451225, 0.005449799773276119, 0.0054566162824203485, 0.005463441317528606, 0.005470274889265015, 0.0054771170083070244, 0.005483967685345451, 0.005490826931084482, 0.005497694756241682, 0.005504571171548034, 0.0055114561877479375, 0.005518349815599237, 0.005525252065873217, 0.005532162949354651, 0.0055390824768417925, 0.0055460106591464125, 0.005552947507093787, 0.005559893031522745, 0.005566847243285677, 0.005573810153248529, 0.005580781772290854, 0.005587762111305808, 0.0055947511812001775, 0.005601748992894375, 0.005608755557322488, 0.005615770885432279, 0.00562279498818519, 0.005629827876556388, 0.0056368695615347615, 0.00564392005412295, 0.00565097936533734, 0.00565804750620811, 0.005665124487779239, 0.0056722103211085, 0.005679305017267513, 0.005686408587341744, 0.005693521042430527, 0.005700642393647064, 0.005707772652118473, 0.005714911828985782, 0.005722059935403965, 0.005729216982541927, 0.005736382981582561, 0.005743557943722746, 0.005750741880173353, 0.005757934802159287, 0.005765136720919492, 0.005772347647706972, 0.00577956759378879, 0.0057867965704461195, 0.005794034588974242, 0.005801281660682553, 0.005808537796894608, 0.005815803008948122, 0.005823077308194995, 0.005830360706001309, 0.005837653213747382, 0.005844954842827762, 0.005852265604651235, 0.005859585510640875, 0.0058669145722340344, 0.0058742528008823795, 0.005881600208051883, 0.005888956805222875, 0.00589632260389004, 0.005903697615562446, 0.005911081851763538, 0.005918475324031192, 0.005925878043917715, 0.005933290022989848, 0.005940711272828814, 0.005948141805030318, 0.005955581631204574, 0.005963030762976299, 0.005970489211984769, 0.005977956989883817, 0.005985434108341838, 0.005992920579041833, 0.006000416413681417, 0.006007921623972837, 0.006015436221642975, 0.0060229602184333954, 0.006030493626100352, 0.006038036456414782, 0.006045588721162367, 0.006053150432143521, 0.006060721601173423, 0.006068302240082017, 0.006075892360714057, 0.006083491974929109, 0.006091101094601574, 0.006098719731620694, 0.006106347897890598, 0.006113985605330298, 0.006121632865873706, 0.006129289691469672, 0.006136956094081987, 0.006144632085689412, 0.006152317678285675, 0.006160012883879521, 0.006167717714494715, 0.0061754321821700445, 0.006183156298959374, 0.006190890076931636, 0.006198633528170865, 0.006206386664776195, 0.006214149498861909, 0.00622192204255744, 0.006229704308007379, 0.006237496307371524, 0.006245298052824874, 0.006253109556557662, 0.006260930830775354, 0.006268761887698699, 0.006276602739563723, 0.006284453398621764, 0.006292313877139468, 0.006300184187398838, 0.006308064341697242, 0.006315954352347411, 0.006323854231677494, 0.006331763992031053, 0.006339683645767095, 0.0063476132052600704, 0.006355552682899922, 0.0063635020910920905, 0.006371461442257516, 0.006379430748832693, 0.006387410023269663, 0.0063953992780360494, 0.0064033985256150535, 0.006411407778505507, 0.0064194270492218715, 0.006427456350294251, 0.006435495694268435, 0.006443545093705897, 0.0064516045611838335, 0.006459674109295151, 0.0064677537506485265, 0.0064758434978683995, 0.006483943363595007, 0.006492053360484381, 0.006500173501208397, 0.006508303798454783, 0.006516444264927118, 0.006524594913344887, 0.006532755756443479, 0.006540926806974222, 0.006549108077704368, 0.006557299581417162, 0.006565501330911835, 0.00657371333900361, 0.006581935618523757, 0.0065901681823195895, 0.006598411043254496, 0.0066066642142079334, 0.006614927708075492, 0.006623201537768887, 0.006631485716215966, 0.0066397802563607665, 0.006648085171163507, 0.0066564004736006255, 0.006664726176664771, 0.0066730622933648615, 0.0066814088367260814, 0.006689765819789912, 0.006698133255614127, 0.0067065111572728545, 0.006714899537856572, 0.006723298410472113, 0.0067317077882427245, 0.006740127684308059, 0.006748558111824213, 0.006756999083963718, 0.0067654506139156, 0.006773912714885383, 0.006782385400095087, 0.006790868682783293, 0.006799362576205129, 0.0068078670936323115, 0.006816382248353138, 0.006824908053672546, 0.006833444522912112, 0.006841991669410061, 0.006850549506521314, 0.006859118047617494, 0.006867697306086954, 0.006876287295334774, 0.00688488802878282, 0.00689349951986974, 0.006902121782050995, 0.006910754828798858, 0.006919398673602474, 0.006928053329967858, 0.006936718811417897, 0.006945395131492416, 0.006954082303748165, 0.006962780341758858, 0.006971489259115169, 0.006980209069424788, 0.006988939786312427, 0.00699768142341982, 0.007006433994405782, 0.007015197512946206, 0.007023971992734098, 0.007032757447479572, 0.0070415538909099065, 0.007050361336769555, 0.007059179798820138, 0.00706800929084051, 0.0070768498266267545, 0.007085701419992216, 0.007094564084767499, 0.007103437834800522, 0.007112322683956522, 0.007121218646118085, 0.007130125735185139, 0.0071390439650750185, 0.007147973349722465, 0.00715691390307963, 0.007165865639116138, 0.007174828571819076, 0.0071838027151930346, 0.0071927880832601005, 0.007201784690059921, 0.0072107925496497, 0.007219811676104206, 0.007228842083515834, 0.007237883785994595, 0.007246936797668157, 0.007256001132681841, 0.007265076805198676, 0.007274163829399409, 0.007283262219482503, 0.007292371989664201, 0.00730149315417852, 0.007310625727277286, 0.007319769723230136, 0.007328925156324568, 0.007338092040865948, 0.007347270391177543, 0.007356460221600511, 0.0073656615464939715, 0.0073748743802350015, 0.007384098737218642, 0.00739333463185796, 0.00740258207858404, 0.007411841091846026, 0.007421111686111115, 0.007430393875864617, 0.007439687675609964, 0.007448993099868703, 0.007458310163180569, 0.007467638880103474, 0.007476979265213546, 0.007486331333105125, 0.007495695098390825, 0.007505070575701537, 0.007514457779686432, 0.007523856725013025, 0.007533267426367168, 0.00754268989845309, 0.007552124155993391, 0.007561570213729109, 0.007571028086419708, 0.007580497788843121, 0.007589979335795749, 0.007599472742092514, 0.0076089780225668735, 0.007618495192070814, 0.007628024265474923, 0.007637565257668377, 0.007647118183558985, 0.007656683058073181, 0.00766625989615609, 0.007675848712771529, 0.007685449522902012, 0.007695062341548812, 0.00770468718373196, 0.007714324064490279, 0.007723972998881385, 0.007733634001981743, 0.00774330708888668, 0.007752992274710381, 0.007762689574585958, 0.007772399003665442, 0.007782120577119824, 0.0077918543101390516, 0.007801600217932089, 0.007811358315726919, 0.007821128618770577, 0.007830911142329148, 0.007840705901687834, 0.007850512912150954, 0.007860332189041952, 0.007870163747703452, 0.00788000760349727, 0.007889863771804433, 0.007899732268025195, 0.00790961310757909, 0.007919506305904937, 0.007929411878460845, 0.007939329840724279, 0.007949260208192055, 0.007959202996380383, 0.007969158220824855, 0.00797912589708052, 0.007989106040721875, 0.007999098667342885, 0.00800910379255704, 0.008019121431997341, 0.008029151601316365, 0.008039194316186236, 0.008049249592298705, 0.008059317445365139, 0.00806939789111657, 0.00807949094530368, 0.008089596623696875, 0.008099714942086285, 0.008109845916281768, 0.008119989562112982, 0.008130145895429375, 0.00814031493210022, 0.008150496688014632, 0.008160691179081607, 0.008170898421230047, 0.008181118430408753, 0.008191351222586503, 0.008201596813752028, 0.008211855219914079, 0.008222126457101398, 0.008232410541362804, 0.008242707488767185, 0.008253017315403509, 0.008263340037380888, 0.008273675670828576, 0.008284024231896009, 0.008294385736752797, 0.008304760201588804, 0.008315147642614132, 0.008325548076059163, 0.008335961518174562, 0.00834638798523134, 0.00835682749352086, 0.00836728005935484, 0.008377745699065424, 0.008388224429005173, 0.008398716265547113, 0.008409221225084723, 0.00841973932403201, 0.008430270578823514, 0.008440815005914305, 0.008451372621780058, 0.008461943442917052, 0.008472527485842199, 0.008483124767093056, 0.00849373530322788, 0.008504359110825645, 0.008514996206486035, 0.00852564660682952, 0.008536310328497351, 0.008546987388151602, 0.008557677802475164, 0.00856838158817182, 0.008579098761966233, 0.008589829340603997, 0.008600573340851627, 0.00861133077949663, 0.008622101673347515, 0.008632886039233787, 0.008643683894006026, 0.008654495254535884, 0.008665320137716117, 0.008676158560460591, 0.008687010539704351, 0.008697876092403623, 0.008708755235535817, 0.008719647986099604, 0.008730554361114905, 0.008741474377622944, 0.008752408052686228, 0.008763355403388635, 0.00877431644683541, 0.008785291200153164, 0.008796279680489962, 0.008807281905015302, 0.00881829789092017, 0.00882932765541703, 0.008840371215739896, 0.008851428589144332, 0.008862499792907493, 0.008873584844328118, 0.00888468376072661, 0.008895796559445035, 0.008906923257847124, 0.008918063873318354, 0.008929218423265934, 0.00894038692511886, 0.0089515693963279, 0.008962765854365675, 0.008973976316726655, 0.008985200800927176, 0.008996439324505503, 0.009007691905021827, 0.009018958560058316, 0.009030239307219102, 0.00904153416413036, 0.009052843148440317, 0.00906416627781924, 0.00907550356995953, 0.009086855042575705, 0.00909822071340445, 0.009109600600204612, 0.009120994720757272, 0.00913240309286574, 0.00914382573435561, 0.009155262663074743, 0.00916671389689335, 0.009178179453703987, 0.009189659351421577, 0.009201153607983466, 0.009212662241349428, 0.009224185269501715, 0.009235722710445041, 0.009247274582206666, 0.009258840902836398, 0.009270421690406599, 0.009282016963012254, 0.009293626738770981, 0.00930525103582306, 0.00931688987233144, 0.009328543266481814, 0.009340211236482616, 0.009351893800565033, 0.009363590976983081, 0.009375302784013597, 0.009387029239956293, 0.009398770363133732, 0.009410526171891434, 0.009422296684597849, 0.00943408191964441, 0.00944588189544553, 0.009457696630438682, 0.009469526143084397, 0.009481370451866271, 0.009493229575291046, 0.009505103531888603, 0.009516992340212006, 0.009528896018837505, 0.0095408145863646, 0.009552748061416068, 0.009564696462637945, 0.009576659808699614, 0.009588638118293805, 0.009600631410136635, 0.009612639702967605, 0.009624663015549683, 0.009636701366669302, 0.009648754775136369, 0.009660823259784342, 0.009672906839470231, 0.009685005533074637, 0.009697119359501748, 0.009709248337679431, 0.009721392486559214, 0.009733551825116335, 0.009745726372349744, 0.009757916147282181, 0.009770121168960179, 0.009782341456454064, 0.009794577028858043, 0.009806827905290203, 0.009819094104892543, 0.009831375646830981, 0.009843672550295439, 0.009855984834499834, 0.009868312518682094, 0.009880655622104233, 0.009893014164052352, 0.009905388163836678, 0.00991777764079157, 0.009930182614275593, 0.009942603103671527, 0.00995503912838637, 0.009967490707851419, 0.009979957861522264, 0.009992440608878843, 0.010004938969425432, 0.010017452962690724, 0.010029982608227838, 0.01004252792561435, 0.0100550889344523, 0.010067665654368275, 0.010080258105013408, 0.010092866306063382, 0.010105490277218524, 0.010118130038203785, 0.0101307856087688, 0.010143457008687882, 0.0101561442577601, 0.010168847375809292, 0.010181566382684056, 0.010194301298257852, 0.010207052142428985, 0.010219818935120657, 0.01023260169628096, 0.010245400445882973, 0.010258215203924746, 0.01027104599042932, 0.010283892825444809, 0.01029675572904439, 0.010309634721326358, 0.010322529822414122, 0.010335441052456285, 0.01034836843162664, 0.01036131198012423, 0.010374271718173326, 0.01038724766602353, 0.010400239843949768, 0.010413248272252299, 0.0104262729712568, 0.01043931396131436, 0.010452371262801538, 0.010465444896120347, 0.010478534881698346, 0.010491641239988648, 0.010504763991469917, 0.010517903156646458, 0.010531058756048218, 0.010544230810230832, 0.010557419339775609, 0.01057062436528964, 0.01058384590740578, 0.010597083986782675, 0.010610338624104827, 0.010623609840082607, 0.0106368976554523, 0.010650202090976094, 0.010663523167442181, 0.010676860905664741, 0.010690215326483997, 0.010703586450766212, 0.010716974299403773, 0.010730378893315207, 0.010743800253445167, 0.010757238400764538, 0.010770693356270424, 0.0107841651409862, 0.010797653775961511, 0.010811159282272354, 0.010824681681021093, 0.010838220993336454, 0.010851777240373622, 0.01086535044331423, 0.010878940623366416, 0.010892547801764815, 0.010906171999770653, 0.010919813238671744, 0.010933471539782505, 0.010947146924444042, 0.010960839414024134, 0.010974549029917312, 0.010988275793544824, 0.01100201972635475, 0.01101578084982198, 0.011029559185448278, 0.011043354754762274, 0.011057167579319549, 0.011070997680702653, 0.011084845080521094, 0.011098709800411445, 0.011112591862037328, 0.011126491287089474, 0.011140408097285708, 0.011154342314371056, 0.011168293960117742, 0.011182263056325187, 0.011196249624820112, 0.01121025368745653, 0.011224275266115797, 0.011238314382706604, 0.011252371059165081, 0.011266445317454792, 0.01128053717956674, 0.011294646667519472, 0.01130877380335906, 0.011322918609159157, 0.011337081107021002, 0.011351261319073507, 0.011365459267473248, 0.011379674974404527, 0.011393908462079366, 0.011408159752737594, 0.01142242886864686, 0.011436715832102637, 0.01145102066542831, 0.011465343390975182, 0.011479684031122515, 0.011494042608277537, 0.011508419144875532, 0.011522813663379847, 0.011537226186281894, 0.011551656736101245, 0.011566105335385633, 0.011580572006710999, 0.011595056772681496, 0.011609559655929576, 0.011624080679116003, 0.011638619864929851, 0.011653177236088604, 0.011667752815338153, 0.011682346625452847, 0.011696958689235488, 0.011711589029517435, 0.01172623766915859, 0.01174090463104746, 0.011755589938101151, 0.011770293613265457, 0.01178501567951488, 0.011799756159852624, 0.011814515077310697, 0.011829292454949902, 0.0118440883158599, 0.011858902683159199, 0.011873735579995251, 0.011888587029544468, 0.011903457055012215, 0.01191834567963291, 0.011933252926670027, 0.011948178819416148, 0.011963123381192951, 0.011978086635351324, 0.011993068605271356, 0.01200806931436235, 0.012023088786062919, 0.012038127043840987, 0.012053184111193835, 0.012068260011648105, 0.012083354768759899, 0.012098468406114771, 0.012113600947327784, 0.012128752416043508, 0.012143922835936119, 0.012159112230709406, 0.012174320624096768, 0.012189548039861331, 0.012204794501795924, 0.01222006003372315, 0.012235344659495377, 0.012250648402994838, 0.01226597128813364, 0.012281313338853761, 0.012296674579127165, 0.012312055032955781, 0.012327454724371576, 0.012342873677436542, 0.012358311916242795, 0.012373769464912593, 0.012389246347598325, 0.012404742588482629, 0.012420258211778373, 0.012435793241728726, 0.012451347702607144, 0.012466921618717477, 0.012482515014393967, 0.012498127914001293, 0.012513760341934589, 0.012529412322619527, 0.012545083880512332, 0.012560775040099784, 0.012576485825899325, 0.012592216262459054, 0.012607966374357783, 0.012623736186205032, 0.012639525722641137, 0.012655335008337255, 0.012671164067995365, 0.012687012926348377, 0.012702881608160129, 0.012718770138225437, 0.012734678541370103, 0.012750606842451011, 0.012766555066356136, 0.012782523238004547, 0.012798511382346521, 0.012814519524363523, 0.01283054768906828, 0.01284659590150477, 0.01286266418674833, 0.012878752569905649, 0.012894861076114828, 0.012910989730545379, 0.01292713855839833, 0.012943307584906229, 0.012959496835333147, 0.012975706334974793, 0.012991936109158504, 0.013008186183243306, 0.013024456582619906, 0.01304074733271081, 0.01305705845897032, 0.013073389986884535, 0.013089741941971477, 0.013106114349781064, 0.013122507235895187, 0.013138920625927702, 0.013155354545524531, 0.01317180902036368, 0.013188284076155233, 0.013204779738641467, 0.013221296033596846, 0.013237832986828088, 0.013254390624174148, 0.013270968971506336, 0.013287568054728312, 0.013304187899776148, 0.013320828532618317, 0.013337489979255815, 0.01335417226572215, 0.013370875418083366, 0.013387599462438138, 0.01340434442491778, 0.013421110331686295, 0.013437897208940381, 0.013454705082909536, 0.013471533979856067, 0.01348838392607509, 0.013505254947894648, 0.013522147071675702, 0.013539060323812201, 0.013555994730731066, 0.01357295031889231, 0.013589927114789043, 0.01360692514494747, 0.01362394443592702, 0.013640985014320322, 0.013658046906753282, 0.013675130139885073, 0.013692234740408248, 0.013709360735048734, 0.0137265081505659, 0.013743677013752547, 0.013760867351435026, 0.013778079190473242, 0.013795312557760656, 0.013812567480224405, 0.013829843984825297, 0.013847142098557868, 0.013864461848450386, 0.013881803261564962, 0.013899166364997556, 0.013916551185877977, 0.013933957751370012, 0.013951386088671407, 0.013968836225013936, 0.013986308187663405, 0.014003802003919754, 0.01402131770111707, 0.014038855306623596, 0.014056414847841838, 0.014073996352208564, 0.014091599847194882, 0.01410922536030621, 0.014126872919082411, 0.014144542551097787, 0.014162234283961135, 0.014179948145315749, 0.014197684162839539, 0.014215442364245028, 0.014233222777279371, 0.014251025429724461, 0.014268850349396931, 0.014286697564148212, 0.014304567101864544, 0.014322458990467073, 0.014340373257911876, 0.014358309932189959, 0.01437626904132737, 0.014394250613385205, 0.014412254676459665, 0.014430281258682065, 0.014448330388218933, 0.014466402093272036, 0.014484496402078367, 0.014502613342910286, 0.014520752944075496, 0.014538915233917123, 0.014557100240813702, 0.014575307993179305, 0.01459353851946353, 0.01461179184815157, 0.01463006800776421, 0.014648367026857949, 0.014666688934024997, 0.014685033757893295, 0.014703401527126627, 0.014721792270424612, 0.01474020601652279, 0.01475864279419259, 0.01477710263224148, 0.014795585559512948, 0.014814091604886524, 0.014832620797277903, 0.014851173165638932, 0.01486974873895768, 0.014888347546258436, 0.014906969616601833, 0.01492561497908485, 0.014944283662840825, 0.01496297569703957, 0.014981691110887369, 0.015000429933627053, 0.015019192194537987, 0.015037977922936197, 0.015056787148174365, 0.015075619899641903, 0.015094476206764938, 0.015113356099006443, 0.015132259605866246, 0.015151186756881029, 0.015170137581624457, 0.015189112109707179, 0.015208110370776887, 0.015227132394518316, 0.01524617821065337, 0.015265247848941134, 0.01528434133917787, 0.015303458711197145, 0.015322599994869837, 0.01534176522010419, 0.015360954416845827, 0.015380167615077853, 0.015399404844820889, 0.015418666136133054, 0.01543795151911011, 0.015457261023885442, 0.01547659468063015, 0.015495952519553016, 0.015515334570900659, 0.015534740864957512, 0.0155541714320459, 0.015573626302526032, 0.015593105506796136, 0.015612609075292461, 0.01563213703848928, 0.015651689426899026, 0.015671266271072282, 0.01569086760159786, 0.015710493449102785, 0.015730143844252434, 0.01574981881775054, 0.015769518400339196, 0.015789242622798988, 0.015808991515948993, 0.01582876511064684, 0.015848563437788725, 0.015868386528309516, 0.015888234413182784, 0.015908107123420796, 0.01592800469007465, 0.015947927144234268, 0.01596787451702847, 0.01598784683962497, 0.016007844143230518, 0.016027866459090868, 0.016047913818490876, 0.016067986252754487, 0.01608808379324487, 0.01610820647136441, 0.016128354318554743, 0.016148527366296864, 0.016168725646111135, 0.01618894918955735, 0.016209198028234742, 0.016229472193782103, 0.01624977171787781, 0.0162700966322398, 0.01629044696862575, 0.016310822758833023, 0.016331224034698777, 0.01635165082809995, 0.016372103170953386, 0.01639258109521586, 0.016413084632884066, 0.016433613815994768, 0.01645416867662478, 0.01647474924689106, 0.016495355558950688, 0.016515987645001003, 0.01653664553727962, 0.016557329268064466, 0.016578038869673815, 0.016598774374466402, 0.016619535814841435, 0.016640323223238603, 0.01666113663213821, 0.016681976074061175, 0.016702841581569112, 0.016723733187264306, 0.016744650923789878, 0.01676559482382977, 0.01678656492010876, 0.016807561245392604, 0.016828583832488028, 0.0168496327142428, 0.016870707923545735, 0.016891809493326828, 0.016912937456557257, 0.016934091846249406, 0.016955272695456977, 0.01697648003727502, 0.016997713904839975, 0.017018974331329702, 0.01704026134996359, 0.017061574994002574, 0.017082915296749192, 0.0171042822915476, 0.01712567601178371, 0.017147096490885177, 0.01716854376232144, 0.01719001785960383, 0.01721151881628559, 0.017233046665961937, 0.017254601442270066, 0.01727618317888929, 0.017297791909541043, 0.017319427667988902, 0.01734109048803871, 0.017362780403538586, 0.017384497448378992, 0.017406241656492738, 0.017428013061855128, 0.017449811698483947, 0.0174716376004395, 0.01749349080182472, 0.017515371336785202, 0.017537279239509252, 0.017559214544227885, 0.017581177285214994, 0.017603167496787312, 0.01762518521330452, 0.01764723046916922, 0.017669303298827096, 0.017691403736766913, 0.01771353181752053, 0.01773568757566304, 0.01775787104581277, 0.01778008226263136, 0.017802321260823758, 0.017824588075138367, 0.01784688274036705, 0.017869205291345145, 0.0178915557629516, 0.017913934190108984, 0.01793634060778355, 0.017958775050985247, 0.01798123755476786, 0.018003728154229015, 0.018026246884510193, 0.018048793780796872, 0.018071368878318526, 0.01809397221234871, 0.018116603818205054, 0.0181392637312494, 0.01816195198688781, 0.018184668620570648, 0.01820741366779257, 0.01823018716409267, 0.0182529891450545, 0.018275819646306073, 0.01829867870352, 0.01832156635241351, 0.018344482628748514, 0.0183674275683316, 0.018390401207014198, 0.01841340358069258, 0.018436434725307867, 0.018459494676846176, 0.018482583471338628, 0.01850570114486142, 0.018528847733535827, 0.018552023273528347, 0.018575227801050722, 0.018598461352359937, 0.018621723963758365, 0.018645015671593775, 0.018668336512259423, 0.018691686522194027, 0.018715065737881925, 0.018738474195853085, 0.018761911932683176, 0.018785378984993564, 0.018808875389451474, 0.01883240118276999, 0.018855956401708063, 0.018879541083070675, 0.018903155263708827, 0.01892679898051963, 0.018950472270446286, 0.018974175170478266, 0.018997907717651297, 0.019021669949047387, 0.019045461901794968, 0.0190692836130689, 0.019093135120090553, 0.019117016460127804, 0.019140927670495196, 0.01916486878855394, 0.01918883985171193, 0.019212840897423897, 0.019236871963191404, 0.019260933086562935, 0.019285024305133888, 0.01930914565654674, 0.019333297178491027, 0.01935747890870344, 0.01938169088496783, 0.019405933145115354, 0.01943020572702448, 0.019454508668621008, 0.019478842007878226, 0.0195032057828169, 0.01952760003150537, 0.01955202479205953, 0.019576480102643016, 0.01960096600146718, 0.01962548252679113, 0.01965002971692188, 0.019674607610214324, 0.019699216245071358, 0.019723855659943862, 0.019748525893330853, 0.01977322698377951, 0.019797958969885163, 0.019822721890291477, 0.01984751578369043, 0.019872340688822418, 0.01989719664447623, 0.019922083689489223, 0.019947001862747327, 0.019971951203185116, 0.019996931749785812, 0.020021943541581443, 0.02004698661765287, 0.02007206101712977, 0.020097166779190816, 0.02012230394306368, 0.0201474725480251, 0.020172672633400897, 0.02019790423856613, 0.020223167402945108, 0.020248462166011387, 0.02027378856728797, 0.020299146646347258, 0.020324536442811174, 0.02034995799635114, 0.020375411346688257, 0.020400896533593303, 0.020426413596886753, 0.020451962576438932, 0.02047754351217003, 0.020503156444050166, 0.020528801412099416, 0.02055447845638796, 0.020580187617036075, 0.02060592893421424, 0.020631702448143125, 0.02065750819909376, 0.020683346227387548, 0.020709216573396257, 0.020735119277542218, 0.020761054380298308, 0.020787021922188027, 0.020813021943785516, 0.02083905448571572, 0.020865119588654397, 0.02089121729332812, 0.020917347640514457, 0.02094351067104197, 0.020969706425790297, 0.020995934945690155, 0.02102219627172351, 0.021048490444923594, 0.021074817506374896, 0.021101177497213346, 0.021127570458626323, 0.02115399643185272, 0.02118045545818298, 0.021206947578959214, 0.02123347283557525, 0.0212600312694767, 0.02128662292216095, 0.02131324783517737, 0.021339906050127262, 0.02136659760866394, 0.021393322552492853, 0.021420080923371602, 0.021446872763110032, 0.02147369811357023, 0.021500557016666696, 0.02152744951436636, 0.021554375648688572, 0.021581335461705316, 0.021608328995541163, 0.0216353562923734, 0.021662417394432004, 0.021689512343999837, 0.021716641183412638, 0.02174380395505904, 0.021771000701380768, 0.021798231464872593, 0.021825496288082467, 0.021852795213611498, 0.021880128284114134, 0.021907495542298157, 0.021934897030924792, 0.021962332792808674, 0.021989802870818063, 0.02201730730787483, 0.022044846146954473, 0.0220724194310863, 0.022100027203353422, 0.02212766950689285, 0.0221553463848955, 0.02218305788060636, 0.022210804037324512, 0.022238584898403135, 0.02226640050724969, 0.02229425090732591, 0.022322136142147914, 0.02235005625528618, 0.022378011290365752, 0.02240600129106623, 0.022434026301121793, 0.02246208636432138, 0.02249018152450868, 0.022518311825582234, 0.022546477311495436, 0.022574678026256716, 0.02260291401392952, 0.022631185318632435, 0.022659491984539166, 0.022687834055878733, 0.022716211576935468, 0.02274462459204904, 0.022773073145614633, 0.022801557282082937, 0.02283007704596026, 0.022858632481808524, 0.022887223634245432, 0.022915850547944514, 0.02294451326763509, 0.022973211838102508, 0.023001946304188104, 0.023030716710789316, 0.02305952310285968, 0.023088365525409025, 0.02311724402350346, 0.023146158642265425, 0.02317510942687383, 0.023204096422564095, 0.023233119674628232, 0.023262179228414833, 0.02329127512932928, 0.023320407422833728, 0.023349576154447205, 0.02337878136974562, 0.023408023114361947, 0.023437301433986226, 0.023466616374365597, 0.023495967981304468, 0.023525356300664522, 0.023554781378364826, 0.023584243260381815, 0.023613741992749498, 0.02364327762155945, 0.023672850192960844, 0.023702459753160633, 0.02373210634842354, 0.023761790025072175, 0.023791510829487033, 0.023821268808106668, 0.023851064007427727, 0.02388089647400495, 0.023910766254451363, 0.02394067339543828, 0.023970617943695396, 0.024000599946010816, 0.024030619449231197, 0.024060676500261797, 0.024090771146066548, 0.02412090343366806, 0.024151073410147814, 0.024181281122646194, 0.02421152661836247, 0.024241809944555017, 0.024272131148541286, 0.024302490277697947, 0.024332887379460856, 0.024363322501325255, 0.024393795690845807, 0.024424306995636576, 0.02445485646337125, 0.024485444141783125, 0.024516070078665225, 0.02454673432187027, 0.024577436919310913, 0.024608177918959726, 0.024638957368849225, 0.02466977531707206, 0.024700631811781015, 0.024731526901189124, 0.02476246063356965, 0.024793433057256318, 0.02482444422064326, 0.02485549417218518, 0.024886582960397315, 0.024917710633855634, 0.024948877241196883, 0.024980082831118567, 0.025011327452379162, 0.02504261115379811, 0.025073933984255933, 0.025105295992694232, 0.025136697228115876, 0.025168137739585032, 0.025199617576227167, 0.025231136787229262, 0.025262695421839784, 0.025294293529368836, 0.025325931159188117, 0.025357608360731143, 0.02538932518349327, 0.02542108167703169, 0.02545287789096563, 0.025484713874976386, 0.025516589678807385, 0.02554850535226422, 0.025580460945214843, 0.025612456507589556, 0.025644492089381125, 0.025676567740644793, 0.025708683511498465, 0.025740839452122733, 0.025773035612760883, 0.02580527204371912, 0.025837548795366535, 0.025869865918135247, 0.02590222346252038, 0.0259346214790803, 0.02596706001843655, 0.025999539131274032, 0.026032058868340993, 0.026064619280449206, 0.026097220418473947, 0.02612986233335417, 0.026162545076092496, 0.02619526869775538, 0.02622803324947311, 0.026260838782439944, 0.026293685347914184, 0.026326572997218207, 0.026359501781738626, 0.026392471752926274, 0.026425482962296392, 0.026458535461428616, 0.026491629301967082, 0.026524764535620575, 0.02655794121416249, 0.026591159389431043, 0.026624419113329214, 0.026657720437824967, 0.026691063414951213, 0.026724448096805985, 0.02675787453555245, 0.02679134278341901, 0.026824852892699428, 0.026858404915752834, 0.026891998905003878, 0.026925634912942743, 0.02695931299212531, 0.026993033195173148, 0.027026795574773683, 0.027060600183680204, 0.027094447074711987, 0.027128336300754407, 0.027162267914758925, 0.027196241969743296, 0.02723025851879152, 0.027264317615054056, 0.027298419311747795, 0.02733256366215619, 0.027366750719629372, 0.027400980537584156, 0.027435253169504212, 0.027469568668940052, 0.027503927089509224, 0.02753832848489628, 0.027572772908852967, 0.027607260415198235, 0.02764179105781833, 0.027676364890666945, 0.027710981967765204, 0.02774564234320184, 0.027780346071133194, 0.027815093205783393, 0.027849883801444326, 0.02788471791247584, 0.027919595593305743, 0.027954516898429906, 0.0279894818824124, 0.028024490599885495, 0.028059543105549836, 0.028094639454174446, 0.028129779700596883, 0.028164963899723262, 0.028200192106528375, 0.028235464376055806, 0.028270780763417932, 0.028306141323796115, 0.02834154611244068, 0.02837699518467111, 0.028412488595876022, 0.028448026401513362, 0.02848360865711041, 0.02851923541826388, 0.028554906740640065, 0.028590622679974843, 0.028626383292073836, 0.028662188632812426, 0.028698038758135924, 0.02873393372405956, 0.028769873586668684, 0.028805858402118748, 0.028841888226635443, 0.02887796311651482, 0.02891408312812329, 0.02895024831789781, 0.02898645874234588, 0.02902271445804572, 0.02905901552164629, 0.029095361989867376, 0.029131753919499768, 0.02916819136740522, 0.029204674390516668, 0.029241203045838195, 0.029277777390445226, 0.029314397481484535, 0.029351063376174415, 0.02938777513180468, 0.029424532805736807, 0.02946133645540405, 0.029498186138311445, 0.029535081912036, 0.02957202383422669, 0.02960901196260464, 0.029646046354963117, 0.029683127069167724, 0.0297202541631564, 0.029757427694939546, 0.029794647722600157, 0.02983191430429382, 0.029869227498248916, 0.0299065873627666, 0.029943993956220986, 0.029981447337059177, 0.03001894756380136, 0.030056494695040972, 0.030094088789444657, 0.03013172990575251, 0.03016941810277803, 0.030207153439408323, 0.030244935974604106, 0.030282765767399883, 0.030320642876903958, 0.030358567362298555, 0.030396539282839967, 0.030434558697858542, 0.03047262566675889, 0.030510740249019865, 0.030548902504194755, 0.030587112491911296, 0.03062537027187185, 0.030663675903853396, 0.030702029447707693, 0.030740430963361383, 0.030778880510816023, 0.030817378150148258, 0.030855923941509815, 0.03089451794512771, 0.030933160221304247, 0.030971850830417154, 0.031010589832919707, 0.031049377289340735, 0.03108821326028484, 0.031127097806432358, 0.031166030988539567, 0.031205012867438695, 0.03124404350403809, 0.03128312295932226, 0.031322251294351955, 0.03136142857026436, 0.03140065484827307, 0.031439930189668286, 0.03147925465581681, 0.031518628308162246, 0.03155805120822501, 0.031597523417602504, 0.03163704499796912, 0.0316766160110764, 0.03171623651875316, 0.03175590658290548, 0.031795626265516935, 0.03183539562864856, 0.03187521473443906, 0.03191508364510482, 0.03195500242294005, 0.031994971130316886, 0.03203498982968545, 0.03207505858357401, 0.03211517745458898, 0.03215534650541513, 0.03219556579881558, 0.032235835397632, 0.03227615536478462, 0.032316525763272354, 0.03235694665617297, 0.03239741810664304, 0.03243794017791821, 0.03247851293331315, 0.03251913643622176, 0.032559810750117185, 0.03260053593855202, 0.03264131206515827, 0.03268213919364757, 0.032723017387811235, 0.03276394671152033, 0.03280492722872587, 0.03284595900345877, 0.03288704209983011, 0.032928176582031086, 0.032969362514333196, 0.03301059996108836, 0.03305188898672892, 0.03309322965576787, 0.03313462203279882, 0.03317606618249624, 0.0332175621696154, 0.03325911005899265, 0.03330070991554537, 0.033342361804272136, 0.03338406579025286, 0.03342582193864878, 0.0334676303147027, 0.03350949098373896, 0.03355140401116367, 0.03359336946246465, 0.03363538740321173, 0.03367745789905666, 0.03371958101573334, 0.03376175681905789, 0.033803985374928694, 0.03384626674932663, 0.03388860100831503, 0.0339309882180399, 0.03397342844472993, 0.034015921754696664, 0.0340584682143346, 0.03410106789012121, 0.034143720848617186, 0.03418642715646641, 0.03422918688039615, 0.03427200008721708, 0.0343148668438235, 0.03435778721719332, 0.034400761274388215, 0.03444378908255379, 0.03448687070891955, 0.03453000622079915, 0.03457319568559038, 0.03461643917077537, 0.03465973674392059, 0.03470308847267708, 0.034746494424780436, 0.03478995466805098, 0.03483346927039389, 0.0348770382997992, 0.03492066182434207, 0.03496433991218271, 0.03500807263156665, 0.03505186005082471, 0.035095702238373196, 0.035139599262714, 0.03518355119243464, 0.035227558096208464, 0.03527162004279467, 0.03531573710103848, 0.035359909339871175, 0.035404136828310305, 0.035448419635459694, 0.03549275783050958, 0.035537151482736784, 0.03558160066150472, 0.0356261054362636, 0.03567066587655044, 0.035715282051989275, 0.035759954032291166, 0.03580468188725441, 0.03584946568676456, 0.03589430550079455, 0.03593920139940492, 0.035984153452743715, 0.036029161731046803, 0.03607422630463783, 0.036119347243928436, 0.0361645246194183, 0.03620975850169525, 0.03625504896143545, 0.036300396069403384, 0.036345799896452126, 0.036391260513523274, 0.03643677799164721, 0.03648235240194311, 0.036527983815619135, 0.03657367230397246, 0.03661941793838944, 0.03666522079034573, 0.03671108093140635, 0.03675699843322585, 0.03680297336754835, 0.036849005806207744, 0.036895095821127724, 0.036941243484321984, 0.03698744886789422, 0.03703371204403832, 0.03708003308503851, 0.03712641206326934, 0.03717284905119594, 0.037219344121374016, 0.037265897346450076, 0.03731250879916142, 0.03735917855233632, 0.037405906678894194, 0.037452693251845574, 0.037499538344292364, 0.037546442029427834, 0.037593404380536856, 0.03764042547099589, 0.03768750537427323, 0.03773464416392898, 0.03778184191361528, 0.03782909869707639, 0.037876414588148756, 0.03792378966076122, 0.03797122398893503, 0.038018717646784043, 0.038066270708514774, 0.03811388324842658, 0.0381615553409117, 0.038209287060455406, 0.03825707848163618, 0.038304929679125695, 0.03835284072768909, 0.03840081170218492, 0.038448842677565445, 0.038496933728876595, 0.03854508493125817, 0.038593296359943983, 0.03864156809026186, 0.03868990019763391, 0.038738292757576495, 0.038786745845700486, 0.03883525953771124, 0.038883833909408874, 0.03893246903668824, 0.038981164995539094, 0.0390299218620463, 0.03907873971238978, 0.03912761862284482, 0.03917655866978201, 0.03922555992966752, 0.03927462247906308, 0.03932374639462625, 0.03937293175311038, 0.03942217863136483, 0.03947148710633511, 0.03952085725506289, 0.03957028915468625, 0.03961978288243969, 0.03966933851565434, 0.039718956131758, 0.03976863580827531, 0.039818377622827895, 0.039868181653134396, 0.03991804797701072, 0.03996797667237001, 0.04001796781722291, 0.040068021489677565, 0.040118137767939877, 0.04016831673031348, 0.04021855845519994, 0.04026886302109893, 0.04031923050660821, 0.04036966099042392, 0.04042015455134052, 0.04047071126825111, 0.04052133122014735, 0.04057201448611977, 0.040622761145357775, 0.04067357127714976, 0.04072444496088335, 0.0407753822760454, 0.040826383302222206, 0.040877448119099526, 0.040928576806462856, 0.040979769444197414, 0.04103102611228831, 0.041082346890820735, 0.04113373185997996, 0.041185181100051614, 0.041236694691421646, 0.0412882727145766, 0.041339915250103616, 0.04139162237869067, 0.0414433941811266, 0.04149523073830127, 0.04154713213120575, 0.04159909844093231, 0.04165112974867475, 0.04170322613572828, 0.041755387683489874, 0.04180761447345821, 0.04185990658723398, 0.04191226410651983, 0.04196468711312062, 0.04201717568894353, 0.04206972991599811, 0.04212234987639655, 0.04217503565235363, 0.04222778732618702, 0.04228060498031729, 0.042333488697268065, 0.042386438559666235, 0.04243945465024194, 0.04249253705182884, 0.042545685847364116, 0.042598901119888746, 0.04265218295254746, 0.04270553142858906, 0.042758946631366375, 0.042812428644336466, 0.04286597755106085, 0.042919593435205426, 0.0429732763805408, 0.04302702647094228, 0.04308084379039013, 0.04313472842296954, 0.04318868045287093, 0.04324269996438996, 0.043296787041927694, 0.04335094176999079, 0.04340516423319152, 0.043459454516248025, 0.043513812703984314, 0.04356823888133056, 0.04362273313332306, 0.04367729554510447, 0.04373192620192397, 0.04378662518913724, 0.043841392592206825, 0.043896228496702015, 0.04395113298829921, 0.04400610615278186, 0.04406114807604075, 0.04411625884407406, 0.04417143854298743, 0.04422668725899433, 0.04428200507841586, 0.04433739208768123, 0.04439284837332759, 0.0444483740220004, 0.044503969120453395, 0.044559633755548875, 0.04461536801425769, 0.04467117198365944, 0.0447270457509427, 0.04478298940340495, 0.04483900302845296, 0.044895086713602685, 0.044951240546479615, 0.045007464614818735, 0.04506375900646477, 0.0451201238093723, 0.04517655911160587, 0.045233065001340174, 0.04528964156686012, 0.04534628889656107, 0.04540300707894885, 0.04545979620264003, 0.045516656356361956, 0.04557358762895289, 0.045630590109362254, 0.04568766388665062, 0.04574480904999, 0.045802025688663844, 0.04585931389206731, 0.04591667374970726, 0.04597410535120256, 0.04603160878628409, 0.04608918414479491, 0.04614683151669051, 0.046204550992038754, 0.046262342661020237, 0.046320206613928216, 0.046378142941168946, 0.04643615173326166, 0.04649423308083879, 0.04655238707464614, 0.046610613805542905, 0.046668913364502, 0.04672728584260997, 0.04678573133106737, 0.0468442499211887, 0.04690284170440271, 0.04696150677225244, 0.047020245216395376, 0.04707905712860367, 0.047137942600764156, 0.047196901724878636, 0.04725593459306388, 0.04731504129755191, 0.04737422193069, 0.047433476584940966, 0.04749280535288319, 0.047552208327210806, 0.047611685600733915, 0.04767123726637858, 0.047730863417187144, 0.0477905641463182, 0.04785033954704691, 0.047910189712765006, 0.04797011473698099, 0.048030114713320346, 0.04809018973552555, 0.048150339897456346, 0.0482105652930898, 0.04827086601652052, 0.04833124216196071, 0.04839169382374045, 0.04845222109630771, 0.04851282407422853, 0.04857350285218728, 0.04863425752498662, 0.048695088187547836, 0.04875599493491081, 0.04881697786223435, 0.04887803706479615, 0.04893917263799311, 0.04900038467734137, 0.04906167327847647, 0.04912303853715362, 0.049184480549247636, 0.04924599941075332, 0.0493075952177854, 0.04936926806657887, 0.04943101805348898, 0.04949284527499145, 0.04955474982768271, 0.04961673180827985, 0.049678791313621004, 0.04974092844066527, 0.04980314328649308, 0.04986543594830615, 0.049927806523427806, 0.049990255109303015, 0.05005278180349856, 0.050115386703703274, 0.050178069907728065, 0.05024083151350619, 0.05030367161909329, 0.05036659032266768, 0.050429587722530325, 0.050492663917105204, 0.05055581900493927, 0.0506190530847027, 0.05068236625518909, 0.05074575861531548, 0.050809230264122644, 0.050872781300775126, 0.050936411824561524, 0.051000121934894505, 0.051063911731311036, 0.051127781313472585, 0.051191730781165144, 0.05125576023429954, 0.05131986977291143, 0.05138405949716165, 0.05144832950733612, 0.05151267990384628, 0.051577110787229014, 0.05164162225814691, 0.051706214417388485, 0.05177088736586814, 0.051835641204626574, 0.05190047603483068, 0.051965391957773964, 0.05203038907487643, 0.05209546748768501, 0.052160627297873505, 0.052225868607242834, 0.052291191517721256, 0.05235659613136436, 0.05242208255035544, 0.0524876508770054, 0.05255330121375321, 0.05261903366316579, 0.0526848483279383, 0.05275074531089436, 0.05281672471498604, 0.05288278664329422, 0.05294893119902854, 0.0530151584855278, 0.05308146860625984, 0.053147861664821994, 0.053214337764941014, 0.05328089701047334, 0.05334753950540531, 0.053414265353853164, 0.05348107466006341, 0.053547967528412774, 0.05361494406340857, 0.05368200436968865, 0.0537491485520218, 0.05381637671530768, 0.053883688964577105, 0.053951085404992265, 0.054018566141846705, 0.05408613128056571, 0.05415378092670626, 0.05422151518595738, 0.05428933416414017, 0.05435723796720797, 0.0544252267012467, 0.05449330047247476, 0.05456145938724346, 0.05462970355203693, 0.054698033073472554, 0.05476644805830085, 0.054834948613405925, 0.054903534845805395, 0.05497220686265066, 0.05504096477122717, 0.055109808678954354, 0.05517873869338604, 0.05524775492221039, 0.055316857473250304, 0.05538604645446336, 0.055455321973942165, 0.055524684139914404, 0.05559413306074303, 0.05566366884492655, 0.055733291601098967, 0.05580300143803021, 0.05587279846462604, 0.0559426827899285, 0.05601265452311582, 0.056082713773502706, 0.05615286065054063, 0.05622309526381772, 0.05629341772305923, 0.056363828138127445, 0.056434326619022104, 0.05650491327588032, 0.056575588218976985, 0.056646351558724765, 0.05671720340567433, 0.05678814387051461, 0.0568591730640728, 0.056930291097314734, 0.057001498081344824, 0.05707279412740648, 0.05714417934688204, 0.0572156538512932, 0.05728721775230093, 0.057358871161705814, 0.05743061419144823, 0.05750244695360838, 0.05757436956040665, 0.05764638212420362, 0.05771848475750038, 0.05779067757293858, 0.05786296068330066, 0.057935334201510084, 0.0580077982406314, 0.058080352913870543, 0.05815299833457485, 0.058225734616233434, 0.05829856187247715, 0.058371480217079, 0.058444489763954076, 0.058517590627159874, 0.05859078292089653, 0.058664066759506785, 0.058737442257476416, 0.05881090952943419, 0.058884468690152236, 0.058958119854546034, 0.05903186313767477, 0.0591056986547414, 0.059179626521092835, 0.059253646852220225, 0.059327759763758973, 0.059401965371489104, 0.05947626379133525, 0.05955065513936701, 0.059625139531798994, 0.059699717084991034, 0.05977438791544848, 0.059849152139822184, 0.05992400987490889, 0.05999896123765121, 0.06007400634513799, 0.06014914531460433, 0.06022437826343195, 0.06029970530914919, 0.06037512656943124, 0.06045064216210048, 0.060526252205126405, 0.06060195681662605, 0.06067775611486396, 0.06075365021825258, 0.06082963924535225, 0.060905723314871554, 0.06098190254566737, 0.061058177056745114, 0.06113454696725898, 0.06121101239651198, 0.061287573463956316, 0.06136423028919337, 0.061440982991974084, 0.06151783169219898, 0.0615947765099184, 0.061671817565332805, 0.06174895497879275, 0.06182618887079929, 0.06190351936200397, 0.061980946573209184, 0.06205847062536822, 0.06213609163958558, 0.06221380973711705, 0.06229162503936991, 0.06236953766790327, 0.062447547744427984, 0.06252565539080715, 0.06260386072905601, 0.06268216388134239, 0.06276056496998667, 0.06283906411746218, 0.06291766144639521, 0.06299635707956529, 0.06307515113990543, 0.06315404375050217, 0.06323303503459592, 0.063312125115581, 0.06339131411700603, 0.06347060216257394, 0.06354998937614217, 0.06362947588172306, 0.06370906180348376, 0.06378874726574672, 0.06386853239298956, 0.0639484173098456, 0.06402840214110372, 0.0641084870117089, 0.06418867204676208, 0.06426895737152057, 0.0643493431113982, 0.06442982939196547, 0.0645104163389498, 0.06459110407823565, 0.06467189273586484, 0.06475278243803657, 0.06483377331110785, 0.0649148654815934, 0.0649960590761661, 0.06507735422165713, 0.06515875104505602, 0.06524024967351107, 0.06532185023432933, 0.06540355285497705, 0.06548535766307959, 0.06556726478642175, 0.06564927435294812, 0.065731386490763, 0.06581360132813084, 0.06589591899347622, 0.06597833961538425, 0.06606086332260064, 0.066143490244032, 0.0662262205087459, 0.06630905424597115, 0.06639199158509812, 0.06647503265567868, 0.06655817758742667, 0.06664142651021786, 0.06672477955409038, 0.06680823684924468, 0.06689179852604399, 0.06697546471501432, 0.06705923554684472, 0.06714311115238757, 0.0672270916626586, 0.06731117720883735, 0.06739536792226708, 0.06747966393445526, 0.06756406537707352, 0.06764857238195798, 0.06773318508110955, 0.06781790360669389, 0.06790272809104186, 0.06798765866664955, 0.0680726954661786, 0.06815783862245628, 0.06824308826847592, 0.06832844453739682, 0.06841390756254466, 0.06849947747741172, 0.0685851544156569, 0.06867093851110617, 0.06875682989775254, 0.06884282870975651, 0.06892893508144601, 0.06901514914731689, 0.06910147104203287, 0.06918790090042591, 0.0692744388574964, 0.06936108504841329, 0.06944783960851444, 0.06953470267330664, 0.069621674378466, 0.06970875485983805, 0.06979594425343795, 0.06988324269545082, 0.06997065032223178, 0.07005816727030632, 0.07014579367637035, 0.0702335296772906, 0.07032137541010464, 0.07040933101202126, 0.07049739662042055, 0.07058557237285416, 0.0706738584070456, 0.07076225486089026, 0.07085076187245587, 0.07093937957998245, 0.07102810812188277, 0.07111694763674234, 0.07120589826331987, 0.07129496014054722, 0.07138413340752978, 0.07147341820354669, 0.07156281466805096, 0.07165232294066984, 0.07174194316120477, 0.07183167546963194, 0.07192152000610222, 0.07201147691094148, 0.0721015463246509, 0.072191728387907, 0.07228202324156205, 0.0723724310266441, 0.07246295188435742, 0.07255358595608244, 0.07264433338337627, 0.07273519430797266, 0.07282616887178235, 0.07291725721689335, 0.07300845948557094, 0.07309977582025817, 0.07319120636357582, 0.07328275125832284, 0.07337441064747637, 0.07346618467419216, 0.07355807348180463, 0.07365007721382712, 0.07374219601395225, 0.07383443002605193, 0.07392677939417781, 0.07401924426256122, 0.07411182477561372, 0.07420452107792705, 0.07429733331427346, 0.07439026162960605, 0.07448330616905871, 0.07457646707794668, 0.07466974450176646, 0.07476313858619632, 0.07485664947709623, 0.07495027732050845, 0.07504402226265734, 0.07513788444994987, 0.07523186402897586, 0.07532596114650796, 0.07542017594950216, 0.07551450858509781, 0.075608959200618, 0.07570352794356962, 0.07579821496164378, 0.07589302040271587, 0.07598794441484585, 0.07608298714627858, 0.07617814874544382, 0.07627342936095674, 0.07636882914161786, 0.07646434823641356, 0.07655998679451606, 0.0766557449652838, 0.07675162289826166, 0.07684762074318115, 0.07694373864996065, 0.07703997676870561, 0.0771363352497089, 0.07723281424345088, 0.07732941390059977, 0.0774261343720118, 0.07752297580873141, 0.07761993836199164, 0.07771702218321418, 0.07781422742400977, 0.07791155423617824, 0.07800900277170895, 0.07810657318278084, 0.07820426562176289, 0.07830208024121406, 0.07840001719388372, 0.07849807663271194, 0.07859625871082951, 0.07869456358155841, 0.07879299139841181, 0.07889154231509458, 0.07899021648550326, 0.07908901406372641, 0.07918793520404496, 0.07928698006093222, 0.07938614878905434, 0.07948544154327034, 0.07958485847863256, 0.07968439975038667, 0.0797840655139722, 0.07988385592502245, 0.07998377113936493, 0.08008381131302163, 0.0801839766022091, 0.08028426716333886, 0.08038468315301749, 0.08048522472804699, 0.08058589204542493, 0.0806866852623448, 0.08078760453619614, 0.08088865002456477, 0.08098982188523324, 0.08109112027618073, 0.0811925453555837, 0.08129409728181575, 0.08139577621344811, 0.0814975823092498, 0.08159951572818781, 0.08170157662942755, 0.0818037651723328, 0.08190608151646626, 0.08200852582158955, 0.08211109824766362, 0.08221379895484883, 0.08231662810350544, 0.08241958585419361, 0.08252267236767372, 0.08262588780490679, 0.08272923232705438, 0.08283270609547927, 0.08293630927174528, 0.08304004201761785, 0.08314390449506402, 0.08324789686625297, 0.08335201929355603, 0.08345627193954694, 0.08356065496700234, 0.08366516853890166, 0.08376981281842774, 0.08387458796896674, 0.0839794941541087, 0.08408453153764753, 0.08418970028358136, 0.08429500055611294, 0.08440043251964958, 0.08450599633880378, 0.08461169217839304, 0.08471752020344059, 0.08482348057917521, 0.08492957347103185, 0.08503579904465157, 0.08514215746588197, 0.0852486489007775, 0.0853552735155995, 0.0854620314768167, 0.08556892295110523, 0.08567594810534913, 0.08578310710664032, 0.08589040012227918, 0.08599782731977454, 0.08610538886684396, 0.08621308493141427, 0.0863209156816214, 0.08642888128581104, 0.08653698191253852, 0.08664521773056945, 0.08675358890887966, 0.08686209561665559, 0.08697073802329466, 0.08707951629840524, 0.08718843061180728, 0.08729748113353218, 0.0874066680338234, 0.08751599148313645, 0.08762545165213935, 0.08773504871171275, 0.08784478283295023, 0.08795465418715868, 0.0880646629458583, 0.08817480928078318, 0.08828509336388127, 0.08839551536731492, 0.08850607546346081, 0.08861677382491062, 0.0887276106244709, 0.08883858603516354, 0.0889497002302261, 0.08906095338311183, 0.08917234566749029, 0.08928387725724715, 0.08939554832648494, 0.08950735904952295, 0.08961930960089765, 0.08973140015536303, 0.08984363088789063, 0.08995600197367012, 0.09006851358810924, 0.09018116590683437, 0.09029395910569052, 0.09040689336074187, 0.0905199688482718, 0.09063318574478325, 0.09074654422699913, 0.09086004447186227, 0.09097368665653607, 0.0910874709584044, 0.09120139755507221, 0.09131546662436549, 0.09142967834433181, 0.09154403289324041, 0.09165853044958248, 0.09177317119207161, 0.09188795529964379, 0.09200288295145799, 0.09211795432689608, 0.09223316960556349, 0.09234852896728912, 0.09246403259212581, 0.09257968066035069, 0.0926954733524652, 0.09281141084919563, 0.09292749333149317, 0.0930437209805344, 0.09316009397772132, 0.09327661250468193, 0.09339327674327019, 0.09351008687556644, 0.09362704308387781, 0.09374414555073823, 0.09386139445890897, 0.09397878999137861, 0.09409633233136369, 0.09421402166230866, 0.09433185816788638, 0.09444984203199824, 0.09456797343877452, 0.09468625257257474, 0.09480467961798773, 0.09492325475983218, 0.09504197818315664, 0.09516085007324007, 0.09527987061559189, 0.09539903999595235, 0.09551835840029296, 0.09563782601481646, 0.09575744302595741, 0.09587720962038224, 0.09599712598498972, 0.09611719230691104, 0.09623740877351036, 0.09635777557238479, 0.09647829289136485, 0.09659896091851485, 0.09671977984213287, 0.0968407498507514, 0.09696187113313728, 0.09708314387829234, 0.0972045682754533, 0.09732614451409248, 0.09744787278391767, 0.09756975327487266, 0.09769178617713759, 0.09781397168112894, 0.09793630997750018, 0.09805880125714174, 0.09818144571118154, 0.0983042435309851, 0.0984271949081559, 0.09855030003453577, 0.09867355910220495, 0.09879697230348265, 0.09892053983092705, 0.0990442618773359, 0.09916813863574651, 0.09929217029943631, 0.09941635706192288, 0.09954069911696445, 0.09966519665856016, 0.0997898498809502, 0.09991465897861633, 0.10003962414628192, 0.10016474557891254, 0.1002900234717159, 0.10041545802014253, 0.10054104941988572, 0.10066679786688199, 0.10079270355731151, 0.10091876668759804, 0.10104498745440965, 0.10117136605465858, 0.10129790268550197, 0.10142459754434179, 0.10155145082882529, 0.10167846273684544, 0.1018056334665409, 0.10193296321629666, 0.10206045218474404, 0.10218810057076125, 0.10231590857347342, 0.1024438763922532, 0.10257200422672079, 0.10270029227674432, 0.10282874074244033, 0.10295734982417376, 0.10308611972255852, 0.10321505063845757, 0.10334414277298345, 0.10347339632749836, 0.10360281150361464, 0.10373238850319492, 0.1038621275283525, 0.10399202878145175, 0.10412209246510812, 0.10425231878218887, 0.10438270793581288, 0.10451326012935144, 0.10464397556642818, 0.10477485445091948, 0.10490589698695499, 0.10503710337891754, 0.10516847383144386, 0.10530000854942449, 0.10543170773800448, 0.10556357160258327, 0.10569560034881546, 0.10582779418261071, 0.1059601533101342, 0.10609267793780713, 0.10622536827230662, 0.10635822452056648, 0.10649124688977704, 0.10662443558738595, 0.106757790821098, 0.1068913127988759, 0.10702500172894018, 0.10715885781976972, 0.10729288128010211, 0.10742707231893373, 0.10756143114552036, 0.10769595796937713, 0.10783065300027925, 0.10796551644826191, 0.10810054852362086, 0.10823574943691272, 0.10837111939895502, 0.10850665862082699, 0.1086423673138693, 0.10877824568968489, 0.1089142939601389, 0.10905051233735928, 0.10918690103373686, 0.10932346026192577, 0.10946019023484388, 0.10959709116567279, 0.10973416326785859, 0.10987140675511167, 0.11000882184140753, 0.11014640874098666, 0.11028416766835526, 0.1104220988382852, 0.11056020246581448, 0.11069847876624773, 0.11083692795515616, 0.11097555024837825, 0.11111434586201972, 0.11125331501245422, 0.11139245791632327, 0.11153177479053679, 0.11167126585227352, 0.11181093131898102, 0.11195077140837639, 0.11209078633844617, 0.11223097632744704, 0.11237134159390581, 0.1125118823566201, 0.1126525988346583, 0.11279349124736, 0.11293455981433663, 0.11307580475547124, 0.11321722629091932, 0.11335882464110872, 0.11350060002674033, 0.11364255266878803, 0.11378468278849946, 0.1139269906073959, 0.11406947634727282, 0.11421214023020032, 0.11435498247852312, 0.11449800331486124, 0.11464120296211003, 0.11478458164344078, 0.11492813958230076, 0.11507187700241371, 0.11521579412778021, 0.11535989118267785, 0.11550416839166174, 0.11564862597956457, 0.11579326417149736, 0.11593808319284928, 0.11608308326928846, 0.11622826462676193, 0.11637362749149611, 0.11651917208999732, 0.1166648986490517, 0.11681080739572601, 0.11695689855736748, 0.11710317236160458, 0.117249629036347, 0.1173962688097863, 0.11754309191039596, 0.11769009856693174, 0.11783728900843235, 0.11798466346421928, 0.1181322221638976, 0.11827996533735584, 0.11842789321476682, 0.11857600602658752, 0.11872430400355964, 0.11887278737671005, 0.11902145637735077, 0.11917031123707979, 0.11931935218778084, 0.11946857946162424, 0.11961799329106686, 0.11976759390885278, 0.11991738154801326, 0.12006735644186735, 0.12021751882402223, 0.12036786892837331, 0.1205184069891049, 0.12066913324069015, 0.12082004791789182, 0.1209711512557622, 0.12112244348964386, 0.12127392485516965, 0.12142559558826306, 0.12157745592513895, 0.12172950610230333, 0.12188174635655417, 0.12203417692498139, 0.12218679804496749, 0.12233960995418766, 0.12249261289061018, 0.12264580709249695, 0.12279919279840347, 0.12295277024717961, 0.12310653967796949, 0.1232605013302123, 0.12341465544364214, 0.12356900225828889, 0.12372354201447809, 0.1238782749528315, 0.12403320131426757, 0.1241883213400014, 0.12434363527154559, 0.12449914335071, 0.1246548458196027, 0.12481074292062982, 0.12496683489649622, 0.12512312199020562, 0.12527960444506098, 0.12543628250466513, 0.12559315641292057, 0.12575022641403047, 0.12590749275249832, 0.126064955673129, 0.12622261542102844, 0.1263804722416044, 0.12653852638056678, 0.12669677808392776, 0.12685522759800244, 0.12701387516940882, 0.12717272104506852, 0.12733176547220684, 0.12749100869835334, 0.127650450971342, 0.1278100925393116, 0.12796993365070633, 0.12812997455427558, 0.128290215499075, 0.12845065673446615, 0.12861129851011752, 0.1287721410760042, 0.12893318468240889, 0.1290944295799217, 0.1292558760194408, 0.12941752425217282, 0.1295793745296329, 0.1297414271036454, 0.12990368222634394, 0.13006614015017204, 0.13022880112788324, 0.13039166541254144, 0.1305547332575216, 0.13071800491650956, 0.130881480643503, 0.13104516069281108, 0.13120904531905558, 0.13137313477717055, 0.1315374293224032, 0.13170192921031387, 0.1318666346967765, 0.13203154603797929, 0.13219666349042444, 0.13236198731092919, 0.13252751775662558, 0.13269325508496121, 0.1328591995536994, 0.13302535142091965, 0.1331917109450179, 0.1333582783847068, 0.13352505399901649, 0.13369203804729438, 0.13385923078920606, 0.13402663248473506, 0.13419424339418387, 0.13436206377817372, 0.13453009389764523, 0.13469833401385886, 0.1348667843883949, 0.13503544528315425, 0.13520431696035842, 0.13537339968255024, 0.1355426937125938, 0.13571219931367529, 0.1358819167493029, 0.13605184628330738, 0.1362219881798426, 0.13639234270338554, 0.13656291011873695, 0.13673369069102143, 0.13690468468568812, 0.1370758923685107, 0.13724731400558818, 0.13741894986334477, 0.13759080020853054, 0.13776286530822193, 0.1379351454298216, 0.1381076408410594, 0.13828035180999212, 0.13845327860500453, 0.13862642149480908, 0.1387997807484466, 0.13897335663528676, 0.13914714942502812, 0.13932115938769887, 0.13949538679365675, 0.13966983191358986, 0.13984449501851662, 0.14001937637978654, 0.14019447626908016, 0.14036979495840968, 0.1405453327201194, 0.14072108982688572, 0.14089706655171796, 0.14107326316795826, 0.14124967994928248, 0.1414263171696999, 0.14160317510355427, 0.1417802540255237, 0.14195755421062103, 0.14213507593419472, 0.14231281947192845, 0.14249078509984214, 0.14266897309429183, 0.14284738373197048, 0.14302601728990794, 0.14320487404547147, 0.14338395427636633, 0.14356325826063568, 0.14374278627666143, 0.1439225386031642, 0.14410251551920406, 0.14428271730418044, 0.14446314423783305, 0.1446437966002417, 0.14482467467182703, 0.14500577873335083, 0.14518710906591617, 0.14536866595096815, 0.14555044967029382, 0.14573246050602304, 0.14591469874062826, 0.1460971646569256, 0.14627985853807451, 0.14646278066757853, 0.14664593132928577, 0.14682931080738876, 0.1470129193864255, 0.14719675735127916, 0.14738082498717903, 0.14756512257970042, 0.1477496504147652, 0.14793440877864245, 0.14811939795794823, 0.14830461823964664, 0.14849006991104946, 0.1486757532598172, 0.14886166857395894, 0.14904781614183307, 0.14923419625214743, 0.14942080919395964, 0.14960765525667788, 0.14979473473006055, 0.1499820479042174, 0.15016959506960928, 0.150357376517049, 0.1505453925377012, 0.15073364342308324, 0.15092212946506509, 0.15111085095586999, 0.1512998081880748, 0.15148900145461025, 0.15167843104876144, 0.15186809726416794, 0.15205800039482467, 0.15224814073508167, 0.15243851857964474, 0.15262913422357613, 0.15281998796229418, 0.15301108009157446, 0.15320241090754946, 0.15339398070670957, 0.15358578978590284, 0.153777838442336, 0.1539701269735742, 0.15416265567754167, 0.15435542485252238, 0.1545484347971597, 0.15474168581045752, 0.15493517819178, 0.15512891224085243, 0.1553228882577611, 0.15551710654295428, 0.155711567397242, 0.1559062711217966, 0.1561012180181535, 0.1562964083882108, 0.15649184253423043, 0.15668752075883785, 0.15688344336502308, 0.15707961065614034, 0.15727602293590892, 0.15747268050841357, 0.15766958367810444, 0.15786673274979793, 0.15806412802867664, 0.1582617698202902, 0.15845965843055498, 0.15865779416575526, 0.1588561773325429, 0.15905480823793797, 0.15925368718932933, 0.15945281449447457, 0.1596521904615008, 0.1598518153989046, 0.16005168961555277, 0.16025181342068234, 0.16045218712390136, 0.16065281103518872, 0.1608536854648949, 0.16105481072374242, 0.16125618712282577, 0.16145781497361225, 0.16165969458794183, 0.16186182627802811, 0.16206421035645813, 0.16226684713619297, 0.1624697369305683, 0.16267288005329428, 0.16287627681845643, 0.16307992754051553, 0.16328383253430848, 0.163487992115048, 0.16369240659832376, 0.16389707630010208, 0.16410200153672663, 0.1643071826249188, 0.16451261988177784, 0.16471831362478156, 0.1649242641717862, 0.16513047184102747, 0.16533693695112, 0.1655436598210588, 0.16575064077021853, 0.16595788011835455, 0.16616537818560323, 0.16637313529248185, 0.1665811517598896, 0.16678942790910734, 0.16699796406179843, 0.16720676054000871, 0.16741581766616703, 0.1676251357630858, 0.1678347151539608, 0.16804455616237227, 0.1682546591122845, 0.1684650243280469, 0.16867565213439364, 0.16888654285644475, 0.16909769681970582, 0.16930911435006862, 0.1695207957738117, 0.16973274141760022, 0.16994495160848685, 0.1701574266739115, 0.17037016694170243, 0.17058317274007584, 0.17079644439763683, 0.17100998224337932, 0.17122378660668652, 0.17143785781733162, 0.17165219620547748, 0.17186680210167762, 0.17208167583687609, 0.1722968177424082, 0.17251222815000058, 0.1727279073917715, 0.17294385580023164, 0.1731600737082838, 0.1733765614492239, 0.17359331935674072, 0.17381034776491677, 0.17402764700822818, 0.17424521742154542, 0.1744630593401334, 0.17468117309965175, 0.17489955903615562, 0.17511821748609535, 0.17533714878631743, 0.1755563532740643, 0.17577583128697524, 0.17599558316308617, 0.17621560924083038, 0.1764359098590387, 0.17665648535693976, 0.17687733607416062, 0.17709846235072665, 0.17731986452706247, 0.17754154294399152, 0.17776349794273721, 0.17798572986492264, 0.17820823905257105, 0.17843102584810655, 0.1786540905943538, 0.1788774336345391, 0.1791010553122898, 0.17932495597163564, 0.17954913595700814, 0.17977359561324177, 0.17999833528557355, 0.18022335531964367, 0.1804486560614962, 0.18067423785757866, 0.18090010105474302, 0.1811262460002455, 0.18135267304174738, 0.18157938252731476, 0.1818063748054196, 0.1820336502249393, 0.1822612091351574, 0.18248905188576406, 0.18271717882685587, 0.18294559030893678, 0.18317428668291783, 0.18340326830011797, 0.18363253551226397, 0.18386208867149087, 0.1840919281303426, 0.1843220542417717, 0.18455246735914022, 0.18478316783621948, 0.185014156027191, 0.18524543228664614, 0.18547699696958703, 0.18570885043142638, 0.18594099302798794, 0.18617342511550716, 0.18640614705063083, 0.18663915919041807, 0.18687246189234, 0.1871060555142806, 0.18733994041453653, 0.18757411695181794, 0.1878085854852482, 0.1880433463743645, 0.18827839997911844, 0.18851374665987558, 0.18874938677741657, 0.18898532069293666, 0.1892215487680467, 0.18945807136477294, 0.18969488884555735, 0.1899320015732584, 0.1901694099111506, 0.19040711422292556, 0.19064511487269142, 0.19088341222497415, 0.1911220066447168, 0.1913608984972806, 0.19160008814844476, 0.19183957596440693, 0.19207936231178344, 0.19231944755760966, 0.1925598320693402, 0.19280051621484895, 0.19304150036242995, 0.19328278488079711, 0.1935243701390847, 0.19376625650684762, 0.19400844435406162, 0.19425093405112365, 0.1944937259688521, 0.19473682047848684, 0.19498021795168988, 0.19522391876054537, 0.19546792327755996, 0.19571223187566297, 0.19595684492820672, 0.19620176280896678, 0.1964469858921423, 0.19669251455235598, 0.1969383491646547, 0.1971844901045095, 0.197430937747816, 0.19767769247089456, 0.19792475465049053, 0.19817212466377446, 0.19841980288834243, 0.19866778970221635, 0.19891608548384393, 0.19916469061209918, 0.19941360546628265, 0.19966283042612143, 0.19991236587176966, 0.20016221218380859, 0.20041236974324686, 0.2006628389315208, 0.20091362013049438, 0.20116471372245995, 0.20141612009013798, 0.20166783961667747, 0.20191987268565628, 0.20217221968108118, 0.20242488098738806, 0.2026778569894424, 0.2029311480725391, 0.20318475462240299, 0.20343867702518897, 0.20369291566748224, 0.20394747093629836, 0.20420234321908368, 0.2044575329037153, 0.2047130403785015, 0.20496886603218187, 0.20522501025392742, 0.2054814734333408, 0.20573825596045667, 0.20599535822574164, 0.2062527806200947, 0.2065105235348472, 0.20676858736176315, 0.20702697249303947, 0.2072856793213059, 0.2075447082396256, 0.20780405964149493, 0.2080637339208439, 0.20832373147203623, 0.20858405268986954, 0.2088446979695755, 0.20910566770682007, 0.20936696229770352, 0.20962858213876082, 0.2098905276269616, 0.2101527991597104, 0.21041539713484686, 0.2106783219506458, 0.21094157400581745, 0.21120515369950751, 0.21146906143129743, 0.2117332976012043, 0.2119978626096814, 0.212262756857618, 0.21252798074633966, 0.2127935346776083, 0.21305941905362236, 0.21332563427701698, 0.2135921807508641, 0.21385905887867246, 0.21412626906438798, 0.2143938117123937, 0.21466168722750992, 0.2149298960149944, 0.2151984384805424, 0.21546731503028688, 0.21573652607079846, 0.21600607200908564, 0.2162759532525949, 0.21654617020921085, 0.21681672328725618, 0.2170876128954919, 0.21735883944311737, 0.21763040333977043, 0.21790230499552743, 0.21817454482090348, 0.21844712322685217, 0.2187200406247661, 0.21899329742647666, 0.21926689404425428, 0.21954083089080834, 0.21981510837928733, 0.22008972692327897, 0.22036468693681024, 0.22063998883434724, 0.2209156330307956, 0.22119161994150027, 0.22146794998224575, 0.221744623569256, 0.22202164111919453, 0.2222990030491645, 0.22257670977670876, 0.22285476171980967, 0.22313315929688943, 0.22341190292681004, 0.22369099302887316, 0.22397043002282035, 0.22425021432883296, 0.2245303463675322, 0.22481082655997908, 0.22509165532767458, 0.22537283309255945, 0.22565436027701435, 0.22593623730385992, 0.22621846459635658, 0.2265010425782047, 0.22678397167354444, 0.2270672523069559, 0.22735088490345906, 0.22763486988851356, 0.22791920768801893, 0.22820389872831454, 0.22848894343617943, 0.22877434223883236, 0.2290600955639318, 0.22934620383957582, 0.2296326674943022, 0.22991948695708797, 0.2302066626573499, 0.23049419502494417, 0.23078208449016627, 0.23107033148375106, 0.23135893643687253, 0.23164789978114395, 0.2319372219486177, 0.23222690337178511, 0.23251694448357643, 0.2328073457173608, 0.23309810750694612, 0.23338923028657893, 0.23368071449094438, 0.23397256055516594, 0.2342647689148056, 0.2345573400058635, 0.23485027426477786, 0.23514357212842496, 0.23543723403411895, 0.23573126041961173, 0.23602565172309276, 0.236320408383189, 0.2366155308389648, 0.23691101952992166, 0.237206874895998, 0.23750309737756925, 0.23779968741544752, 0.23809664545088147, 0.23839397192555611, 0.23869166728159275, 0.23898973196154857, 0.23928816640841677, 0.23958697106562613, 0.23988614637704075, 0.24018569278696023, 0.24048561074011907, 0.2407859006816867, 0.24108656305726717, 0.24138759831289894, 0.2416890068950547, 0.2419907892506411, 0.24229294582699845, 0.24259547707190066, 0.24289838343355485, 0.2432016653606012, 0.24350532330211255, 0.24380935770759438, 0.24411376902698423, 0.2444185577106518, 0.24472372420939825, 0.2450292689744563, 0.24533519245748978, 0.24564149511059333, 0.24594817738629213, 0.24625523973754157, 0.246562682617727, 0.24687050648066342, 0.24717871178059503, 0.247487298972195, 0.24779626851056524, 0.24810562085123583, 0.24841535645016496, 0.2487254757637383, 0.24903597924876883, 0.2493468673624965, 0.2496581405625877, 0.24996979930713495, 0.2502818440546566, 0.25059427526409644, 0.25090709339482326, 0.25122029890663045, 0.25153389225973555, 0.25184787391478, 0.2521622443328285, 0.2524770039753689, 0.2527921533043114, 0.25310769278198836, 0.2534236228711539, 0.2537399440349833, 0.25405665673707245, 0.2543737614414378, 0.25469125861251546, 0.255009148715161, 0.2553274322146487, 0.2556461095766714, 0.25596518126733975, 0.25628464775318177, 0.25660450950114255, 0.2569247669785833, 0.25724542065328126, 0.25756647099342894, 0.2578879184676335, 0.2582097635449165, 0.25853200669471316, 0.2588546483868718, 0.2591776890916533, 0.2595011292797305, 0.2598249694221877, 0.2601492099905201, 0.2604738514566329, 0.2607988942928411, 0.2611243389718686, 0.2614501859668478, 0.26177643575131887, 0.262103088799229, 0.26243014558493183, 0.26275760658318714, 0.2630854722691595, 0.2634137431184183, 0.26374241960693656, 0.26407150221109055, 0.26440099140765905, 0.2647308876738226, 0.2650611914871627, 0.26539190332566126, 0.2657230236676999, 0.26605455299205893, 0.26638649177791696, 0.26671884050485006, 0.26705159965283076, 0.26738476970222763, 0.2677183511338042, 0.2680523444287185, 0.2683867500685219, 0.2687215685351586, 0.2690568003109647, 0.26939244587866723, 0.26972850572138385, 0.2700649803226213, 0.270401870166275, 0.27073917573662815, 0.2710768975183508, 0.27141503599649897, 0.27175359165651364, 0.2720925649842202, 0.27243195646582713, 0.2727717665879255, 0.27311199583748774, 0.27345264470186675, 0.2737937136687951, 0.274135203226384, 0.27447711386312224, 0.27481944606787534, 0.27516220032988453, 0.2755053771387658, 0.2758489769845088, 0.27619300035747585, 0.2765374477484011, 0.27688231964838933, 0.2772276165489146, 0.2775733389418198, 0.27791948731931526, 0.27826606217397765, 0.278613063998749, 0.2789604932869355, 0.27930835053220654, 0.27965663622859327, 0.280005350870488, 0.28035449495264236, 0.2807040689701669, 0.28105407341852934, 0.2814045087935536, 0.2817553755914188, 0.28210667430865766, 0.28245840544215567, 0.2828105694891497, 0.28316316694722643, 0.28351619831432195, 0.2838696640887198, 0.28422356476904964, 0.2845779008542866, 0.28493267284374935, 0.2852878812370992, 0.28564352653433855, 0.2859996092358096, 0.2863561298421931, 0.2867130888545069, 0.28707048677410474, 0.2874283241026745, 0.2877866013422373, 0.28814531899514567, 0.28850447756408243, 0.288864077552059, 0.2892241194624141, 0.28958460379881235, 0.28994553106524273, 0.29030690176601687, 0.290668716405768, 0.2910309754894491, 0.29139367952233153, 0.2917568290100033, 0.29212042445836767, 0.2924844663736416, 0.29284895526235416, 0.2932138916313448, 0.2935792759877619, 0.29394510883906105, 0.29431139069300344, 0.2946781220576543, 0.29504530344138086, 0.2954129353528511, 0.29578101830103215, 0.29614955279518784, 0.2965185393448779, 0.2968879784599553, 0.29725787065056547, 0.2976282164271437, 0.29799901630041375, 0.29837027078138595, 0.2987419803813554, 0.2991141456119002, 0.2994867669848794, 0.2998598450124314, 0.30023338020697193, 0.300607373081192, 0.30098182414805646, 0.3013567339208013, 0.3017321029129325, 0.3021079316382237, 0.30248422061071406, 0.30286097034470666, 0.30323818135476605, 0.3036158541557167, 0.3039939892626406, 0.30437258719087507, 0.3047516484560112, 0.3051311735738914, 0.30551116306060727, 0.30589161743249754, 0.306272537206146, 0.30665392289837917, 0.3070357750262642, 0.30741809410710674, 0.3078008806584485, 0.3081841351980653, 0.3085678582439646, 0.3089520503143832, 0.30933671192778517, 0.30972184360285937, 0.3101074458585171, 0.3104935192138898, 0.31088006418832664, 0.3112670813013922, 0.31165457107286415, 0.31204253402273047, 0.3124309706711874, 0.31281988153863677, 0.31320926714568353, 0.31359912801313333, 0.31398946466198974, 0.3143802776134521, 0.31477156738891265, 0.3151633345099541, 0.3155555794983469, 0.3159483028760467, 0.3163415051651917, 0.31673518688810004, 0.3171293485672668, 0.3175239907253618, 0.31791911388522626, 0.31831471856987076, 0.31871080530247176, 0.31910737460636934, 0.31950442700506404, 0.31990196302221424, 0.3202999831816332, 0.320698488007286, 0.3210974780232871, 0.32149695375389686, 0.32189691572351914, 0.3222973644566978, 0.32269830047811415, 0.3230997243125835, 0.3235016364850526, 0.3239040375205961, 0.32430692794441374, 0.32471030828182734, 0.3251141790582773, 0.32551854079931974, 0.3259233940306232, 0.3263287392779655, 0.3267345770672304, 0.32714090792440453, 0.32754773237557366, 0.32795505094692, 0.3283628641647186, 0.32877117255533383, 0.32917997664521625, 0.32958927696089907, 0.3299990740289947, 0.3304093683761915, 0.3308201605292499, 0.33123145101499935, 0.33164324036033443, 0.33205552909221153, 0.3324683177376451, 0.33288160682370416, 0.3332953968775084, 0.333709688426225, 0.3341244819970644, 0.3345397781172768, 0.33495557731414866, 0.3353718801149985, 0.3357886870471734, 0.3362059986380449, 0.33662381541500547, 0.33704213790546433, 0.3374609666368438, 0.3378803021365749, 0.33830014493209387, 0.33872049555083805, 0.3391413545202417, 0.3395627223677319, 0.3399845996207247, 0.3404069868066208, 0.34082988445280155, 0.3412532930866245, 0.34167721323541955, 0.3421016454264844, 0.3425265901870806, 0.3429520480444289, 0.34337801952570507, 0.3438045051580356, 0.34423150546849335, 0.3446590209840926, 0.3450870522317856, 0.3455155997384569, 0.34594466403091995, 0.3463742456359116, 0.34680434508008817, 0.3472349628900204, 0.3476660995921892, 0.34809775571298057, 0.34852993177868097, 0.3489626283154729, 0.3493958458494298, 0.3498295849065111, 0.3502638460125579, 0.35069862969328736, 0.3511339364742885, 0.35156976688101677, 0.3520061214387891, 0.3524430006727791, 0.3528804051080119, 0.3533183352693589, 0.3537567916815328, 0.35419577486908244, 0.3546352853563875, 0.3550753236676534, 0.3555158903269056, 0.355956985857985, 0.3563986107845421, 0.35684076563003164, 0.3572834509177072, 0.3577266671706159, 0.35817041491159285, 0.3586146946632553, 0.35905950694799754, 0.3595048522879849, 0.35995073120514837, 0.36039714422117863, 0.3608440918575207, 0.36129157463536776, 0.36173959307565556, 0.3621881476990566, 0.36263723902597417, 0.3630868675765362, 0.3635370338705898, 0.3639877384276947, 0.3644389817671178, 0.3648907644078263, 0.36534308686848227, 0.3657959496674361, 0.3662493533227205, 0.3667032983520438, 0.36715778527278425, 0.36761281460198325, 0.36806838685633914, 0.3685245025522006, 0.3689811622055605, 0.36943836633204896, 0.3698961154469271, 0.3703544100650803, 0.37081325070101145, 0.3712726378688346, 0.37173257208226773, 0.3721930538546265, 0.37265408369881686, 0.37311566212732866, 0.37357778965222843, 0.3740404667851525, 0.3745036940372999, 0.37496747191942537, 0.37543180094183237, 0.3758966816143657, 0.3763621144464044, 0.37682809994685446, 0.37729463862414164, 0.3777617309862039, 0.3782293775404841, 0.37869757879392263, 0.37916633525294985, 0.3796356474234785, 0.3801055158108962, 0.3805759409200577, 0.3810469232552772, 0.38151846332032074, 0.3819905616183982, 0.3824632186521553, 0.3829364349236664, 0.38341021093442573, 0.3838845471853398, 0.3843594441767194, 0.3848349024082711, 0.38531092237908965, 0.3857875045876492, 0.38626464953179535, 0.3867423577087367, 0.3872206296150367, 0.38769946574660485, 0.3881788665986885, 0.3886588326658641, 0.38913936444202885, 0.3896204624203918, 0.39010212709346503, 0.39058435895305543, 0.39106715849025536, 0.39155052619543396, 0.3920344625582281, 0.3925189680675336, 0.39300404321149596, 0.3934896884775012, 0.3939759043521672, 0.39446269132133355, 0.39495004987005317, 0.39543798048258244, 0.39592648364237193, 0.396415559832057, 0.3969052095334481, 0.3973954332275213, 0.3978862313944087, 0.39837760451338833, 0.398869553062875, 0.39936207752041, 0.3998551783626513, 0.4003488560653635, 0.4008431111034082, 0.40133794395073336, 0.40183335508036355, 0.40232934496438943, 0.4028259140739576, 0.4033230628792605, 0.4038207918495255, 0.40431910145300487, 0.4048179921569649, 0.40531746442767536, 0.4058175187303991, 0.406318155529381, 0.406819375287837, 0.40732117846794375, 0.4078235655308272, 0.4083265369365518, 0.40883009314410934, 0.4093342346114077, 0.40983896179525986, 0.41034427515137245, 0.4108501751343341, 0.4113566621976046, 0.41186373679350285, 0.4123713993731958, 0.41287965038668617, 0.4133884902828011, 0.4138979195091805, 0.41440793851226476, 0.4149185477372828, 0.41542974762824075, 0.415941538627909, 0.4164539211778104, 0.4169668957182081, 0.4174804626880931, 0.4179946225251717, 0.41850937566585344, 0.41902472254523826, 0.41954066359710357, 0.4200571992538923, 0.42057432994669947, 0.4210920561052596, 0.42161037815793384, 0.42212929653169656, 0.4226488116521227, 0.4231689239433745, 0.4236896338281878, 0.4242109417278594, 0.42473284806223294, 0.42525535324968594, 0.425778457707116, 0.42630216184992703, 0.4268264660920156, 0.4273513708457572, 0.4278768765219919, 0.42840298353001105, 0.4289296922775425, 0.4294570031707369, 0.42998491661415306, 0.4305134330107439, 0.43104255276184195, 0.43157227626714467, 0.4321026039247002, 0.4326335361308919, 0.43316507328042453, 0.4336972157663089, 0.43422996397984676, 0.43476331831061593, 0.4352972791464553, 0.4358318468734493, 0.4363670218759128, 0.4369028045363755, 0.43743919523556657, 0.4379761943523991, 0.43851380226395414, 0.4390520193454653, 0.4395908459703025, 0.44013028250995617, 0.4406703293340213, 0.4412109868101807, 0.44175225530418977, 0.4422941351798591, 0.4428366267990386, 0.4433797305216009, 0.44392344670542444, 0.4444677757063769, 0.4450127178782986, 0.44555827357298505, 0.44610444314017, 0.44665122692750886, 0.44719862528056076, 0.4477466385427715, 0.44829526705545636, 0.4488445111577819, 0.44939437118674885, 0.44994484747717445, 0.45049594036167373, 0.4510476501706427, 0.45159997723223944, 0.4521529218723664, 0.4527064844146519, 0.4532606651804316, 0.4538154644887305, 0.4543708826562438, 0.4549269199973185, 0.4554835768239346, 0.4560408534456859, 0.4565987501697615, 0.457157267300926, 0.4577164051415008, 0.4582761639913444, 0.4588365441478331, 0.4593975459058415, 0.45995916955772215, 0.46052141539328684, 0.4610842836997859, 0.4616477747618882, 0.4622118888616613, 0.4627766262785512, 0.46334198728936143, 0.46390797216823343, 0.4644745811866247, 0.4650418146132896, 0.4656096727142572, 0.4661781557528109, 0.46674726398946753, 0.46731699768195556, 0.4678873570851943, 0.4684583424512723, 0.46902995402942543, 0.4696021920660159, 0.4701750568045098, 0.4707485484854557, 0.47132266734646205, 0.47189741362217547, 0.47247278754425825, 0.4730487893413659, 0.4736254192391249, 0.4742026774601092, 0.47478056422381854, 0.4753590797466547, 0.4759382242418991, 0.47651799791968863, 0.4770984009869935, 0.477679433647593, 0.47826109610205236, 0.4788433885476985, 0.4794263111785969, 0.4800098641855273, 0.48059404775595954, 0.4811788620740294, 0.48176430732051434, 0.48235038367280875, 0.48293709130489987, 0.48352443038734216, 0.4841124010872333, 0.4847010035681885, 0.48529023799031584, 0.4858801045101906, 0.48647060328082986, 0.4870617344516672, 0.4876534981685266, 0.48824589457359696, 0.48883892380540556, 0.48943258599879264, 0.4900268812848846, 0.49062180979106773, 0.4912173716409617, 0.4918135669543927, 0.49241039584736696, 0.49300785843204326, 0.493605954816706, 0.4942046851057382, 0.49480404939959355, 0.49540404779476943, 0.49600468038377865, 0.49660594725512186, 0.49720784849325966, 0.49781038417858414, 0.4984135543873906, 0.4990173591918493, 0.49962179865997686, 0.5002268728556073, 0.5008325818383632, 0.5014389256636267, 0.5020459043825101, 0.5026535180418268, 0.5032617666840619, 0.5038706503473414, 0.5044801690654039, 0.5050903228675699, 0.5057011117787115, 0.5063125358192222, 0.5069245950049868, 0.5075372893473503, 0.5081506188530875, 0.508764583524372, 0.5093791833587448, 0.5099944183490834, 0.5106102884835705, 0.5112267937456619, 0.5118439341140555, 0.5124617095626586, 0.5130801200605566, 0.51369916557198, 0.514318846056273, 0.5149391614678601, 0.5155601117562139, 0.5161816968658217, 0.5168039167361533, 0.517426771301627, 0.5180502604915764, 0.5186743842302174, 0.5192991424366137, 0.5199245350246435, 0.5205505619029653, 0.5211772229749835, 0.5218045181388141, 0.5224324472872506, 0.5230610103077284, 0.5236902070822909, 0.5243200374875534, 0.5249505013946687, 0.5255815986692912, 0.5262133291715416, 0.5268456927559709, 0.5274786892715246, 0.5281123185615066, 0.5287465804635427, 0.5293814748095446, 0.5300170014256725, 0.5306531601322992, 0.5312899507439722, 0.5319273730693772, 0.5325654269113006, 0.5332041120665916, 0.5338434283261246, 0.5344833754747621, 0.5351239532913152, 0.5357651615485068, 0.5364070000129318, 0.5370494684450196, 0.5376925665989947, 0.5383362942228378, 0.5389806510582468, 0.5396256368405972, 0.5402712512989026, 0.5409174941557754, 0.5415643651273861, 0.542211863923424, 0.5428599902470562, 0.5435087437948879, 0.544158124256921, 0.5448081313165135, 0.5454587646503389, 0.5461100239283444, 0.5467619088137097, 0.5474144189628052, 0.548067554025151, 0.5487213136433735, 0.549375697453165, 0.5500307050832394, 0.5506863361552913, 0.5513425902839524, 0.5519994670767486, 0.5526569661340573, 0.5533150870490636, 0.5539738294077169, 0.5546331927886873, 0.5552931767633217, 0.5559537808955995, 0.5566150047420888, 0.5572768478519013, 0.5579393097666477, 0.5586023900203932, 0.5592660881396123, 0.5599304036431434, 0.5605953360421432, 0.5612608848400412, 0.5619270495324942, 0.5625938296073394, 0.563261224544549, 0.563929233816183, 0.5645978568863432, 0.5652670932111261, 0.5659369422385756, 0.5666074034086358, 0.5672784761531041, 0.5679501598955827, 0.5686224540514319, 0.5692953580277204, 0.5699688712231786, 0.5706429930281496, 0.5713177228245403, 0.5719930599857725, 0.5726690038767348, 0.573345553853732, 0.5740227092644365, 0.5747004694478386, 0.5753788337341963, 0.5760578014449854, 0.5767373718928495, 0.577417544381549, 0.5780983182059112, 0.5787796926517784, 0.5794616669959581, 0.5801442405061704, 0.5808274124409979, 0.5815111820498327, 0.5821955485728254, 0.5828805112408331, 0.5835660692753661, 0.584252221888537, 0.5849389682830064, 0.5856263076519314, 0.5863142391789115, 0.5870027620379357, 0.5876918753933293, 0.5883815783997, 0.5890718702018835, 0.5897627499348904, 0.5904542167238511, 0.5911462696839617, 0.5918389079204291, 0.5925321305284165, 0.5932259365929875, 0.593920325189052, 0.5946152953813096, 0.5953108462241944, 0.5960069767618192, 0.5967036860279193, 0.597400973045796, 0.5980988368282604, 0.5987972763775764, 0.5994962906854046, 0.6001958787327439, 0.6008960394898756, 0.6015967719163049, 0.6022980749607036, 0.6029999475608526, 0.603702388643583, 0.6044053971247187, 0.6051089719090174, 0.6058131118901119, 0.6065178159504517, 0.6072230829612438, 0.6079289117823932, 0.6086353012624437, 0.6093422502385182, 0.6100497575362589, 0.6107578219697674, 0.6114664423415446, 0.6121756174424298, 0.6128853460515407, 0.6135956269362123, 0.6143064588519364, 0.6150178405422996, 0.6157297707389229, 0.6164422481613999, 0.6171552715172347, 0.6178688395017806, 0.6185829507981776, 0.6192976040772904, 0.6200127979976461, 0.6207285312053712, 0.6214448023341289, 0.6221616100050568, 0.6228789528267026, 0.6235968293949619, 0.6243152382930136, 0.6250341780912577, 0.6257536473472497, 0.6264736446056383, 0.6271941683980994, 0.6279152172432736, 0.6286367896467002, 0.6293588841007536, 0.6300814990845771, 0.6308046330640195, 0.6315282844915684, 0.6322524518062861, 0.6329771334337427, 0.6337023277859518, 0.6344280332613038, 0.6351542482445, 0.6358809711064867, 0.6366082002043882, 0.6373359338814416, 0.6380641704669286, 0.6387929082761102, 0.6395221456101583, 0.6402518807560897, 0.6409821119866987, 0.6417128375604894, 0.6424440557216078, 0.6431757646997752, 0.6439079627102199, 0.6446406479536086, 0.6453738186159794, 0.6461074728686725, 0.646841608868263, 0.6475762247564912, 0.6483113186601949, 0.64904688869124, 0.6497829329464523, 0.6505194495075477, 0.6512564364410638, 0.6519938917982901, 0.6527318136151989, 0.6534701999123759, 0.6542090486949501, 0.6549483579525248, 0.6556881256591071, 0.6564283497730384, 0.6571690282369245, 0.6579101589775644, 0.6586517399058817, 0.6593937689168526, 0.6601362438894369, 0.660879162686506, 0.6616225231547738, 0.6623663231247247, 0.6631105604105433, 0.6638552328100437, 0.6646003381045981, 0.665345874059066, 0.6660918384217233, 0.6668382289241899, 0.6675850432813603, 0.6683322791913305, 0.6690799343353279, 0.6698280063776384, 0.6705764929655363, 0.6713253917292119, 0.6720747002816998, 0.6728244162188076, 0.6735745371190438, 0.6743250605435458, 0.6750759840360088, 0.6758273051226131, 0.6765790213119526, 0.6773311300949626, 0.6780836289448482, 0.6788365153170118, 0.6795897866489813, 0.6803434403603378, 0.6810974738526441, 0.6818518845093718, 0.6826066696958297, 0.683361826759092, 0.6841173530279248, 0.6848732458127158, 0.685629502405401, 0.6863861200793928, 0.6871430960895081, 0.6879004276718963, 0.6886581120439665, 0.6894161464043168, 0.6901745279326609, 0.690933253789757, 0.6916923211173357, 0.6924517270380275, 0.6932114686552919, 0.693971543053345, 0.6947319472970878, 0.6954926784320341, 0.6962537334842401, 0.6970151094602314, 0.6977768033469324, 0.6985388121115941, 0.6993011327017236, 0.7000637620450123, 0.7008266970492648, 0.7015899346023275, 0.7023534715720184, 0.7031173048060554, 0.7038814311319855, 0.7046458473571151, 0.705410550268438, 0.7061755366325662, 0.7069408031956587, 0.7077063466833516, 0.7084721638006886, 0.7092382512320496, 0.7100046056410831, 0.7107712236706343, 0.7115381019426772, 0.7123052370582447, 0.7130726255973593, 0.7138402641189647, 0.7146081491608566, 0.7153762772396138, 0.7161446448505308, 0.7169132484675483, 0.7176820845431863, 0.7184511495084752, 0.7192204397728895, 0.7199899517242792, 0.720759681728803, 0.7215296261308619, 0.7222997812530321, 0.7230701433959982, 0.7238407088384875, 0.7246114738372039, 0.7253824346267621, 0.7261535874196223, 0.7269249284060251, 0.7276964537539261, 0.7284681596089323, 0.7292400420942369, 0.7300120973105556, 0.730784321336063, 0.7315567102263291, 0.7323292600142564, 0.7331019667100169, 0.73387482630099, 0.7346478347516999, 0.7354209880037549, 0.7361942819757846, 0.7369677125633802, 0.7377412756390331, 0.7385149670520751, 0.739288782628618, 0.7400627181714943, 0.7408367694601984, 0.7416109322508276, 0.7423852022760241, 0.7431595752449165, 0.7439340468430631, 0.7447086127323941, 0.7454832685511563, 0.7462580099138555, 0.7470328324112016, 0.7478077316100536, 0.7485827030533644, 0.7493577422601269, 0.7501328447253195, 0.7509080059198543, 0.7516832212905228, 0.7524584862599447, 0.7532337962265154, 0.7540091465643557, 0.7547845326232601, 0.7555599497286476, 0.7563353931815114, 0.7571108582583708, 0.7578863402112216, 0.7586618342674895, 0.7594373356299814, 0.7602128394768404, 0.7609883409614985, 0.7617638352126315, 0.7625393173341143, 0.7633147824049766, 0.7640902254793593, 0.7648656415864722, 0.7656410257305503, 0.7664163728908138, 0.7671916780214265, 0.7679669360514554, 0.7687421418848318, 0.7695172904003116, 0.7702923764514381, 0.7710673948665041, 0.7718423404485153, 0.7726172079751547, 0.7733919921987468, 0.774166687846224, 0.7749412896190927, 0.7757157921933997, 0.7764901902197016, 0.777264478323032, 0.7780386511028726, 0.7788127031331221, 0.7795866289620683, 0.7803604231123601, 0.78113408008098, 0.7819075943392179, 0.782680960332646, 0.7834541724810944, 0.7842272251786271, 0.785000112793519, 0.785772829668235, 0.7865453701194084, 0.7873177284378212, 0.7880898988883852, 0.7888618757101231, 0.7896336531161527, 0.79040522529367, 0.7911765864039338, 0.7919477305822519, 0.7927186519379681, 0.7934893445544496, 0.7942598024890765, 0.7950300197732304, 0.7957999904122871, 0.7965697083856073, 0.7973391676465301, 0.7981083621223671, 0.7988772857143976, 0.7996459322978651, 0.8004142957219742, 0.80118236980989, 0.8019501483587368, 0.8027176251395998, 0.8034847938975264, 0.8042516483515294, 0.8050181821945921, 0.8057843890936726, 0.8065502626897111, 0.8073157965976381, 0.8080809844063825, 0.8088458196788831, 0.8096102959520994, 0.8103744067370245, 0.8111381455186993, 0.8119015057562278, 0.8126644808827939, 0.8134270643056788, 0.814189249406281, 0.8149510295401361, 0.8157123980369391, 0.816473348200567, 0.8172338733091046, 0.8179939666148688, 0.8187536213444372, 0.8195128306986755, 0.8202715878527693, 0.8210298859562534, 0.8217877181330463, 0.8225450774814836, 0.8233019570743545, 0.8240583499589379, 0.8248142491570417, 0.8255696476650431, 0.8263245384539296, 0.827078914469342, 0.8278327686316197, 0.8285860938358457, 0.8293388829518954, 0.8300911288244843, 0.8308428242732202, 0.8315939620926539, 0.8323445350523342, 0.8330945358968623, 0.8338439573459494, 0.834592792094475, 0.8353410328125468, 0.8360886721455626, 0.8368357027142741, 0.8375821171148512, 0.838327907918949, 0.8390730676737761, 0.8398175889021645, 0.8405614641026418, 0.8413046857495033, 0.8420472462928885, 0.8427891381588567, 0.8435303537494663, 0.8442708854428544, 0.8450107255933191, 0.845749866531403, 0.8464883005639788, 0.8472260199743363, 0.8479630170222716, 0.8486992839441776, 0.8494348129531368, 0.8501695962390159, 0.8509036259685613, 0.8516368942854974, 0.852369393310627, 0.8531011151419323, 0.8538320518546784, 0.8545621955015191, 0.8552915381126042, 0.856020071695688, 0.8567477882362409, 0.8574746796975623, 0.858200738020895, 0.8589259551255424, 0.8596503229089865, 0.8603738332470094, 0.8610964779938147, 0.8618182489821532, 0.8625391380234478, 0.8632591369079233, 0.8639782374047356, 0.8646964312621046, 0.8654137102074484, 0.8661300659475192, 0.8668454901685421, 0.8675599745363545, 0.8682735106965495, 0.8689860902746189, 0.8696977048761008, 0.8704083460867266, 0.8711180054725722, 0.8718266745802101, 0.8725343449368641, 0.873241008050565, 0.8739466554103102, 0.8746512784862234, 0.8753548687297177, 0.8760574175736602, 0.876758916432539, 0.8774593567026316, 0.8781587297621766, 0.8788570269715459, 0.8795542396734206, 0.8802503591929681, 0.8809453768380209, 0.8816392838992589, 0.8823320716503924, 0.8830237313483479, 0.883714254233456, 0.8844036315296415, 0.8850918544446151, 0.8857789141700678, 0.886464801881867, 0.8871495087402554, 0.8878330258900509, 0.8885153444608499, 0.8891964555672319, 0.8898763503089665, 0.8905550197712223, 0.8912324550247789, 0.8919086471262391, 0.8925835871182458, 0.8932572660296986, 0.8939296748759743, 0.8946008046591485, 0.8952706463682201, 0.895939190979337, 0.8966064294560252, 0.8972723527494186, 0.8979369517984925, 0.8986002175302978, 0.8992621408601982, 0.8999227126921092, 0.9005819239187395, 0.9012397654218344, 0.9018962280724209, 0.9025513027310558, 0.9032049802480752, 0.9038572514638464, 0.904508107209022, 0.9051575383047957, 0.9058055355631609, 0.9064520897871707, 0.9070971917712003, 0.9077408323012119, 0.908383002155021, 0.9090236921025646, 0.9096628929061732, 0.9103005953208425, 0.9109367900945086, 0.9115714679683253, 0.9122046196769429, 0.9128362359487889, 0.9134663075063523, 0.9140948250664668, 0.9147217793405997, 0.9153471610351406, 0.915970960851692, 0.9165931694873635, 0.9172137776350657, 0.9178327759838087, 0.9184501552190009, 0.9190659060227487, 0.9196800190741621, 0.9202924850496573, 0.9209032946232653, 0.9215124384669396, 0.9221199072508681, 0.9227256916437847, 0.9233297823132843, 0.9239321699261398, 0.924532845148619, 0.9251317986468063, 0.9257290210869238, 0.926324503135655, 0.926918235460471, 0.9275102087299577, 0.9281004136141446, 0.9286888407848363, 0.9292754809159448, 0.9298603246838245, 0.9304433627676076, 0.9310245858495431, 0.9316039846153349, 0.9321815497544843, 0.9327572719606326, 0.9333311419319053, 0.9339031503712584, 0.9344732879868266, 0.9350415454922721, 0.9356079136071361, 0.9361723830571909, 0.9367349445747936, 0.9372955888992428, 0.9378543067771344, 0.9384110889627207, 0.9389659262182708, 0.9395188093144309, 0.9400697290305878, 0.9406186761552333, 0.9411656414863296, 0.9417106158316757, 0.9422535900092766, 0.9427945548477121, 0.9433335011865083, 0.9438704198765088, 0.9444053017802492, 0.9449381377723309, 0.945468918739797, 0.9459976355825094, 0.9465242792135268, 0.9470488405594838, 0.9475713105609712, 0.9480916801729177, 0.9486099403649717, 0.9491260821218854, 0.9496400964438987, 0.9501519743471247, 0.950661706863936, 0.9511692850433524, 0.9516746999514282, 0.952177942671642, 0.9526790043052857, 0.9531778759718559, 0.9536745488094448, 0.9541690139751323, 0.9546612626453794, 0.9551512860164211, 0.9556390753046609, 0.9561246217470655, 0.9566079166015605, 0.9570889511474264, 0.9575677166856946, 0.9580442045395451, 0.9585184060547036, 0.9589903125998399, 0.9594599155669659, 0.9599272063718346, 0.9603921764543392, 0.9608548172789125, 0.9613151203349269, 0.9617730771370943, 0.9622286792258655, 0.9626819181678326, 0.9631327855561274, 0.9635812730108235, 0.9640273721793369, 0.9644710747368263, 0.9649123723865944, 0.9653512568604895, 0.9657877199193046, 0.9662217533531797, 0.9666533489820022, 0.9670824986558065, 0.9675091942551755, 0.9679334276916399, 0.9683551909080789, 0.9687744758791185, 0.969191274611532, 0.9696055791446384, 0.9700173815507006, 0.9704266739353241, 0.970833448437854, 0.9712376972317731, 0.9716394125250967, 0.9720385865607705, 0.9724352116170649, 0.9728292800079702, 0.97322078408359, 0.9736097162305355, 0.9739960688723173, 0.9743798344697375, 0.9747610055212806, 0.9751395745635038, 0.9755155341714254, 0.9758888769589141, 0.9762595955790755, 0.9766276827246385, 0.9769931311283407, 0.9773559335633122, 0.9777160828434582, 0.978073571823842, 0.9784283934010641, 0.9787805405136424, 0.97913000614239, 0.9794767833107918, 0.9798208650853801, 0.9801622445761085, 0.9805009149367241, 0.9808368693651387, 0.9811701011037988, 0.9815006034400531, 0.9818283697065187, 0.9821533932814465, 0.9824756675890842, 0.982795186100037, 0.9831119423316281, 0.9834259298482564, 0.9837371422617525, 0.9840455732317327, 0.9843512164659521, 0.9846540657206543, 0.9849541148009201, 0.9852513575610141, 0.9855457879047291, 0.9858373997857288, 0.986126187207887, 0.9864121442256272, 0.9866952649442572, 0.9869755435203038, 0.9872529741618439, 0.9875275511288334, 0.9877992687334347, 0.9880681213403406, 0.9883341033670966, 0.9885972092844209, 0.9888574336165207, 0.9891147709414082, 0.9893692158912117, 0.9896207631524855, 0.9898694074665171, 0.9901151436296313, 0.9903579664934917, 0.9905978709654004, 0.9908348520085932, 0.9910689046425338, 0.991300023943204, 0.9915282050433921, 0.9917534431329768, 0.9919757334592099, 0.9921950713269955, 0.9924114520991657, 0.9926248711967539, 0.9928353240992647, 0.993042806344941, 0.993247313531028, 0.993448841314034, 0.9936473854099875, 0.9938429415946923, 0.9940355057039786, 0.9942250736339503, 0.9944116413412307, 0.9945952048432033, 0.9947757602182501, 0.9949533036059858, 0.9951278312074898, 0.9952993392855342, 0.9954678241648073, 0.9956332822321354, 0.9957957099367005, 0.9959551037902535, 0.9961114603673255, 0.9962647763054336, 0.9964150483052859, 0.9965622731309793, 0.996706447610197, 0.9968475686343995, 0.9969856331590151, 0.997120638203623, 0.9972525808521358, 0.9973814582529764, 0.9975072676192522, 0.9976300062289245, 0.9977496714249751, 0.9978662606155676, 0.9979797712742077, 0.9980902009398958, 0.9981975472172785, 0.9983018077767957, 0.9984029803548224, 0.998501062753809, 0.9985960528424146, 0.998687948555639, 0.9987767478949495, 0.9988624489284035, 0.9989450497907676, 0.9990245486836322, 0.9991009438755231, 0.9991742337020069, 0.9992444165657948, 0.9993114909368408, 0.9993754553524361, 0.9994363084172994, 0.9994940488036628, 0.9995486752513549, 0.9996001865678777, 0.9996485816284809, 0.9996938593762311, 0.9997360188220775, 0.9997750590449134, 0.9998109791916325, 0.9998437784771825, 0.9998734561846137, 0.9999000116651224, 0.9999234443380928, 0.9999437536911314, 0.9999609392801, 0.9999750007291425, 0.9999859377307087, 0.9999937500455726, 0.9999984375028482, 1.0, 0.9999984375028482, 0.9999937500455726, 0.9999859377307087, 0.9999750007291425, 0.9999609392801, 0.9999437536911314, 0.9999234443380928, 0.9999000116651224, 0.9998734561846137, 0.9998437784771825, 0.9998109791916325, 0.9997750590449134, 0.9997360188220775, 0.9996938593762311, 0.9996485816284809, 0.9996001865678777, 0.9995486752513549, 0.9994940488036628, 0.9994363084172994, 0.9993754553524361, 0.9993114909368408, 0.9992444165657948, 0.9991742337020069, 0.9991009438755231, 0.9990245486836322, 0.9989450497907676, 0.9988624489284035, 0.9987767478949495, 0.998687948555639, 0.9985960528424146, 0.998501062753809, 0.9984029803548224, 0.9983018077767957, 0.9981975472172785, 0.9980902009398958, 0.9979797712742077, 0.9978662606155676, 0.9977496714249751, 0.9976300062289245, 0.9975072676192522, 0.9973814582529764, 0.9972525808521358, 0.997120638203623, 0.9969856331590151, 0.9968475686343995, 0.996706447610197, 0.9965622731309793, 0.9964150483052859, 0.9962647763054336, 0.9961114603673255, 0.9959551037902535, 0.9957957099367005, 0.9956332822321354, 0.9954678241648073, 0.9952993392855342, 0.9951278312074898, 0.9949533036059858, 0.9947757602182501, 0.9945952048432033, 0.9944116413412307, 0.9942250736339503, 0.9940355057039786, 0.9938429415946923, 0.9936473854099875, 0.993448841314034, 0.993247313531028, 0.993042806344941, 0.9928353240992647, 0.9926248711967539, 0.9924114520991657, 0.9921950713269955, 0.9919757334592099, 0.9917534431329768, 0.9915282050433921, 0.991300023943204, 0.9910689046425338, 0.9908348520085932, 0.9905978709654004, 0.9903579664934917, 0.9901151436296313, 0.9898694074665171, 0.9896207631524855, 0.9893692158912117, 0.9891147709414082, 0.9888574336165207, 0.9885972092844209, 0.9883341033670966, 0.9880681213403406, 0.9877992687334347, 0.9875275511288334, 0.9872529741618439, 0.9869755435203038, 0.9866952649442572, 0.9864121442256272, 0.986126187207887, 0.9858373997857288, 0.9855457879047291, 0.9852513575610141, 0.9849541148009201, 0.9846540657206543, 0.9843512164659521, 0.9840455732317327, 0.9837371422617525, 0.9834259298482564, 0.9831119423316281, 0.982795186100037, 0.9824756675890842, 0.9821533932814465, 0.9818283697065187, 0.9815006034400531, 0.9811701011037988, 0.9808368693651387, 0.9805009149367241, 0.9801622445761085, 0.9798208650853801, 0.9794767833107918, 0.97913000614239, 0.9787805405136424, 0.9784283934010641, 0.978073571823842, 0.9777160828434582, 0.9773559335633122, 0.9769931311283407, 0.9766276827246385, 0.9762595955790755, 0.9758888769589141, 0.9755155341714254, 0.9751395745635038, 0.9747610055212806, 0.9743798344697375, 0.9739960688723173, 0.9736097162305355, 0.97322078408359, 0.9728292800079702, 0.9724352116170649, 0.9720385865607705, 0.9716394125250967, 0.9712376972317731, 0.970833448437854, 0.9704266739353241, 0.9700173815507006, 0.9696055791446384, 0.969191274611532, 0.9687744758791185, 0.9683551909080789, 0.9679334276916399, 0.9675091942551755, 0.9670824986558065, 0.9666533489820022, 0.9662217533531797, 0.9657877199193046, 0.9653512568604895, 0.9649123723865944, 0.9644710747368263, 0.9640273721793369, 0.9635812730108235, 0.9631327855561274, 0.9626819181678326, 0.9622286792258655, 0.9617730771370943, 0.9613151203349269, 0.9608548172789125, 0.9603921764543392, 0.9599272063718346, 0.9594599155669659, 0.9589903125998399, 0.9585184060547036, 0.9580442045395451, 0.9575677166856946, 0.9570889511474264, 0.9566079166015605, 0.9561246217470655, 0.9556390753046609, 0.9551512860164211, 0.9546612626453794, 0.9541690139751323, 0.9536745488094448, 0.9531778759718559, 0.9526790043052857, 0.952177942671642, 0.9516746999514282, 0.9511692850433524, 0.950661706863936, 0.9501519743471247, 0.9496400964438987, 0.9491260821218854, 0.9486099403649717, 0.9480916801729177, 0.9475713105609712, 0.9470488405594838, 0.9465242792135268, 0.9459976355825094, 0.945468918739797, 0.9449381377723309, 0.9444053017802492, 0.9438704198765088, 0.9433335011865083, 0.9427945548477121, 0.9422535900092766, 0.9417106158316757, 0.9411656414863296, 0.9406186761552333, 0.9400697290305878, 0.9395188093144309, 0.9389659262182708, 0.9384110889627207, 0.9378543067771344, 0.9372955888992428, 0.9367349445747936, 0.9361723830571909, 0.9356079136071361, 0.9350415454922721, 0.9344732879868266, 0.9339031503712584, 0.9333311419319053, 0.9327572719606326, 0.9321815497544843, 0.9316039846153349, 0.9310245858495431, 0.9304433627676076, 0.9298603246838245, 0.9292754809159448, 0.9286888407848363, 0.9281004136141446, 0.9275102087299577, 0.926918235460471, 0.926324503135655, 0.9257290210869238, 0.9251317986468063, 0.924532845148619, 0.9239321699261398, 0.9233297823132843, 0.9227256916437847, 0.9221199072508681, 0.9215124384669396, 0.9209032946232653, 0.9202924850496573, 0.9196800190741621, 0.9190659060227487, 0.9184501552190009, 0.9178327759838087, 0.9172137776350657, 0.9165931694873635, 0.915970960851692, 0.9153471610351406, 0.9147217793405997, 0.9140948250664668, 0.9134663075063523, 0.9128362359487889, 0.9122046196769429, 0.9115714679683253, 0.9109367900945086, 0.9103005953208425, 0.9096628929061732, 0.9090236921025646, 0.908383002155021, 0.9077408323012119, 0.9070971917712003, 0.9064520897871707, 0.9058055355631609, 0.9051575383047957, 0.904508107209022, 0.9038572514638464, 0.9032049802480752, 0.9025513027310558, 0.9018962280724209, 0.9012397654218344, 0.9005819239187395, 0.8999227126921092, 0.8992621408601982, 0.8986002175302978, 0.8979369517984925, 0.8972723527494186, 0.8966064294560252, 0.895939190979337, 0.8952706463682201, 0.8946008046591485, 0.8939296748759743, 0.8932572660296986, 0.8925835871182458, 0.8919086471262391, 0.8912324550247789, 0.8905550197712223, 0.8898763503089665, 0.8891964555672319, 0.8885153444608499, 0.8878330258900509, 0.8871495087402554, 0.886464801881867, 0.8857789141700678, 0.8850918544446151, 0.8844036315296415, 0.883714254233456, 0.8830237313483479, 0.8823320716503924, 0.8816392838992589, 0.8809453768380209, 0.8802503591929681, 0.8795542396734206, 0.8788570269715459, 0.8781587297621766, 0.8774593567026316, 0.876758916432539, 0.8760574175736602, 0.8753548687297177, 0.8746512784862234, 0.8739466554103102, 0.873241008050565, 0.8725343449368641, 0.8718266745802101, 0.8711180054725722, 0.8704083460867266, 0.8696977048761008, 0.8689860902746189, 0.8682735106965495, 0.8675599745363545, 0.8668454901685421, 0.8661300659475192, 0.8654137102074484, 0.8646964312621046, 0.8639782374047356, 0.8632591369079233, 0.8625391380234478, 0.8618182489821532, 0.8610964779938147, 0.8603738332470094, 0.8596503229089865, 0.8589259551255424, 0.858200738020895, 0.8574746796975623, 0.8567477882362409, 0.856020071695688, 0.8552915381126042, 0.8545621955015191, 0.8538320518546784, 0.8531011151419323, 0.852369393310627, 0.8516368942854974, 0.8509036259685613, 0.8501695962390159, 0.8494348129531368, 0.8486992839441776, 0.8479630170222716, 0.8472260199743363, 0.8464883005639788, 0.845749866531403, 0.8450107255933191, 0.8442708854428544, 0.8435303537494663, 0.8427891381588567, 0.8420472462928885, 0.8413046857495033, 0.8405614641026418, 0.8398175889021645, 0.8390730676737761, 0.838327907918949, 0.8375821171148512, 0.8368357027142741, 0.8360886721455626, 0.8353410328125468, 0.834592792094475, 0.8338439573459494, 0.8330945358968623, 0.8323445350523342, 0.8315939620926539, 0.8308428242732202, 0.8300911288244843, 0.8293388829518954, 0.8285860938358457, 0.8278327686316197, 0.827078914469342, 0.8263245384539296, 0.8255696476650431, 0.8248142491570417, 0.8240583499589379, 0.8233019570743545, 0.8225450774814836, 0.8217877181330463, 0.8210298859562534, 0.8202715878527693, 0.8195128306986755, 0.8187536213444372, 0.8179939666148688, 0.8172338733091046, 0.816473348200567, 0.8157123980369391, 0.8149510295401361, 0.814189249406281, 0.8134270643056788, 0.8126644808827939, 0.8119015057562278, 0.8111381455186993, 0.8103744067370245, 0.8096102959520994, 0.8088458196788831, 0.8080809844063825, 0.8073157965976381, 0.8065502626897111, 0.8057843890936726, 0.8050181821945921, 0.8042516483515294, 0.8034847938975264, 0.8027176251395998, 0.8019501483587368, 0.80118236980989, 0.8004142957219742, 0.7996459322978651, 0.7988772857143976, 0.7981083621223671, 0.7973391676465301, 0.7965697083856073, 0.7957999904122871, 0.7950300197732304, 0.7942598024890765, 0.7934893445544496, 0.7927186519379681, 0.7919477305822519, 0.7911765864039338, 0.79040522529367, 0.7896336531161527, 0.7888618757101231, 0.7880898988883852, 0.7873177284378212, 0.7865453701194084, 0.785772829668235, 0.785000112793519, 0.7842272251786271, 0.7834541724810944, 0.782680960332646, 0.7819075943392179, 0.78113408008098, 0.7803604231123601, 0.7795866289620683, 0.7788127031331221, 0.7780386511028726, 0.777264478323032, 0.7764901902197016, 0.7757157921933997, 0.7749412896190927, 0.774166687846224, 0.7733919921987468, 0.7726172079751547, 0.7718423404485153, 0.7710673948665041, 0.7702923764514381, 0.7695172904003116, 0.7687421418848318, 0.7679669360514554, 0.7671916780214265, 0.7664163728908138, 0.7656410257305503, 0.7648656415864722, 0.7640902254793593, 0.7633147824049766, 0.7625393173341143, 0.7617638352126315, 0.7609883409614985, 0.7602128394768404, 0.7594373356299814, 0.7586618342674895, 0.7578863402112216, 0.7571108582583708, 0.7563353931815114, 0.7555599497286476, 0.7547845326232601, 0.7540091465643557, 0.7532337962265154, 0.7524584862599447, 0.7516832212905228, 0.7509080059198543, 0.7501328447253195, 0.7493577422601269, 0.7485827030533644, 0.7478077316100536, 0.7470328324112016, 0.7462580099138555, 0.7454832685511563, 0.7447086127323941, 0.7439340468430631, 0.7431595752449165, 0.7423852022760241, 0.7416109322508276, 0.7408367694601984, 0.7400627181714943, 0.739288782628618, 0.7385149670520751, 0.7377412756390331, 0.7369677125633802, 0.7361942819757846, 0.7354209880037549, 0.7346478347516999, 0.73387482630099, 0.7331019667100169, 0.7323292600142564, 0.7315567102263291, 0.730784321336063, 0.7300120973105556, 0.7292400420942369, 0.7284681596089323, 0.7276964537539261, 0.7269249284060251, 0.7261535874196223, 0.7253824346267621, 0.7246114738372039, 0.7238407088384875, 0.7230701433959982, 0.7222997812530321, 0.7215296261308619, 0.720759681728803, 0.7199899517242792, 0.7192204397728895, 0.7184511495084752, 0.7176820845431863, 0.7169132484675483, 0.7161446448505308, 0.7153762772396138, 0.7146081491608566, 0.7138402641189647, 0.7130726255973593, 0.7123052370582447, 0.7115381019426772, 0.7107712236706343, 0.7100046056410831, 0.7092382512320496, 0.7084721638006886, 0.7077063466833516, 0.7069408031956587, 0.7061755366325662, 0.705410550268438, 0.7046458473571151, 0.7038814311319855, 0.7031173048060554, 0.7023534715720184, 0.7015899346023275, 0.7008266970492648, 0.7000637620450123, 0.6993011327017236, 0.6985388121115941, 0.6977768033469324, 0.6970151094602314, 0.6962537334842401, 0.6954926784320341, 0.6947319472970878, 0.693971543053345, 0.6932114686552919, 0.6924517270380275, 0.6916923211173357, 0.690933253789757, 0.6901745279326609, 0.6894161464043168, 0.6886581120439665, 0.6879004276718963, 0.6871430960895081, 0.6863861200793928, 0.685629502405401, 0.6848732458127158, 0.6841173530279248, 0.683361826759092, 0.6826066696958297, 0.6818518845093718, 0.6810974738526441, 0.6803434403603378, 0.6795897866489813, 0.6788365153170118, 0.6780836289448482, 0.6773311300949626, 0.6765790213119526, 0.6758273051226131, 0.6750759840360088, 0.6743250605435458, 0.6735745371190438, 0.6728244162188076, 0.6720747002816998, 0.6713253917292119, 0.6705764929655363, 0.6698280063776384, 0.6690799343353279, 0.6683322791913305, 0.6675850432813603, 0.6668382289241899, 0.6660918384217233, 0.665345874059066, 0.6646003381045981, 0.6638552328100437, 0.6631105604105433, 0.6623663231247247, 0.6616225231547738, 0.660879162686506, 0.6601362438894369, 0.6593937689168526, 0.6586517399058817, 0.6579101589775644, 0.6571690282369245, 0.6564283497730384, 0.6556881256591071, 0.6549483579525248, 0.6542090486949501, 0.6534701999123759, 0.6527318136151989, 0.6519938917982901, 0.6512564364410638, 0.6505194495075477, 0.6497829329464523, 0.64904688869124, 0.6483113186601949, 0.6475762247564912, 0.646841608868263, 0.6461074728686725, 0.6453738186159794, 0.6446406479536086, 0.6439079627102199, 0.6431757646997752, 0.6424440557216078, 0.6417128375604894, 0.6409821119866987, 0.6402518807560897, 0.6395221456101583, 0.6387929082761102, 0.6380641704669286, 0.6373359338814416, 0.6366082002043882, 0.6358809711064867, 0.6351542482445, 0.6344280332613038, 0.6337023277859518, 0.6329771334337427, 0.6322524518062861, 0.6315282844915684, 0.6308046330640195, 0.6300814990845771, 0.6293588841007536, 0.6286367896467002, 0.6279152172432736, 0.6271941683980994, 0.6264736446056383, 0.6257536473472497, 0.6250341780912577, 0.6243152382930136, 0.6235968293949619, 0.6228789528267026, 0.6221616100050568, 0.6214448023341289, 0.6207285312053712, 0.6200127979976461, 0.6192976040772904, 0.6185829507981776, 0.6178688395017806, 0.6171552715172347, 0.6164422481613999, 0.6157297707389229, 0.6150178405422996, 0.6143064588519364, 0.6135956269362123, 0.6128853460515407, 0.6121756174424298, 0.6114664423415446, 0.6107578219697674, 0.6100497575362589, 0.6093422502385182, 0.6086353012624437, 0.6079289117823932, 0.6072230829612438, 0.6065178159504517, 0.6058131118901119, 0.6051089719090174, 0.6044053971247187, 0.603702388643583, 0.6029999475608526, 0.6022980749607036, 0.6015967719163049, 0.6008960394898756, 0.6001958787327439, 0.5994962906854046, 0.5987972763775764, 0.5980988368282604, 0.597400973045796, 0.5967036860279193, 0.5960069767618192, 0.5953108462241944, 0.5946152953813096, 0.593920325189052, 0.5932259365929875, 0.5925321305284165, 0.5918389079204291, 0.5911462696839617, 0.5904542167238511, 0.5897627499348904, 0.5890718702018835, 0.5883815783997, 0.5876918753933293, 0.5870027620379357, 0.5863142391789115, 0.5856263076519314, 0.5849389682830064, 0.584252221888537, 0.5835660692753661, 0.5828805112408331, 0.5821955485728254, 0.5815111820498327, 0.5808274124409979, 0.5801442405061704, 0.5794616669959581, 0.5787796926517784, 0.5780983182059112, 0.577417544381549, 0.5767373718928495, 0.5760578014449854, 0.5753788337341963, 0.5747004694478386, 0.5740227092644365, 0.573345553853732, 0.5726690038767348, 0.5719930599857725, 0.5713177228245403, 0.5706429930281496, 0.5699688712231786, 0.5692953580277204, 0.5686224540514319, 0.5679501598955827, 0.5672784761531041, 0.5666074034086358, 0.5659369422385756, 0.5652670932111261, 0.5645978568863432, 0.563929233816183, 0.563261224544549, 0.5625938296073394, 0.5619270495324942, 0.5612608848400412, 0.5605953360421432, 0.5599304036431434, 0.5592660881396123, 0.5586023900203932, 0.5579393097666477, 0.5572768478519013, 0.5566150047420888, 0.5559537808955995, 0.5552931767633217, 0.5546331927886873, 0.5539738294077169, 0.5533150870490636, 0.5526569661340573, 0.5519994670767486, 0.5513425902839524, 0.5506863361552913, 0.5500307050832394, 0.549375697453165, 0.5487213136433735, 0.548067554025151, 0.5474144189628052, 0.5467619088137097, 0.5461100239283444, 0.5454587646503389, 0.5448081313165135, 0.544158124256921, 0.5435087437948879, 0.5428599902470562, 0.542211863923424, 0.5415643651273861, 0.5409174941557754, 0.5402712512989026, 0.5396256368405972, 0.5389806510582468, 0.5383362942228378, 0.5376925665989947, 0.5370494684450196, 0.5364070000129318, 0.5357651615485068, 0.5351239532913152, 0.5344833754747621, 0.5338434283261246, 0.5332041120665916, 0.5325654269113006, 0.5319273730693772, 0.5312899507439722, 0.5306531601322992, 0.5300170014256725, 0.5293814748095446, 0.5287465804635427, 0.5281123185615066, 0.5274786892715246, 0.5268456927559709, 0.5262133291715416, 0.5255815986692912, 0.5249505013946687, 0.5243200374875534, 0.5236902070822909, 0.5230610103077284, 0.5224324472872506, 0.5218045181388141, 0.5211772229749835, 0.5205505619029653, 0.5199245350246435, 0.5192991424366137, 0.5186743842302174, 0.5180502604915764, 0.517426771301627, 0.5168039167361533, 0.5161816968658217, 0.5155601117562139, 0.5149391614678601, 0.514318846056273, 0.51369916557198, 0.5130801200605566, 0.5124617095626586, 0.5118439341140555, 0.5112267937456619, 0.5106102884835705, 0.5099944183490834, 0.5093791833587448, 0.508764583524372, 0.5081506188530875, 0.5075372893473503, 0.5069245950049868, 0.5063125358192222, 0.5057011117787115, 0.5050903228675699, 0.5044801690654039, 0.5038706503473414, 0.5032617666840619, 0.5026535180418268, 0.5020459043825101, 0.5014389256636267, 0.5008325818383632, 0.5002268728556073, 0.49962179865997686, 0.4990173591918493, 0.4984135543873906, 0.49781038417858414, 0.49720784849325966, 0.49660594725512186, 0.49600468038377865, 0.49540404779476943, 0.49480404939959355, 0.4942046851057382, 0.493605954816706, 0.49300785843204326, 0.49241039584736696, 0.4918135669543927, 0.4912173716409617, 0.49062180979106773, 0.4900268812848846, 0.48943258599879264, 0.48883892380540556, 0.48824589457359696, 0.4876534981685266, 0.4870617344516672, 0.48647060328082986, 0.4858801045101906, 0.48529023799031584, 0.4847010035681885, 0.4841124010872333, 0.48352443038734216, 0.48293709130489987, 0.48235038367280875, 0.48176430732051434, 0.4811788620740294, 0.48059404775595954, 0.4800098641855273, 0.4794263111785969, 0.4788433885476985, 0.47826109610205236, 0.477679433647593, 0.4770984009869935, 0.47651799791968863, 0.4759382242418991, 0.4753590797466547, 0.47478056422381854, 0.4742026774601092, 0.4736254192391249, 0.4730487893413659, 0.47247278754425825, 0.47189741362217547, 0.47132266734646205, 0.4707485484854557, 0.4701750568045098, 0.4696021920660159, 0.46902995402942543, 0.4684583424512723, 0.4678873570851943, 0.46731699768195556, 0.46674726398946753, 0.4661781557528109, 0.4656096727142572, 0.4650418146132896, 0.4644745811866247, 0.46390797216823343, 0.46334198728936143, 0.4627766262785512, 0.4622118888616613, 0.4616477747618882, 0.4610842836997859, 0.46052141539328684, 0.45995916955772215, 0.4593975459058415, 0.4588365441478331, 0.4582761639913444, 0.4577164051415008, 0.457157267300926, 0.4565987501697615, 0.4560408534456859, 0.4554835768239346, 0.4549269199973185, 0.4543708826562438, 0.4538154644887305, 0.4532606651804316, 0.4527064844146519, 0.4521529218723664, 0.45159997723223944, 0.4510476501706427, 0.45049594036167373, 0.44994484747717445, 0.44939437118674885, 0.4488445111577819, 0.44829526705545636, 0.4477466385427715, 0.44719862528056076, 0.44665122692750886, 0.44610444314017, 0.44555827357298505, 0.4450127178782986, 0.4444677757063769, 0.44392344670542444, 0.4433797305216009, 0.4428366267990386, 0.4422941351798591, 0.44175225530418977, 0.4412109868101807, 0.4406703293340213, 0.44013028250995617, 0.4395908459703025, 0.4390520193454653, 0.43851380226395414, 0.4379761943523991, 0.43743919523556657, 0.4369028045363755, 0.4363670218759128, 0.4358318468734493, 0.4352972791464553, 0.43476331831061593, 0.43422996397984676, 0.4336972157663089, 0.43316507328042453, 0.4326335361308919, 0.4321026039247002, 0.43157227626714467, 0.43104255276184195, 0.4305134330107439, 0.42998491661415306, 0.4294570031707369, 0.4289296922775425, 0.42840298353001105, 0.4278768765219919, 0.4273513708457572, 0.4268264660920156, 0.42630216184992703, 0.425778457707116, 0.42525535324968594, 0.42473284806223294, 0.4242109417278594, 0.4236896338281878, 0.4231689239433745, 0.4226488116521227, 0.42212929653169656, 0.42161037815793384, 0.4210920561052596, 0.42057432994669947, 0.4200571992538923, 0.41954066359710357, 0.41902472254523826, 0.41850937566585344, 0.4179946225251717, 0.4174804626880931, 0.4169668957182081, 0.4164539211778104, 0.415941538627909, 0.41542974762824075, 0.4149185477372828, 0.41440793851226476, 0.4138979195091805, 0.4133884902828011, 0.41287965038668617, 0.4123713993731958, 0.41186373679350285, 0.4113566621976046, 0.4108501751343341, 0.41034427515137245, 0.40983896179525986, 0.4093342346114077, 0.40883009314410934, 0.4083265369365518, 0.4078235655308272, 0.40732117846794375, 0.406819375287837, 0.406318155529381, 0.4058175187303991, 0.40531746442767536, 0.4048179921569649, 0.40431910145300487, 0.4038207918495255, 0.4033230628792605, 0.4028259140739576, 0.40232934496438943, 0.40183335508036355, 0.40133794395073336, 0.4008431111034082, 0.4003488560653635, 0.3998551783626513, 0.39936207752041, 0.398869553062875, 0.39837760451338833, 0.3978862313944087, 0.3973954332275213, 0.3969052095334481, 0.396415559832057, 0.39592648364237193, 0.39543798048258244, 0.39495004987005317, 0.39446269132133355, 0.3939759043521672, 0.3934896884775012, 0.39300404321149596, 0.3925189680675336, 0.3920344625582281, 0.39155052619543396, 0.39106715849025536, 0.39058435895305543, 0.39010212709346503, 0.3896204624203918, 0.38913936444202885, 0.3886588326658641, 0.3881788665986885, 0.38769946574660485, 0.3872206296150367, 0.3867423577087367, 0.38626464953179535, 0.3857875045876492, 0.38531092237908965, 0.3848349024082711, 0.3843594441767194, 0.3838845471853398, 0.38341021093442573, 0.3829364349236664, 0.3824632186521553, 0.3819905616183982, 0.38151846332032074, 0.3810469232552772, 0.3805759409200577, 0.3801055158108962, 0.3796356474234785, 0.37916633525294985, 0.37869757879392263, 0.3782293775404841, 0.3777617309862039, 0.37729463862414164, 0.37682809994685446, 0.3763621144464044, 0.3758966816143657, 0.37543180094183237, 0.37496747191942537, 0.3745036940372999, 0.3740404667851525, 0.37357778965222843, 0.37311566212732866, 0.37265408369881686, 0.3721930538546265, 0.37173257208226773, 0.3712726378688346, 0.37081325070101145, 0.3703544100650803, 0.3698961154469271, 0.36943836633204896, 0.3689811622055605, 0.3685245025522006, 0.36806838685633914, 0.36761281460198325, 0.36715778527278425, 0.3667032983520438, 0.3662493533227205, 0.3657959496674361, 0.36534308686848227, 0.3648907644078263, 0.3644389817671178, 0.3639877384276947, 0.3635370338705898, 0.3630868675765362, 0.36263723902597417, 0.3621881476990566, 0.36173959307565556, 0.36129157463536776, 0.3608440918575207, 0.36039714422117863, 0.35995073120514837, 0.3595048522879849, 0.35905950694799754, 0.3586146946632553, 0.35817041491159285, 0.3577266671706159, 0.3572834509177072, 0.35684076563003164, 0.3563986107845421, 0.355956985857985, 0.3555158903269056, 0.3550753236676534, 0.3546352853563875, 0.35419577486908244, 0.3537567916815328, 0.3533183352693589, 0.3528804051080119, 0.3524430006727791, 0.3520061214387891, 0.35156976688101677, 0.3511339364742885, 0.35069862969328736, 0.3502638460125579, 0.3498295849065111, 0.3493958458494298, 0.3489626283154729, 0.34852993177868097, 0.34809775571298057, 0.3476660995921892, 0.3472349628900204, 0.34680434508008817, 0.3463742456359116, 0.34594466403091995, 0.3455155997384569, 0.3450870522317856, 0.3446590209840926, 0.34423150546849335, 0.3438045051580356, 0.34337801952570507, 0.3429520480444289, 0.3425265901870806, 0.3421016454264844, 0.34167721323541955, 0.3412532930866245, 0.34082988445280155, 0.3404069868066208, 0.3399845996207247, 0.3395627223677319, 0.3391413545202417, 0.33872049555083805, 0.33830014493209387, 0.3378803021365749, 0.3374609666368438, 0.33704213790546433, 0.33662381541500547, 0.3362059986380449, 0.3357886870471734, 0.3353718801149985, 0.33495557731414866, 0.3345397781172768, 0.3341244819970644, 0.333709688426225, 0.3332953968775084, 0.33288160682370416, 0.3324683177376451, 0.33205552909221153, 0.33164324036033443, 0.33123145101499935, 0.3308201605292499, 0.3304093683761915, 0.3299990740289947, 0.32958927696089907, 0.32917997664521625, 0.32877117255533383, 0.3283628641647186, 0.32795505094692, 0.32754773237557366, 0.32714090792440453, 0.3267345770672304, 0.3263287392779655, 0.3259233940306232, 0.32551854079931974, 0.3251141790582773, 0.32471030828182734, 0.32430692794441374, 0.3239040375205961, 0.3235016364850526, 0.3230997243125835, 0.32269830047811415, 0.3222973644566978, 0.32189691572351914, 0.32149695375389686, 0.3210974780232871, 0.320698488007286, 0.3202999831816332, 0.31990196302221424, 0.31950442700506404, 0.31910737460636934, 0.31871080530247176, 0.31831471856987076, 0.31791911388522626, 0.3175239907253618, 0.3171293485672668, 0.31673518688810004, 0.3163415051651917, 0.3159483028760467, 0.3155555794983469, 0.3151633345099541, 0.31477156738891265, 0.3143802776134521, 0.31398946466198974, 0.31359912801313333, 0.31320926714568353, 0.31281988153863677, 0.3124309706711874, 0.31204253402273047, 0.31165457107286415, 0.3112670813013922, 0.31088006418832664, 0.3104935192138898, 0.3101074458585171, 0.30972184360285937, 0.30933671192778517, 0.3089520503143832, 0.3085678582439646, 0.3081841351980653, 0.3078008806584485, 0.30741809410710674, 0.3070357750262642, 0.30665392289837917, 0.306272537206146, 0.30589161743249754, 0.30551116306060727, 0.3051311735738914, 0.3047516484560112, 0.30437258719087507, 0.3039939892626406, 0.3036158541557167, 0.30323818135476605, 0.30286097034470666, 0.30248422061071406, 0.3021079316382237, 0.3017321029129325, 0.3013567339208013, 0.30098182414805646, 0.300607373081192, 0.30023338020697193, 0.2998598450124314, 0.2994867669848794, 0.2991141456119002, 0.2987419803813554, 0.29837027078138595, 0.29799901630041375, 0.2976282164271437, 0.29725787065056547, 0.2968879784599553, 0.2965185393448779, 0.29614955279518784, 0.29578101830103215, 0.2954129353528511, 0.29504530344138086, 0.2946781220576543, 0.29431139069300344, 0.29394510883906105, 0.2935792759877619, 0.2932138916313448, 0.29284895526235416, 0.2924844663736416, 0.29212042445836767, 0.2917568290100033, 0.29139367952233153, 0.2910309754894491, 0.290668716405768, 0.29030690176601687, 0.28994553106524273, 0.28958460379881235, 0.2892241194624141, 0.288864077552059, 0.28850447756408243, 0.28814531899514567, 0.2877866013422373, 0.2874283241026745, 0.28707048677410474, 0.2867130888545069, 0.2863561298421931, 0.2859996092358096, 0.28564352653433855, 0.2852878812370992, 0.28493267284374935, 0.2845779008542866, 0.28422356476904964, 0.2838696640887198, 0.28351619831432195, 0.28316316694722643, 0.2828105694891497, 0.28245840544215567, 0.28210667430865766, 0.2817553755914188, 0.2814045087935536, 0.28105407341852934, 0.2807040689701669, 0.28035449495264236, 0.280005350870488, 0.27965663622859327, 0.27930835053220654, 0.2789604932869355, 0.278613063998749, 0.27826606217397765, 0.27791948731931526, 0.2775733389418198, 0.2772276165489146, 0.27688231964838933, 0.2765374477484011, 0.27619300035747585, 0.2758489769845088, 0.2755053771387658, 0.27516220032988453, 0.27481944606787534, 0.27447711386312224, 0.274135203226384, 0.2737937136687951, 0.27345264470186675, 0.27311199583748774, 0.2727717665879255, 0.27243195646582713, 0.2720925649842202, 0.27175359165651364, 0.27141503599649897, 0.2710768975183508, 0.27073917573662815, 0.270401870166275, 0.2700649803226213, 0.26972850572138385, 0.26939244587866723, 0.2690568003109647, 0.2687215685351586, 0.2683867500685219, 0.2680523444287185, 0.2677183511338042, 0.26738476970222763, 0.26705159965283076, 0.26671884050485006, 0.26638649177791696, 0.26605455299205893, 0.2657230236676999, 0.26539190332566126, 0.2650611914871627, 0.2647308876738226, 0.26440099140765905, 0.26407150221109055, 0.26374241960693656, 0.2634137431184183, 0.2630854722691595, 0.26275760658318714, 0.26243014558493183, 0.262103088799229, 0.26177643575131887, 0.2614501859668478, 0.2611243389718686, 0.2607988942928411, 0.2604738514566329, 0.2601492099905201, 0.2598249694221877, 0.2595011292797305, 0.2591776890916533, 0.2588546483868718, 0.25853200669471316, 0.2582097635449165, 0.2578879184676335, 0.25756647099342894, 0.25724542065328126, 0.2569247669785833, 0.25660450950114255, 0.25628464775318177, 0.25596518126733975, 0.2556461095766714, 0.2553274322146487, 0.255009148715161, 0.25469125861251546, 0.2543737614414378, 0.25405665673707245, 0.2537399440349833, 0.2534236228711539, 0.25310769278198836, 0.2527921533043114, 0.2524770039753689, 0.2521622443328285, 0.25184787391478, 0.25153389225973555, 0.25122029890663045, 0.25090709339482326, 0.25059427526409644, 0.2502818440546566, 0.24996979930713495, 0.2496581405625877, 0.2493468673624965, 0.24903597924876883, 0.2487254757637383, 0.24841535645016496, 0.24810562085123583, 0.24779626851056524, 0.247487298972195, 0.24717871178059503, 0.24687050648066342, 0.246562682617727, 0.24625523973754157, 0.24594817738629213, 0.24564149511059333, 0.24533519245748978, 0.2450292689744563, 0.24472372420939825, 0.2444185577106518, 0.24411376902698423, 0.24380935770759438, 0.24350532330211255, 0.2432016653606012, 0.24289838343355485, 0.24259547707190066, 0.24229294582699845, 0.2419907892506411, 0.2416890068950547, 0.24138759831289894, 0.24108656305726717, 0.2407859006816867, 0.24048561074011907, 0.24018569278696023, 0.23988614637704075, 0.23958697106562613, 0.23928816640841677, 0.23898973196154857, 0.23869166728159275, 0.23839397192555611, 0.23809664545088147, 0.23779968741544752, 0.23750309737756925, 0.237206874895998, 0.23691101952992166, 0.2366155308389648, 0.236320408383189, 0.23602565172309276, 0.23573126041961173, 0.23543723403411895, 0.23514357212842496, 0.23485027426477786, 0.2345573400058635, 0.2342647689148056, 0.23397256055516594, 0.23368071449094438, 0.23338923028657893, 0.23309810750694612, 0.2328073457173608, 0.23251694448357643, 0.23222690337178511, 0.2319372219486177, 0.23164789978114395, 0.23135893643687253, 0.23107033148375106, 0.23078208449016627, 0.23049419502494417, 0.2302066626573499, 0.22991948695708797, 0.2296326674943022, 0.22934620383957582, 0.2290600955639318, 0.22877434223883236, 0.22848894343617943, 0.22820389872831454, 0.22791920768801893, 0.22763486988851356, 0.22735088490345906, 0.2270672523069559, 0.22678397167354444, 0.2265010425782047, 0.22621846459635658, 0.22593623730385992, 0.22565436027701435, 0.22537283309255945, 0.22509165532767458, 0.22481082655997908, 0.2245303463675322, 0.22425021432883296, 0.22397043002282035, 0.22369099302887316, 0.22341190292681004, 0.22313315929688943, 0.22285476171980967, 0.22257670977670876, 0.2222990030491645, 0.22202164111919453, 0.221744623569256, 0.22146794998224575, 0.22119161994150027, 0.2209156330307956, 0.22063998883434724, 0.22036468693681024, 0.22008972692327897, 0.21981510837928733, 0.21954083089080834, 0.21926689404425428, 0.21899329742647666, 0.2187200406247661, 0.21844712322685217, 0.21817454482090348, 0.21790230499552743, 0.21763040333977043, 0.21735883944311737, 0.2170876128954919, 0.21681672328725618, 0.21654617020921085, 0.2162759532525949, 0.21600607200908564, 0.21573652607079846, 0.21546731503028688, 0.2151984384805424, 0.2149298960149944, 0.21466168722750992, 0.2143938117123937, 0.21412626906438798, 0.21385905887867246, 0.2135921807508641, 0.21332563427701698, 0.21305941905362236, 0.2127935346776083, 0.21252798074633966, 0.212262756857618, 0.2119978626096814, 0.2117332976012043, 0.21146906143129743, 0.21120515369950751, 0.21094157400581745, 0.2106783219506458, 0.21041539713484686, 0.2101527991597104, 0.2098905276269616, 0.20962858213876082, 0.20936696229770352, 0.20910566770682007, 0.2088446979695755, 0.20858405268986954, 0.20832373147203623, 0.2080637339208439, 0.20780405964149493, 0.2075447082396256, 0.2072856793213059, 0.20702697249303947, 0.20676858736176315, 0.2065105235348472, 0.2062527806200947, 0.20599535822574164, 0.20573825596045667, 0.2054814734333408, 0.20522501025392742, 0.20496886603218187, 0.2047130403785015, 0.2044575329037153, 0.20420234321908368, 0.20394747093629836, 0.20369291566748224, 0.20343867702518897, 0.20318475462240299, 0.2029311480725391, 0.2026778569894424, 0.20242488098738806, 0.20217221968108118, 0.20191987268565628, 0.20166783961667747, 0.20141612009013798, 0.20116471372245995, 0.20091362013049438, 0.2006628389315208, 0.20041236974324686, 0.20016221218380859, 0.19991236587176966, 0.19966283042612143, 0.19941360546628265, 0.19916469061209918, 0.19891608548384393, 0.19866778970221635, 0.19841980288834243, 0.19817212466377446, 0.19792475465049053, 0.19767769247089456, 0.197430937747816, 0.1971844901045095, 0.1969383491646547, 0.19669251455235598, 0.1964469858921423, 0.19620176280896678, 0.19595684492820672, 0.19571223187566297, 0.19546792327755996, 0.19522391876054537, 0.19498021795168988, 0.19473682047848684, 0.1944937259688521, 0.19425093405112365, 0.19400844435406162, 0.19376625650684762, 0.1935243701390847, 0.19328278488079711, 0.19304150036242995, 0.19280051621484895, 0.1925598320693402, 0.19231944755760966, 0.19207936231178344, 0.19183957596440693, 0.19160008814844476, 0.1913608984972806, 0.1911220066447168, 0.19088341222497415, 0.19064511487269142, 0.19040711422292556, 0.1901694099111506, 0.1899320015732584, 0.18969488884555735, 0.18945807136477294, 0.1892215487680467, 0.18898532069293666, 0.18874938677741657, 0.18851374665987558, 0.18827839997911844, 0.1880433463743645, 0.1878085854852482, 0.18757411695181794, 0.18733994041453653, 0.1871060555142806, 0.18687246189234, 0.18663915919041807, 0.18640614705063083, 0.18617342511550716, 0.18594099302798794, 0.18570885043142638, 0.18547699696958703, 0.18524543228664614, 0.185014156027191, 0.18478316783621948, 0.18455246735914022, 0.1843220542417717, 0.1840919281303426, 0.18386208867149087, 0.18363253551226397, 0.18340326830011797, 0.18317428668291783, 0.18294559030893678, 0.18271717882685587, 0.18248905188576406, 0.1822612091351574, 0.1820336502249393, 0.1818063748054196, 0.18157938252731476, 0.18135267304174738, 0.1811262460002455, 0.18090010105474302, 0.18067423785757866, 0.1804486560614962, 0.18022335531964367, 0.17999833528557355, 0.17977359561324177, 0.17954913595700814, 0.17932495597163564, 0.1791010553122898, 0.1788774336345391, 0.1786540905943538, 0.17843102584810655, 0.17820823905257105, 0.17798572986492264, 0.17776349794273721, 0.17754154294399152, 0.17731986452706247, 0.17709846235072665, 0.17687733607416062, 0.17665648535693976, 0.1764359098590387, 0.17621560924083038, 0.17599558316308617, 0.17577583128697524, 0.1755563532740643, 0.17533714878631743, 0.17511821748609535, 0.17489955903615562, 0.17468117309965175, 0.1744630593401334, 0.17424521742154542, 0.17402764700822818, 0.17381034776491677, 0.17359331935674072, 0.1733765614492239, 0.1731600737082838, 0.17294385580023164, 0.1727279073917715, 0.17251222815000058, 0.1722968177424082, 0.17208167583687609, 0.17186680210167762, 0.17165219620547748, 0.17143785781733162, 0.17122378660668652, 0.17100998224337932, 0.17079644439763683, 0.17058317274007584, 0.17037016694170243, 0.1701574266739115, 0.16994495160848685, 0.16973274141760022, 0.1695207957738117, 0.16930911435006862, 0.16909769681970582, 0.16888654285644475, 0.16867565213439364, 0.1684650243280469, 0.1682546591122845, 0.16804455616237227, 0.1678347151539608, 0.1676251357630858, 0.16741581766616703, 0.16720676054000871, 0.16699796406179843, 0.16678942790910734, 0.1665811517598896, 0.16637313529248185, 0.16616537818560323, 0.16595788011835455, 0.16575064077021853, 0.1655436598210588, 0.16533693695112, 0.16513047184102747, 0.1649242641717862, 0.16471831362478156, 0.16451261988177784, 0.1643071826249188, 0.16410200153672663, 0.16389707630010208, 0.16369240659832376, 0.163487992115048, 0.16328383253430848, 0.16307992754051553, 0.16287627681845643, 0.16267288005329428, 0.1624697369305683, 0.16226684713619297, 0.16206421035645813, 0.16186182627802811, 0.16165969458794183, 0.16145781497361225, 0.16125618712282577, 0.16105481072374242, 0.1608536854648949, 0.16065281103518872, 0.16045218712390136, 0.16025181342068234, 0.16005168961555277, 0.1598518153989046, 0.1596521904615008, 0.15945281449447457, 0.15925368718932933, 0.15905480823793797, 0.1588561773325429, 0.15865779416575526, 0.15845965843055498, 0.1582617698202902, 0.15806412802867664, 0.15786673274979793, 0.15766958367810444, 0.15747268050841357, 0.15727602293590892, 0.15707961065614034, 0.15688344336502308, 0.15668752075883785, 0.15649184253423043, 0.1562964083882108, 0.1561012180181535, 0.1559062711217966, 0.155711567397242, 0.15551710654295428, 0.1553228882577611, 0.15512891224085243, 0.15493517819178, 0.15474168581045752, 0.1545484347971597, 0.15435542485252238, 0.15416265567754167, 0.1539701269735742, 0.153777838442336, 0.15358578978590284, 0.15339398070670957, 0.15320241090754946, 0.15301108009157446, 0.15281998796229418, 0.15262913422357613, 0.15243851857964474, 0.15224814073508167, 0.15205800039482467, 0.15186809726416794, 0.15167843104876144, 0.15148900145461025, 0.1512998081880748, 0.15111085095586999, 0.15092212946506509, 0.15073364342308324, 0.1505453925377012, 0.150357376517049, 0.15016959506960928, 0.1499820479042174, 0.14979473473006055, 0.14960765525667788, 0.14942080919395964, 0.14923419625214743, 0.14904781614183307, 0.14886166857395894, 0.1486757532598172, 0.14849006991104946, 0.14830461823964664, 0.14811939795794823, 0.14793440877864245, 0.1477496504147652, 0.14756512257970042, 0.14738082498717903, 0.14719675735127916, 0.1470129193864255, 0.14682931080738876, 0.14664593132928577, 0.14646278066757853, 0.14627985853807451, 0.1460971646569256, 0.14591469874062826, 0.14573246050602304, 0.14555044967029382, 0.14536866595096815, 0.14518710906591617, 0.14500577873335083, 0.14482467467182703, 0.1446437966002417, 0.14446314423783305, 0.14428271730418044, 0.14410251551920406, 0.1439225386031642, 0.14374278627666143, 0.14356325826063568, 0.14338395427636633, 0.14320487404547147, 0.14302601728990794, 0.14284738373197048, 0.14266897309429183, 0.14249078509984214, 0.14231281947192845, 0.14213507593419472, 0.14195755421062103, 0.1417802540255237, 0.14160317510355427, 0.1414263171696999, 0.14124967994928248, 0.14107326316795826, 0.14089706655171796, 0.14072108982688572, 0.1405453327201194, 0.14036979495840968, 0.14019447626908016, 0.14001937637978654, 0.13984449501851662, 0.13966983191358986, 0.13949538679365675, 0.13932115938769887, 0.13914714942502812, 0.13897335663528676, 0.1387997807484466, 0.13862642149480908, 0.13845327860500453, 0.13828035180999212, 0.1381076408410594, 0.1379351454298216, 0.13776286530822193, 0.13759080020853054, 0.13741894986334477, 0.13724731400558818, 0.1370758923685107, 0.13690468468568812, 0.13673369069102143, 0.13656291011873695, 0.13639234270338554, 0.1362219881798426, 0.13605184628330738, 0.1358819167493029, 0.13571219931367529, 0.1355426937125938, 0.13537339968255024, 0.13520431696035842, 0.13503544528315425, 0.1348667843883949, 0.13469833401385886, 0.13453009389764523, 0.13436206377817372, 0.13419424339418387, 0.13402663248473506, 0.13385923078920606, 0.13369203804729438, 0.13352505399901649, 0.1333582783847068, 0.1331917109450179, 0.13302535142091965, 0.1328591995536994, 0.13269325508496121, 0.13252751775662558, 0.13236198731092919, 0.13219666349042444, 0.13203154603797929, 0.1318666346967765, 0.13170192921031387, 0.1315374293224032, 0.13137313477717055, 0.13120904531905558, 0.13104516069281108, 0.130881480643503, 0.13071800491650956, 0.1305547332575216, 0.13039166541254144, 0.13022880112788324, 0.13006614015017204, 0.12990368222634394, 0.1297414271036454, 0.1295793745296329, 0.12941752425217282, 0.1292558760194408, 0.1290944295799217, 0.12893318468240889, 0.1287721410760042, 0.12861129851011752, 0.12845065673446615, 0.128290215499075, 0.12812997455427558, 0.12796993365070633, 0.1278100925393116, 0.127650450971342, 0.12749100869835334, 0.12733176547220684, 0.12717272104506852, 0.12701387516940882, 0.12685522759800244, 0.12669677808392776, 0.12653852638056678, 0.1263804722416044, 0.12622261542102844, 0.126064955673129, 0.12590749275249832, 0.12575022641403047, 0.12559315641292057, 0.12543628250466513, 0.12527960444506098, 0.12512312199020562, 0.12496683489649622, 0.12481074292062982, 0.1246548458196027, 0.12449914335071, 0.12434363527154559, 0.1241883213400014, 0.12403320131426757, 0.1238782749528315, 0.12372354201447809, 0.12356900225828889, 0.12341465544364214, 0.1232605013302123, 0.12310653967796949, 0.12295277024717961, 0.12279919279840347, 0.12264580709249695, 0.12249261289061018, 0.12233960995418766, 0.12218679804496749, 0.12203417692498139, 0.12188174635655417, 0.12172950610230333, 0.12157745592513895, 0.12142559558826306, 0.12127392485516965, 0.12112244348964386, 0.1209711512557622, 0.12082004791789182, 0.12066913324069015, 0.1205184069891049, 0.12036786892837331, 0.12021751882402223, 0.12006735644186735, 0.11991738154801326, 0.11976759390885278, 0.11961799329106686, 0.11946857946162424, 0.11931935218778084, 0.11917031123707979, 0.11902145637735077, 0.11887278737671005, 0.11872430400355964, 0.11857600602658752, 0.11842789321476682, 0.11827996533735584, 0.1181322221638976, 0.11798466346421928, 0.11783728900843235, 0.11769009856693174, 0.11754309191039596, 0.1173962688097863, 0.117249629036347, 0.11710317236160458, 0.11695689855736748, 0.11681080739572601, 0.1166648986490517, 0.11651917208999732, 0.11637362749149611, 0.11622826462676193, 0.11608308326928846, 0.11593808319284928, 0.11579326417149736, 0.11564862597956457, 0.11550416839166174, 0.11535989118267785, 0.11521579412778021, 0.11507187700241371, 0.11492813958230076, 0.11478458164344078, 0.11464120296211003, 0.11449800331486124, 0.11435498247852312, 0.11421214023020032, 0.11406947634727282, 0.1139269906073959, 0.11378468278849946, 0.11364255266878803, 0.11350060002674033, 0.11335882464110872, 0.11321722629091932, 0.11307580475547124, 0.11293455981433663, 0.11279349124736, 0.1126525988346583, 0.1125118823566201, 0.11237134159390581, 0.11223097632744704, 0.11209078633844617, 0.11195077140837639, 0.11181093131898102, 0.11167126585227352, 0.11153177479053679, 0.11139245791632327, 0.11125331501245422, 0.11111434586201972, 0.11097555024837825, 0.11083692795515616, 0.11069847876624773, 0.11056020246581448, 0.1104220988382852, 0.11028416766835526, 0.11014640874098666, 0.11000882184140753, 0.10987140675511167, 0.10973416326785859, 0.10959709116567279, 0.10946019023484388, 0.10932346026192577, 0.10918690103373686, 0.10905051233735928, 0.1089142939601389, 0.10877824568968489, 0.1086423673138693, 0.10850665862082699, 0.10837111939895502, 0.10823574943691272, 0.10810054852362086, 0.10796551644826191, 0.10783065300027925, 0.10769595796937713, 0.10756143114552036, 0.10742707231893373, 0.10729288128010211, 0.10715885781976972, 0.10702500172894018, 0.1068913127988759, 0.106757790821098, 0.10662443558738595, 0.10649124688977704, 0.10635822452056648, 0.10622536827230662, 0.10609267793780713, 0.1059601533101342, 0.10582779418261071, 0.10569560034881546, 0.10556357160258327, 0.10543170773800448, 0.10530000854942449, 0.10516847383144386, 0.10503710337891754, 0.10490589698695499, 0.10477485445091948, 0.10464397556642818, 0.10451326012935144, 0.10438270793581288, 0.10425231878218887, 0.10412209246510812, 0.10399202878145175, 0.1038621275283525, 0.10373238850319492, 0.10360281150361464, 0.10347339632749836, 0.10334414277298345, 0.10321505063845757, 0.10308611972255852, 0.10295734982417376, 0.10282874074244033, 0.10270029227674432, 0.10257200422672079, 0.1024438763922532, 0.10231590857347342, 0.10218810057076125, 0.10206045218474404, 0.10193296321629666, 0.1018056334665409, 0.10167846273684544, 0.10155145082882529, 0.10142459754434179, 0.10129790268550197, 0.10117136605465858, 0.10104498745440965, 0.10091876668759804, 0.10079270355731151, 0.10066679786688199, 0.10054104941988572, 0.10041545802014253, 0.1002900234717159, 0.10016474557891254, 0.10003962414628192, 0.09991465897861633, 0.0997898498809502, 0.09966519665856016, 0.09954069911696445, 0.09941635706192288, 0.09929217029943631, 0.09916813863574651, 0.0990442618773359, 0.09892053983092705, 0.09879697230348265, 0.09867355910220495, 0.09855030003453577, 0.0984271949081559, 0.0983042435309851, 0.09818144571118154, 0.09805880125714174, 0.09793630997750018, 0.09781397168112894, 0.09769178617713759, 0.09756975327487266, 0.09744787278391767, 0.09732614451409248, 0.0972045682754533, 0.09708314387829234, 0.09696187113313728, 0.0968407498507514, 0.09671977984213287, 0.09659896091851485, 0.09647829289136485, 0.09635777557238479, 0.09623740877351036, 0.09611719230691104, 0.09599712598498972, 0.09587720962038224, 0.09575744302595741, 0.09563782601481646, 0.09551835840029296, 0.09539903999595235, 0.09527987061559189, 0.09516085007324007, 0.09504197818315664, 0.09492325475983218, 0.09480467961798773, 0.09468625257257474, 0.09456797343877452, 0.09444984203199824, 0.09433185816788638, 0.09421402166230866, 0.09409633233136369, 0.09397878999137861, 0.09386139445890897, 0.09374414555073823, 0.09362704308387781, 0.09351008687556644, 0.09339327674327019, 0.09327661250468193, 0.09316009397772132, 0.0930437209805344, 0.09292749333149317, 0.09281141084919563, 0.0926954733524652, 0.09257968066035069, 0.09246403259212581, 0.09234852896728912, 0.09223316960556349, 0.09211795432689608, 0.09200288295145799, 0.09188795529964379, 0.09177317119207161, 0.09165853044958248, 0.09154403289324041, 0.09142967834433181, 0.09131546662436549, 0.09120139755507221, 0.0910874709584044, 0.09097368665653607, 0.09086004447186227, 0.09074654422699913, 0.09063318574478325, 0.0905199688482718, 0.09040689336074187, 0.09029395910569052, 0.09018116590683437, 0.09006851358810924, 0.08995600197367012, 0.08984363088789063, 0.08973140015536303, 0.08961930960089765, 0.08950735904952295, 0.08939554832648494, 0.08928387725724715, 0.08917234566749029, 0.08906095338311183, 0.0889497002302261, 0.08883858603516354, 0.0887276106244709, 0.08861677382491062, 0.08850607546346081, 0.08839551536731492, 0.08828509336388127, 0.08817480928078318, 0.0880646629458583, 0.08795465418715868, 0.08784478283295023, 0.08773504871171275, 0.08762545165213935, 0.08751599148313645, 0.0874066680338234, 0.08729748113353218, 0.08718843061180728, 0.08707951629840524, 0.08697073802329466, 0.08686209561665559, 0.08675358890887966, 0.08664521773056945, 0.08653698191253852, 0.08642888128581104, 0.0863209156816214, 0.08621308493141427, 0.08610538886684396, 0.08599782731977454, 0.08589040012227918, 0.08578310710664032, 0.08567594810534913, 0.08556892295110523, 0.0854620314768167, 0.0853552735155995, 0.0852486489007775, 0.08514215746588197, 0.08503579904465157, 0.08492957347103185, 0.08482348057917521, 0.08471752020344059, 0.08461169217839304, 0.08450599633880378, 0.08440043251964958, 0.08429500055611294, 0.08418970028358136, 0.08408453153764753, 0.0839794941541087, 0.08387458796896674, 0.08376981281842774, 0.08366516853890166, 0.08356065496700234, 0.08345627193954694, 0.08335201929355603, 0.08324789686625297, 0.08314390449506402, 0.08304004201761785, 0.08293630927174528, 0.08283270609547927, 0.08272923232705438, 0.08262588780490679, 0.08252267236767372, 0.08241958585419361, 0.08231662810350544, 0.08221379895484883, 0.08211109824766362, 0.08200852582158955, 0.08190608151646626, 0.0818037651723328, 0.08170157662942755, 0.08159951572818781, 0.0814975823092498, 0.08139577621344811, 0.08129409728181575, 0.0811925453555837, 0.08109112027618073, 0.08098982188523324, 0.08088865002456477, 0.08078760453619614, 0.0806866852623448, 0.08058589204542493, 0.08048522472804699, 0.08038468315301749, 0.08028426716333886, 0.0801839766022091, 0.08008381131302163, 0.07998377113936493, 0.07988385592502245, 0.0797840655139722, 0.07968439975038667, 0.07958485847863256, 0.07948544154327034, 0.07938614878905434, 0.07928698006093222, 0.07918793520404496, 0.07908901406372641, 0.07899021648550326, 0.07889154231509458, 0.07879299139841181, 0.07869456358155841, 0.07859625871082951, 0.07849807663271194, 0.07840001719388372, 0.07830208024121406, 0.07820426562176289, 0.07810657318278084, 0.07800900277170895, 0.07791155423617824, 0.07781422742400977, 0.07771702218321418, 0.07761993836199164, 0.07752297580873141, 0.0774261343720118, 0.07732941390059977, 0.07723281424345088, 0.0771363352497089, 0.07703997676870561, 0.07694373864996065, 0.07684762074318115, 0.07675162289826166, 0.0766557449652838, 0.07655998679451606, 0.07646434823641356, 0.07636882914161786, 0.07627342936095674, 0.07617814874544382, 0.07608298714627858, 0.07598794441484585, 0.07589302040271587, 0.07579821496164378, 0.07570352794356962, 0.075608959200618, 0.07551450858509781, 0.07542017594950216, 0.07532596114650796, 0.07523186402897586, 0.07513788444994987, 0.07504402226265734, 0.07495027732050845, 0.07485664947709623, 0.07476313858619632, 0.07466974450176646, 0.07457646707794668, 0.07448330616905871, 0.07439026162960605, 0.07429733331427346, 0.07420452107792705, 0.07411182477561372, 0.07401924426256122, 0.07392677939417781, 0.07383443002605193, 0.07374219601395225, 0.07365007721382712, 0.07355807348180463, 0.07346618467419216, 0.07337441064747637, 0.07328275125832284, 0.07319120636357582, 0.07309977582025817, 0.07300845948557094, 0.07291725721689335, 0.07282616887178235, 0.07273519430797266, 0.07264433338337627, 0.07255358595608244, 0.07246295188435742, 0.0723724310266441, 0.07228202324156205, 0.072191728387907, 0.0721015463246509, 0.07201147691094148, 0.07192152000610222, 0.07183167546963194, 0.07174194316120477, 0.07165232294066984, 0.07156281466805096, 0.07147341820354669, 0.07138413340752978, 0.07129496014054722, 0.07120589826331987, 0.07111694763674234, 0.07102810812188277, 0.07093937957998245, 0.07085076187245587, 0.07076225486089026, 0.0706738584070456, 0.07058557237285416, 0.07049739662042055, 0.07040933101202126, 0.07032137541010464, 0.0702335296772906, 0.07014579367637035, 0.07005816727030632, 0.06997065032223178, 0.06988324269545082, 0.06979594425343795, 0.06970875485983805, 0.069621674378466, 0.06953470267330664, 0.06944783960851444, 0.06936108504841329, 0.0692744388574964, 0.06918790090042591, 0.06910147104203287, 0.06901514914731689, 0.06892893508144601, 0.06884282870975651, 0.06875682989775254, 0.06867093851110617, 0.0685851544156569, 0.06849947747741172, 0.06841390756254466, 0.06832844453739682, 0.06824308826847592, 0.06815783862245628, 0.0680726954661786, 0.06798765866664955, 0.06790272809104186, 0.06781790360669389, 0.06773318508110955, 0.06764857238195798, 0.06756406537707352, 0.06747966393445526, 0.06739536792226708, 0.06731117720883735, 0.0672270916626586, 0.06714311115238757, 0.06705923554684472, 0.06697546471501432, 0.06689179852604399, 0.06680823684924468, 0.06672477955409038, 0.06664142651021786, 0.06655817758742667, 0.06647503265567868, 0.06639199158509812, 0.06630905424597115, 0.0662262205087459, 0.066143490244032, 0.06606086332260064, 0.06597833961538425, 0.06589591899347622, 0.06581360132813084, 0.065731386490763, 0.06564927435294812, 0.06556726478642175, 0.06548535766307959, 0.06540355285497705, 0.06532185023432933, 0.06524024967351107, 0.06515875104505602, 0.06507735422165713, 0.0649960590761661, 0.0649148654815934, 0.06483377331110785, 0.06475278243803657, 0.06467189273586484, 0.06459110407823565, 0.0645104163389498, 0.06442982939196547, 0.0643493431113982, 0.06426895737152057, 0.06418867204676208, 0.0641084870117089, 0.06402840214110372, 0.0639484173098456, 0.06386853239298956, 0.06378874726574672, 0.06370906180348376, 0.06362947588172306, 0.06354998937614217, 0.06347060216257394, 0.06339131411700603, 0.063312125115581, 0.06323303503459592, 0.06315404375050217, 0.06307515113990543, 0.06299635707956529, 0.06291766144639521, 0.06283906411746218, 0.06276056496998667, 0.06268216388134239, 0.06260386072905601, 0.06252565539080715, 0.062447547744427984, 0.06236953766790327, 0.06229162503936991, 0.06221380973711705, 0.06213609163958558, 0.06205847062536822, 0.061980946573209184, 0.06190351936200397, 0.06182618887079929, 0.06174895497879275, 0.061671817565332805, 0.0615947765099184, 0.06151783169219898, 0.061440982991974084, 0.06136423028919337, 0.061287573463956316, 0.06121101239651198, 0.06113454696725898, 0.061058177056745114, 0.06098190254566737, 0.060905723314871554, 0.06082963924535225, 0.06075365021825258, 0.06067775611486396, 0.06060195681662605, 0.060526252205126405, 0.06045064216210048, 0.06037512656943124, 0.06029970530914919, 0.06022437826343195, 0.06014914531460433, 0.06007400634513799, 0.05999896123765121, 0.05992400987490889, 0.059849152139822184, 0.05977438791544848, 0.059699717084991034, 0.059625139531798994, 0.05955065513936701, 0.05947626379133525, 0.059401965371489104, 0.059327759763758973, 0.059253646852220225, 0.059179626521092835, 0.0591056986547414, 0.05903186313767477, 0.058958119854546034, 0.058884468690152236, 0.05881090952943419, 0.058737442257476416, 0.058664066759506785, 0.05859078292089653, 0.058517590627159874, 0.058444489763954076, 0.058371480217079, 0.05829856187247715, 0.058225734616233434, 0.05815299833457485, 0.058080352913870543, 0.0580077982406314, 0.057935334201510084, 0.05786296068330066, 0.05779067757293858, 0.05771848475750038, 0.05764638212420362, 0.05757436956040665, 0.05750244695360838, 0.05743061419144823, 0.057358871161705814, 0.05728721775230093, 0.0572156538512932, 0.05714417934688204, 0.05707279412740648, 0.057001498081344824, 0.056930291097314734, 0.0568591730640728, 0.05678814387051461, 0.05671720340567433, 0.056646351558724765, 0.056575588218976985, 0.05650491327588032, 0.056434326619022104, 0.056363828138127445, 0.05629341772305923, 0.05622309526381772, 0.05615286065054063, 0.056082713773502706, 0.05601265452311582, 0.0559426827899285, 0.05587279846462604, 0.05580300143803021, 0.055733291601098967, 0.05566366884492655, 0.05559413306074303, 0.055524684139914404, 0.055455321973942165, 0.05538604645446336, 0.055316857473250304, 0.05524775492221039, 0.05517873869338604, 0.055109808678954354, 0.05504096477122717, 0.05497220686265066, 0.054903534845805395, 0.054834948613405925, 0.05476644805830085, 0.054698033073472554, 0.05462970355203693, 0.05456145938724346, 0.05449330047247476, 0.0544252267012467, 0.05435723796720797, 0.05428933416414017, 0.05422151518595738, 0.05415378092670626, 0.05408613128056571, 0.054018566141846705, 0.053951085404992265, 0.053883688964577105, 0.05381637671530768, 0.0537491485520218, 0.05368200436968865, 0.05361494406340857, 0.053547967528412774, 0.05348107466006341, 0.053414265353853164, 0.05334753950540531, 0.05328089701047334, 0.053214337764941014, 0.053147861664821994, 0.05308146860625984, 0.0530151584855278, 0.05294893119902854, 0.05288278664329422, 0.05281672471498604, 0.05275074531089436, 0.0526848483279383, 0.05261903366316579, 0.05255330121375321, 0.0524876508770054, 0.05242208255035544, 0.05235659613136436, 0.052291191517721256, 0.052225868607242834, 0.052160627297873505, 0.05209546748768501, 0.05203038907487643, 0.051965391957773964, 0.05190047603483068, 0.051835641204626574, 0.05177088736586814, 0.051706214417388485, 0.05164162225814691, 0.051577110787229014, 0.05151267990384628, 0.05144832950733612, 0.05138405949716165, 0.05131986977291143, 0.05125576023429954, 0.051191730781165144, 0.051127781313472585, 0.051063911731311036, 0.051000121934894505, 0.050936411824561524, 0.050872781300775126, 0.050809230264122644, 0.05074575861531548, 0.05068236625518909, 0.0506190530847027, 0.05055581900493927, 0.050492663917105204, 0.050429587722530325, 0.05036659032266768, 0.05030367161909329, 0.05024083151350619, 0.050178069907728065, 0.050115386703703274, 0.05005278180349856, 0.049990255109303015, 0.049927806523427806, 0.04986543594830615, 0.04980314328649308, 0.04974092844066527, 0.049678791313621004, 0.04961673180827985, 0.04955474982768271, 0.04949284527499145, 0.04943101805348898, 0.04936926806657887, 0.0493075952177854, 0.04924599941075332, 0.049184480549247636, 0.04912303853715362, 0.04906167327847647, 0.04900038467734137, 0.04893917263799311, 0.04887803706479615, 0.04881697786223435, 0.04875599493491081, 0.048695088187547836, 0.04863425752498662, 0.04857350285218728, 0.04851282407422853, 0.04845222109630771, 0.04839169382374045, 0.04833124216196071, 0.04827086601652052, 0.0482105652930898, 0.048150339897456346, 0.04809018973552555, 0.048030114713320346, 0.04797011473698099, 0.047910189712765006, 0.04785033954704691, 0.0477905641463182, 0.047730863417187144, 0.04767123726637858, 0.047611685600733915, 0.047552208327210806, 0.04749280535288319, 0.047433476584940966, 0.04737422193069, 0.04731504129755191, 0.04725593459306388, 0.047196901724878636, 0.047137942600764156, 0.04707905712860367, 0.047020245216395376, 0.04696150677225244, 0.04690284170440271, 0.0468442499211887, 0.04678573133106737, 0.04672728584260997, 0.046668913364502, 0.046610613805542905, 0.04655238707464614, 0.04649423308083879, 0.04643615173326166, 0.046378142941168946, 0.046320206613928216, 0.046262342661020237, 0.046204550992038754, 0.04614683151669051, 0.04608918414479491, 0.04603160878628409, 0.04597410535120256, 0.04591667374970726, 0.04585931389206731, 0.045802025688663844, 0.04574480904999, 0.04568766388665062, 0.045630590109362254, 0.04557358762895289, 0.045516656356361956, 0.04545979620264003, 0.04540300707894885, 0.04534628889656107, 0.04528964156686012, 0.045233065001340174, 0.04517655911160587, 0.0451201238093723, 0.04506375900646477, 0.045007464614818735, 0.044951240546479615, 0.044895086713602685, 0.04483900302845296, 0.04478298940340495, 0.0447270457509427, 0.04467117198365944, 0.04461536801425769, 0.044559633755548875, 0.044503969120453395, 0.0444483740220004, 0.04439284837332759, 0.04433739208768123, 0.04428200507841586, 0.04422668725899433, 0.04417143854298743, 0.04411625884407406, 0.04406114807604075, 0.04400610615278186, 0.04395113298829921, 0.043896228496702015, 0.043841392592206825, 0.04378662518913724, 0.04373192620192397, 0.04367729554510447, 0.04362273313332306, 0.04356823888133056, 0.043513812703984314, 0.043459454516248025, 0.04340516423319152, 0.04335094176999079, 0.043296787041927694, 0.04324269996438996, 0.04318868045287093, 0.04313472842296954, 0.04308084379039013, 0.04302702647094228, 0.0429732763805408, 0.042919593435205426, 0.04286597755106085, 0.042812428644336466, 0.042758946631366375, 0.04270553142858906, 0.04265218295254746, 0.042598901119888746, 0.042545685847364116, 0.04249253705182884, 0.04243945465024194, 0.042386438559666235, 0.042333488697268065, 0.04228060498031729, 0.04222778732618702, 0.04217503565235363, 0.04212234987639655, 0.04206972991599811, 0.04201717568894353, 0.04196468711312062, 0.04191226410651983, 0.04185990658723398, 0.04180761447345821, 0.041755387683489874, 0.04170322613572828, 0.04165112974867475, 0.04159909844093231, 0.04154713213120575, 0.04149523073830127, 0.0414433941811266, 0.04139162237869067, 0.041339915250103616, 0.0412882727145766, 0.041236694691421646, 0.041185181100051614, 0.04113373185997996, 0.041082346890820735, 0.04103102611228831, 0.040979769444197414, 0.040928576806462856, 0.040877448119099526, 0.040826383302222206, 0.0407753822760454, 0.04072444496088335, 0.04067357127714976, 0.040622761145357775, 0.04057201448611977, 0.04052133122014735, 0.04047071126825111, 0.04042015455134052, 0.04036966099042392, 0.04031923050660821, 0.04026886302109893, 0.04021855845519994, 0.04016831673031348, 0.040118137767939877, 0.040068021489677565, 0.04001796781722291, 0.03996797667237001, 0.03991804797701072, 0.039868181653134396, 0.039818377622827895, 0.03976863580827531, 0.039718956131758, 0.03966933851565434, 0.03961978288243969, 0.03957028915468625, 0.03952085725506289, 0.03947148710633511, 0.03942217863136483, 0.03937293175311038, 0.03932374639462625, 0.03927462247906308, 0.03922555992966752, 0.03917655866978201, 0.03912761862284482, 0.03907873971238978, 0.0390299218620463, 0.038981164995539094, 0.03893246903668824, 0.038883833909408874, 0.03883525953771124, 0.038786745845700486, 0.038738292757576495, 0.03868990019763391, 0.03864156809026186, 0.038593296359943983, 0.03854508493125817, 0.038496933728876595, 0.038448842677565445, 0.03840081170218492, 0.03835284072768909, 0.038304929679125695, 0.03825707848163618, 0.038209287060455406, 0.0381615553409117, 0.03811388324842658, 0.038066270708514774, 0.038018717646784043, 0.03797122398893503, 0.03792378966076122, 0.037876414588148756, 0.03782909869707639, 0.03778184191361528, 0.03773464416392898, 0.03768750537427323, 0.03764042547099589, 0.037593404380536856, 0.037546442029427834, 0.037499538344292364, 0.037452693251845574, 0.037405906678894194, 0.03735917855233632, 0.03731250879916142, 0.037265897346450076, 0.037219344121374016, 0.03717284905119594, 0.03712641206326934, 0.03708003308503851, 0.03703371204403832, 0.03698744886789422, 0.036941243484321984, 0.036895095821127724, 0.036849005806207744, 0.03680297336754835, 0.03675699843322585, 0.03671108093140635, 0.03666522079034573, 0.03661941793838944, 0.03657367230397246, 0.036527983815619135, 0.03648235240194311, 0.03643677799164721, 0.036391260513523274, 0.036345799896452126, 0.036300396069403384, 0.03625504896143545, 0.03620975850169525, 0.0361645246194183, 0.036119347243928436, 0.03607422630463783, 0.036029161731046803, 0.035984153452743715, 0.03593920139940492, 0.03589430550079455, 0.03584946568676456, 0.03580468188725441, 0.035759954032291166, 0.035715282051989275, 0.03567066587655044, 0.0356261054362636, 0.03558160066150472, 0.035537151482736784, 0.03549275783050958, 0.035448419635459694, 0.035404136828310305, 0.035359909339871175, 0.03531573710103848, 0.03527162004279467, 0.035227558096208464, 0.03518355119243464, 0.035139599262714, 0.035095702238373196, 0.03505186005082471, 0.03500807263156665, 0.03496433991218271, 0.03492066182434207, 0.0348770382997992, 0.03483346927039389, 0.03478995466805098, 0.034746494424780436, 0.03470308847267708, 0.03465973674392059, 0.03461643917077537, 0.03457319568559038, 0.03453000622079915, 0.03448687070891955, 0.03444378908255379, 0.034400761274388215, 0.03435778721719332, 0.0343148668438235, 0.03427200008721708, 0.03422918688039615, 0.03418642715646641, 0.034143720848617186, 0.03410106789012121, 0.0340584682143346, 0.034015921754696664, 0.03397342844472993, 0.0339309882180399, 0.03388860100831503, 0.03384626674932663, 0.033803985374928694, 0.03376175681905789, 0.03371958101573334, 0.03367745789905666, 0.03363538740321173, 0.03359336946246465, 0.03355140401116367, 0.03350949098373896, 0.0334676303147027, 0.03342582193864878, 0.03338406579025286, 0.033342361804272136, 0.03330070991554537, 0.03325911005899265, 0.0332175621696154, 0.03317606618249624, 0.03313462203279882, 0.03309322965576787, 0.03305188898672892, 0.03301059996108836, 0.032969362514333196, 0.032928176582031086, 0.03288704209983011, 0.03284595900345877, 0.03280492722872587, 0.03276394671152033, 0.032723017387811235, 0.03268213919364757, 0.03264131206515827, 0.03260053593855202, 0.032559810750117185, 0.03251913643622176, 0.03247851293331315, 0.03243794017791821, 0.03239741810664304, 0.03235694665617297, 0.032316525763272354, 0.03227615536478462, 0.032235835397632, 0.03219556579881558, 0.03215534650541513, 0.03211517745458898, 0.03207505858357401, 0.03203498982968545, 0.031994971130316886, 0.03195500242294005, 0.03191508364510482, 0.03187521473443906, 0.03183539562864856, 0.031795626265516935, 0.03175590658290548, 0.03171623651875316, 0.0316766160110764, 0.03163704499796912, 0.031597523417602504, 0.03155805120822501, 0.031518628308162246, 0.03147925465581681, 0.031439930189668286, 0.03140065484827307, 0.03136142857026436, 0.031322251294351955, 0.03128312295932226, 0.03124404350403809, 0.031205012867438695, 0.031166030988539567, 0.031127097806432358, 0.03108821326028484, 0.031049377289340735, 0.031010589832919707, 0.030971850830417154, 0.030933160221304247, 0.03089451794512771, 0.030855923941509815, 0.030817378150148258, 0.030778880510816023, 0.030740430963361383, 0.030702029447707693, 0.030663675903853396, 0.03062537027187185, 0.030587112491911296, 0.030548902504194755, 0.030510740249019865, 0.03047262566675889, 0.030434558697858542, 0.030396539282839967, 0.030358567362298555, 0.030320642876903958, 0.030282765767399883, 0.030244935974604106, 0.030207153439408323, 0.03016941810277803, 0.03013172990575251, 0.030094088789444657, 0.030056494695040972, 0.03001894756380136, 0.029981447337059177, 0.029943993956220986, 0.0299065873627666, 0.029869227498248916, 0.02983191430429382, 0.029794647722600157, 0.029757427694939546, 0.0297202541631564, 0.029683127069167724, 0.029646046354963117, 0.02960901196260464, 0.02957202383422669, 0.029535081912036, 0.029498186138311445, 0.02946133645540405, 0.029424532805736807, 0.02938777513180468, 0.029351063376174415, 0.029314397481484535, 0.029277777390445226, 0.029241203045838195, 0.029204674390516668, 0.02916819136740522, 0.029131753919499768, 0.029095361989867376, 0.02905901552164629, 0.02902271445804572, 0.02898645874234588, 0.02895024831789781, 0.02891408312812329, 0.02887796311651482, 0.028841888226635443, 0.028805858402118748, 0.028769873586668684, 0.02873393372405956, 0.028698038758135924, 0.028662188632812426, 0.028626383292073836, 0.028590622679974843, 0.028554906740640065, 0.02851923541826388, 0.02848360865711041, 0.028448026401513362, 0.028412488595876022, 0.02837699518467111, 0.02834154611244068, 0.028306141323796115, 0.028270780763417932, 0.028235464376055806, 0.028200192106528375, 0.028164963899723262, 0.028129779700596883, 0.028094639454174446, 0.028059543105549836, 0.028024490599885495, 0.0279894818824124, 0.027954516898429906, 0.027919595593305743, 0.02788471791247584, 0.027849883801444326, 0.027815093205783393, 0.027780346071133194, 0.02774564234320184, 0.027710981967765204, 0.027676364890666945, 0.02764179105781833, 0.027607260415198235, 0.027572772908852967, 0.02753832848489628, 0.027503927089509224, 0.027469568668940052, 0.027435253169504212, 0.027400980537584156, 0.027366750719629372, 0.02733256366215619, 0.027298419311747795, 0.027264317615054056, 0.02723025851879152, 0.027196241969743296, 0.027162267914758925, 0.027128336300754407, 0.027094447074711987, 0.027060600183680204, 0.027026795574773683, 0.026993033195173148, 0.02695931299212531, 0.026925634912942743, 0.026891998905003878, 0.026858404915752834, 0.026824852892699428, 0.02679134278341901, 0.02675787453555245, 0.026724448096805985, 0.026691063414951213, 0.026657720437824967, 0.026624419113329214, 0.026591159389431043, 0.02655794121416249, 0.026524764535620575, 0.026491629301967082, 0.026458535461428616, 0.026425482962296392, 0.026392471752926274, 0.026359501781738626, 0.026326572997218207, 0.026293685347914184, 0.026260838782439944, 0.02622803324947311, 0.02619526869775538, 0.026162545076092496, 0.02612986233335417, 0.026097220418473947, 0.026064619280449206, 0.026032058868340993, 0.025999539131274032, 0.02596706001843655, 0.0259346214790803, 0.02590222346252038, 0.025869865918135247, 0.025837548795366535, 0.02580527204371912, 0.025773035612760883, 0.025740839452122733, 0.025708683511498465, 0.025676567740644793, 0.025644492089381125, 0.025612456507589556, 0.025580460945214843, 0.02554850535226422, 0.025516589678807385, 0.025484713874976386, 0.02545287789096563, 0.02542108167703169, 0.02538932518349327, 0.025357608360731143, 0.025325931159188117, 0.025294293529368836, 0.025262695421839784, 0.025231136787229262, 0.025199617576227167, 0.025168137739585032, 0.025136697228115876, 0.025105295992694232, 0.025073933984255933, 0.02504261115379811, 0.025011327452379162, 0.024980082831118567, 0.024948877241196883, 0.024917710633855634, 0.024886582960397315, 0.02485549417218518, 0.02482444422064326, 0.024793433057256318, 0.02476246063356965, 0.024731526901189124, 0.024700631811781015, 0.02466977531707206, 0.024638957368849225, 0.024608177918959726, 0.024577436919310913, 0.02454673432187027, 0.024516070078665225, 0.024485444141783125, 0.02445485646337125, 0.024424306995636576, 0.024393795690845807, 0.024363322501325255, 0.024332887379460856, 0.024302490277697947, 0.024272131148541286, 0.024241809944555017, 0.02421152661836247, 0.024181281122646194, 0.024151073410147814, 0.02412090343366806, 0.024090771146066548, 0.024060676500261797, 0.024030619449231197, 0.024000599946010816, 0.023970617943695396, 0.02394067339543828, 0.023910766254451363, 0.02388089647400495, 0.023851064007427727, 0.023821268808106668, 0.023791510829487033, 0.023761790025072175, 0.02373210634842354, 0.023702459753160633, 0.023672850192960844, 0.02364327762155945, 0.023613741992749498, 0.023584243260381815, 0.023554781378364826, 0.023525356300664522, 0.023495967981304468, 0.023466616374365597, 0.023437301433986226, 0.023408023114361947, 0.02337878136974562, 0.023349576154447205, 0.023320407422833728, 0.02329127512932928, 0.023262179228414833, 0.023233119674628232, 0.023204096422564095, 0.02317510942687383, 0.023146158642265425, 0.02311724402350346, 0.023088365525409025, 0.02305952310285968, 0.023030716710789316, 0.023001946304188104, 0.022973211838102508, 0.02294451326763509, 0.022915850547944514, 0.022887223634245432, 0.022858632481808524, 0.02283007704596026, 0.022801557282082937, 0.022773073145614633, 0.02274462459204904, 0.022716211576935468, 0.022687834055878733, 0.022659491984539166, 0.022631185318632435, 0.02260291401392952, 0.022574678026256716, 0.022546477311495436, 0.022518311825582234, 0.02249018152450868, 0.02246208636432138, 0.022434026301121793, 0.02240600129106623, 0.022378011290365752, 0.02235005625528618, 0.022322136142147914, 0.02229425090732591, 0.02226640050724969, 0.022238584898403135, 0.022210804037324512, 0.02218305788060636, 0.0221553463848955, 0.02212766950689285, 0.022100027203353422, 0.0220724194310863, 0.022044846146954473, 0.02201730730787483, 0.021989802870818063, 0.021962332792808674, 0.021934897030924792, 0.021907495542298157, 0.021880128284114134, 0.021852795213611498, 0.021825496288082467, 0.021798231464872593, 0.021771000701380768, 0.02174380395505904, 0.021716641183412638, 0.021689512343999837, 0.021662417394432004, 0.0216353562923734, 0.021608328995541163, 0.021581335461705316, 0.021554375648688572, 0.02152744951436636, 0.021500557016666696, 0.02147369811357023, 0.021446872763110032, 0.021420080923371602, 0.021393322552492853, 0.02136659760866394, 0.021339906050127262, 0.02131324783517737, 0.02128662292216095, 0.0212600312694767, 0.02123347283557525, 0.021206947578959214, 0.02118045545818298, 0.02115399643185272, 0.021127570458626323, 0.021101177497213346, 0.021074817506374896, 0.021048490444923594, 0.02102219627172351, 0.020995934945690155, 0.020969706425790297, 0.02094351067104197, 0.020917347640514457, 0.02089121729332812, 0.020865119588654397, 0.02083905448571572, 0.020813021943785516, 0.020787021922188027, 0.020761054380298308, 0.020735119277542218, 0.020709216573396257, 0.020683346227387548, 0.02065750819909376, 0.020631702448143125, 0.02060592893421424, 0.020580187617036075, 0.02055447845638796, 0.020528801412099416, 0.020503156444050166, 0.02047754351217003, 0.020451962576438932, 0.020426413596886753, 0.020400896533593303, 0.020375411346688257, 0.02034995799635114, 0.020324536442811174, 0.020299146646347258, 0.02027378856728797, 0.020248462166011387, 0.020223167402945108, 0.02019790423856613, 0.020172672633400897, 0.0201474725480251, 0.02012230394306368, 0.020097166779190816, 0.02007206101712977, 0.02004698661765287, 0.020021943541581443, 0.019996931749785812, 0.019971951203185116, 0.019947001862747327, 0.019922083689489223, 0.01989719664447623, 0.019872340688822418, 0.01984751578369043, 0.019822721890291477, 0.019797958969885163, 0.01977322698377951, 0.019748525893330853, 0.019723855659943862, 0.019699216245071358, 0.019674607610214324, 0.01965002971692188, 0.01962548252679113, 0.01960096600146718, 0.019576480102643016, 0.01955202479205953, 0.01952760003150537, 0.0195032057828169, 0.019478842007878226, 0.019454508668621008, 0.01943020572702448, 0.019405933145115354, 0.01938169088496783, 0.01935747890870344, 0.019333297178491027, 0.01930914565654674, 0.019285024305133888, 0.019260933086562935, 0.019236871963191404, 0.019212840897423897, 0.01918883985171193, 0.01916486878855394, 0.019140927670495196, 0.019117016460127804, 0.019093135120090553, 0.0190692836130689, 0.019045461901794968, 0.019021669949047387, 0.018997907717651297, 0.018974175170478266, 0.018950472270446286, 0.01892679898051963, 0.018903155263708827, 0.018879541083070675, 0.018855956401708063, 0.01883240118276999, 0.018808875389451474, 0.018785378984993564, 0.018761911932683176, 0.018738474195853085, 0.018715065737881925, 0.018691686522194027, 0.018668336512259423, 0.018645015671593775, 0.018621723963758365, 0.018598461352359937, 0.018575227801050722, 0.018552023273528347, 0.018528847733535827, 0.01850570114486142, 0.018482583471338628, 0.018459494676846176, 0.018436434725307867, 0.01841340358069258, 0.018390401207014198, 0.0183674275683316, 0.018344482628748514, 0.01832156635241351, 0.01829867870352, 0.018275819646306073, 0.0182529891450545, 0.01823018716409267, 0.01820741366779257, 0.018184668620570648, 0.01816195198688781, 0.0181392637312494, 0.018116603818205054, 0.01809397221234871, 0.018071368878318526, 0.018048793780796872, 0.018026246884510193, 0.018003728154229015, 0.01798123755476786, 0.017958775050985247, 0.01793634060778355, 0.017913934190108984, 0.0178915557629516, 0.017869205291345145, 0.01784688274036705, 0.017824588075138367, 0.017802321260823758, 0.01778008226263136, 0.01775787104581277, 0.01773568757566304, 0.01771353181752053, 0.017691403736766913, 0.017669303298827096, 0.01764723046916922, 0.01762518521330452, 0.017603167496787312, 0.017581177285214994, 0.017559214544227885, 0.017537279239509252, 0.017515371336785202, 0.01749349080182472, 0.0174716376004395, 0.017449811698483947, 0.017428013061855128, 0.017406241656492738, 0.017384497448378992, 0.017362780403538586, 0.01734109048803871, 0.017319427667988902, 0.017297791909541043, 0.01727618317888929, 0.017254601442270066, 0.017233046665961937, 0.01721151881628559, 0.01719001785960383, 0.01716854376232144, 0.017147096490885177, 0.01712567601178371, 0.0171042822915476, 0.017082915296749192, 0.017061574994002574, 0.01704026134996359, 0.017018974331329702, 0.016997713904839975, 0.01697648003727502, 0.016955272695456977, 0.016934091846249406, 0.016912937456557257, 0.016891809493326828, 0.016870707923545735, 0.0168496327142428, 0.016828583832488028, 0.016807561245392604, 0.01678656492010876, 0.01676559482382977, 0.016744650923789878, 0.016723733187264306, 0.016702841581569112, 0.016681976074061175, 0.01666113663213821, 0.016640323223238603, 0.016619535814841435, 0.016598774374466402, 0.016578038869673815, 0.016557329268064466, 0.01653664553727962, 0.016515987645001003, 0.016495355558950688, 0.01647474924689106, 0.01645416867662478, 0.016433613815994768, 0.016413084632884066, 0.01639258109521586, 0.016372103170953386, 0.01635165082809995, 0.016331224034698777, 0.016310822758833023, 0.01629044696862575, 0.0162700966322398, 0.01624977171787781, 0.016229472193782103, 0.016209198028234742, 0.01618894918955735, 0.016168725646111135, 0.016148527366296864, 0.016128354318554743, 0.01610820647136441, 0.01608808379324487, 0.016067986252754487, 0.016047913818490876, 0.016027866459090868, 0.016007844143230518, 0.01598784683962497, 0.01596787451702847, 0.015947927144234268, 0.01592800469007465, 0.015908107123420796, 0.015888234413182784, 0.015868386528309516, 0.015848563437788725, 0.01582876511064684, 0.015808991515948993, 0.015789242622798988, 0.015769518400339196, 0.01574981881775054, 0.015730143844252434, 0.015710493449102785, 0.01569086760159786, 0.015671266271072282, 0.015651689426899026, 0.01563213703848928, 0.015612609075292461, 0.015593105506796136, 0.015573626302526032, 0.0155541714320459, 0.015534740864957512, 0.015515334570900659, 0.015495952519553016, 0.01547659468063015, 0.015457261023885442, 0.01543795151911011, 0.015418666136133054, 0.015399404844820889, 0.015380167615077853, 0.015360954416845827, 0.01534176522010419, 0.015322599994869837, 0.015303458711197145, 0.01528434133917787, 0.015265247848941134, 0.01524617821065337, 0.015227132394518316, 0.015208110370776887, 0.015189112109707179, 0.015170137581624457, 0.015151186756881029, 0.015132259605866246, 0.015113356099006443, 0.015094476206764938, 0.015075619899641903, 0.015056787148174365, 0.015037977922936197, 0.015019192194537987, 0.015000429933627053, 0.014981691110887369, 0.01496297569703957, 0.014944283662840825, 0.01492561497908485, 0.014906969616601833, 0.014888347546258436, 0.01486974873895768, 0.014851173165638932, 0.014832620797277903, 0.014814091604886524, 0.014795585559512948, 0.01477710263224148, 0.01475864279419259, 0.01474020601652279, 0.014721792270424612, 0.014703401527126627, 0.014685033757893295, 0.014666688934024997, 0.014648367026857949, 0.01463006800776421, 0.01461179184815157, 0.01459353851946353, 0.014575307993179305, 0.014557100240813702, 0.014538915233917123, 0.014520752944075496, 0.014502613342910286, 0.014484496402078367, 0.014466402093272036, 0.014448330388218933, 0.014430281258682065, 0.014412254676459665, 0.014394250613385205, 0.01437626904132737, 0.014358309932189959, 0.014340373257911876, 0.014322458990467073, 0.014304567101864544, 0.014286697564148212, 0.014268850349396931, 0.014251025429724461, 0.014233222777279371, 0.014215442364245028, 0.014197684162839539, 0.014179948145315749, 0.014162234283961135, 0.014144542551097787, 0.014126872919082411, 0.01410922536030621, 0.014091599847194882, 0.014073996352208564, 0.014056414847841838, 0.014038855306623596, 0.01402131770111707, 0.014003802003919754, 0.013986308187663405, 0.013968836225013936, 0.013951386088671407, 0.013933957751370012, 0.013916551185877977, 0.013899166364997556, 0.013881803261564962, 0.013864461848450386, 0.013847142098557868, 0.013829843984825297, 0.013812567480224405, 0.013795312557760656, 0.013778079190473242, 0.013760867351435026, 0.013743677013752547, 0.0137265081505659, 0.013709360735048734, 0.013692234740408248, 0.013675130139885073, 0.013658046906753282, 0.013640985014320322, 0.01362394443592702, 0.01360692514494747, 0.013589927114789043, 0.01357295031889231, 0.013555994730731066, 0.013539060323812201, 0.013522147071675702, 0.013505254947894648, 0.01348838392607509, 0.013471533979856067, 0.013454705082909536, 0.013437897208940381, 0.013421110331686295, 0.01340434442491778, 0.013387599462438138, 0.013370875418083366, 0.01335417226572215, 0.013337489979255815, 0.013320828532618317, 0.013304187899776148, 0.013287568054728312, 0.013270968971506336, 0.013254390624174148, 0.013237832986828088, 0.013221296033596846, 0.013204779738641467, 0.013188284076155233, 0.01317180902036368, 0.013155354545524531, 0.013138920625927702, 0.013122507235895187, 0.013106114349781064, 0.013089741941971477, 0.013073389986884535, 0.01305705845897032, 0.01304074733271081, 0.013024456582619906, 0.013008186183243306, 0.012991936109158504, 0.012975706334974793, 0.012959496835333147, 0.012943307584906229, 0.01292713855839833, 0.012910989730545379, 0.012894861076114828, 0.012878752569905649, 0.01286266418674833, 0.01284659590150477, 0.01283054768906828, 0.012814519524363523, 0.012798511382346521, 0.012782523238004547, 0.012766555066356136, 0.012750606842451011, 0.012734678541370103, 0.012718770138225437, 0.012702881608160129, 0.012687012926348377, 0.012671164067995365, 0.012655335008337255, 0.012639525722641137, 0.012623736186205032, 0.012607966374357783, 0.012592216262459054, 0.012576485825899325, 0.012560775040099784, 0.012545083880512332, 0.012529412322619527, 0.012513760341934589, 0.012498127914001293, 0.012482515014393967, 0.012466921618717477, 0.012451347702607144, 0.012435793241728726, 0.012420258211778373, 0.012404742588482629, 0.012389246347598325, 0.012373769464912593, 0.012358311916242795, 0.012342873677436542, 0.012327454724371576, 0.012312055032955781, 0.012296674579127165, 0.012281313338853761, 0.01226597128813364, 0.012250648402994838, 0.012235344659495377, 0.01222006003372315, 0.012204794501795924, 0.012189548039861331, 0.012174320624096768, 0.012159112230709406, 0.012143922835936119, 0.012128752416043508, 0.012113600947327784, 0.012098468406114771, 0.012083354768759899, 0.012068260011648105, 0.012053184111193835, 0.012038127043840987, 0.012023088786062919, 0.01200806931436235, 0.011993068605271356, 0.011978086635351324, 0.011963123381192951, 0.011948178819416148, 0.011933252926670027, 0.01191834567963291, 0.011903457055012215, 0.011888587029544468, 0.011873735579995251, 0.011858902683159199, 0.0118440883158599, 0.011829292454949902, 0.011814515077310697, 0.011799756159852624, 0.01178501567951488, 0.011770293613265457, 0.011755589938101151, 0.01174090463104746, 0.01172623766915859, 0.011711589029517435, 0.011696958689235488, 0.011682346625452847, 0.011667752815338153, 0.011653177236088604, 0.011638619864929851, 0.011624080679116003, 0.011609559655929576, 0.011595056772681496, 0.011580572006710999, 0.011566105335385633, 0.011551656736101245, 0.011537226186281894, 0.011522813663379847, 0.011508419144875532, 0.011494042608277537, 0.011479684031122515, 0.011465343390975182, 0.01145102066542831, 0.011436715832102637, 0.01142242886864686, 0.011408159752737594, 0.011393908462079366, 0.011379674974404527, 0.011365459267473248, 0.011351261319073507, 0.011337081107021002, 0.011322918609159157, 0.01130877380335906, 0.011294646667519472, 0.01128053717956674, 0.011266445317454792, 0.011252371059165081, 0.011238314382706604, 0.011224275266115797, 0.01121025368745653, 0.011196249624820112, 0.011182263056325187, 0.011168293960117742, 0.011154342314371056, 0.011140408097285708, 0.011126491287089474, 0.011112591862037328, 0.011098709800411445, 0.011084845080521094, 0.011070997680702653, 0.011057167579319549, 0.011043354754762274, 0.011029559185448278, 0.01101578084982198, 0.01100201972635475, 0.010988275793544824, 0.010974549029917312, 0.010960839414024134, 0.010947146924444042, 0.010933471539782505, 0.010919813238671744, 0.010906171999770653, 0.010892547801764815, 0.010878940623366416, 0.01086535044331423, 0.010851777240373622, 0.010838220993336454, 0.010824681681021093, 0.010811159282272354, 0.010797653775961511, 0.0107841651409862, 0.010770693356270424, 0.010757238400764538, 0.010743800253445167, 0.010730378893315207, 0.010716974299403773, 0.010703586450766212, 0.010690215326483997, 0.010676860905664741, 0.010663523167442181, 0.010650202090976094, 0.0106368976554523, 0.010623609840082607, 0.010610338624104827, 0.010597083986782675, 0.01058384590740578, 0.01057062436528964, 0.010557419339775609, 0.010544230810230832, 0.010531058756048218, 0.010517903156646458, 0.010504763991469917, 0.010491641239988648, 0.010478534881698346, 0.010465444896120347, 0.010452371262801538, 0.01043931396131436, 0.0104262729712568, 0.010413248272252299, 0.010400239843949768, 0.01038724766602353, 0.010374271718173326, 0.01036131198012423, 0.01034836843162664, 0.010335441052456285, 0.010322529822414122, 0.010309634721326358, 0.01029675572904439, 0.010283892825444809, 0.01027104599042932, 0.010258215203924746, 0.010245400445882973, 0.01023260169628096, 0.010219818935120657, 0.010207052142428985, 0.010194301298257852, 0.010181566382684056, 0.010168847375809292, 0.0101561442577601, 0.010143457008687882, 0.0101307856087688, 0.010118130038203785, 0.010105490277218524, 0.010092866306063382, 0.010080258105013408, 0.010067665654368275, 0.0100550889344523, 0.01004252792561435, 0.010029982608227838, 0.010017452962690724, 0.010004938969425432, 0.009992440608878843, 0.009979957861522264, 0.009967490707851419, 0.00995503912838637, 0.009942603103671527, 0.009930182614275593, 0.00991777764079157, 0.009905388163836678, 0.009893014164052352, 0.009880655622104233, 0.009868312518682094, 0.009855984834499834, 0.009843672550295439, 0.009831375646830981, 0.009819094104892543, 0.009806827905290203, 0.009794577028858043, 0.009782341456454064, 0.009770121168960179, 0.009757916147282181, 0.009745726372349744, 0.009733551825116335, 0.009721392486559214, 0.009709248337679431, 0.009697119359501748, 0.009685005533074637, 0.009672906839470231, 0.009660823259784342, 0.009648754775136369, 0.009636701366669302, 0.009624663015549683, 0.009612639702967605, 0.009600631410136635, 0.009588638118293805, 0.009576659808699614, 0.009564696462637945, 0.009552748061416068, 0.0095408145863646, 0.009528896018837505, 0.009516992340212006, 0.009505103531888603, 0.009493229575291046, 0.009481370451866271, 0.009469526143084397, 0.009457696630438682, 0.00944588189544553, 0.00943408191964441, 0.009422296684597849, 0.009410526171891434, 0.009398770363133732, 0.009387029239956293, 0.009375302784013597, 0.009363590976983081, 0.009351893800565033, 0.009340211236482616, 0.009328543266481814, 0.00931688987233144, 0.00930525103582306, 0.009293626738770981, 0.009282016963012254, 0.009270421690406599, 0.009258840902836398, 0.009247274582206666, 0.009235722710445041, 0.009224185269501715, 0.009212662241349428, 0.009201153607983466, 0.009189659351421577, 0.009178179453703987, 0.00916671389689335, 0.009155262663074743, 0.00914382573435561, 0.00913240309286574, 0.009120994720757272, 0.009109600600204612, 0.00909822071340445, 0.009086855042575705, 0.00907550356995953, 0.00906416627781924, 0.009052843148440317, 0.00904153416413036, 0.009030239307219102, 0.009018958560058316, 0.009007691905021827, 0.008996439324505503, 0.008985200800927176, 0.008973976316726655, 0.008962765854365675, 0.0089515693963279, 0.00894038692511886, 0.008929218423265934, 0.008918063873318354, 0.008906923257847124, 0.008895796559445035, 0.00888468376072661, 0.008873584844328118, 0.008862499792907493, 0.008851428589144332, 0.008840371215739896, 0.00882932765541703, 0.00881829789092017, 0.008807281905015302, 0.008796279680489962, 0.008785291200153164, 0.00877431644683541, 0.008763355403388635, 0.008752408052686228, 0.008741474377622944, 0.008730554361114905, 0.008719647986099604, 0.008708755235535817, 0.008697876092403623, 0.008687010539704351, 0.008676158560460591, 0.008665320137716117, 0.008654495254535884, 0.008643683894006026, 0.008632886039233787, 0.008622101673347515, 0.00861133077949663, 0.008600573340851627, 0.008589829340603997, 0.008579098761966233, 0.00856838158817182, 0.008557677802475164, 0.008546987388151602, 0.008536310328497351, 0.00852564660682952, 0.008514996206486035, 0.008504359110825645, 0.00849373530322788, 0.008483124767093056, 0.008472527485842199, 0.008461943442917052, 0.008451372621780058, 0.008440815005914305, 0.008430270578823514, 0.00841973932403201, 0.008409221225084723, 0.008398716265547113, 0.008388224429005173, 0.008377745699065424, 0.00836728005935484, 0.00835682749352086, 0.00834638798523134, 0.008335961518174562, 0.008325548076059163, 0.008315147642614132, 0.008304760201588804, 0.008294385736752797, 0.008284024231896009, 0.008273675670828576, 0.008263340037380888, 0.008253017315403509, 0.008242707488767185, 0.008232410541362804, 0.008222126457101398, 0.008211855219914079, 0.008201596813752028, 0.008191351222586503, 0.008181118430408753, 0.008170898421230047, 0.008160691179081607, 0.008150496688014632, 0.00814031493210022, 0.008130145895429375, 0.008119989562112982, 0.008109845916281768, 0.008099714942086285, 0.008089596623696875, 0.00807949094530368, 0.00806939789111657, 0.008059317445365139, 0.008049249592298705, 0.008039194316186236, 0.008029151601316365, 0.008019121431997341, 0.00800910379255704, 0.007999098667342885, 0.007989106040721875, 0.00797912589708052, 0.007969158220824855, 0.007959202996380383, 0.007949260208192055, 0.007939329840724279, 0.007929411878460845, 0.007919506305904937, 0.00790961310757909, 0.007899732268025195, 0.007889863771804433, 0.00788000760349727, 0.007870163747703452, 0.007860332189041952, 0.007850512912150954, 0.007840705901687834, 0.007830911142329148, 0.007821128618770577, 0.007811358315726919, 0.007801600217932089, 0.0077918543101390516, 0.007782120577119824, 0.007772399003665442, 0.007762689574585958, 0.007752992274710381, 0.00774330708888668, 0.007733634001981743, 0.007723972998881385, 0.007714324064490279, 0.00770468718373196, 0.007695062341548812, 0.007685449522902012, 0.007675848712771529, 0.00766625989615609, 0.007656683058073181, 0.007647118183558985, 0.007637565257668377, 0.007628024265474923, 0.007618495192070814, 0.0076089780225668735, 0.007599472742092514, 0.007589979335795749, 0.007580497788843121, 0.007571028086419708, 0.007561570213729109, 0.007552124155993391, 0.00754268989845309, 0.007533267426367168, 0.007523856725013025, 0.007514457779686432, 0.007505070575701537, 0.007495695098390825, 0.007486331333105125, 0.007476979265213546, 0.007467638880103474, 0.007458310163180569, 0.007448993099868703, 0.007439687675609964, 0.007430393875864617, 0.007421111686111115, 0.007411841091846026, 0.00740258207858404, 0.00739333463185796, 0.007384098737218642, 0.0073748743802350015, 0.0073656615464939715, 0.007356460221600511, 0.007347270391177543, 0.007338092040865948, 0.007328925156324568, 0.007319769723230136, 0.007310625727277286, 0.00730149315417852, 0.007292371989664201, 0.007283262219482503, 0.007274163829399409, 0.007265076805198676, 0.007256001132681841, 0.007246936797668157, 0.007237883785994595, 0.007228842083515834, 0.007219811676104206, 0.0072107925496497, 0.007201784690059921, 0.0071927880832601005, 0.0071838027151930346, 0.007174828571819076, 0.007165865639116138, 0.00715691390307963, 0.007147973349722465, 0.0071390439650750185, 0.007130125735185139, 0.007121218646118085, 0.007112322683956522, 0.007103437834800522, 0.007094564084767499, 0.007085701419992216, 0.0070768498266267545, 0.00706800929084051, 0.007059179798820138, 0.007050361336769555, 0.0070415538909099065, 0.007032757447479572, 0.007023971992734098, 0.007015197512946206, 0.007006433994405782, 0.00699768142341982, 0.006988939786312427, 0.006980209069424788, 0.006971489259115169, 0.006962780341758858, 0.006954082303748165, 0.006945395131492416, 0.006936718811417897, 0.006928053329967858, 0.006919398673602474, 0.006910754828798858, 0.006902121782050995, 0.00689349951986974, 0.00688488802878282, 0.006876287295334774, 0.006867697306086954, 0.006859118047617494, 0.006850549506521314, 0.006841991669410061, 0.006833444522912112, 0.006824908053672546, 0.006816382248353138, 0.0068078670936323115, 0.006799362576205129, 0.006790868682783293, 0.006782385400095087, 0.006773912714885383, 0.0067654506139156, 0.006756999083963718, 0.006748558111824213, 0.006740127684308059, 0.0067317077882427245, 0.006723298410472113, 0.006714899537856572, 0.0067065111572728545, 0.006698133255614127, 0.006689765819789912, 0.0066814088367260814, 0.0066730622933648615, 0.006664726176664771, 0.0066564004736006255, 0.006648085171163507, 0.0066397802563607665, 0.006631485716215966, 0.006623201537768887, 0.006614927708075492, 0.0066066642142079334, 0.006598411043254496, 0.0065901681823195895, 0.006581935618523757, 0.00657371333900361, 0.006565501330911835, 0.006557299581417162, 0.006549108077704368, 0.006540926806974222, 0.006532755756443479, 0.006524594913344887, 0.006516444264927118, 0.006508303798454783, 0.006500173501208397, 0.006492053360484381, 0.006483943363595007, 0.0064758434978683995, 0.0064677537506485265, 0.006459674109295151, 0.0064516045611838335, 0.006443545093705897, 0.006435495694268435, 0.006427456350294251, 0.0064194270492218715, 0.006411407778505507, 0.0064033985256150535, 0.0063953992780360494, 0.006387410023269663, 0.006379430748832693, 0.006371461442257516, 0.0063635020910920905, 0.006355552682899922, 0.0063476132052600704, 0.006339683645767095, 0.006331763992031053, 0.006323854231677494, 0.006315954352347411, 0.006308064341697242, 0.006300184187398838, 0.006292313877139468, 0.006284453398621764, 0.006276602739563723, 0.006268761887698699, 0.006260930830775354, 0.006253109556557662, 0.006245298052824874, 0.006237496307371524, 0.006229704308007379, 0.00622192204255744, 0.006214149498861909, 0.006206386664776195, 0.006198633528170865, 0.006190890076931636, 0.006183156298959374, 0.0061754321821700445, 0.006167717714494715, 0.006160012883879521, 0.006152317678285675, 0.006144632085689412, 0.006136956094081987, 0.006129289691469672, 0.006121632865873706, 0.006113985605330298, 0.006106347897890598, 0.006098719731620694, 0.006091101094601574, 0.006083491974929109, 0.006075892360714057, 0.006068302240082017, 0.006060721601173423, 0.006053150432143521, 0.006045588721162367, 0.006038036456414782, 0.006030493626100352, 0.0060229602184333954, 0.006015436221642975, 0.006007921623972837, 0.006000416413681417, 0.005992920579041833, 0.005985434108341838, 0.005977956989883817, 0.005970489211984769, 0.005963030762976299, 0.005955581631204574, 0.005948141805030318, 0.005940711272828814, 0.005933290022989848, 0.005925878043917715, 0.005918475324031192, 0.005911081851763538, 0.005903697615562446, 0.00589632260389004, 0.005888956805222875, 0.005881600208051883, 0.0058742528008823795, 0.0058669145722340344, 0.005859585510640875, 0.005852265604651235, 0.005844954842827762, 0.005837653213747382, 0.005830360706001309, 0.005823077308194995, 0.005815803008948122, 0.005808537796894608, 0.005801281660682553, 0.005794034588974242, 0.0057867965704461195, 0.00577956759378879, 0.005772347647706972, 0.005765136720919492, 0.005757934802159287, 0.005750741880173353, 0.005743557943722746, 0.005736382981582561, 0.005729216982541927, 0.005722059935403965, 0.005714911828985782, 0.005707772652118473, 0.005700642393647064, 0.005693521042430527, 0.005686408587341744, 0.005679305017267513, 0.0056722103211085, 0.005665124487779239, 0.00565804750620811, 0.00565097936533734, 0.00564392005412295, 0.0056368695615347615, 0.005629827876556388, 0.00562279498818519, 0.005615770885432279, 0.005608755557322488, 0.005601748992894375, 0.0055947511812001775, 0.005587762111305808, 0.005580781772290854, 0.005573810153248529, 0.005566847243285677, 0.005559893031522745, 0.005552947507093787, 0.0055460106591464125, 0.0055390824768417925, 0.005532162949354651, 0.005525252065873217, 0.005518349815599237, 0.0055114561877479375, 0.005504571171548034, 0.005497694756241682, 0.005490826931084482, 0.005483967685345451, 0.0054771170083070244, 0.005470274889265015, 0.005463441317528606, 0.0054566162824203485, 0.005449799773276119, 0.0054429917794451225, 0.005436192290289862, 0.005429401295186142, 0.00542261878352303, 0.005415844744702843, 0.005409079168141154, 0.0054023220432667446, 0.005395573359521605, 0.005388833106360911, 0.0053821012732530255, 0.005375377849679453, 0.0053686628251348395, 0.005361956189126966, 0.005355257931176708, 0.005348568040818036, 0.005341886507597992, 0.005335213321076685, 0.00532854847082726, 0.005321891946435882, 0.005315243737501731, 0.005308603833636984, 0.005301972224466788, 0.005295348899629247, 0.005288733848775424, 0.005282127061569297, 0.005275528527687759, 0.005268938236820594, 0.005262356178670482, 0.005255782342952951, 0.005249216719396378, 0.0052426592977419815, 0.005236110067743786, 0.005229569019168619, 0.005223036141796084, 0.00521651142541857, 0.005209994859841202, 0.00520348643488184, 0.005196986140371077, 0.005190493966152198, 0.00518400990208118, 0.005177533938026667, 0.005171066063869972, 0.005164606269505037, 0.005158154544838431, 0.005151710879789329, 0.005145275264289513, 0.005138847688283327, 0.005132428141727678, 0.005126016614592032, 0.005119613096858374, 0.005113217578521204, 0.0051068300495875196, 0.005100450500076815, 0.0050940789200210395, 0.005087715299464591, 0.005081359628464322, 0.00507501189708949, 0.005068672095421764, 0.005062340213555199, 0.005056016241596236, 0.005049700169663663, 0.005043391987888613, 0.00503709168641456, 0.005030799255397276, 0.005024514685004837, 0.005018237965417597, 0.005011969086828187, 0.005005708039441481, 0.004999454813474589, 0.004993209399156842, 0.004986971786729788, 0.00498074196644715, 0.004974519928574829, 0.004968305663390899, 0.004962099161185564, 0.004955900412261164, 0.004949709406932148, 0.004943526135525078, 0.004937350588378586, 0.004931182755843376, 0.004925022628282216, 0.0049188701960698996, 0.004912725449593253, 0.004906588379251103, 0.004900458975454284, 0.004894337228625599, 0.004888223129199811, 0.004882116667623649, 0.00487601783435576, 0.004869926619866716, 0.004863843014638989, 0.004857767009166954, 0.004851698593956847, 0.004845637759526767, 0.0048395844964066554, 0.0048335387951382956, 0.004827500646275275, 0.004821470040382979, 0.004815446968038594, 0.004809431419831064, 0.004803423386361094, 0.0047974228582411274, 0.004791429826095345, 0.004785444280559627, 0.0047794662122815565, 0.004773495611920408, 0.004767532470147112, 0.004761576777644258, 0.004755628525106074, 0.00474968770323842, 0.004743754302758757, 0.004737828314396141, 0.004731909728891225, 0.004725998536996211, 0.004720094729474861, 0.004714198297102471, 0.0047083092306658735, 0.004702427520963396, 0.004696553158804865, 0.004690686135011586, 0.004684826440416341, 0.004678974065863351, 0.004673129002208276, 0.004667291240318212, 0.00466146077107165, 0.004655637585358481, 0.004649821674079972, 0.004644013028148769, 0.004638211638488856, 0.004632417496035559, 0.004626630591735535, 0.004620850916546742, 0.004615078461438438, 0.004609313217391153, 0.004603555175396703, 0.004597804326458141, 0.004592060661589762, 0.0045863241718170945, 0.004580594848176869, 0.004574872681717018, 0.004569157663496647, 0.004563449784586051, 0.0045577490360666625, 0.00455205540903106, 0.004546368894582948, 0.004540689483837153, 0.004535017167919592, 0.004529351937967265, 0.004523693785128258, 0.004518042700561701, 0.004512398675437775, 0.0045067617009376835, 0.004501131768253663, 0.0044955088685889365, 0.00448989299315772, 0.004484284133185214, 0.00447868227990757, 0.00447308742457189, 0.00446749955843621, 0.004461918672769494, 0.004456344758851604, 0.0044507778079732946, 0.00444521781143621, 0.004439664760552854, 0.00443411864664658, 0.004428579461051582, 0.004423047195112888, 0.004417521840186329, 0.004412003387638536, 0.004406491828846923, 0.004400987155199684, 0.004395489358095763, 0.004389998428944847, 0.004384514359167365, 0.004379037140194455, 0.004373566763467959, 0.004368103220440409, 0.004362646502575026, 0.004357196601345684, 0.004351753508236906, 0.004346317214743867, 0.004340887712372354, 0.004335464992638767, 0.004330049047070101, 0.00432463986720395, 0.004319237444588463, 0.0043138417707823526, 0.004308452837354882, 0.0043030706358858405, 0.004297695157965535, 0.004292326395194779, 0.004286964339184885, 0.0042816089815576365, 0.004276260313945285, 0.004270918327990535, 0.004265583015346538, 0.0042602543676768636, 0.004254932376655495, 0.004249617033966827, 0.004244308331305634, 0.004239006260377065, 0.004233710812896631, 0.004228421980590201, 0.004223139755193968, 0.004217864128454453, 0.004212595092128494, 0.004207332637983217, 0.004202076757796037, 0.004196827443354635, 0.004191584686456966, 0.004186348478911216, 0.004181118812535806, 0.004175895679159389, 0.004170679070620815, 0.00416546897876913, 0.004160265395463564, 0.004155068312573521, 0.004149877721978557, 0.004144693615568372, 0.004139515985242795, 0.0041343448229117855, 0.004129180120495397, 0.004124021869923777, 0.004118870063137167, 0.004113724692085863, 0.00410858574873022, 0.004103453225040638, 0.004098327112997552, 0.004093207404591409, 0.004088094091822659, 0.004082987166701758, 0.0040778866212491304, 0.004072792447495173, 0.0040677046374802345, 0.004062623183254618, 0.004057548076878545, 0.004052479310422161, 0.004047416875965522, 0.00404236076559857, 0.004037310971421132, 0.004032267485542898, 0.004027230300083431, 0.004022199407172121, 0.0040171747989481985, 0.004012156467560708, 0.004007144405168514, 0.004002138603940262, 0.003997139056054385, 0.003992145753699096, 0.003987158689072354, 0.00398217785438187, 0.003977203241845086, 0.003972234843689175, 0.00396727265215101, 0.003962316659477164, 0.003957366857923903, 0.003952423239757159, 0.003947485797252525, 0.003942554522695246, 0.003937629408380209, 0.003932710446611919, 0.003927797629704495, 0.0039228909499816654, 0.003917990399776738, 0.003913095971432605, 0.003908207657301713, 0.003903325449746082, 0.0038984493411372556, 0.003893579323856313, 0.003888715390293849, 0.0038838575328499726, 0.003879005743934277, 0.0038741600159658387, 0.0038693203413732126, 0.0038644867125944026, 0.0038596591220768635, 0.003854837562277481, 0.0038500220256625726, 0.0038452125047078586, 0.0038404089918984584, 0.0038356114797288886, 0.003830819960703033, 0.0038260344273341406, 0.003821254872144812, 0.003816481287666999, 0.0038117136664419706, 0.0038069520010203138, 0.0038021962839619333, 0.0037974465078360158, 0.003792702665221036, 0.0037879647487047354, 0.0037832327508841245, 0.003778506664365453, 0.00377378648176421, 0.0037690721957051054, 0.0037643637988220733, 0.003759661283758239, 0.003754964643165919, 0.003750273869706617, 0.003745588956050997, 0.0037409098948788786, 0.003736236678879226, 0.0037315693007501432, 0.0037269077531988494, 0.0037222520289416712, 0.0037176021207040453, 0.0037129580212204864, 0.003708319723234588, 0.0037036872194990043, 0.0036990605027754546, 0.00369443956583469, 0.0036898244014564926, 0.003685215002429673, 0.003680611361552041, 0.0036760134716304076, 0.003671421325480565, 0.00366683491592729, 0.0036622542358043146, 0.003657679277954324, 0.003653110035228944, 0.0036485465004887367, 0.003643988666603176, 0.003639436526450642, 0.003634890072918421, 0.0036303492989026758, 0.0036258141973084454, 0.0036212847610496302, 0.0036167609830489913, 0.0036122428562381207, 0.0036077303735574423, 0.003603223527956207, 0.0035987223123924643, 0.0035942267198330637, 0.0035897367432536384, 0.003585252375638605, 0.0035807736099811352, 0.0035763004392831534, 0.0035718328565553367, 0.0035673708548170815, 0.0035629144270965104, 0.0035584635664304507, 0.003554018265864438, 0.003549578518452686, 0.003545144317258089, 0.0035407156553522025, 0.003536292525815249, 0.0035318749217360832, 0.003527462836212196, 0.0035230562623497085, 0.0035186551932633453, 0.003514259622076435, 0.0035098695419208932, 0.003505484945937226, 0.0035011058272744968, 0.00349673217909033, 0.0034923639945509044, 0.003488001266830929, 0.00348364398911364, 0.0034792921545907874, 0.003474945756462635, 0.003470604787937931, 0.0034662692422339097, 0.003461939112576285, 0.0034576143921992253, 0.003453295074345355, 0.0034489811522657354, 0.0034446726192198687, 0.003440369468475668, 0.0034360716933094595, 0.0034317792870059657, 0.003427492242858307, 0.0034232105541679727, 0.00341893421424482, 0.003414663216407074, 0.0034103975539812965, 0.0034061372203023884, 0.003401882208713575, 0.0033976325125664054, 0.003393388125220726, 0.0033891490400446774, 0.0033849152504146947, 0.0033806867497154767, 0.0033764635313399912, 0.0033722455886894555, 0.003368032915173339, 0.0033638255042093357, 0.0033596233492233615, 0.003355426443649556, 0.0033512347809302487, 0.0033470483545159665, 0.0033428671578654146, 0.0033386911844454775, 0.003334520427731194, 0.0033303548812057544, 0.00332619453836049, 0.0033220393926948694, 0.0033178894377164743, 0.0033137446669409955, 0.0033096050738922337, 0.003305470652102072, 0.0033013413951104745, 0.0032972172964654736, 0.0032930983497231705, 0.003288984548447707, 0.003284875886211265, 0.0032807723565940645, 0.003276673953184337, 0.0032725806695783257, 0.0032684924993802724, 0.003264409436202415, 0.0032603314736649644, 0.0032562586053961, 0.0032521908250319705, 0.003248128126216665, 0.0032440705026022154, 0.0032400179478485817, 0.0032359704556236524, 0.003231928019603216, 0.0032278906334709664, 0.003223858290918484, 0.003219830985645238, 0.0032158087113585607, 0.003211791461773645, 0.0032077792306135426, 0.003203772011609139, 0.003199769798499154, 0.0031957725850301254, 0.0031917803649564127, 0.0031877931320401683, 0.0031838108800513365, 0.003179833602767654, 0.0031758612939746206, 0.0031718939474655043, 0.0031679315570413216, 0.003163974116510843, 0.0031600216196905635, 0.0031560740604047034, 0.003152131432485206, 0.003148193729771712, 0.003144260946111559, 0.003140333075359771, 0.0031364101113790527, 0.0031324920480397703, 0.003128578879219949, 0.0031246705988052584, 0.003120767200689016, 0.003116868678772158, 0.0031129750269632407, 0.003109086239178437, 0.0031052023093415143, 0.0031013232313838296, 0.003097448999244321, 0.0030935796068695056, 0.003089715048213454, 0.003085855317237789, 0.0030820004079116876, 0.0030781503142118484, 0.0030743050301225002, 0.0030704645496353834, 0.0030666288667497515, 0.003062797975472346, 0.003058971869817397, 0.003055150543806618, 0.0030513339914691844, 0.0030475222068417317, 0.0030437151839683434, 0.0030399129169005504, 0.0030361153996973076, 0.0030323226264249935, 0.003028534591157396, 0.003024751287975715, 0.0030209727109685356, 0.0030171988542318277, 0.003013429711868945, 0.003009665277990599, 0.003005905546714861, 0.0030021505121671475, 0.0029984001684802216, 0.0029946545097941676, 0.002990913530256391, 0.002987177224021615, 0.0029834455852518586, 0.002979718608116435, 0.002975996286791939, 0.002972278615462248, 0.0029685655883184975, 0.002964857199559079, 0.0029611534433896395, 0.0029574543140230562, 0.0029537598056794396, 0.002950069912586117, 0.002946384628977634, 0.002942703949095732, 0.002939027867189349, 0.0029353563775146026, 0.0029316894743347944, 0.0029280271519203853, 0.0029243694045489933, 0.0029207162265053924, 0.002917067612081489, 0.0029134235555763215, 0.002909784051296049, 0.0029061490935539504, 0.0029025186766704005, 0.00289889279497287, 0.002895271442795923, 0.0028916546144811934, 0.0028880423043773865, 0.0028844345068402637, 0.0028808312162326467, 0.0028772324269243903, 0.002873638133292383, 0.002870048329720545, 0.0028664630105998054, 0.0028628821703281016, 0.0028593058033103687, 0.002855733903958536, 0.002852166466691509, 0.0028486034859351657, 0.0028450449561223446, 0.0028414908716928484, 0.0028379412270934166, 0.002834396016777726, 0.0028308552352063897, 0.0028273188768469337, 0.0028237869361737973, 0.0028202594076683195, 0.0028167362858187417, 0.002813217565120183, 0.0028097032400746383, 0.00280619330519098, 0.0028026877549849312, 0.0027991865839790686, 0.0027956897867028097, 0.002792197357692413, 0.0027887092914909554, 0.0027852255826483294, 0.002781746225721245, 0.002778271215273203, 0.0027748005458744997, 0.0027713342121022107, 0.002767872208540193, 0.002764414529779064, 0.0027609611704161995, 0.0027575121250557224, 0.002754067388308503, 0.0027506269547921377, 0.002747190819130946, 0.002743758975955969, 0.0027403314199049497, 0.002736908145622331, 0.0027334891477592436, 0.0027300744209735072, 0.0027266639599296083, 0.0027232577592986988, 0.0027198558137585933, 0.00271645811799375, 0.002713064666695268, 0.002709675454560876, 0.0027062904762949354, 0.0027029097266084135, 0.0026995332002188862, 0.0026961608918505357, 0.0026927927962341267, 0.002689428908107008, 0.0026860692222131035, 0.002682713733302906, 0.0026793624361334625, 0.0026760153254683696, 0.0026726723960777644, 0.0026693336427383234, 0.0026659990602332416, 0.0026626686433522313, 0.002659342386891519, 0.0026560202856538272, 0.002652702334448371, 0.0026493885280908496, 0.002646078861403444, 0.0026427733292147967, 0.002639471926360011, 0.0026361746476806494, 0.00263288148802471, 0.0026295924422466313, 0.0026263075052072754, 0.0026230266717739326, 0.0026197499368202973, 0.0026164772952264686, 0.0026132087418789477, 0.002609944271670617, 0.002606683879500741, 0.0026034275602749546, 0.002600175308905262, 0.0025969271203100186, 0.0025936829894139283, 0.0025904429111480334, 0.0025872068804497165, 0.0025839748922626762, 0.0025807469415369275, 0.0025775230232288017, 0.002574303132300924, 0.0025710872637222134, 0.0025678754124678726, 0.0025646675735193883, 0.0025614637418645086, 0.002558263912497244, 0.002555068080417865, 0.002551876240632881, 0.0025486883881550414, 0.0025455045180033243, 0.002542324625202936, 0.0025391487047852915, 0.002535976751788012, 0.0025328087612549247, 0.002529644728236042, 0.0025264846477875613, 0.0025233285149718543, 0.0025201763248574663, 0.002517028072519099, 0.002513883753037606, 0.002510743361499986, 0.002507606892999381, 0.002504474342635056, 0.0025013457055123984, 0.002498220976742916, 0.002495100151444218, 0.002491983224740013, 0.002488870191760102, 0.0024857610476403734, 0.002482655787522787, 0.0024795544065553707, 0.002476456899892221, 0.002473363262693481, 0.0024702734901253416, 0.0024671875773600305, 0.002464105519575813, 0.0024610273119569704, 0.002457952949693801, 0.002454882427982617, 0.002451815742025726, 0.0024487528870314303, 0.0024456938582140164, 0.0024426386507937553, 0.002439587259996882, 0.0024365396810555992, 0.0024334959092080608, 0.0024304559396983775, 0.0024274197677765937, 0.0024243873886986888, 0.0024213587977265734, 0.002418333990128072, 0.0024153129611769217, 0.0024122957061527618, 0.0024092822203411355, 0.0024062724990334683, 0.0024032665375270683, 0.0024002643311251235, 0.002397265875136684, 0.0023942711648766617, 0.002391280195665819, 0.0023882929628307706, 0.0023853094617039623, 0.0023823296876236705, 0.002379353635934002, 0.0023763813019848736, 0.0023734126811320124, 0.002370447768736946, 0.0023674865601670024, 0.00236452905079529, 0.0023615752360007006, 0.0023586251111678952, 0.0023556786716873077, 0.0023527359129551237, 0.00234979683037328, 0.0023468614193494636, 0.002343929675297092, 0.002341001593635314, 0.0023380771697890006, 0.0023351563991887425, 0.002332239277270833, 0.002329325799477266, 0.002326415961255736, 0.0023235097580596186, 0.002320607185347971, 0.00231770823858552, 0.002314812913242665, 0.002311921204795458, 0.002309033108725601, 0.002306148620520448, 0.0023032677356729834, 0.0023003904496818246, 0.0022975167580512085, 0.0022946466562909964, 0.002291780139916651, 0.00228891720444924, 0.002286057845415425, 0.00228320205834746, 0.002280349838783175, 0.0022775011822659752, 0.002274656084344838, 0.0022718145405742946, 0.002268976546514433, 0.0022661420977308842, 0.002263311189794826, 0.0022604838182829624, 0.0022576599787775225, 0.0022548396668662604, 0.002252022878142436, 0.002249209608204817, 0.002246399852657666, 0.0022435936071107435, 0.0022407908671792883, 0.0022379916284840165, 0.0022351958866511216, 0.0022324036373122537, 0.0022296148761045236, 0.0022268295986704882, 0.002224047800658156, 0.002221269477720964, 0.002218494625517783, 0.0022157232397129033, 0.0022129553159760383, 0.0022101908499823045, 0.002207429837412221, 0.00220467227395171, 0.0022019181552920745, 0.002199167477130005, 0.002196420235167563, 0.0021936764251121875, 0.002190936042676672, 0.0021881990835791675, 0.0021854655435431776, 0.0021827354182975436, 0.0021800087035764447, 0.0021772853951193866, 0.002174565488671203, 0.0021718489799820375, 0.0021691358648073433, 0.0021664261389078804, 0.0021637197980497007, 0.002161016838004145, 0.0021583172545478362, 0.0021556210434626783, 0.0021529282005358394, 0.0021502387215597517, 0.0021475526023321014, 0.002144869838655831, 0.00214219042633912, 0.002139514361195384, 0.0021368416390432736, 0.002134172255706659, 0.002131506207014628, 0.002128843488801477, 0.0021261840969067124, 0.0021235280271750313, 0.0021208752754563226, 0.002118225837605665, 0.0021155797094833096, 0.00211293688695468, 0.0021102973658903646, 0.002107661142166114, 0.002105028211662827, 0.0021023985702665468, 0.0020997722138684618, 0.0020971491383648885, 0.0020945293396572697, 0.0020919128136521687, 0.0020892995562612664, 0.002086689563401345, 0.0020840828309942913, 0.002081479354967083, 0.0020788791312517916, 0.002076282155785566, 0.002073688424510629, 0.002071097933374279, 0.002068510678328871, 0.0020659266553318184, 0.002063345860345583, 0.002060768289337676, 0.00205819393828064, 0.0020556228031520496, 0.002053054879934509, 0.0020504901646156357, 0.0020479286531880614, 0.0020453703416494226, 0.0020428152260023604, 0.0020402633022545045, 0.002037714566418471, 0.0020351690145118642, 0.002032626642557256, 0.002030087446582191, 0.0020275514226191713, 0.002025018566705664, 0.0020224888748840795, 0.0020199623432017727, 0.002017438967711036, 0.0020149187444690993, 0.00201240166953811, 0.0020098877389851367, 0.0020073769488821664, 0.002004869295306087, 0.0020023647743386895, 0.0019998633820666567, 0.0019973651145815674, 0.0019948699679798758, 0.001992377938362913, 0.0019898890218368855, 0.0019874032145128597, 0.001984920512506761, 0.0019824409119393645, 0.0019799644089362983, 0.0019774909996280233, 0.001975020680149836, 0.0019725534466418647, 0.001970089295249055, 0.00196762822212117, 0.00196517022341278, 0.001962715295283266, 0.0019602634338968, 0.001957814635422348, 0.0019553688960336603, 0.001952926211909272, 0.001950486579232487, 0.001948049994191377, 0.001945616452978781, 0.0019431859517922885, 0.0019407584868342408, 0.001938334054311722, 0.0019359126504365587, 0.0019334942714253054, 0.001931078913499243, 0.0019286665728843772, 0.001926257245811424, 0.001923850928515809, 0.0019214476172376596, 0.0019190473082218043, 0.0019166499977177585, 0.0019142556819797224, 0.0019118643572665804, 0.0019094760198418853, 0.0019070906659738598, 0.001904708291935386, 0.0019023288940040073, 0.0018999524684619124, 0.0018975790115959362, 0.0018952085196975498, 0.0018928409890628622, 0.0018904764159926053, 0.0018881147967921312, 0.0018857561277714127, 0.0018834004052450276, 0.0018810476255321585, 0.0018786977849565853, 0.001876350879846685, 0.0018740069065354159, 0.001871665861360318, 0.0018693277406635104, 0.0018669925407916782, 0.0018646602580960705, 0.001862330888932494, 0.0018600044296613115, 0.001857680876647429, 0.001855360226260292, 0.0018530424748738879, 0.0018507276188667278, 0.0018484156546218482, 0.0018461065785268036, 0.001843800386973665, 0.001841497076359006, 0.0018391966430839036, 0.001836899083553928, 0.0018346043941791462, 0.0018323125713741032, 0.001830023611557824, 0.0018277375111538118, 0.0018254542665900326, 0.001823173874298916, 0.0018208963307173474, 0.0018186216322866676, 0.001816349775452658, 0.0018140807566655406, 0.0018118145723799758, 0.001809551219055049, 0.0018072906931542701, 0.0018050329911455652, 0.0018027781095012775, 0.001800526044698153, 0.0017982767932173374, 0.001796030351544379, 0.0017937867161692102, 0.00179154588358615, 0.001789307850293896, 0.0017870726127955235, 0.0017848401675984722, 0.0017826105112145455, 0.0017803836401599038, 0.0017781595509550633, 0.0017759382401248832, 0.0017737197041985627, 0.0017715039397096424, 0.0017692909431959883, 0.0017670807111997927, 0.0017648732402675664, 0.0017626685269501385, 0.0017604665678026424, 0.0017582673593845152, 0.001756070898259496, 0.0017538771809956126, 0.0017516862041651814, 0.001749497964344799, 0.0017473124581153432, 0.0017451296820619583, 0.0017429496327740555, 0.0017407723068453098, 0.0017385977008736477, 0.0017364258114612467, 0.001734256635214528, 0.001732090168744156, 0.0017299264086650251, 0.0017277653515962593, 0.0017256069941612056, 0.0017234513329874327, 0.0017212983647067182, 0.001719148085955047, 0.0017170004933726114, 0.001714855583603796, 0.0017127133532971789, 0.001710573799105523, 0.0017084369176857779, 0.0017063027056990639, 0.0017041711598106734, 0.0017020422766900682, 0.0016999160530108664, 0.0016977924854508432, 0.0016956715706919225, 0.0016935533054201774, 0.0016914376863258163, 0.001689324710103183, 0.001687214373450754, 0.001685106673071127, 0.0016830016056710196, 0.0016808991679612615, 0.001678799356656797, 0.0016767021684766686, 0.0016746076001440196, 0.001672515648386085, 0.0016704263099341927, 0.0016683395815237493, 0.00166625545989424, 0.0016641739417892275, 0.001662095023956337, 0.00166001870314726, 0.0016579449761177426, 0.0016558738396275892, 0.0016538052904406472, 0.001651739325324806, 0.0016496759410519987, 0.0016476151343981845, 0.001645556902143353, 0.0016435012410715144, 0.0016414481479707006, 0.001639397619632952, 0.0016373496528543161, 0.0016353042444348473, 0.0016332613911785932, 0.001631221089893595, 0.00162918333739188, 0.0016271481304894627, 0.0016251154660063302, 0.001623085340766444, 0.0016210577515977313, 0.0016190326953320867, 0.0016170101688053578, 0.0016149901688573454, 0.0016129726923318015, 0.0016109577360764178, 0.0016089452969428244, 0.001606935371786583, 0.0016049279574671886, 0.0016029230508480543, 0.0016009206487965113, 0.0015989207481838094, 0.0015969233458851015, 0.0015949284387794466, 0.0015929360237498002, 0.0015909460976830166, 0.001588958657469834, 0.0015869737000048757, 0.0015849912221866476, 0.0015830112209175267, 0.0015810336931037607, 0.0015790586356554603, 0.0015770860454866007, 0.001575115919515008, 0.00157314825466236, 0.0015711830478541784, 0.00156922029601983, 0.0015672599960925135, 0.0015653021450092585, 0.0015633467397109246, 0.0015613937771421895, 0.001559443254251549, 0.001557495167991309, 0.0015555495153175873, 0.0015536062931902996, 0.0015516654985731596, 0.0015497271284336783, 0.0015477911797431505, 0.0015458576494766557, 0.0015439265346130515, 0.0015419978321349727, 0.0015400715390288208, 0.0015381476522847602, 0.0015362261688967207, 0.0015343070858623825, 0.001532390400183178, 0.0015304761088642844, 0.0015285642089146235, 0.00152665469734685, 0.0015247475711773516, 0.001522842827426242, 0.0015209404631173614, 0.001519040475278264, 0.0015171428609402167, 0.0015152476171381996, 0.0015133547409108925, 0.001511464229300676, 0.0015095760793536238, 0.001507690288119504, 0.0015058068526517662, 0.0015039257700075407, 0.001502047037247638, 0.0015001706514365365, 0.0014982966096423833, 0.001496424908936986, 0.0014945555463958145, 0.0014926885190979884, 0.0014908238241262757, 0.0014889614585670927, 0.0014871014195104919, 0.0014852437040501613, 0.0014833883092834192, 0.0014815352323112136, 0.0014796844702381097, 0.0014778360201722915, 0.0014759898792255544, 0.001474146044513305, 0.00147230451315455, 0.0014704652822718949, 0.0014686283489915438, 0.001466793710443287, 0.001464961363760501, 0.0014631313060801427, 0.001461303534542749, 0.0014594780462924251, 0.0014576548384768444, 0.0014558339082472466, 0.0014540152527584267, 0.0014521988691687348, 0.0014503847546400704, 0.0014485729063378812, 0.001446763321431153, 0.0014449559970924073, 0.0014431509304977026, 0.0014413481188266203, 0.0014395475592622667, 0.001437749248991266, 0.001435953185203761, 0.0014341593650933997, 0.0014323677858573381, 0.0014305784446962322, 0.0014287913388142382, 0.001427006465419002, 0.0014252238217216568, 0.0014234434049368245, 0.0014216652122826018, 0.0014198892409805625, 0.0014181154882557498, 0.0014163439513366774, 0.0014145746274553171, 0.0014128075138470986, 0.0014110426077509092, 0.0014092799064090813, 0.001407519407067394, 0.0014057611069750655, 0.0014040050033847537, 0.0014022510935525452, 0.0014004993747379546, 0.001398749844203923, 0.0013970024992168075, 0.0013952573370463815, 0.001393514354965827, 0.001391773550251737, 0.0013900349201841022, 0.0013882984620463132, 0.001386564173125152, 0.0013848320507107948, 0.0013831020920967987, 0.0013813742945801015, 0.0013796486554610219, 0.0013779251720432472, 0.001376203841633834, 0.001374484661543202, 0.0013727676290851347, 0.001371052741576767, 0.0013693399963385857, 0.0013676293906944286, 0.0013659209219714725, 0.001364214587500235, 0.0013625103846145667, 0.0013608083106516529, 0.001359108362952001, 0.0013574105388594417, 0.001355714835721127, 0.0013540212508875186, 0.0013523297817123901, 0.0013506404255528195, 0.00134895317976919, 0.001347268041725178, 0.0013455850087877555, 0.0013439040783271817, 0.001342225247717005, 0.0013405485143340506, 0.0013388738755584215, 0.0013372013287734968, 0.0013355308713659199, 0.0013338625007256015, 0.0013321962142457107, 0.0013305320093226767, 0.001328869883356178, 0.0013272098337491411, 0.0013255518579077408, 0.001323895953241388, 0.0013222421171627315, 0.001320590347087651, 0.0013189406404352576, 0.0013172929946278832, 0.0013156474070910795, 0.0013140038752536185, 0.0013123623965474798, 0.0013107229684078524, 0.001309085588273129, 0.0013074502535849047, 0.0013058169617879676, 0.001304185710330299, 0.0013025564966630669, 0.0013009293182406267, 0.0012993041725205112, 0.0012976810569634283, 0.0012960599690332623, 0.0012944409061970614, 0.0012928238659250398, 0.0012912088456905704, 0.0012895958429701864, 0.0012879848552435696, 0.0012863758799935496, 0.001284768914706105, 0.0012831639568703511, 0.0012815610039785409, 0.001279960053526059, 0.0012783611030114223, 0.001276764149936269, 0.0012751691918053585, 0.001273576226126571, 0.0012719852504108956, 0.0012703962621724329, 0.0012688092589283873, 0.0012672242381990678, 0.0012656411975078784, 0.0012640601343813177, 0.0012624810463489728, 0.001260903930943521, 0.0012593287857007175, 0.001257755608159397, 0.0012561843958614712, 0.0012546151463519195, 0.001253047857178789, 0.0012514825258931894, 0.0012499191500492922, 0.0012483577272043211, 0.0012467982549185517, 0.0012452407307553103, 0.0012436851522809641, 0.0012421315170649213, 0.0012405798226796255, 0.0012390300667005562, 0.0012374822467062182, 0.0012359363602781413, 0.0012343924050008798, 0.0012328503784620024, 0.001231310278252092, 0.0012297721019647408, 0.0012282358471965502, 0.0012267015115471208, 0.0012251690926190525, 0.0012236385880179399, 0.001222109995352371, 0.0012205833122339183, 0.0012190585362771384, 0.0012175356650995705, 0.001216014696321727, 0.0012144956275670937, 0.0012129784564621246, 0.0012114631806362417, 0.0012099497977218249, 0.001208438305354212, 0.0012069287011716983, 0.0012054209828155258, 0.001203915147929884, 0.0012024111941619047, 0.001200909119161662, 0.0011994089205821623, 0.001197910596079344, 0.0011964141433120769, 0.001194919559942152, 0.0011934268436342827, 0.0011919359920560982, 0.0011904470028781448, 0.0011889598737738758, 0.0011874746024196513, 0.0011859911864947337, 0.0011845096236812872, 0.0011830299116643687, 0.0011815520481319268, 0.0011800760307748015, 0.0011786018572867145, 0.0011771295253642693, 0.0011756590327069458, 0.0011741903770171012, 0.0011727235559999595, 0.0011712585673636117, 0.0011697954088190146, 0.0011683340780799818, 0.0011668745728631838, 0.0011654168908881422, 0.0011639610298772305, 0.001162506987555665, 0.001161054761651503, 0.0011596043498956433, 0.0011581557500218163, 0.0011567089597665843, 0.0011552639768693362, 0.001153820799072288, 0.0011523794241204731, 0.0011509398497617429, 0.001149502073746761, 0.0011480660938290043, 0.0011466319077647526, 0.0011451995133130893, 0.0011437689082358993, 0.0011423400902978611, 0.0011409130572664465, 0.0011394878069119151, 0.0011380643370073147, 0.0011366426453284723, 0.0011352227296539937, 0.001133804587765262, 0.0011323882174464294, 0.0011309736164844169, 0.0011295607826689092, 0.0011281497137923552, 0.0011267404076499585, 0.001125332862039677, 0.0011239270747622225, 0.0011225230436210508, 0.0011211207664223633, 0.0011197202409751004, 0.0011183214650909428, 0.001116924436584302, 0.0011155291532723203, 0.0011141356129748667, 0.0011127438135145361, 0.0011113537527166406, 0.0011099654284092086, 0.0011085788384229854, 0.0011071939805914228, 0.00110581085275068, 0.0011044294527396187, 0.001103049778399803, 0.0011016718275754904, 0.0011002955981136314, 0.0010989210878638695, 0.0010975482946785308, 0.001096177216412626, 0.0010948078509238437, 0.0010934401960725523, 0.0010920742497217896, 0.0010907100097372635, 0.0010893474739873503, 0.001087986640343087, 0.0010866275066781703, 0.001085270070868953, 0.0010839143307944433, 0.001082560284336296, 0.001081207929378813, 0.001079857263808939, 0.0010785082855162599, 0.0010771609923929965, 0.001075815382334002, 0.0010744714532367624, 0.0010731292030013869, 0.0010717886295306092, 0.0010704497307297825, 0.0010691125045068789, 0.0010677769487724808, 0.0010664430614397815, 0.0010651108404245836, 0.0010637802836452907, 0.0010624513890229073, 0.0010611241544810346, 0.00105979857794587, 0.001058474657346199, 0.0010571523906133945, 0.0010558317756814164, 0.0010545128104868025, 0.0010531954929686698, 0.001051879821068708, 0.0010505657927311815, 0.00104925340590292, 0.0010479426585333186, 0.0010466335485743335, 0.0010453260739804817, 0.0010440202327088334, 0.0010427160227190102, 0.0010414134419731854, 0.0010401124884360756, 0.0010388131600749407, 0.0010375154548595787, 0.001036219370762327, 0.0010349249057580528, 0.0010336320578241537, 0.001032340824940556, 0.0010310512050897072, 0.0010297631962565763, 0.001028476796428648, 0.0010271920035959245, 0.0010259088157509155, 0.0010246272308886387, 0.0010233472470066198, 0.0010220688621048824, 0.0010207920741859499, 0.0010195168812548402, 0.0010182432813190658, 0.0010169712723886255, 0.0010157008524760054, 0.0010144320195961728, 0.0010131647717665784, 0.0010118991070071457, 0.0010106350233402728, 0.0010093725187908305, 0.001008111591386154, 0.001006852239156044, 0.0010055944601327618, 0.0010043382523510292, 0.00100308361384802, 0.0010018305426633609, 0.001000579036839129, 0.000999329094419846, 0.0009980807134524763, 0.0009968338919864234, 0.0009955886280735306, 0.0009943449197680717, 0.000993102765126751, 0.0009918621622087042, 0.0009906231090754875, 0.0009893856037910802, 0.0009881496444218794, 0.0009869152290366996, 0.0009856823557067662, 0.000984451022505714, 0.000983221227509584, 0.0009819929687968228, 0.000980766244448275, 0.0009795410525471832, 0.0009783173911791859, 0.0009770952584323114, 0.0009758746523969769, 0.0009746555711659846, 0.0009734380128345212, 0.000972221975500151, 0.0009710074572628145, 0.0009697944562248283, 0.0009685829704908773, 0.0009673729981680148, 0.0009661645373656578, 0.000964957586195588, 0.0009637521427719427, 0.0009625482052112158, 0.0009613457716322563, 0.0009601448401562605, 0.0009589454089067728, 0.0009577474760096807, 0.0009565510395932157, 0.0009553560977879445, 0.0009541626487267706, 0.0009529706905449286, 0.0009517802213799853, 0.0009505912393718315, 0.0009494037426626817, 0.0009482177293970739, 0.0009470331977218611, 0.0009458501457862125, 0.0009446685717416083, 0.0009434884737418404, 0.0009423098499430048, 0.0009411326985035005, 0.0009399570175840299, 0.0009387828053475906, 0.0009376100599594755, 0.0009364387795872691, 0.0009352689624008472, 0.0009341006065723693, 0.0009329337102762784, 0.0009317682716893003, 0.0009306042889904364, 0.0009294417603609634, 0.0009282806839844291, 0.0009271210580466534, 0.0009259628807357193, 0.0009248061502419748, 0.0009236508647580275, 0.0009224970224787451, 0.0009213446216012478, 0.0009201936603249086, 0.0009190441368513516, 0.0009178960493844454, 0.0009167493961303032, 0.000915604175297278, 0.0009144603850959639, 0.0009133180237391875, 0.0009121770894420082, 0.0009110375804217176, 0.0009098994948978316, 0.0009087628310920917, 0.0009076275872284594, 0.0009064937615331175, 0.0009053613522344626, 0.0009042303575631038, 0.0009031007757518635, 0.000901972605035769, 0.0009008458436520534, 0.000899720489840151, 0.0008985965418416979, 0.0008974739979005241, 0.0008963528562626547, 0.0008952331151763047, 0.0008941147728918803, 0.0008929978276619702, 0.0008918822777413468, 0.0008907681213869646, 0.0008896553568579534, 0.0008885439824156181, 0.0008874339963234355, 0.0008863253968470534, 0.0008852181822542842, 0.000884112350815104, 0.0008830079008016527, 0.000881904830488226, 0.0008808031381512764, 0.0008797028220694085, 0.00087860388052338, 0.0008775063117960934, 0.0008764101141725967, 0.0008753152859400827, 0.0008742218253878809, 0.0008731297308074592, 0.0008720390004924187, 0.0008709496327384947, 0.000869861625843549, 0.0008687749781075706, 0.0008676896878326716, 0.000866605753323087, 0.0008655231728851684, 0.0008644419448273826, 0.0008633620674603124, 0.0008622835390966482, 0.0008612063580511893, 0.0008601305226408392, 0.0008590560311846066, 0.0008579828820035974, 0.0008569110734210152, 0.0008558406037621602, 0.0008547714713544229, 0.0008537036745272833, 0.0008526372116123081, 0.0008515720809431504, 0.0008505082808555423, 0.0008494458096872954, 0.0008483846657782997, 0.0008473248474705168, 0.0008462663531079805, 0.0008452091810367924, 0.0008441533296051223, 0.0008430987971632015, 0.0008420455820633228, 0.0008409936826598366, 0.0008399430973091514, 0.0008388938243697266, 0.0008378458622020724, 0.000836799209168749, 0.0008357538636343603, 0.0008347098239655534, 0.0008336670885310156, 0.0008326256557014739, 0.0008315855238496888, 0.0008305466913504531, 0.0008295091565805923, 0.0008284729179189574, 0.0008274379737464254, 0.0008264043224458948, 0.0008253719624022871, 0.0008243408920025385, 0.0008233111096356006, 0.0008222826136924398, 0.0008212554025660301, 0.000820229474651354, 0.0008192048283453983, 0.0008181814620471541, 0.000817159374157611, 0.0008161385630797561, 0.0008151190272185715, 0.0008141007649810334, 0.0008130837747761062, 0.0008120680550147418, 0.0008110536041098793, 0.0008100404204764381, 0.0008090285025313189, 0.0008080178486933986, 0.0008070084573835321, 0.0008060003270245445, 0.0008049934560412311, 0.0008039878428603572, 0.0008029834859106514, 0.0008019803836228057, 0.0008009785344294717, 0.0007999779367652616, 0.0007989785890667404, 0.0007979804897724265, 0.0007969836373227909, 0.0007959880301602507, 0.0007949936667291696, 0.0007940005454758538, 0.0007930086648485526, 0.0007920180232974516, 0.000791028619274673, 0.0007900404512342723, 0.000789053517632238, 0.0007880678169264857, 0.0007870833475768569, 0.0007861001080451196, 0.000785118096794961, 0.0007841373122919882, 0.000783157753003725, 0.0007821794173996107, 0.0007812023039509952, 0.0007802264111311379, 0.0007792517374152075, 0.0007782782812802753, 0.0007773060412053159, 0.0007763350156712033, 0.0007753652031607114, 0.0007743966021585072, 0.0007734292111511508, 0.0007724630286270947, 0.000771498053076678, 0.0007705342829921264, 0.0007695717168675478, 0.0007686103531989343, 0.0007676501904841538, 0.0007666912272229523, 0.0007657334619169485, 0.0007647768930696355, 0.0007638215191863735, 0.0007628673387743899, 0.000761914350342779, 0.0007609625524024956, 0.0007600119434663551, 0.0007590625220490302, 0.0007581142866670513, 0.0007571672358387993, 0.0007562213680845067, 0.0007552766819262564, 0.0007543331758879751, 0.0007533908484954348, 0.0007524496982762478, 0.0007515097237598679, 0.0007505709234775845, 0.0007496332959625211, 0.0007486968397496357, 0.0007477615533757147, 0.0007468274353793731, 0.0007458944843010505, 0.000744962698683012, 0.0007440320770693418, 0.0007431026180059434, 0.0007421743200405362, 0.0007412471817226556, 0.0007403212016036474, 0.0007393963782366665, 0.0007384727101766778, 0.0007375501959804489, 0.0007366288342065513, 0.0007357086234153564, 0.000734789562169036, 0.0007338716490315558, 0.000732954882568676, 0.0007320392613479499, 0.0007311247839387186, 0.000730211448912111, 0.0007292992548410402, 0.0007283882003002041, 0.0007274782838660792, 0.0007265695041169201, 0.0007256618596327598, 0.0007247553489954028, 0.0007238499707884259, 0.0007229457235971751, 0.0007220426060087652, 0.000721140616612074, 0.0007202397539977429, 0.0007193400167581735, 0.0007184414034875271, 0.00071754391278172, 0.0007166475432384217, 0.0007157522934570563, 0.0007148581620387951, 0.0007139651475865574, 0.0007130732487050076, 0.0007121824640005545, 0.0007112927920813462, 0.0007104042315572698, 0.0007095167810399503, 0.0007086304391427454, 0.000707745204480746, 0.0007068610756707719, 0.000705978051331373, 0.0007050961300828229, 0.0007042153105471188, 0.0007033355913479815, 0.0007024569711108486, 0.0007015794484628761, 0.0007007030220329339, 0.0006998276904516068, 0.0006989534523511884, 0.0006980803063656815, 0.0006972082511307947, 0.0006963372852839428, 0.0006954674074642408, 0.0006945986163125038, 0.0006937309104712468, 0.0006928642885846785, 0.0006919987492987021, 0.0006911342912609116, 0.0006902709131205925, 0.0006894086135287155, 0.0006885473911379369, 0.0006876872446025975, 0.0006868281725787178, 0.0006859701737239975, 0.0006851132466978126, 0.0006842573901612155, 0.0006834026027769299, 0.0006825488832093496, 0.0006816962301245386, 0.000680844642190226, 0.0006799941180758054, 0.000679144656452332, 0.000678296255992523, 0.0006774489153707519, 0.0006766026332630491, 0.0006757574083470977, 0.000674913239302235, 0.000674070124809446, 0.0006732280635513635, 0.0006723870542122679, 0.0006715470954780814, 0.000670708186036368, 0.0006698703245763312, 0.0006690335097888136, 0.000668197740366291, 0.0006673630150028731, 0.0006665293323943025, 0.0006656966912379495, 0.0006648650902328118, 0.0006640345280795125, 0.0006632050034802988, 0.0006623765151390381, 0.0006615490617612164, 0.0006607226420539389, 0.0006598972547259241, 0.0006590728984875039, 0.0006582495720506212, 0.0006574272741288294, 0.000656606003437287, 0.0006557857586927587, 0.0006549665386136112, 0.000654148341919814, 0.0006533311673329342, 0.0006525150135761358, 0.0006516998793741793, 0.0006508857634534169, 0.0006500726645417924, 0.000649260581368838, 0.0006484495126656745, 0.0006476394571650066, 0.0006468304136011216, 0.00064602238070989, 0.0006452153572287598, 0.0006444093418967565, 0.0006436043334544804, 0.0006428003306441068, 0.0006419973322093808, 0.0006411953368956163, 0.0006403943434496967, 0.0006395943506200691, 0.0006387953571567443, 0.0006379973618112946, 0.0006372003633368532, 0.000636404360488109, 0.0006356093520213075, 0.0006348153366942474, 0.0006340223132662805, 0.0006332302804983071, 0.0006324392371527753, 0.0006316491819936807, 0.0006308601137865616, 0.0006300720312984985, 0.000629284933298112, 0.0006284988185555623, 0.0006277136858425447, 0.0006269295339322882, 0.0006261463615995565, 0.0006253641676206422, 0.0006245829507733671, 0.0006238027098370791, 0.0006230234435926527, 0.0006222451508224837, 0.0006214678303104889, 0.0006206914808421059, 0.000619916101204288, 0.0006191416901855043, 0.000618368246575737, 0.0006175957691664813, 0.0006168242567507405, 0.0006160537081230266, 0.0006152841220793562, 0.0006145154974172524, 0.0006137478329357383, 0.0006129811274353375, 0.0006122153797180735, 0.0006114505885874649, 0.0006106867528485254, 0.0006099238713077609, 0.00060916194277317, 0.0006084009660542386, 0.0006076409399619399, 0.000606881863308734, 0.000606123734908563, 0.0006053665535768512, 0.0006046103181305019, 0.0006038550273878982, 0.0006031006801688977, 0.0006023472752948321, 0.0006015948115885073, 0.000600843287874198, 0.0006000927029776482, 0.0005993430557260683, 0.0005985943449481355, 0.0005978465694739884, 0.0005970997281352279, 0.0005963538197649135, 0.0005956088431975643, 0.0005948647972691538, 0.0005941216808171094, 0.0005933794926803129, 0.0005926382316990942, 0.0005918978967152333, 0.0005911584865719558, 0.0005904200001139344, 0.0005896824361872832, 0.0005889457936395582, 0.000588210071319756, 0.0005874752680783098, 0.0005867413827670897, 0.0005860084142393989, 0.0005852763613499751, 0.000584545222954985, 0.0005838149979120242, 0.0005830856850801169, 0.0005823572833197112, 0.0005816297914926791, 0.000580903208462314, 0.000580177533093331, 0.0005794527642518613, 0.0005787289008054537, 0.0005780059416230709, 0.0005772838855750899, 0.0005765627315332977, 0.0005758424783708901, 0.0005751231249624727, 0.0005744046701840552, 0.0005736871129130515, 0.0005729704520282782, 0.0005722546864099531, 0.0005715398149396919, 0.0005708258365005075, 0.0005701127499768091, 0.0005694005542543986, 0.0005686892482204699, 0.0005679788307636069, 0.0005672693007737829, 0.0005665606571423568, 0.0005658528987620722, 0.0005651460245270576, 0.0005644400333328213, 0.0005637349240762519, 0.0005630306956556155, 0.0005623273469705562, 0.000561624876922091, 0.0005609232844126102, 0.0005602225683458748, 0.000559522727627017, 0.000558823761162535, 0.0005581256678602929, 0.000557428446629521, 0.0005567320963808103, 0.0005560366160261135, 0.0005553420044787418, 0.0005546482606533657, 0.0005539553834660097, 0.0005532633718340525, 0.0005525722246762268, 0.0005518819409126147, 0.0005511925194646474, 0.0005505039592551036, 0.0005498162592081085, 0.0005491294182491303, 0.0005484434353049794, 0.0005477583093038081, 0.0005470740391751067, 0.0005463906238497027, 0.0005457080622597592, 0.0005450263533387745, 0.0005443454960215777, 0.0005436654892443292, 0.0005429863319445177, 0.000542308023060961, 0.0005416305615338006, 0.0005409539463045023, 0.0005402781763158556, 0.0005396032505119693, 0.0005389291678382718, 0.000538255927241508, 0.0005375835276697407, 0.0005369119680723448, 0.0005362412474000076, 0.0005355713646047291, 0.0005349023186398169, 0.0005342341084598862, 0.0005335667330208583, 0.0005329001912799598, 0.0005322344821957185, 0.0005315696047279634, 0.0005309055578378244, 0.0005302423404877275, 0.0005295799516413955, 0.0005289183902638452, 0.0005282576553213878, 0.0005275977457816243, 0.0005269386606134459, 0.0005262803987870315, 0.0005256229592738476, 0.0005249663410466447, 0.0005243105430794559, 0.0005236555643475979, 0.0005230014038276656, 0.0005223480604975333, 0.0005216955333363513, 0.0005210438213245467, 0.000520392923443819, 0.0005197428386771395, 0.0005190935660087517, 0.0005184451044241663, 0.0005177974529101621, 0.000517150610454783, 0.0005165045760473384, 0.000515859348678399, 0.0005152149273397964, 0.000514571311024623, 0.0005139284987272277, 0.0005132864894432163, 0.0005126452821694486, 0.000512004875904039, 0.0005113652696463522, 0.0005107264623970033, 0.0005100884531578553, 0.0005094512409320196, 0.0005088148247238515, 0.0005081792035389501, 0.0005075443763841582, 0.0005069103422675576, 0.0005062771001984698, 0.0005056446491874537, 0.0005050129882463052, 0.0005043821163880537, 0.0005037520326269611, 0.0005031227359785225, 0.0005024942254594612, 0.0005018665000877295, 0.0005012395588825057, 0.0005006134008641951, 0.0004999880250544253, 0.0004993634304760459, 0.0004987396161531286, 0.0004981165811109631, 0.0004974943243760568, 0.0004968728449761332, 0.0004962521419401314, 0.0004956322142982023, 0.0004950130610817089, 0.0004943946813232237, 0.0004937770740565292, 0.0004931602383166132, 0.0004925441731396695, 0.000491928877563097, 0.0004913143506254958, 0.0004907005913666675, 0.0004900875988276125, 0.0004894753720505309, 0.0004888639100788176, 0.00048825321195706287, 0.00048764327673105155, 0.0004870341034477593, 0.00048642569115535286, 0.00048581803890318737, 0.00048521114574180696, 0.0004846050107229404, 0.0004839996328995014, 0.0004833950113255876, 0.00048279114505647735, 0.0004821880331486295, 0.0004815856746596811, 0.00048098406864844777, 0.0004803832141749196, 0.00047978311030026123, 0.00047918375608680996, 0.0004785851505980754, 0.0004779872928987361, 0.0004773901820546388, 0.0004767938171327984, 0.00047619819720139437, 0.0004756033213297703, 0.0004750091885884322, 0.0004744157980490483, 0.00047382314878444495, 0.0004732312398686088, 0.0004726400703766804, 0.00047204963938495817, 0.00047145994597089426, 0.0004708709892130911, 0.00047028276819130514, 0.00046969528198643936, 0.0004691085296805473, 0.00046852251035682903, 0.0004679372230996278, 0.00046735266699443276, 0.00046676884112787585, 0.00046618574458772734, 0.00046560337646289957, 0.00046502173584344307, 0.0004644408218205427, 0.00046386063348652086, 0.000463281169934834, 0.0004627024302600686, 0.0004621244135579455, 0.00046154711892531174, 0.0004609705454601452, 0.0004603946922615506, 0.00045981955842975544, 0.0004592451430661139, 0.0004586714452731027, 0.0004580984641543172, 0.0004575261988144751, 0.0004569546483594126, 0.00045638381189608035, 0.00045581368853254777, 0.00045524427737799546, 0.0004546755775427192, 0.0004541075881381261, 0.0004535403082767311, 0.0004529737370721601, 0.0004524078736391462, 0.0004518427170935261, 0.0004512782665522434, 0.00045071452113334476, 0.0004501514799559763, 0.0004495891421403869, 0.0004490275068079243, 0.0004484665730810317, 0.0004479063400832515, 0.0004473468069392181, 0.00044678797277466147, 0.00044622983671640403, 0.00044567239789235647, 0.0004451156554315213, 0.00044455960846398907, 0.0004440042561209347, 0.0004434495975346209, 0.0004428956318383942, 0.0004423423581666816, 0.00044178977565499444, 0.00044123788343992075, 0.0004406866806591298, 0.00044013616645136776, 0.0004395863399564546, 0.00043903720031528707, 0.0004384887466698351, 0.00043794097816313827, 0.00043739389393930887, 0.00043684749314352854, 0.00043630177492204433, 0.00043575673842217224, 0.00043521238279229334, 0.00043466870718185033, 0.0004341257107413515, 0.00043358339262236325, 0.00043304175197751417, 0.00043250078796049145, 0.00043196049972603714, 0.00043142088642995154, 0.0004308819472290895, 0.0004303436812813569, 0.0004298060877457138, 0.00042926916578217117, 0.00042873291455178654, 0.0004281973332166689, 0.00042766242093997075, 0.00042712817688589236, 0.000426594600219678, 0.00042606169010761253, 0.0004255294457170245, 0.00042499786621628277, 0.0004244669507747927, 0.0004239366985629996, 0.0004234071087523849, 0.0004228781805154631, 0.0004223499130257844, 0.0004218223054579315, 0.0004212953569875159, 0.00042076906679118205, 0.0004202434340465999, 0.00041971845793246904, 0.00041919413762851477, 0.0004186704723154851, 0.00041814746117515363, 0.00041762510339031603, 0.00041710339814478667, 0.00041658234462340184, 0.00041606194201201593, 0.0004155421894974983, 0.0004150230862677371, 0.00041450463151163183, 0.0004139868244190977, 0.0004134696641810616, 0.00041295314998945925, 0.00041243728103723773, 0.0004119220565183525, 0.00041140747562776366, 0.00041089353756143917, 0.0004103802415163514, 0.00040986758669047383, 0.00040935557228278385, 0.00040884419749325954, 0.00040833346152287627, 0.00040782336357361043, 0.00040731390284843243, 0.0004068050785513105, 0.00040629688988720727, 0.0004057893360620765, 0.00040528241628286584, 0.0004047761297575138, 0.0004042704756949461, 0.00040376545330507896, 0.00040326106179881544, 0.00040275730038804235, 0.0004022541682856338, 0.0004017516647054443, 0.00040124978886231256, 0.0004007485399720583, 0.0004002479172514786, 0.000399747919918351, 0.00039924854719143035, 0.0003987497982904452, 0.000398251672436101, 0.0003977541688500767, 0.00039725728675502146, 0.0003967610253745576, 0.0003962653839332773, 0.0003957703616567393, 0.00039527595777147265, 0.0003947821715049697, 0.00039428900208569005, 0.0003937964487430571, 0.0003933045107074547, 0.00039281318721023033, 0.0003923224774836916, 0.000391832380761103, 0.00039134289627668913, 0.00039085402326563095, 0.00039036576096406297, 0.0003898781086090766, 0.00038939106543871353, 0.0003889046306919695, 0.0003884188036087907, 0.0003879335834300709, 0.0003874489693976541, 0.0003869649607543315, 0.00038648155674383814, 0.0003859987566108558, 0.00038551655960100987, 0.0003850349649608661, 0.00038455397193793345, 0.00038407357978066084, 0.00038359378773843405, 0.0003831145950615794, 0.0003826360010013567, 0.0003821580048099635, 0.0003816806057405312, 0.0003812038030471224, 0.0003807275959847334, 0.0003802519838092912, 0.0003797769657776504, 0.00037930254114759595, 0.0003788287091778398, 0.00037835546912801826, 0.0003778828202586948, 0.0003774107618313542, 0.0003769392931084058, 0.0003764684133531802, 0.0003759981218299264, 0.00037552841780381447, 0.0003750593005409324, 0.0003745907693082831, 0.000374122823373787, 0.00037365546200627923, 0.0003731886844755062, 0.0003727224900521286, 0.0003722568780077182, 0.0003717918476147547, 0.0003713273981466295, 0.0003708635288776387, 0.0003704002390829873, 0.00036993752803878547, 0.00036947539502204575, 0.00036901383931068596, 0.0003685528601835258, 0.00036809245692028404, 0.0003676326288015811, 0.00036717337510893614, 0.00036671469512476377, 0.00036625658813237784, 0.00036579905341598473, 0.00036534209026068695, 0.0003648856979524802, 0.00036442987577825015, 0.0003639746230257751, 0.0003635199389837232, 0.0003630658229416493, 0.00036261227418999764, 0.00036215929202009883, 0.0003617068757241668, 0.00036125502459530165, 0.0003608037379274866, 0.00036035301501558486, 0.000359902855155343, 0.00035945325764338495, 0.00035900422177721504, 0.00035855574685521535, 0.00035810783217664246, 0.00035766047704163014, 0.00035721368075118665, 0.00035676744260719137, 0.00035632176191239775, 0.0003558766379704302, 0.0003554320700857813, 0.00035498805756381486, 0.00035454459971075993, 0.00035410169583371417, 0.00035365934524064085, 0.0003532175472403658, 0.0003527763011425801, 0.0003523356062578374, 0.00035189546189755055, 0.00035145586737399444, 0.0003510168220003033, 0.0003505783250904673, 0.0003501403759593356, 0.00034970297392261315, 0.000349266118296858, 0.00034882980839948433, 0.0003483940435487567, 0.00034795882306379295, 0.0003475241462645617, 0.00034709001247187904, 0.0003466564210074115, 0.0003462233711936729, 0.0003457908623540216, 0.00034535889381266313, 0.0003449274648946471, 0.00034449657492586453, 0.00034406622323305094, 0.0003436364091437806, 0.00034320713198646944, 0.00034277839109037245, 0.00034235018578558066, 0.0003419225154030238, 0.00034149537927446745, 0.0003410687767325101, 0.00034064270711058574, 0.0003402171697429612, 0.00033979216396473296, 0.0003393676891118301, 0.000338943744521011, 0.00033852032952986117, 0.0003380974434767957, 0.0003376750857010538, 0.00033725325554270205, 0.0003368319523426313, 0.000336411175442554, 0.0003359909241850068, 0.00033557119791334755, 0.0003351519959717527, 0.0003347333177052198, 0.0003343151624595645, 0.00033389752958141794, 0.0003334804184182299, 0.0003330638283182629, 0.0003326477586305954, 0.000332232208705119, 0.00033181717789253576, 0.0003314026655443604, 0.000330988671012918, 0.00033057519365134084, 0.000330162232813571, 0.0003297497878543577, 0.0003293378581292544, 0.00032892644299462146, 0.0003285155418076232, 0.00032810515392622526, 0.0003276952787091977, 0.0003272859155161091, 0.00032687706370733015, 0.00032646872264403034, 0.00032606089168817553, 0.0003256535702025303, 0.0003252467575506553, 0.0003248404530969046, 0.00032443465620642797, 0.0003240293662451682, 0.00032362458257985854, 0.0003232203045780256, 0.00032281653160798373, 0.00032241326303883823, 0.00032201049824048236, 0.0003216082365835949, 0.00032120647743964255, 0.0003208052201808772, 0.00032040446418033294, 0.00032000420881182924, 0.00031960445344996743, 0.00031920519747012866, 0.00031880644024847584, 0.00031840818116195133, 0.0003180104195882741, 0.00031761315490594274, 0.00031721638649423, 0.0003168201137331857, 0.0003164243360036341, 0.0003160290526871713, 0.00031563426316616764, 0.00031523996682376496, 0.000314846163043874, 0.0003144528512111769, 0.0003140600307111243, 0.0003136677009299331, 0.0003132758612545889, 0.0003128845110728411, 0.0003124936497732055, 0.00031210327674496184, 0.00031171339137815105, 0.0003113239930635777, 0.00031093508119280734, 0.0003105466551581641, 0.0003101587143527327, 0.00030977125817035616, 0.00030938428600563297, 0.0003089977972539196, 0.00030861179131132785, 0.0003082262675747223, 0.00030784122544172307, 0.00030745666431070064, 0.0003070725835807788, 0.0003066889826518318, 0.00030630586092448203, 0.0003059232178001023, 0.00030554105268081316, 0.00030515936496948047, 0.0003047781540697176, 0.00030439741938588304, 0.00030401716032307764, 0.00030363737628714765, 0.0003032580666846793, 0.0003028792309230019, 0.00030250086841018494, 0.00030212297855503593, 0.0003017455607671023, 0.00030136861445666935, 0.00030099213903475727, 0.00030061613391312367, 0.000300240598504261, 0.000299865532221394, 0.00029949093447848214, 0.00029911680469021685, 0.0002987431422720192, 0.0002983699466400427, 0.000297997217211168, 0.0002976249534030058, 0.0002972531546338944, 0.000296881820322897, 0.0002965109498898043, 0.00029614054275513166, 0.00029577059834011676, 0.000295401116066722, 0.00029503209535763165, 0.00029466353563624984, 0.00029429543632670293, 0.00029392779685383463, 0.0002935606166432087, 0.00029319389512110655, 0.0002928276317145246, 0.0002924618258511769, 0.000292096476959492, 0.0002917315844686113, 0.00029136714780839064, 0.00029100316640939827, 0.0002906396397029121, 0.0002902765671209221, 0.0002899139480961278, 0.00028955178206193586, 0.0002891900684524628, 0.00028882880670253006, 0.0002884679962476665, 0.00028810763652410633, 0.0002877477269687863, 0.0002873882670193482, 0.0002870292561141363, 0.000286670693692195, 0.00028631257919327086, 0.00028595491205781056, 0.00028559769172695795, 0.0002852409176425573, 0.00028488458924714793, 0.0002845287059839673, 0.0002841732672969481, 0.0002838182726307164, 0.00028346372143059345, 0.00028310961314259337, 0.0002827559472134209, 0.0002824027230904735, 0.0002820499402218389, 0.00028169759805629277, 0.00028134569604330097, 0.0002809942336330169, 0.0002806432102762796, 0.0002802926254246159, 0.000279942478530236, 0.00027959276904603573, 0.0002792434964255945, 0.0002788946601231727, 0.00027854625959371416, 0.00027819829429284336, 0.0002778507636768635, 0.0002775036672027584, 0.00027715700432819025, 0.00027681077451149726, 0.0002764649772116963, 0.00027611961188847795, 0.00027577467800220934, 0.00027543017501393174, 0.00027508610238535813, 0.00027474245957887546, 0.0002743992460575423, 0.0002740564612850864, 0.000273714104725907, 0.00027337217584507247, 0.0002730306741083178, 0.00027268959898204696, 0.0002723489499333305, 0.0002720087264299032, 0.00027166892794016685, 0.0002713295539331852, 0.00027099060387868667, 0.0002706520772470624, 0.0002703139735093634, 0.00026997629213730296, 0.0002696390326032544, 0.00026930219438024873, 0.0002689657769419765, 0.00026862977976278596, 0.0002682942023176805, 0.0002679590440823212, 0.00026762430453302233, 0.0002672899831467537, 0.0002669560794011386, 0.00026662259277445143, 0.00026628952274561975, 0.0002659568687942219, 0.0002656246304004853, 0.0002652928070452877, 0.0002649613982101555, 0.0002646304033772615, 0.0002642998220294266, 0.00026396965365011783, 0.0002636398977234462, 0.0002633105537341688, 0.00026298162116768475, 0.00026265309951003726, 0.00026232498824791165, 0.0002619972868686331, 0.00026166999486016855, 0.0002613431117111247, 0.00026101663691074564, 0.0002606905699489148, 0.00026036491031615304, 0.0002600396575036161, 0.00025971481100309744, 0.00025939037030702335, 0.0002590663349084556, 0.00025874270430108936, 0.0002584194779792507, 0.00025809665543789903, 0.00025777423617262443, 0.0002574522196796458, 0.0002571306054558128, 0.00025680939299860364, 0.00025648858180612284, 0.00025616817137710324, 0.00025584816121090404, 0.0002555285508075083, 0.00025520933966752566, 0.0002548905272921877, 0.0002545721131833505, 0.00025425409684349235, 0.00025393647777571186, 0.0002536192554837295, 0.00025330242947188596, 0.0002529859992451395, 0.0002526699643090683, 0.00025235432416986824, 0.0002520390783343506, 0.00025172422630994457, 0.0002514097676046929, 0.0002510957017272542, 0.0002507820281869011, 0.00025046874649351756, 0.00025015585615760136, 0.00024984335669026177, 0.0002495312476032174, 0.0002492195284087982, 0.00024890819861994324, 0.0002485972577501988, 0.0002482867053137202, 0.0002479765408252696, 0.0002476667638002141, 0.00024735737375452784, 0.0002470483702047879, 0.00024673975266817675, 0.00024643152066247974, 0.0002461236737060835, 0.00024581621131797743, 0.00024550913301775207, 0.0002452024383255965, 0.0002448961267623007, 0.0002445901978492533, 0.0002442846511084393, 0.00024397948606244278, 0.00024367470223444248, 0.000243370299148214, 0.00024306627632812787, 0.00024276263329914752, 0.00024245936958683107, 0.0002421564847173294, 0.0002418539782173839, 0.00024155184961432858, 0.00024125009843608785, 0.00024094872421117462, 0.00024064772646869195, 0.00024034710473833128, 0.00024004685855037025, 0.00023974698743567497, 0.0002394474909256959, 0.0002391483685524701, 0.00023884961984861928, 0.00023855124434734763, 0.00023825324158244378, 0.00023795561108827884, 0.00023765835239980418, 0.00023736146505255352, 0.0002370649485826407, 0.00023676880252675788, 0.00023647302642217755, 0.00023617761980674872, 0.0002358825822188989, 0.00023558791319763222, 0.00023529361228252738, 0.00023499967901373964, 0.00023470611293199855, 0.00023441291357860627, 0.00023412008049543916, 0.00023382761322494585, 0.0002335355113101454, 0.00023324377429462885, 0.0002329524017225575, 0.00023266139313866084, 0.00023237074808823868, 0.0002320804661171573, 0.00023179054677185143, 0.00023150098959932245, 0.00023121179414713644, 0.0002309229599634258, 0.00023063448659688753, 0.00023034637359678104, 0.00023005862051293018, 0.00022977122689572105, 0.00022948419229610034, 0.00022919751626557713, 0.00022891119835621935, 0.00022862523812065556, 0.00022833963511207327, 0.00022805438888421687, 0.0002277694989913895, 0.00022748496498845106, 0.0002272007864308163, 0.00022691696287445654, 0.00022663349387589784, 0.00022635037899221906, 0.0002260676177810535, 0.00022578520980058708, 0.00022550315460955652, 0.00022522145176725132, 0.00022494010083350997, 0.0002246591013687219, 0.00022437845293382582, 0.0002240981550903077, 0.0002238182074002025, 0.00022353860942609231, 0.00022325936073110445, 0.00022298046087891311, 0.0002227019094337377, 0.00022242370596034064, 0.00022214585002402982, 0.00022186834119065446, 0.00022159117902660735, 0.00022131436309882294, 0.00022103789297477555, 0.00022076176822248084, 0.00022048598841049432, 0.00022021055310790914, 0.000219935461884358, 0.0002196607143100112, 0.00021938630995557481, 0.00021911224839229234, 0.00021883852919194296, 0.0002185651519268396, 0.00021829211616983095, 0.00021801942149429784, 0.00021774706747415518, 0.00021747505368385013, 0.00021720337969836033, 0.0002169320450931955, 0.00021666104944439564, 0.00021639039232852924, 0.00021612007332269488, 0.00021585009200451944, 0.00021558044795215626, 0.00021531114074428728, 0.00021504216996011912, 0.0002147735351793853, 0.00021450523598234424, 0.00021423727194977768, 0.0002139696426629921, 0.00021370234770381712, 0.00021343538665460354, 0.000213168759098225, 0.00021290246461807633, 0.00021263650279807153, 0.00021237087322264564, 0.00021210557547675273, 0.0002118406091458643, 0.0002115759738159711, 0.00021131166907357969, 0.00021104769450571416, 0.00021078404969991464, 0.00021052073424423527, 0.00021025774772724602, 0.0002099950897380307, 0.00020973275986618548, 0.00020947075770182022, 0.00020920908283555682, 0.0002089477348585276, 0.00020868671336237693, 0.00020842601793925796, 0.00020816564818183447, 0.00020790560368327897, 0.00020764588403727116, 0.0002073864888379994, 0.00020712741768015903, 0.00020686867015895052, 0.00020661024587008121, 0.00020635214440976353, 0.00020609436537471308, 0.00020583690836215046, 0.0002055797729697994, 0.00020532295879588505, 0.00020506646543913597, 0.0002048102924987805, 0.0002045544395745487, 0.00020429890626667076, 0.00020404369217587502, 0.00020378879690338984, 0.00020353422005094164, 0.00020327996122075333, 0.00020302602001554576, 0.00020277239603853616, 0.00020251908889343622, 0.00020226609818445426, 0.00020201342351629153, 0.00020176106449414414, 0.0002015090207237014, 0.0002012572918111442, 0.00020100587736314639, 0.0002007547769868732, 0.00020050399028997956, 0.00020025351688061154, 0.00020000335636740475, 0.0001997535083594826, 0.0001995039724664579, 0.00019925474829843114, 0.0001990058354659888, 0.00019875723358020518, 0.00019850894225263913, 0.00019826096109533574, 0.00019801328972082473, 0.00019776592774211886, 0.00019751887477271533, 0.00019727213042659413, 0.00019702569431821653, 0.0001967795660625264, 0.00019653374527494862, 0.00019628823157138747, 0.0001960430245682284, 0.0001957981238823348, 0.00019555352913104958, 0.00019530923993219375, 0.00019506525590406475, 0.00019482157666543773, 0.00019457820183556426, 0.0001943351310341704, 0.00019409236388145832, 0.0001938498999981046, 0.00019360773900525878, 0.0001933658805245445, 0.00019312432417805823, 0.00019288306958836746, 0.00019264211637851252, 0.00019240146417200325, 0.00019216111259282088, 0.00019192106126541639, 0.0001916813098147088, 0.00019144185786608683, 0.00019120270504540706, 0.00019096385097899248, 0.00019072529529363388, 0.00019048703761658837, 0.0001902490775755775, 0.0001900114147987894, 0.00018977404891487527, 0.00018953697955295117, 0.0001893002063425965, 0.00018906372891385243, 0.00018882754689722325, 0.00018859165992367487, 0.00018835606762463312, 0.00018812076963198537, 0.0001878857655780788, 0.0001876510550957188, 0.0001874166378181706, 0.00018718251337915742, 0.00018694868141285918, 0.00018671514155391397, 0.00018648189343741512, 0.0001862489366989127, 0.0001860162709744121, 0.0001857838959003724, 0.00018555181111370788, 0.0001853200162517863, 0.00018508851095242745, 0.00018485729485390463, 0.00018462636759494295, 0.0001843957288147179, 0.00018416537815285695, 0.0001839353152494365, 0.00018370553974498356, 0.00018347605128047416, 0.0001832468494973319, 0.00018301793403742924, 0.0001827893045430861, 0.00018256096065706818, 0.0001823329020225884, 0.00018210512828330545, 0.0001818776390833222, 0.00018165043406718698, 0.0001814235128798923, 0.00018119687516687308, 0.00018097052057400848, 0.00018074444874761878, 0.00018051865933446702, 0.00018029315198175755, 0.00018006792633713437, 0.00017984298204868273, 0.00017961831876492747, 0.00017939393613483149, 0.0001791698338077972, 0.00017894601143366505, 0.00017872246866271183, 0.00017849920514565257, 0.00017827622053363736, 0.000178053514478253, 0.00017783108663152155, 0.00017760893664589883, 0.00017738706417427574, 0.00017716546886997685, 0.00017694415038675877, 0.0001767231083788117, 0.00017650234250075772, 0.0001762818524076495, 0.00017606163775497153, 0.0001758416981986387, 0.00017562203339499476, 0.000175402643000814, 0.00017518352667329838, 0.00017496468407007877, 0.00017474611484921394, 0.00017452781866918881, 0.00017430979518891584, 0.00017409204406773366, 0.00017387456496540543, 0.00017365735754212034, 0.00017344042145849204, 0.00017322375637555723, 0.00017300736195477733, 0.00017279123785803537, 0.00017257538374763773, 0.00017235979928631259, 0.0001721444841372086, 0.0001719294379638961, 0.0001717146604303657, 0.00017150015120102687, 0.00017128590994070918, 0.0001710719363146609, 0.00017085822998854763, 0.00017064479062845348, 0.0001704316179008797, 0.00017021871147274327, 0.00017000607101137844, 0.00016979369618453388, 0.00016958158666037412, 0.00016936974210747833, 0.00016915816219483873, 0.000168946846591862, 0.00016873579496836774, 0.00016852500699458714, 0.00016831448234116422, 0.00016810422067915456, 0.00016789422168002357, 0.00016768448501564841, 0.00016747501035831495, 0.00016726579738071922, 0.00016705684575596622, 0.0001668481551575684, 0.00016663972525944696, 0.00016643155573593045, 0.00016622364626175335, 0.00016601599651205732, 0.00016580860616238993, 0.0001656014748887031, 0.0001653946023673545, 0.00016518798827510603, 0.00016498163228912256, 0.00016477553408697338, 0.00016456969334662945, 0.00016436410974646486, 0.00016415878296525548, 0.0001639537126821776, 0.00016374889857680912, 0.00016354434032912827, 0.00016334003761951218, 0.0001631359901287381, 0.00016293219753798208, 0.00016272865952881758, 0.00016252537578321697, 0.0001623223459835488, 0.0001621195698125793, 0.00016191704695347084, 0.00016171477708978093, 0.00016151275990546312, 0.0001613109950848658, 0.00016110948231273084, 0.0001609082212741948, 0.00016070721165478748, 0.0001605064531404308, 0.0001603059454174398, 0.00016010568817252142, 0.0001599056810927731, 0.0001597059238656843, 0.00015950641617913373, 0.00015930715772139093, 0.00015910814818111474, 0.00015890938724735218, 0.00015871087460953953, 0.000158512609957501, 0.00015831459298144753, 0.00015811682337197778, 0.000157919300820077, 0.0001577220250171156, 0.00015752499565485067, 0.00015732821242542323, 0.0001571316750213597, 0.0001569353831355706, 0.00015673933646134937, 0.0001565435346923732, 0.00015634797752270215, 0.00015615266464677745, 0.00015595759575942307, 0.00015576277055584408, 0.0001555681887316255, 0.00015537384998273344, 0.00015517975400551387, 0.00015498590049669125, 0.00015479228915336993, 0.00015459891967303167, 0.00015440579175353682, 0.00015421290509312329, 0.00015402025939040506, 0.00015382785434437345, 0.00015363568965439585, 0.0001534437650202143, 0.00015325208014194683, 0.000153060634720086, 0.00015286942845549784, 0.00015267846104942295, 0.0001524877322034743, 0.00015229724161963822, 0.0001521069890002734, 0.00015191697404810963, 0.00015172719646624867, 0.00015153765595816334, 0.000151348352227696, 0.0001511592849790598, 0.0001509704539168374, 0.0001507818587459797, 0.000150593499171807, 0.00015040537490000762, 0.00015021748563663688, 0.00015002983108811826, 0.000149842410961241, 0.0001496552249631613, 0.00014946827280140135, 0.0001492815541838478, 0.00014909506881875305, 0.0001489088164147339, 0.0001487227966807704, 0.000148537009326207, 0.00014835145406075117, 0.00014816613059447222, 0.00014798103863780275, 0.00014779617790153596, 0.00014761154809682722, 0.0001474271489351927, 0.0001472429801285081, 0.00014705904138900992, 0.00014687533242929409, 0.00014669185296231477, 0.0001465086027013856, 0.00014632558136017817, 0.00014614278865272116, 0.00014596022429340115, 0.00014577788799696154, 0.00014559577947850132, 0.00014541389845347644, 0.0001452322446376972, 0.00014505081774732976, 0.00014486961749889482, 0.0001446886436092664, 0.00014450789579567312, 0.00014432737377569665, 0.0001441470772672708, 0.0001439670059886825, 0.00014378715965857064, 0.00014360753799592472, 0.0001434281407200864, 0.0001432489675507469, 0.0001430700182079483, 0.00014289129241208253, 0.00014271278988388996, 0.00014253451034446064, 0.00014235645351523297, 0.00014217861911799265, 0.0001420010068748736, 0.00014182361650835694, 0.0001416464477412697, 0.00014146950029678585, 0.00014129277389842524, 0.00014111626827005235, 0.0001409399831358776, 0.00014076391822045493, 0.0001405880732486831, 0.0001404124479458046, 0.0001402370420374043, 0.00014006185524941073, 0.00013988688730809474, 0.00013971213794006836, 0.00013953760687228595, 0.0001393632938320429, 0.0001391891985469746, 0.00013901532074505759, 0.00013884166015460726, 0.00013866821650427918, 0.00013849498952306783, 0.00013832197894030556, 0.00013814918448566352, 0.0001379766058891506, 0.00013780424288111217, 0.00013763209519223132, 0.00013746016255352742, 0.00013728844469635526, 0.00013711694135240586, 0.00013694565225370547, 0.00013677457713261434, 0.00013660371572182803, 0.00013643306775437512, 0.00013626263296361832, 0.00013609241108325347, 0.0001359224018473084, 0.0001357526049901439, 0.0001355830202464525, 0.0001354136473512576, 0.00013524448603991426, 0.0001350755360481081, 0.00013490679711185424, 0.00013473826896749858, 0.00013456995135171533, 0.00013440184400150847, 0.0001342339466542104, 0.0001340662590474811, 0.00013389878091930882, 0.0001337315120080092, 0.00013356445205222407, 0.00013339760079092243, 0.00013323095796339944, 0.0001330645233092751, 0.0001328982965684955, 0.00013273227748133157, 0.000132566465788378, 0.0001324008612305544, 0.0001322354635491032, 0.00013207027248559068, 0.00013190528778190603, 0.00013174050918026014, 0.00013157593642318665, 0.00013141156925354082, 0.00013124740741449843, 0.00013108345064955686, 0.00013091969870253383, 0.0001307561513175664, 0.00013059280823911226, 0.00013042966921194733, 0.00013026673398116705, 0.0001301040022921854, 0.00012994147389073352, 0.00012977914852286106, 0.0001296170259349348, 0.0001294551058736377, 0.00012929338808596988, 0.00012913187231924746, 0.00012897055832110157, 0.00012880944583947931, 0.00012864853462264263, 0.00012848782441916723, 0.00012832731497794384, 0.00012816700604817598, 0.00012800689737938115, 0.00012784698872138976, 0.00012768727982434403, 0.000127527770438699, 0.00012736846031522145, 0.00012720934920498883, 0.00012705043685939021, 0.0001268917230301253, 0.00012673320746920316, 0.00012657488992894373, 0.00012641677016197534, 0.00012625884792123604, 0.00012610112295997254, 0.00012594359503173907, 0.00012578626389039848, 0.00012562912929012105, 0.00012547219098538344, 0.00012531544873096978, 0.0001251589022819705, 0.00012500255139378125, 0.000124846395822104, 0.00012469043532294585, 0.00012453466965261804, 0.0001243790985677371, 0.00012422372182522277, 0.00012406853918229906, 0.0001239135503964933, 0.000123758755225635, 0.00012360415342785693, 0.00012344974476159395, 0.00012329552898558208, 0.0001231415058588593, 0.00012298767514076474, 0.00012283403659093736, 0.00012268058996931736, 0.00012252733503614394, 0.00012237427155195645, 0.00012222139927759335, 0.00012206871797419129, 0.0001219162274031859, 0.00012176392732631084, 0.00012161181750559677, 0.00012145989770337232, 0.00012130816768226296, 0.00012115662720519005, 0.00012100527603537179, 0.0001208541139363222, 0.00012070314067184998, 0.00012055235600605986, 0.00012040175970335028, 0.00012025135152841475, 0.00012010113124624065, 0.00011995109862210837, 0.00011980125342159207, 0.00011965159541055883, 0.00011950212435516754, 0.00011935284002186989, 0.00011920374217740926, 0.00011905483058881982, 0.00011890610502342759, 0.00011875756524884846, 0.0001186092110329892, 0.0001184610421440465, 0.00011831305835050606, 0.00011816525942114336, 0.00011801764512502274, 0.00011787021523149644, 0.00011772296951020543, 0.00011757590773107843, 0.00011742902966433097, 0.00011728233508046626, 0.00011713582375027417, 0.00011698949544483032, 0.00011684334993549712, 0.00011669738699392174, 0.0001165516063920373, 0.00011640600790206175, 0.00011626059129649702, 0.00011611535634812986, 0.00011597030283003083, 0.00011582543051555334, 0.00011568073917833459, 0.00011553622859229457, 0.00011539189853163502, 0.0001152477487708406, 0.00011510377908467687, 0.0001149599892481914, 0.00011481637903671271, 0.00011467294822584942, 0.00011452969659149106, 0.00011438662390980714, 0.00011424372995724615, 0.00011410101451053645, 0.00011395847734668534, 0.00011381611824297807, 0.0001136739369769787, 0.00011353193332652919, 0.00011339010706974841, 0.0001132484579850332, 0.00011310698585105641, 0.00011296569044676805, 0.00011282457155139417, 0.00011268362894443611, 0.0001125428624056712, 0.0001124022717151519, 0.00011226185665320481, 0.00011212161700043159, 0.00011198155253770793, 0.00011184166304618271, 0.00011170194830727894, 0.00011156240810269194, 0.00011142304221439029, 0.00011128385042461498, 0.00011114483251587837, 0.00011100598827096521, 0.0001108673174729315, 0.00011072881990510368, 0.00011059049535107951, 0.00011045234359472702, 0.00011031436442018366, 0.00011017655761185716, 0.00011003892295442454, 0.00010990146023283123, 0.00010976416923229208, 0.0001096270497382895, 0.00010949010153657443, 0.00010935332441316549, 0.000109216718154348, 0.00010908028254667485, 0.00010894401737696555, 0.00010880792243230539, 0.00010867199750004615, 0.00010853624236780532, 0.00010840065682346508, 0.00010826524065517336, 0.000108129993651342, 0.00010799491560064773, 0.00010786000629203124, 0.00010772526551469633, 0.00010759069305811072, 0.00010745628871200509, 0.00010732205226637223, 0.00010718798351146788, 0.00010705408223780978, 0.00010692034823617674, 0.00010678678129760958, 0.00010665338121341012, 0.00010652014777514031, 0.00010638708077462326, 0.00010625418000394137, 0.00010612144525543737, 0.00010598887632171334, 0.00010585647299562995, 0.00010572423507030715, 0.00010559216233912336, 0.0001054602545957145, 0.00010532851163397491, 0.00010519693324805636, 0.00010506551923236722, 0.00010493426938157347, 0.00010480318349059676, 0.00010467226135461559, 0.00010454150276906427, 0.0001044109075296321, 0.0001042804754322642, 0.00010415020627316055, 0.00010402009984877521, 0.00010389015595581706, 0.0001037603743912489, 0.00010363075495228666, 0.0001035012974364001, 0.00010337200164131204, 0.00010324286736499738, 0.00010311389440568419, 0.00010298508256185178, 0.00010285643163223183, 0.00010272794141580743, 0.0001025996117118122, 0.00010247144231973114, 0.00010234343303929974, 0.0001022155836705031, 0.00010208789401357674, 0.00010196036386900573, 0.00010183299303752383, 0.00010170578132011444, 0.00010157872851800888, 0.00010145183443268731, 0.00010132509886587784, 0.00010119852161955579, 0.00010107210249594436, 0.00010094584129751382, 0.00010081973782698068, 0.00010069379188730839, 0.00010056800328170659, 0.0001004423718136302, 0.00010031689728678022, 0.00010019157950510282, 0.00010006641827278861, 9.994141339427348e-05, 9.981656467423694e-05, 9.969187191760302e-05, 9.956733492953942e-05, 9.944295351545674e-05, 9.931872748100915e-05, 9.919465663209363e-05, 9.90707407748491e-05, 9.894697971565719e-05, 9.88233732611414e-05, 9.869992121816624e-05, 9.857662339383826e-05, 9.845347959550421e-05, 9.833048963075204e-05, 9.820765330741013e-05, 9.80849704335463e-05, 9.796244081746873e-05, 9.784006426772504e-05, 9.77178405931015e-05, 9.759576960262377e-05, 9.747385110555606e-05, 9.735208491140038e-05, 9.723047082989717e-05, 9.710900867102459e-05, 9.698769824499764e-05, 9.68665393622691e-05, 9.674553183352786e-05, 9.662467546969979e-05, 9.650397008194696e-05, 9.638341548166685e-05, 9.626301148049305e-05, 9.614275789029443e-05, 9.602265452317441e-05, 9.590270119147163e-05, 9.578289770775912e-05, 9.56632438848436e-05, 9.55437395357663e-05, 9.542438447380128e-05, 9.530517851245643e-05, 9.518612146547255e-05, 9.506721314682265e-05, 9.494845337071264e-05, 9.482984195158051e-05, 9.471137870409556e-05, 9.459306344315909e-05, 9.447489598390368e-05, 9.435687614169228e-05, 9.423900373211907e-05, 9.412127857100851e-05, 9.40037004744147e-05, 9.38862692586222e-05, 9.376898474014431e-05, 9.36518467357242e-05, 9.353485506233379e-05, 9.34180095371733e-05, 9.330130997767172e-05, 9.318475620148614e-05, 9.306834802650089e-05, 9.295208527082838e-05, 9.283596775280818e-05, 9.271999529100631e-05, 9.260416770421612e-05, 9.248848481145665e-05, 9.23729464319735e-05, 9.225755238523812e-05, 9.214230249094694e-05, 9.202719656902215e-05, 9.191223443961088e-05, 9.179741592308447e-05, 9.16827408400391e-05, 9.156820901129513e-05, 9.145382025789619e-05, 9.133957440111001e-05, 9.122547126242758e-05, 9.111151066356241e-05, 9.099769242645134e-05, 9.088401637325303e-05, 9.07704823263488e-05, 9.065709010834183e-05, 9.054383954205644e-05, 9.043073045053876e-05, 9.031776265705597e-05, 9.020493598509553e-05, 9.009225025836593e-05, 8.997970530079585e-05, 8.986730093653345e-05, 8.97550369899472e-05, 8.964291328562435e-05, 8.953092964837174e-05, 8.941908590321509e-05, 8.93073818753982e-05, 8.919581739038365e-05, 8.908439227385209e-05, 8.897310635170142e-05, 8.886195945004752e-05, 8.87509513952235e-05, 8.864008201377892e-05, 8.852935113248055e-05, 8.841875857831147e-05, 8.83083041784705e-05, 8.819798776037295e-05, 8.808780915164904e-05, 8.797776818014488e-05, 8.786786467392154e-05, 8.775809846125447e-05, 8.76484693706341e-05, 8.753897723076511e-05, 8.742962187056571e-05, 8.732040311916825e-05, 8.72113208059186e-05, 8.71023747603753e-05, 8.699356481231043e-05, 8.688489079170813e-05, 8.677635252876536e-05, 8.666794985389124e-05, 8.655968259770622e-05, 8.64515505910429e-05, 8.634355366494509e-05, 8.623569165066731e-05, 8.612796437967528e-05, 8.602037168364527e-05, 8.591291339446336e-05, 8.580558934422611e-05, 8.569839936523982e-05, 8.559134329001982e-05, 8.548442095129128e-05, 8.537763218198771e-05, 8.52709768152518e-05, 8.516445468443466e-05, 8.505806562309514e-05, 8.495180946500046e-05, 8.484568604412551e-05, 8.473969519465212e-05, 8.463383675096969e-05, 8.452811054767457e-05, 8.442251641956923e-05, 8.431705420166311e-05, 8.421172372917118e-05, 8.410652483751473e-05, 8.40014573623206e-05, 8.389652113942051e-05, 8.379171600485179e-05, 8.368704179485653e-05, 8.358249834588093e-05, 8.347808549457602e-05, 8.337380307779682e-05, 8.326965093260176e-05, 8.31656288962532e-05, 8.306173680621687e-05, 8.295797450016104e-05, 8.28543418159574e-05, 8.275083859167956e-05, 8.264746466560384e-05, 8.254421987620864e-05, 8.244110406217364e-05, 8.233811706238051e-05, 8.223525871591218e-05, 8.213252886205218e-05, 8.202992734028523e-05, 8.19274539902966e-05, 8.182510865197134e-05, 8.172289116539516e-05, 8.162080137085289e-05, 8.151883910882938e-05, 8.141700422000868e-05, 8.131529654527353e-05, 8.121371592570575e-05, 8.111226220258578e-05, 8.101093521739186e-05, 8.09097348118007e-05, 8.080866082768679e-05, 8.070771310712172e-05, 8.060689149237479e-05, 8.050619582591236e-05, 8.040562595039716e-05, 8.0305181708689e-05, 8.020486294384345e-05, 8.010466949911258e-05, 8.000460121794423e-05, 7.990465794398143e-05, 7.980483952106291e-05, 7.970514579322253e-05, 7.960557660468851e-05, 7.950613179988415e-05, 7.940681122342703e-05, 7.930761472012848e-05, 7.920854213499418e-05, 7.910959331322296e-05, 7.901076810020738e-05, 7.891206634153318e-05, 7.881348788297854e-05, 7.871503257051476e-05, 7.861670025030553e-05, 7.851849076870628e-05, 7.842040397226484e-05, 7.832243970772071e-05, 7.822459782200441e-05, 7.812687816223812e-05, 7.802928057573499e-05, 7.79318049099985e-05, 7.783445101272318e-05, 7.773721873179326e-05, 7.764010791528342e-05, 7.754311841145814e-05, 7.744625006877102e-05, 7.734950273586537e-05, 7.725287626157363e-05, 7.715637049491664e-05, 7.705998528510423e-05, 7.696372048153465e-05, 7.686757593379384e-05, 7.67715514916562e-05, 7.667564700508325e-05, 7.657986232422436e-05, 7.648419729941604e-05, 7.638865178118145e-05, 7.62932256202308e-05, 7.619791866746083e-05, 7.610273077395415e-05, 7.60076617909798e-05, 7.591271156999259e-05, 7.581787996263251e-05, 7.57231668207253e-05, 7.56285719962818e-05, 7.553409534149728e-05, 7.543973670875225e-05, 7.534549595061103e-05, 7.525137291982256e-05, 7.515736746931973e-05, 7.506347945221871e-05, 7.496970872181963e-05, 7.48760551316058e-05, 7.478251853524322e-05, 7.468909878658105e-05, 7.459579573965108e-05, 7.450260924866699e-05, 7.440953916802514e-05, 7.431658535230325e-05, 7.422374765626109e-05, 7.413102593483987e-05, 7.403842004316164e-05, 7.394592983652978e-05, 7.385355517042847e-05, 7.3761295900522e-05, 7.366915188265538e-05, 7.35771229728537e-05, 7.348520902732151e-05, 7.339340990244338e-05, 7.330172545478326e-05, 7.321015554108397e-05, 7.311870001826773e-05, 7.302735874343501e-05, 7.293613157386519e-05, 7.284501836701591e-05, 7.275401898052255e-05, 7.266313327219862e-05, 7.257236110003534e-05, 7.248170232220092e-05, 7.239115679704114e-05, 7.23007243830787e-05, 7.221040493901269e-05, 7.212019832371922e-05, 7.203010439625018e-05, 7.194012301583391e-05, 7.18502540418746e-05, 7.176049733395174e-05, 7.167085275182056e-05, 7.15813201554115e-05, 7.149189940482964e-05, 7.140259036035513e-05, 7.131339288244272e-05, 7.122430683172106e-05, 7.113533206899333e-05, 7.104646845523655e-05, 7.095771585160106e-05, 7.086907411941115e-05, 7.078054312016384e-05, 7.069212271552956e-05, 7.060381276735154e-05, 7.051561313764519e-05, 7.042752368859872e-05, 7.033954428257247e-05, 7.025167478209835e-05, 7.016391504988036e-05, 7.007626494879405e-05, 6.998872434188585e-05, 6.990129309237378e-05, 6.981397106364629e-05, 6.972675811926278e-05, 6.963965412295314e-05, 6.95526589386171e-05, 6.946577243032482e-05, 6.937899446231622e-05, 6.929232489900044e-05, 6.920576360495643e-05, 6.911931044493225e-05, 6.903296528384458e-05, 6.894672798677922e-05, 6.886059841899047e-05, 6.877457644590065e-05, 6.868866193310063e-05, 6.860285474634874e-05, 6.851715475157135e-05, 6.843156181486233e-05, 6.834607580248243e-05, 6.826069658085987e-05, 6.817542401658975e-05, 6.80902579764334e-05, 6.800519832731899e-05, 6.792024493634092e-05, 6.783539767075925e-05, 6.775065639800037e-05, 6.766602098565578e-05, 6.758149130148275e-05, 6.749706721340374e-05, 6.741274858950587e-05, 6.732853529804137e-05, 6.72444272074271e-05, 6.716042418624391e-05, 6.707652610323718e-05, 6.699273282731623e-05, 6.690904422755385e-05, 6.682546017318669e-05, 6.674198053361476e-05, 6.665860517840087e-05, 6.657533397727126e-05, 6.649216680011441e-05, 6.640910351698171e-05, 6.63261439980869e-05, 6.624328811380545e-05, 6.616053573467515e-05, 6.607788673139552e-05, 6.599534097482722e-05, 6.591289833599265e-05, 6.583055868607524e-05, 6.574832189641905e-05, 6.566618783852932e-05, 6.558415638407133e-05, 6.550222740487104e-05, 6.54204007729145e-05, 6.533867636034737e-05, 6.525705403947534e-05, 6.517553368276364e-05, 6.509411516283647e-05, 6.501279835247749e-05, 6.493158312462928e-05, 6.485046935239278e-05, 6.476945690902784e-05, 6.468854566795262e-05, 6.460773550274305e-05, 6.452702628713347e-05, 6.444641789501547e-05, 6.436591020043854e-05, 6.428550307760952e-05, 6.420519640089201e-05, 6.412499004480693e-05, 6.404488388403198e-05, 6.3964877793401e-05, 6.388497164790459e-05, 6.380516532268949e-05, 6.372545869305807e-05, 6.364585163446894e-05, 6.356634402253582e-05, 6.348693573302818e-05, 6.340762664187065e-05, 6.332841662514252e-05, 6.324930555907826e-05, 6.317029332006692e-05, 6.309137978465163e-05, 6.30125648295301e-05, 6.293384833155403e-05, 6.285523016772867e-05, 6.277671021521326e-05, 6.269828835132042e-05, 6.261996445351578e-05, 6.254173839941846e-05, 6.246361006679999e-05, 6.238557933358496e-05, 6.230764607785044e-05, 6.222981017782548e-05, 6.21520715118916e-05, 6.20744299585822e-05, 6.199688539658212e-05, 6.191943770472811e-05, 6.184208676200819e-05, 6.176483244756134e-05, 6.168767464067784e-05, 6.161061322079841e-05, 6.153364806751469e-05, 6.145677906056869e-05, 6.138000607985237e-05, 6.130332900540803e-05, 6.122674771742785e-05, 6.115026209625333e-05, 6.107387202237578e-05, 6.0997577376435784e-05, 6.0921378039222744e-05, 6.084527389167529e-05, 6.076926481488077e-05, 6.069335069007479e-05, 6.0617531398641716e-05, 6.054180682211367e-05, 6.046617684217111e-05, 6.039064134064228e-05, 6.031520019950271e-05, 6.023985330087573e-05, 6.016460052703189e-05, 6.008944176038852e-05, 6.001437688351011e-05, 5.993940577910791e-05, 5.986452833003932e-05, 5.978974441930853e-05, 5.9715053930065464e-05, 5.96404567456063e-05, 5.9565952749373044e-05, 5.949154182495298e-05, 5.941722385607912e-05, 5.934299872662972e-05, 5.9268866320627806e-05, 5.919482652224157e-05, 5.912087921578392e-05, 5.9047024285711983e-05, 5.897326161662749e-05, 5.889959109327639e-05, 5.882601260054824e-05, 5.8752526023476855e-05, 5.867913124723923e-05, 5.8605828157156125e-05, 5.853261663869153e-05, 5.8459496577452244e-05, 5.8386467859188253e-05, 5.8313530369792276e-05, 5.824068399529926e-05, 5.816792862188684e-05, 5.8095264135874826e-05, 5.8022690423724744e-05, 5.7950207372040356e-05, 5.787781486756667e-05, 5.7805512797190486e-05, 5.7733301047939925e-05, 5.766117950698388e-05, 5.758914806163255e-05, 5.7517206599336887e-05, 5.744535500768814e-05, 5.737359317441827e-05, 5.730192098739952e-05, 5.7230338334643856e-05, 5.71588451043035e-05, 5.708744118467034e-05, 5.701612646417554e-05, 5.694490083139005e-05, 5.687376417502359e-05, 5.6802716383925227e-05, 5.673175734708287e-05, 5.666088695362281e-05, 5.659010509281014e-05, 5.651941165404829e-05, 5.644880652687855e-05, 5.637828960098049e-05, 5.630786076617151e-05, 5.623751991240633e-05, 5.616726692977755e-05, 5.609710170851468e-05, 5.602702413898464e-05, 5.595703411169131e-05, 5.588713151727507e-05, 5.58173162465132e-05, 5.574758819031942e-05, 5.5677947239743426e-05, 5.560839328597132e-05, 5.553892622032514e-05, 5.546954593426238e-05, 5.540025231937642e-05, 5.533104526739609e-05, 5.526192467018514e-05, 5.519289041974284e-05, 5.5123942408202935e-05, 5.505508052783427e-05, 5.4986304671040226e-05, 5.491761473035832e-05, 5.48490105984606e-05, 5.47804921681532e-05, 5.471205933237586e-05, 5.4643711984202354e-05, 5.457545001684005e-05, 5.4507273323629394e-05, 5.443918179804449e-05, 5.437117533369213e-05, 5.430325382431229e-05, 5.423541716377769e-05, 5.416766524609335e-05, 5.409999796539698e-05, 5.403241521595853e-05, 5.3964916892179755e-05, 5.38975028885946e-05, 5.3830173099868774e-05, 5.376292742079927e-05, 5.369576574631479e-05, 5.362868797147532e-05, 5.356169399147162e-05, 5.349478370162577e-05, 5.3427956997390244e-05, 5.33612137743484e-05, 5.329455392821402e-05, 5.3227977354830914e-05, 5.3161483950173245e-05, 5.309507361034516e-05, 5.30287462315803e-05, 5.296250171024222e-05, 5.289633994282392e-05, 5.283026082594746e-05, 5.276426425636438e-05, 5.269835013095484e-05, 5.26325183467281e-05, 5.2566768800822074e-05, 5.250110139050291e-05, 5.2435516013165345e-05, 5.2370012566332315e-05, 5.230459094765448e-05, 5.223925105491064e-05, 5.21739927860073e-05, 5.21088160389782e-05, 5.204372071198477e-05, 5.1978706703315634e-05, 5.1913773911386205e-05, 5.184892223473917e-05, 5.178415157204357e-05, 5.171946182209535e-05, 5.1654852883816825e-05, 5.1590324656256366e-05, 5.152587703858867e-05, 5.1461509930114424e-05, 5.1397223230259814e-05, 5.133301683857697e-05, 5.1268890654743464e-05, 5.120484457856195e-05, 5.1140878509960594e-05, 5.107699234899223e-05, 5.1013185995834797e-05, 5.0949459350790955e-05, 5.0885812314287624e-05, 5.082224478687638e-05, 5.075875666923305e-05, 5.069534786215726e-05, 5.063201826657281e-05, 5.0568767783527295e-05, 5.050559631419164e-05, 5.04425037598605e-05, 5.037949002195184e-05, 5.0316555002006495e-05, 5.025369860168867e-05, 5.019092072278505e-05, 5.012822126720526e-05, 5.0065600136981495e-05, 5.000305723426804e-05, 4.9940592461341684e-05, 4.98782057206013e-05, 4.9815896914567414e-05, 4.975366594588259e-05, 4.969151271731102e-05, 4.962943713173809e-05, 4.956743909217087e-05, 4.950551850173722e-05, 4.94436752636863e-05, 4.938190928138813e-05, 4.932022045833317e-05, 4.925860869813271e-05, 4.9197073904518454e-05, 4.9135615981342095e-05, 4.9074234832575706e-05, 4.9012930362311304e-05, 4.895170247476048e-05, 4.889055107425474e-05, 4.882947606524508e-05, 4.8768477352301626e-05, 4.870755484011404e-05, 4.864670843349071e-05, 4.858593803735922e-05, 4.852524355676587e-05, 4.846462489687537e-05, 4.8404081962971125e-05, 4.8343614660454887e-05, 4.82832228948463e-05, 4.8222906571783315e-05, 4.8162665597021743e-05, 4.8102499876434883e-05, 4.804240931601395e-05, 4.798239382186726e-05, 4.7922453300220676e-05, 4.786258765741722e-05, 4.7802796799916616e-05, 4.774308063429575e-05, 4.7683439067248166e-05, 4.762387200558374e-05, 4.756437935622902e-05, 4.7504961026226796e-05, 4.744561692273576e-05, 4.738634695303082e-05, 4.732715102450272e-05, 4.726802904465764e-05, 4.720898092111764e-05, 4.715000656161985e-05, 4.709110587401691e-05, 4.703227876627656e-05, 4.6973525146481265e-05, 4.691484492282857e-05, 4.68562380036307e-05, 4.679770429731415e-05, 4.673924371242009e-05, 4.6680856157603926e-05, 4.662254154163492e-05, 4.656429977339665e-05, 4.6506130761886153e-05, 4.644803441621444e-05, 4.639001064560603e-05, 4.633205935939861e-05, 4.627418046704337e-05, 4.621637387810461e-05, 4.615863950225935e-05, 4.61009772492977e-05, 4.604338702912247e-05, 4.598586875174875e-05, 4.592842232730432e-05, 4.587104766602919e-05, 4.58137446782753e-05, 4.575651327450687e-05, 4.569935336529966e-05, 4.564226486134138e-05, 4.558524767343131e-05, 4.552830171247992e-05, 4.547142688950923e-05, 4.5414623115652374e-05, 4.53578903021533e-05, 4.530122836036705e-05, 4.524463720175942e-05, 4.5188116737906534e-05, 4.513166688049532e-05, 4.507528754132272e-05, 4.5018978632296065e-05, 4.496274006543277e-05, 4.490657175285989e-05, 4.485047360681451e-05, 4.4794445539643345e-05, 4.4738487463802373e-05, 4.468259929185716e-05, 4.4626780936482516e-05, 4.4571032310462076e-05, 4.45153533266887e-05, 4.445974389816403e-05, 4.4404203937998166e-05, 4.434873335941007e-05, 4.4293332075726784e-05, 4.423800000038389e-05, 4.4182737046925064e-05, 4.412754312900179e-05, 4.407241816037363e-05, 4.4017362054907893e-05, 4.3962374726579245e-05, 4.390745608947005e-05, 4.385260605777001e-05, 4.3797824545775774e-05, 4.374311146789138e-05, 4.3688466738627476e-05, 4.363389027260174e-05, 4.357938198453851e-05, 4.352494178926842e-05, 4.347056960172873e-05, 4.3416265336962965e-05, 4.336202891012054e-05, 4.330786023645712e-05, 4.32537592313342e-05, 4.31997258102188e-05, 4.314575988868377e-05, 4.3091861382407423e-05, 4.303803020717317e-05, 4.298426627886996e-05, 4.293056951349147e-05, 4.2876939827136587e-05, 4.282337713600898e-05, 4.276988135641678e-05, 4.27164524047729e-05, 4.2663090197594674e-05, 4.2609794651503486e-05, 4.2556565683225106e-05, 4.250340320958934e-05, 4.245030714752967e-05, 4.2397277414083615e-05, 4.2344313926392083e-05, 4.229141660169967e-05, 4.2238585357354376e-05, 4.2185820110807224e-05, 4.213312077961258e-05, 4.208048728142779e-05, 4.2027919534012874e-05, 4.197541745523078e-05, 4.192298096304707e-05, 4.1870609975529577e-05, 4.181830441084868e-05, 4.1766064187277014e-05, 4.171388922318906e-05, 4.166177943706158e-05, 4.1609734747472866e-05, 4.155775507310317e-05, 4.15058403327343e-05, 4.1453990445249326e-05, 4.140220532963285e-05, 4.13504849049707e-05, 4.129882909044955e-05, 4.124723780535726e-05, 4.1195710969082504e-05, 4.1144248501114446e-05, 4.1092850321043116e-05, 4.10415163485587e-05, 4.099024650345193e-05, 4.093904070561373e-05, 4.0887898875034894e-05, 4.0836820931806366e-05, 4.078580679611892e-05, 4.073485638826282e-05, 4.068396962862812e-05, 4.063314643770431e-05, 4.058238673608001e-05, 4.053169044444323e-05, 4.04810574835811e-05, 4.0430487774379445e-05, 4.0379981237823234e-05, 4.032953779499585e-05, 4.027915736707948e-05, 4.022883987535476e-05, 4.017858524120046e-05, 4.012839338609377e-05, 4.0078264231609986e-05, 4.0028197699422144e-05, 3.9978193711301356e-05, 3.992825218911644e-05, 3.987837305483363e-05, 3.982855623051689e-05, 3.9778801638327304e-05, 3.9729109200523365e-05, 3.967947883946071e-05, 3.9629910477591733e-05, 3.958040403746595e-05, 3.95309594417296e-05, 3.948157661312534e-05, 3.943225547449258e-05, 3.938299594876709e-05, 3.933379795898071e-05, 3.928466142826164e-05, 3.923558627983412e-05, 3.9186572437018076e-05, 3.91376198232295e-05, 3.9088728361979795e-05, 3.903989797687611e-05, 3.899112859162102e-05, 3.894242013001223e-05, 3.8893772515942805e-05, 3.8845185673400915e-05, 3.879665952646948e-05, 3.874819399932645e-05, 3.8699789016244494e-05, 3.865144450159068e-05, 3.860316037982683e-05, 3.855493657550887e-05, 3.850677301328714e-05, 3.845866961790615e-05, 3.84106263142042e-05, 3.8362643027113676e-05, 3.831471968166075e-05, 3.8266856202965056e-05, 3.821905251623997e-05, 3.817130854679228e-05, 3.812362422002189e-05, 3.807599946142211e-05, 3.8028434196579294e-05, 3.798092835117258e-05, 3.793348185097421e-05, 3.7886094621848886e-05, 3.783876658975411e-05, 3.77914976807399e-05, 3.774428782094844e-05, 3.769713693661438e-05, 3.765004495406451e-05, 3.7603011799717486e-05, 3.7556037400084045e-05, 3.750912168176675e-05, 3.746226457145964e-05, 3.741546599594862e-05, 3.736872588211076e-05, 3.7322044156914696e-05, 3.727542074742029e-05, 3.722885558077831e-05, 3.718234858423075e-05, 3.713589968511049e-05, 3.708950881084098e-05, 3.7043175888936524e-05, 3.6996900847002e-05, 3.695068361273251e-05, 3.6904524113913684e-05, 3.685842227842136e-05, 3.6812378034221276e-05, 3.676639130936943e-05, 3.672046203201142e-05, 3.66745901303828e-05, 3.662877553280879e-05, 3.658301816770394e-05, 3.6537317963572416e-05, 3.6491674849007703e-05, 3.644608875269231e-05, 3.640055960339801e-05, 3.635508732998555e-05, 3.630967186140438e-05, 3.626431312669295e-05, 3.6219011054978086e-05, 3.617376557547537e-05, 3.6128576617488786e-05, 3.6083444110410454e-05, 3.6038367983720883e-05, 3.599334816698869e-05, 3.594838458987026e-05, 3.590347718211007e-05, 3.585862587354034e-05, 3.5813830594080775e-05, 3.5769091273738793e-05, 3.572440784260927e-05, 3.5679780230874214e-05, 3.563520836880308e-05, 3.5590692186752214e-05, 3.554623161516513e-05, 3.550182658457224e-05, 3.545747702559055e-05, 3.5413182868923917e-05, 3.5368944045362795e-05, 3.532476048578387e-05, 3.5280632121150394e-05, 3.523655888251185e-05, 3.519254070100366e-05, 3.514857750784755e-05, 3.5104669234350874e-05, 3.506081581190702e-05, 3.501701717199507e-05, 3.497327324617951e-05, 3.492958396611052e-05, 3.488594926352364e-05, 3.4842369070239515e-05, 3.4798843318164156e-05, 3.475537193928863e-05, 3.4711954865688756e-05, 3.466859202952543e-05, 3.462528336304426e-05, 3.458202879857533e-05, 3.45388282685335e-05, 3.44956817054178e-05, 3.445258904181178e-05, 3.440955021038321e-05, 3.436656514388379e-05, 3.432363377514939e-05, 3.428075603709981e-05, 3.4237931862738454e-05, 3.41951611851526e-05, 3.4152443937513115e-05, 3.4109780053074165e-05, 3.4067169465173554e-05, 3.40246121072321e-05, 3.398210791275399e-05, 3.393965681532646e-05, 3.389725874861956e-05, 3.385491364638634e-05, 3.381262144246265e-05, 3.377038207076677e-05, 3.372819546529976e-05, 3.368606156014508e-05, 3.3643980289468384e-05, 3.360195158751773e-05, 3.355997538862333e-05, 3.351805162719725e-05, 3.347618023773371e-05, 3.343436115480854e-05, 3.339259431307948e-05, 3.3350879647285884e-05, 3.3309217092248464e-05, 3.326760658286953e-05, 3.322604805413271e-05, 3.318454144110267e-05, 3.314308667892539e-05, 3.310168370282784e-05, 3.306033244811776e-05, 3.301903285018391e-05, 3.2977784844495546e-05, 3.293658836660272e-05, 3.2895443352135965e-05, 3.2854349736806086e-05, 3.2813307456404356e-05, 3.277231644680226e-05, 3.273137664395122e-05, 3.269048798388285e-05, 3.264965040270866e-05, 3.2608863836619806e-05, 3.2568128221887335e-05, 3.25274434948619e-05, 3.248680959197348e-05, 3.244622644973171e-05, 3.2405694004725316e-05, 3.23652121936224e-05, 3.232478095317017e-05, 3.2284400220194704e-05, 3.224406993160115e-05, 3.2203790024373486e-05, 3.216356043557423e-05, 3.2123381102344687e-05, 3.2083251961904714e-05, 3.2043172951552403e-05, 3.200314400866441e-05, 3.196316507069538e-05, 3.192323607517828e-05, 3.188335695972409e-05, 3.1843527662021587e-05, 3.180374811983753e-05, 3.1764018271016444e-05, 3.1724338053480306e-05, 3.168470740522883e-05, 3.164512626433918e-05, 3.16055945689657e-05, 3.1566112257340165e-05, 3.152667926777151e-05, 3.148729553864557e-05, 3.144796100842537e-05, 3.140867561565059e-05, 3.136943929893785e-05, 3.1330251996980445e-05, 3.129111364854811e-05, 3.125202419248722e-05, 3.1212983567720534e-05, 3.117399171324697e-05, 3.113504856814181e-05, 3.109615407155642e-05, 3.105730816271804e-05, 3.101851078093004e-05, 3.0979761865571386e-05, 3.0941061356096955e-05, 3.090240919203724e-05, 3.0863805312998116e-05, 3.082524965866108e-05, 3.078674216878295e-05, 3.074828278319568e-05, 3.070987144180651e-05, 3.0671508084597776e-05, 3.06331926516266e-05, 3.059492508302518e-05, 3.055670531900048e-05, 3.0518533299834e-05, 3.0480408965882074e-05, 3.04423322575753e-05, 3.040430311541887e-05, 3.03663214799923e-05, 3.032838729194916e-05, 3.029050049201734e-05, 3.0252661020998756e-05, 3.021486881976911e-05, 3.0177123829278153e-05, 3.0139425990549368e-05, 3.0101775244679767e-05, 3.006417153284017e-05, 3.0026614796274654e-05, 2.9989104976300866e-05, 2.995164201430976e-05, 2.9914225851765338e-05, 2.9876856430204898e-05, 2.983953369123876e-05, 2.9802257576550035e-05, 2.9765028027894835e-05, 2.9727844987102036e-05, 2.969070839607303e-05, 2.9653618196781925e-05, 2.9616574331275347e-05, 2.9579576741672126e-05, 2.9542625370163643e-05, 2.9505720159013254e-05, 2.9468861050556613e-05, 2.9432047987201417e-05, 2.9395280911427134e-05, 2.935855976578526e-05, 2.9321884492899037e-05, 2.9285255035463256e-05, 2.924867133624442e-05, 2.9212133338080554e-05, 2.9175640983880917e-05, 2.9139194216626305e-05, 2.9102792979368537e-05, 2.9066437215230714e-05, 2.903012686740701e-05, 2.8993861879162388e-05, 2.895764219383285e-05, 2.892146775482519e-05, 2.888533850561672e-05, 2.884925438975555e-05, 2.881321535086028e-05, 2.8777221332619806e-05, 2.874127227879352e-05, 2.870536813321107e-05, 2.8669508839772116e-05, 2.8633694342446608e-05, 2.8597924585274283e-05, 2.856219951236494e-05, 2.8526519067898202e-05, 2.8490883196123258e-05, 2.8455291841359104e-05, 2.8419744947994293e-05, 2.8384242460486694e-05, 2.8348784323363713e-05, 2.8313370481222057e-05, 2.8278000878727486e-05, 2.8242675460615095e-05, 2.8207394171688802e-05, 2.8172156956821645e-05, 2.8136963760955515e-05, 2.8101814529100934e-05, 2.806670920633727e-05, 2.8031647737812504e-05, 2.7996630068742983e-05, 2.796165614441364e-05, 2.7926725910177756e-05, 2.789183931145674e-05, 2.785699629374033e-05, 2.7822196802586342e-05, 2.7787440783620466e-05, 2.7752728182536518e-05, 2.7718058945095954e-05, 2.768343301712813e-05, 2.7648850344530077e-05, 2.7614310873266267e-05, 2.757981454936881e-05, 2.7545361318937248e-05, 2.7510951128138298e-05, 2.747658392320609e-05, 2.7442259650441897e-05, 2.740797825621394e-05, 2.737373968695764e-05, 2.7339543889175116e-05, 2.730539080943548e-05, 2.7271280394374593e-05, 2.7237212590694818e-05, 2.7203187345165257e-05, 2.7169204604621508e-05, 2.7135264315965433e-05, 2.710136642616537e-05, 2.7067510882255913e-05, 2.7033697631337664e-05, 2.699992662057747e-05, 2.6966197797208156e-05, 2.6932511108528343e-05, 2.6898866501902662e-05, 2.6865263924761312e-05, 2.6831703324600316e-05, 2.679818464898127e-05, 2.6764707845531138e-05, 2.6731272861942465e-05, 2.6697879645973123e-05, 2.6664528145446113e-05, 2.6631218308249753e-05, 2.6597950082337466e-05, 2.6564723415727548e-05, 2.653153825650342e-05, 2.6498394552813167e-05, 2.646529225286979e-05, 2.6432231304950996e-05, 2.6399211657398943e-05, 2.6366233258620476e-05, 2.6333296057086883e-05, 2.6300400001333697e-05, 2.626754503996086e-05, 2.6234731121632538e-05, 2.6201958195076888e-05, 2.6169226209086246e-05, 2.6136535112516925e-05, 2.6103884854288993e-05, 2.60712753833865e-05, 2.603870664885705e-05, 2.6006178599812038e-05, 2.5973691185426426e-05, 2.594124435493853e-05, 2.5908838057650217e-05, 2.5876472242926683e-05, 2.5844146860196247e-05, 2.581186185895054e-05, 2.5779617188744283e-05, 2.5747412799195087e-05, 2.571524863998367e-05, 2.5683124660853442e-05, 2.565104081161072e-05, 2.561899704212453e-05, 2.5586993302326386e-05, 2.555502954221048e-05, 2.5523105711833482e-05, 2.5491221761314302e-05, 2.5459377640834312e-05, 2.5427573300637112e-05, 2.5395808691028323e-05, 2.536408376237578e-05, 2.5332398465109318e-05, 2.530075274972057e-05, 2.5269146566763183e-05, 2.5237579866852407e-05, 2.5206052600665305e-05, 2.5174564718940562e-05, 2.5143116172478273e-05, 2.5111706912140116e-05, 2.5080336888849164e-05, 2.504900605358966e-05, 2.5017714357407213e-05, 2.498646175140858e-05, 2.4955248186761474e-05, 2.492407361469478e-05, 2.489293798649814e-05, 2.4861841253522164e-05, 2.483078336717825e-05, 2.4799764278938355e-05, 2.476878394033519e-05, 2.4737842302962015e-05, 2.470693931847243e-05, 2.4676074938580558e-05, 2.4645249115060837e-05, 2.461446179974783e-05, 2.4583712944536393e-05, 2.455300250138148e-05, 2.4522330422297925e-05, 2.4491696659360686e-05, 2.4461101164704416e-05, 2.4430543890523695e-05, 2.4400024789072816e-05, 2.4369543812665594e-05, 2.4339100913675533e-05, 2.4308696044535646e-05, 2.4278329157738233e-05, 2.4248000205835066e-05, 2.4217709141437194e-05, 2.4187455917214745e-05, 2.4157240485897126e-05, 2.412706280027264e-05, 2.4096922813188692e-05, 2.406682047755158e-05, 2.403675574632632e-05, 2.4006728572536805e-05, 2.3976738909265607e-05, 2.3946786709653796e-05, 2.3916871926901085e-05, 2.3886994514265673e-05, 2.3857154425064003e-05, 2.382735161267098e-05, 2.3797586030519738e-05, 2.376785763210147e-05, 2.373816637096563e-05, 2.3708512200719532e-05, 2.367889507502857e-05, 2.364931494761602e-05, 2.361977177226285e-05, 2.359026550280788e-05, 2.3560796093147595e-05, 2.3531363497235962e-05, 2.3501967669084575e-05, 2.3472608562762498e-05, 2.3443286132396035e-05, 2.3414000332168964e-05, 2.3384751116322133e-05, 2.335553843915368e-05, 2.332636225501883e-05, 2.329722251832971e-05, 2.3268119183555513e-05, 2.3239052205222315e-05, 2.3210021537912875e-05, 2.3181027136266813e-05, 2.3152068954980406e-05, 2.312314694880641e-05, 2.3094261072554227e-05, 2.3065411281089708e-05, 2.303659752933497e-05, 2.3007819772268597e-05, 2.2979077964925258e-05, 2.2950372062395916e-05, 2.292170201982763e-05, 2.2893067792423374e-05, 2.28644693354422e-05, 2.2835906604199053e-05, 2.2807379554064587e-05, 2.277888814046531e-05, 2.2750432318883428e-05, 2.2722012044856632e-05, 2.269362727397832e-05, 2.26652779618972e-05, 2.2636964064317507e-05, 2.260868553699881e-05, 2.2580442335755823e-05, 2.255223441645858e-05, 2.252406173503224e-05, 2.2495924247456906e-05, 2.2467821909767785e-05, 2.243975467805501e-05, 2.2411722508463444e-05, 2.2383725357192854e-05, 2.2355763180497733e-05, 2.2327835934687087e-05, 2.2299943576124672e-05, 2.2272086061228595e-05, 2.2244263346471514e-05, 2.221647538838048e-05, 2.2188722143536723e-05, 2.2161003568575828e-05, 2.213331962018756e-05, 2.2105670255115657e-05, 2.2078055430158027e-05, 2.2050475102166536e-05, 2.202292922804684e-05, 2.1995417764758583e-05, 2.1967940669315023e-05, 2.1940497898783224e-05, 2.1913089410283896e-05, 2.188571516099119e-05, 2.1858375108132875e-05, 2.1831069208990154e-05, 2.1803797420897473e-05, 2.1776559701242702e-05, 2.174935600746693e-05, 2.1722186297064306e-05, 2.169505052758219e-05, 2.166794865662098e-05, 2.164088064183391e-05, 2.161384644092729e-05, 2.158684601166009e-05, 2.1559879311844174e-05, 2.1532946299344108e-05, 2.150604693207698e-05, 2.1479181168012553e-05, 2.1452348965173114e-05, 2.1425550281633258e-05, 2.1398785075520077e-05, 2.1372053305012966e-05, 2.1345354928343456e-05, 2.13186899037954e-05, 2.129205818970462e-05, 2.1265459744459093e-05, 2.1238894526498785e-05, 2.121236249431545e-05, 2.1185863606452834e-05, 2.115939782150645e-05, 2.1132965098123427e-05, 2.110656539500267e-05, 2.108019867089468e-05, 2.105386488460136e-05, 2.1027563994976203e-05, 2.1001295960924104e-05, 2.0975060741401182e-05, 2.0948858295414975e-05, 2.0922688582024076e-05, 2.089655156033834e-05, 2.0870447189518714e-05, 2.0844375428777024e-05, 2.0818336237376185e-05, 2.079232957462999e-05, 2.0766355399902945e-05, 2.0740413672610443e-05, 2.0714504352218557e-05, 2.0688627398243898e-05, 2.0662782770253797e-05, 2.063697042786594e-05, 2.0611190330748578e-05, 2.0585442438620338e-05, 2.0559726711250056e-05, 2.0534043108456942e-05, 2.0508391590110406e-05, 2.048277211612986e-05, 2.0457184646484914e-05, 2.0431629141195177e-05, 2.0406105560330094e-05, 2.0380613864009102e-05, 2.0355154012401452e-05, 2.0329725965726052e-05, 2.0304329684251647e-05, 2.0278965128296466e-05, 2.0253632258228426e-05, 2.0228331034464946e-05, 2.0203061417472788e-05, 2.0177823367768202e-05, 2.0152616845916773e-05, 2.0127441812533226e-05, 2.010229822828161e-05, 2.00771860538751e-05, 2.0052105250075847e-05, 2.0027055777695163e-05, 2.000203759759317e-05, 1.9977050670678992e-05, 1.995209495791059e-05, 1.992717042029458e-05, 1.9902277018886407e-05, 1.987741471479016e-05, 1.9852583469158418e-05, 1.982778324319238e-05, 1.980301399814173e-05, 1.9778275695304445e-05, 1.975356829602696e-05, 1.9728891761703992e-05, 1.970424605377838e-05, 1.967963113374127e-05, 1.9655046963131776e-05, 1.963049350353716e-05, 1.960597071659267e-05, 1.9581478563981382e-05, 1.9557017007434336e-05, 1.9532586008730374e-05, 1.950818552969599e-05, 1.9483815532205467e-05, 1.945947597818071e-05, 1.9435166829591092e-05, 1.9410888048453637e-05, 1.938663959683267e-05, 1.9362421436840018e-05, 1.9338233530634836e-05, 1.9314075840423444e-05, 1.9289948328459483e-05, 1.9265850957043745e-05, 1.924178368852401e-05, 1.9217746485295204e-05, 1.9193739309799226e-05, 1.916976212452479e-05, 1.9145814892007575e-05, 1.912189757483006e-05, 1.909801013562136e-05, 1.907415253705741e-05, 1.9050324741860656e-05, 1.9026526712800183e-05, 1.90027584126916e-05, 1.897901980439687e-05, 1.895531085082445e-05, 1.893163151492912e-05, 1.8907981759711854e-05, 1.8884361548219935e-05, 1.886077084354681e-05, 1.883720960883193e-05, 1.8813677807260928e-05, 1.8790175402065297e-05, 1.876670235652255e-05, 1.8743258633956093e-05, 1.8719844197735027e-05, 1.869645901127433e-05, 1.8673103038034677e-05, 1.8649776241522283e-05, 1.8626478585289065e-05, 1.8603210032932457e-05, 1.8579970548095277e-05, 1.855676009446586e-05, 1.8533578635777897e-05, 1.851042613581029e-05, 1.848730255838732e-05, 1.8464207867378327e-05, 1.8441142026697882e-05, 1.841810500030564e-05, 1.839509675220617e-05, 1.8372117246449125e-05, 1.8349166447129042e-05, 1.832624431838524e-05, 1.830335082440191e-05, 1.8280485929407997e-05, 1.825764959767704e-05, 1.8234841793527322e-05, 1.8212062481321587e-05, 1.8189311625467182e-05, 1.8166589190415927e-05, 1.8143895140663943e-05, 1.812122944075181e-05, 1.8098592055264398e-05, 1.807598294883072e-05, 1.805340208612408e-05, 1.80308494318619e-05, 1.8008324950805597e-05, 1.798582860776069e-05, 1.7963360367576682e-05, 1.7940920195146865e-05, 1.7918508055408535e-05, 1.7896123913342656e-05, 1.787376773397403e-05, 1.785143948237116e-05, 1.782913912364608e-05, 1.780686662295451e-05, 1.778462194549569e-05, 1.7762405056512248e-05, 1.774021592129032e-05, 1.771805450515941e-05, 1.7695920773492238e-05, 1.7673814691704904e-05, 1.7651736225256592e-05, 1.7629685339649726e-05, 1.760766200042982e-05, 1.7585666173185336e-05, 1.7563697823547828e-05, 1.7541756917191777e-05, 1.7519843419834444e-05, 1.7497957297236018e-05, 1.747609851519946e-05, 1.745426703957036e-05, 1.7432462836237057e-05, 1.7410685871130514e-05, 1.7388936110224158e-05, 1.736721351953404e-05, 1.734551806511855e-05, 1.7323849713078565e-05, 1.7302208429557313e-05, 1.728059418074022e-05, 1.7259006932855052e-05, 1.723744665217176e-05, 1.7215913305002335e-05, 1.7194406857700953e-05, 1.7172927276663814e-05, 1.715147452832901e-05, 1.7130048579176675e-05, 1.71086493957287e-05, 1.708727694454889e-05, 1.7065931192242808e-05, 1.7044612105457654e-05, 1.702331965088239e-05, 1.7002053795247568e-05, 1.698081450532523e-05, 1.6959601747929014e-05, 1.693841548991401e-05, 1.6917255698176622e-05, 1.6896122339654705e-05, 1.6875015381327414e-05, 1.6853934790215056e-05, 1.683288053337927e-05, 1.681185257792271e-05, 1.6790850890989223e-05, 1.67698754397637e-05, 1.6748926191471933e-05, 1.672800311338075e-05, 1.6707106172797863e-05, 1.668623533707174e-05, 1.6665390573591725e-05, 1.6644571849787906e-05, 1.6623779133130954e-05, 1.6603012391132313e-05, 1.6582271591343878e-05, 1.656155670135818e-05, 1.654086768880823e-05, 1.6520204521367372e-05, 1.6499567166749444e-05, 1.64789555927086e-05, 1.6458369767039193e-05, 1.6437809657575897e-05, 1.6417275232193562e-05, 1.639676645880709e-05, 1.6376283305371544e-05, 1.6355825739882024e-05, 1.6335393730373522e-05, 1.6314987244921078e-05, 1.6294606251639494e-05, 1.627425071868349e-05, 1.6253920614247577e-05, 1.6233615906565897e-05, 1.621333656391238e-05, 1.6193082554600565e-05, 1.617285384698351e-05, 1.6152650409453886e-05, 1.6132472210443837e-05, 1.611231921842487e-05, 1.609219140190799e-05, 1.607208872944342e-05, 1.605201116962076e-05, 1.603195869106885e-05, 1.601193126245562e-05, 1.5991928852488255e-05, 1.5971951429912997e-05, 1.5951998963515072e-05, 1.593207142211877e-05, 1.591216877458734e-05, 1.5892290989822827e-05, 1.587243803676622e-05, 1.5852609884397298e-05, 1.5832806501734523e-05, 1.5813027857835155e-05, 1.5793273921795002e-05, 1.5773544662748564e-05, 1.5753840049868903e-05, 1.5734160052367493e-05, 1.571450463949437e-05, 1.5694873780537968e-05, 1.5675267444825012e-05, 1.565568560172063e-05, 1.5636128220628214e-05, 1.5616595270989298e-05, 1.5597086722283695e-05, 1.5577602544029242e-05, 1.5558142705781934e-05, 1.5538707177135796e-05, 1.5519295927722755e-05, 1.549990892721276e-05, 1.5480546145313643e-05, 1.5461207551771e-05, 1.5441893116368303e-05, 1.542260280892677e-05, 1.5403336599305237e-05, 1.5384094457400273e-05, 1.5364876353146057e-05, 1.534568225651424e-05, 1.53265121375141e-05, 1.5307365966192264e-05, 1.5288243712632866e-05, 1.5269145346957406e-05, 1.5250070839324628e-05, 1.5231020159930644e-05, 1.521199327900878e-05, 1.5192990166829484e-05, 1.5174010793700417e-05, 1.5155055129966328e-05, 1.5136123146008936e-05, 1.5117214812247066e-05, 1.5098330099136388e-05, 1.5079468977169562e-05, 1.5060631416876107e-05, 1.504181738882228e-05, 1.5023026863611184e-05, 1.5004259811882643e-05, 1.4985516204313084e-05, 1.4966796011615645e-05, 1.4948099204540045e-05, 1.4929425753872465e-05, 1.4910775630435665e-05, 1.4892148805088847e-05, 1.4873545248727541e-05, 1.4854964932283736e-05, 1.4836407826725637e-05, 1.4817873903057784e-05, 1.4799363132320946e-05, 1.4780875485591986e-05, 1.476241093398398e-05, 1.4743969448646088e-05, 1.4725551000763432e-05, 1.4707155561557212e-05, 1.4688783102284576e-05, 1.4670433594238498e-05, 1.4652107008747921e-05, 1.4633803317177501e-05, 1.4615522490927743e-05, 1.4597264501434875e-05, 1.4579029320170734e-05, 1.4560816918642873e-05, 1.4542627268394437e-05, 1.4524460341004038e-05, 1.4506316108085877e-05, 1.4488194541289613e-05, 1.4470095612300241e-05, 1.445201929283821e-05, 1.4433965554659287e-05, 1.4415934369554452e-05, 1.4397925709350032e-05, 1.4379939545907435e-05, 1.4361975851123304e-05, 1.4344034596929388e-05, 1.4326115755292422e-05, 1.430821929821424e-05, 1.4290345197731646e-05, 1.4272493425916308e-05, 1.425466395487485e-05, 1.4236856756748748e-05, 1.4219071803714196e-05, 1.420130906798226e-05, 1.4183568521798604e-05, 1.416585013744365e-05, 1.4148153887232442e-05, 1.4130479743514537e-05, 1.4112827678674106e-05, 1.409519766512982e-05, 1.4077589675334728e-05, 1.4060003681776366e-05, 1.4042439656976645e-05, 1.4024897573491718e-05, 1.4007377403912102e-05, 1.3989879120862558e-05, 1.397240269700196e-05, 1.3954948105023443e-05, 1.3937515317654155e-05, 1.3920104307655385e-05, 1.3902715047822455e-05, 1.3885347510984588e-05, 1.3868001670005034e-05, 1.3850677497780936e-05, 1.383337496724322e-05, 1.3816094051356705e-05, 1.3798834723119981e-05, 1.3781596955565296e-05, 1.376438072175868e-05, 1.374718599479972e-05, 1.3730012747821672e-05, 1.3712860953991361e-05, 1.3695730586509056e-05, 1.3678621618608579e-05, 1.3661534023557188e-05, 1.3644467774655463e-05, 1.3627422845237415e-05, 1.3610399208670356e-05, 1.3593396838354808e-05, 1.3576415707724583e-05, 1.3559455790246691e-05, 1.3542517059421202e-05, 1.3525599488781401e-05, 1.3508703051893526e-05, 1.349182772235692e-05, 1.3474973473803898e-05, 1.3458140279899646e-05, 1.344132811434232e-05, 1.3424536950862932e-05, 1.3407766763225237e-05, 1.3391017525225836e-05, 1.3374289210694069e-05, 1.3357581793491887e-05, 1.3340895247514e-05, 1.332422954668763e-05, 1.3307584664972637e-05, 1.3290960576361412e-05, 1.3274357254878768e-05, 1.3257774674582038e-05, 1.3241212809560956e-05, 1.322467163393756e-05, 1.3208151121866284e-05, 1.3191651247533843e-05, 1.317517198515914e-05, 1.3158713308993342e-05, 1.3142275193319791e-05, 1.3125857612453881e-05, 1.3109460540743182e-05, 1.3093083952567224e-05, 1.3076727822337604e-05, 1.3060392124497891e-05, 1.3044076833523506e-05, 1.3027781923921827e-05, 1.3011507370232077e-05, 1.2995253147025218e-05, 1.2979019228904046e-05, 1.2962805590503082e-05, 1.2946612206488467e-05, 1.2930439051558083e-05, 1.2914286100441324e-05, 1.2898153327899223e-05, 1.2882040708724345e-05, 1.2865948217740673e-05, 1.284987582980371e-05, 1.2833823519800366e-05, 1.281779126264886e-05, 1.280177903329881e-05, 1.2785786806731127e-05, 1.2769814557957908e-05, 1.2753862262022533e-05, 1.2737929893999562e-05, 1.2722017428994618e-05, 1.2706124842144518e-05, 1.2690252108617045e-05, 1.2674399203611075e-05, 1.2658566102356462e-05, 1.2642752780113935e-05, 1.2626959212175201e-05, 1.2611185373862826e-05, 1.2595431240530141e-05, 1.2579696787561334e-05, 1.2563981990371337e-05, 1.2548286824405736e-05, 1.2532611265140872e-05, 1.2516955288083636e-05, 1.2501318868771586e-05, 1.2485701982772834e-05, 1.2470104605685948e-05, 1.2454526713140044e-05, 1.2438968280794686e-05, 1.2423429284339777e-05, 1.240790969949565e-05, 1.2392409502012977e-05, 1.237692866767265e-05, 1.2361467172285883e-05, 1.234602499169411e-05, 1.2330602101768876e-05, 1.2315198478411957e-05, 1.2299814097555145e-05, 1.2284448935160361e-05, 1.226910296721956e-05, 1.225377616975462e-05, 1.2238468518817439e-05, 1.222317999048983e-05, 1.2207910560883421e-05, 1.2192660206139747e-05, 1.2177428902430147e-05, 1.2162216625955663e-05, 1.2147023352947154e-05, 1.2131849059665082e-05, 1.2116693722399635e-05, 1.2101557317470617e-05, 1.2086439821227347e-05, 1.2071341210048756e-05, 1.2056261460343284e-05, 1.2041200548548775e-05, 1.2026158451132572e-05, 1.2011135144591418e-05, 1.199613060545135e-05, 1.1981144810267792e-05, 1.1966177735625461e-05, 1.1951229358138254e-05, 1.1936299654449373e-05, 1.1921388601231107e-05, 1.1906496175184958e-05, 1.1891622353041525e-05, 1.1876767111560418e-05, 1.1861930427530339e-05, 1.1847112277768986e-05, 1.1832312639122957e-05, 1.1817531488467836e-05, 1.1802768802708088e-05, 1.1788024558776977e-05, 1.1773298733636656e-05, 1.1758591304277982e-05, 1.1743902247720611e-05, 1.1729231541012916e-05, 1.1714579161231867e-05, 1.169994508548314e-05, 1.1685329290901012e-05, 1.1670731754648258e-05, 1.1656152453916243e-05, 1.164159136592483e-05, 1.1627048467922276e-05, 1.1612523737185316e-05, 1.1598017151019081e-05, 1.1583528686756982e-05, 1.1569058321760833e-05, 1.1554606033420646e-05, 1.1540171799154736e-05, 1.1525755596409631e-05, 1.151135740265997e-05, 1.1496977195408592e-05, 1.1482614952186442e-05, 1.1468270650552472e-05, 1.1453944268093725e-05, 1.1439635782425247e-05, 1.1425345171189987e-05, 1.1411072412058901e-05, 1.139681748273076e-05, 1.1382580360932257e-05, 1.1368361024417901e-05, 1.135415945096994e-05, 1.1339975618398431e-05, 1.1325809504541152e-05, 1.1311661087263508e-05, 1.1297530344458616e-05, 1.1283417254047205e-05, 1.1269321793977527e-05, 1.1255243942225449e-05, 1.1241183676794336e-05, 1.1227140975714988e-05, 1.1213115817045718e-05, 1.1199108178872174e-05, 1.1185118039307436e-05, 1.117114537649193e-05, 1.1157190168593331e-05, 1.1143252393806638e-05, 1.1129332030354098e-05, 1.1115429056485098e-05, 1.1101543450476261e-05, 1.1087675190631345e-05, 1.107382425528115e-05, 1.1059990622783626e-05, 1.104617427152368e-05, 1.1032375179913282e-05, 1.1018593326391367e-05, 1.1004828689423746e-05, 1.0991081247503192e-05, 1.097735097914934e-05, 1.0963637862908609e-05, 1.0949941877354269e-05, 1.093626300108636e-05, 1.0922601212731595e-05, 1.0908956490943449e-05, 1.0895328814402057e-05, 1.0881718161814136e-05, 1.0868124511913075e-05, 1.0854547843458756e-05, 1.084098813523765e-05, 1.082744536606273e-05, 1.081391951477338e-05, 1.0800410560235472e-05, 1.078691848134128e-05, 1.077344325700939e-05, 1.075998486618478e-05, 1.0746543287838733e-05, 1.0733118500968741e-05, 1.071971048459861e-05, 1.070631921777827e-05, 1.0692944679583889e-05, 1.0679586849117763e-05, 1.0666245705508244e-05, 1.0652921227909808e-05, 1.0639613395502978e-05, 1.0626322187494225e-05, 1.061304758311605e-05, 1.0599789561626903e-05, 1.0586548102311083e-05, 1.0573323184478826e-05, 1.0560114787466217e-05, 1.0546922890635092e-05, 1.0533747473373147e-05, 1.0520588515093755e-05, 1.0507445995236058e-05, 1.0494319893264884e-05, 1.0481210188670661e-05, 1.046811686096949e-05, 1.0455039889703061e-05, 1.044197925443857e-05, 1.0428934934768788e-05, 1.0415906910311981e-05, 1.0402895160711823e-05, 1.0389899665637488e-05, 1.0376920404783476e-05, 1.0363957357869708e-05, 1.0351010504641439e-05, 1.0338079824869169e-05, 1.0325165298348731e-05, 1.031226690490119e-05, 1.0299384624372767e-05, 1.0286518436634916e-05, 1.0273668321584233e-05, 1.0260834259142374e-05, 1.0248016229256133e-05, 1.0235214211897352e-05, 1.0222428187062843e-05, 1.0209658134774472e-05, 1.0196904035078999e-05, 1.0184165868048152e-05, 1.0171443613778566e-05, 1.0158737252391677e-05, 1.0146046764033812e-05, 1.0133372128876099e-05, 1.0120713327114378e-05, 1.0108070338969292e-05, 1.0095443144686185e-05, 1.0082831724535026e-05, 1.0070236058810508e-05, 1.0057656127831863e-05, 1.0045091911942963e-05, 1.0032543391512237e-05, 1.0020010546932582e-05, 1.0007493358621447e-05, 9.994991807020738e-06, 9.982505872596744e-06, 9.970035535840205e-06, 9.95758077726624e-06, 9.945141577414245e-06, 9.932717916847988e-06, 9.920309776155516e-06, 9.90791713594907e-06, 9.89553997686518e-06, 9.883178279564502e-06, 9.870832024731896e-06, 9.858501193076354e-06, 9.846185765330914e-06, 9.833885722252736e-06, 9.821601044623016e-06, 9.809331713246911e-06, 9.797077708953602e-06, 9.784839012596225e-06, 9.772615605051778e-06, 9.76040746722122e-06, 9.748214580029298e-06, 9.73603692442464e-06, 9.723874481379675e-06, 9.71172723189055e-06, 9.699595156977197e-06, 9.687478237683269e-06, 9.67537645507604e-06, 9.663289790246492e-06, 9.651218224309225e-06, 9.639161738402379e-06, 9.627120313687711e-06, 9.615093931350508e-06, 9.60308257259951e-06, 9.591086218667006e-06, 9.579104850808651e-06, 9.567138450303575e-06, 9.555186998454291e-06, 9.543250476586619e-06, 9.531328866049758e-06, 9.519422148216206e-06, 9.507530304481682e-06, 9.495653316265192e-06, 9.483791165008956e-06, 9.47194383217833e-06, 9.460111299261885e-06, 9.448293547771253e-06, 9.43649055924121e-06, 9.424702315229605e-06, 9.412928797317267e-06, 9.401169987108091e-06, 9.389425866228949e-06, 9.377696416329615e-06, 9.365981619082842e-06, 9.354281456184269e-06, 9.342595909352357e-06, 9.330924960328455e-06, 9.31926859087672e-06, 9.307626782784036e-06, 9.29599951786011e-06, 9.284386777937307e-06, 9.272788544870732e-06, 9.261204800538163e-06, 9.249635526839961e-06, 9.238080705699151e-06, 9.226540319061341e-06, 9.21501434889464e-06, 9.203502777189734e-06, 9.192005585959807e-06, 9.18052275724046e-06, 9.169054273089806e-06, 9.157600115588303e-06, 9.146160266838844e-06, 9.134734708966679e-06, 9.123323424119338e-06, 9.111926394466704e-06, 9.100543602200931e-06, 9.089175029536374e-06, 9.077820658709647e-06, 9.066480471979564e-06, 9.055154451627046e-06, 9.043842579955202e-06, 9.032544839289244e-06, 9.02126121197642e-06, 9.00999168038609e-06, 8.998736226909579e-06, 8.987494833960251e-06, 8.976267483973447e-06, 8.965054159406399e-06, 8.953854842738297e-06, 8.942669516470223e-06, 8.931498163125075e-06, 8.920340765247621e-06, 8.909197305404446e-06, 8.898067766183856e-06, 8.886952130195978e-06, 8.875850380072595e-06, 8.864762498467236e-06, 8.853688468055101e-06, 8.842628271532982e-06, 8.831581891619337e-06, 8.820549311054209e-06, 8.80953051259916e-06, 8.798525479037329e-06, 8.787534193173363e-06, 8.776556637833348e-06, 8.765592795864865e-06, 8.754642650136924e-06, 8.743706183539889e-06, 8.73278337898556e-06, 8.721874219407023e-06, 8.710978687758728e-06, 8.70009676701642e-06, 8.689228440177066e-06, 8.678373690258917e-06, 8.667532500301439e-06, 8.65670485336524e-06, 8.645890732532139e-06, 8.63509012090508e-06, 8.624303001608076e-06, 8.613529357786282e-06, 8.602769172605848e-06, 8.592022429253996e-06, 8.581289110938953e-06, 8.570569200889877e-06, 8.559862682356918e-06, 8.54916953861116e-06, 8.538489752944529e-06, 8.527823308669874e-06, 8.51717018912089e-06, 8.506530377652043e-06, 8.495903857638643e-06, 8.485290612476764e-06, 8.474690625583176e-06, 8.464103880395433e-06, 8.453530360371707e-06, 8.442970048990891e-06, 8.432422929752509e-06, 8.421888986176656e-06, 8.411368201804056e-06, 8.400860560195997e-06, 8.390366044934258e-06, 8.379884639621172e-06, 8.369416327879556e-06, 8.358961093352639e-06, 8.348518919704146e-06, 8.33808979061815e-06, 8.327673689799146e-06, 8.317270600971992e-06, 8.30688050788183e-06, 8.296503394294151e-06, 8.286139243994729e-06, 8.275788040789546e-06, 8.265449768504861e-06, 8.255124410987136e-06, 8.244811952102967e-06, 8.234512375739152e-06, 8.224225665802611e-06, 8.213951806220334e-06, 8.203690780939439e-06, 8.193442573927045e-06, 8.183207169170339e-06, 8.172984550676513e-06, 8.162774702472699e-06, 8.152577608606015e-06, 8.142393253143519e-06, 8.132221620172122e-06, 8.122062693798662e-06, 8.111916458149828e-06, 8.101782897372097e-06, 8.091661995631804e-06, 8.08155373711501e-06, 8.071458106027577e-06, 8.06137508659509e-06, 8.051304663062802e-06, 8.041246819695687e-06, 8.03120154077838e-06, 8.021168810615097e-06, 8.011148613529716e-06, 8.001140933865686e-06, 7.991145755985979e-06, 7.98116306427314e-06, 7.97119284312923e-06, 7.961235076975744e-06, 7.951289750253698e-06, 7.941356847423492e-06, 7.931436352964975e-06, 7.921528251377387e-06, 7.91163252717929e-06, 7.901749164908626e-06, 7.891878149122654e-06, 7.88201946439788e-06, 7.872173095330126e-06, 7.862339026534446e-06, 7.852517242645083e-06, 7.842707728315521e-06, 7.832910468218368e-06, 7.823125447045414e-06, 7.813352649507577e-06, 7.80359206033483e-06, 7.793843664276267e-06, 7.784107446100027e-06, 7.774383390593241e-06, 7.764671482562086e-06, 7.754971706831715e-06, 7.7452840482462e-06, 7.735608491668586e-06, 7.725945021980828e-06, 7.716293624083727e-06, 7.706654282896995e-06, 7.697026983359133e-06, 7.6874117104275e-06, 7.677808449078244e-06, 7.668217184306236e-06, 7.658637901125138e-06, 7.649070584567334e-06, 7.63951521968386e-06, 7.629971791544472e-06, 7.620440285237573e-06, 7.610920685870157e-06, 7.601412978567874e-06, 7.5919171484749035e-06, 7.582433180754023e-06, 7.572961060586542e-06, 7.563500773172246e-06, 7.5540523037294475e-06, 7.5446156374949235e-06, 7.535190759723854e-06, 7.52577765568988e-06, 7.5163763106850375e-06, 7.5069867100196975e-06, 7.497608839022618e-06, 7.4882426830408885e-06, 7.47888822743986e-06, 7.469545457603223e-06, 7.46021435893287e-06, 7.450894916848972e-06, 7.4415871167899085e-06, 7.432290944212217e-06, 7.423006384590637e-06, 7.413733423418057e-06, 7.404472046205446e-06, 7.395222238481913e-06, 7.385983985794646e-06, 7.376757273708847e-06, 7.367542087807801e-06, 7.358338413692754e-06, 7.349146236982975e-06, 7.3399655433156986e-06, 7.330796318346065e-06, 7.32163854774717e-06, 7.312492217210008e-06, 7.303357312443412e-06, 7.2942338191741e-06, 7.28512172314663e-06, 7.27602101012332e-06, 7.266931665884318e-06, 7.2578536762275364e-06, 7.248787026968587e-06, 7.239731703940856e-06, 7.230687692995372e-06, 7.22165498000088e-06, 7.2126335508437746e-06, 7.203623391428048e-06, 7.194624487675336e-06, 7.185636825524863e-06, 7.176660390933378e-06, 7.167695169875214e-06, 7.1587411483422245e-06, 7.149798312343724e-06, 7.140866647906552e-06, 7.131946141074959e-06, 7.123036777910661e-06, 7.114138544492791e-06, 7.105251426917832e-06, 7.096375411299673e-06, 7.08751048376955e-06, 7.078656630475988e-06, 7.06981383758485e-06, 7.060982091279285e-06, 7.0521613777596615e-06, 7.043351683243626e-06, 7.03455299396604e-06, 7.0257652961789264e-06, 7.01698857615153e-06, 7.008222820170199e-06, 6.99946801453845e-06, 6.99072414557691e-06, 6.981991199623259e-06, 6.973269163032276e-06, 6.964558022175792e-06, 6.955857763442622e-06, 6.947168373238622e-06, 6.9384898379866325e-06, 6.929822144126413e-06, 6.921165278114717e-06, 6.912519226425163e-06, 6.9038839755483065e-06, 6.895259511991579e-06, 6.886645822279229e-06, 6.878042892952379e-06, 6.869450710568959e-06, 6.860869261703661e-06, 6.852298532947979e-06, 6.843738510910162e-06, 6.835189182215147e-06, 6.826650533504622e-06, 6.818122551436956e-06, 6.809605222687151e-06, 6.801098533946904e-06, 6.7926024719244875e-06, 6.7841170233448165e-06, 6.775642174949386e-06, 6.76717791349622e-06, 6.758724225759921e-06, 6.7502810985316125e-06, 6.741848518618881e-06, 6.733426472845832e-06, 6.725014948053028e-06, 6.716613931097438e-06, 6.708223408852493e-06, 6.699843368207977e-06, 6.6914737960700865e-06, 6.683114679361376e-06, 6.6747660050207e-06, 6.666427760003265e-06, 6.6580999312805726e-06, 6.649782505840365e-06, 6.641475470686677e-06, 6.633178812839774e-06, 6.624892519336105e-06, 6.616616577228345e-06, 6.608350973585344e-06, 6.600095695492072e-06, 6.5918507300496795e-06, 6.583616064375381e-06, 6.575391685602523e-06, 6.567177580880524e-06, 6.558973737374819e-06, 6.550780142266913e-06, 6.542596782754324e-06, 6.534423646050527e-06, 6.526260719385007e-06, 6.5181079900032e-06, 6.509965445166442e-06, 6.501833072152028e-06, 6.493710858253101e-06, 6.48559879077871e-06, 6.477496857053761e-06, 6.469405044418958e-06, 6.461323340230853e-06, 6.453251731861793e-06, 6.445190206699866e-06, 6.437138752148948e-06, 6.429097355628651e-06, 6.421066004574269e-06, 6.413044686436825e-06, 6.40503338868302e-06, 6.397032098795177e-06, 6.389040804271301e-06, 6.3810594926249695e-06, 6.373088151385394e-06, 6.365126768097363e-06, 6.357175330321191e-06, 6.349233825632765e-06, 6.3413022416234964e-06, 6.333380565900258e-06, 6.325468786085442e-06, 6.317566889816903e-06, 6.309674864747903e-06, 6.301792698547175e-06, 6.293920378898809e-06, 6.286057893502315e-06, 6.27820523007257e-06, 6.270362376339764e-06, 6.262529320049446e-06, 6.254706048962475e-06, 6.246892550854968e-06, 6.239088813518342e-06, 6.231294824759268e-06, 6.223510572399614e-06, 6.215736044276496e-06, 6.2079712282422225e-06, 6.200216112164245e-06, 6.192470683925216e-06, 6.184734931422879e-06, 6.17700884257013e-06, 6.1692924052949655e-06, 6.161585607540429e-06, 6.153888437264657e-06, 6.1462008824408325e-06, 6.138522931057126e-06, 6.130854571116747e-06, 6.123195790637894e-06, 6.115546577653699e-06, 6.107906920212287e-06, 6.100276806376669e-06, 6.092656224224803e-06, 6.085045161849538e-06, 6.077443607358564e-06, 6.069851548874463e-06, 6.062268974534655e-06, 6.05469587249134e-06, 6.0471322309115585e-06, 6.039578037977129e-06, 6.032033281884601e-06, 6.024497950845304e-06, 6.016972033085292e-06, 6.009455516845295e-06, 6.001948390380775e-06, 5.994450641961826e-06, 5.986962259873225e-06, 5.979483232414384e-06, 5.9720135478993e-06, 5.964553194656599e-06, 5.957102161029488e-06, 5.949660435375705e-06, 5.942228006067564e-06, 5.934804861491902e-06, 5.927390990050032e-06, 5.9199863801578e-06, 5.912591020245482e-06, 5.905204898757836e-06, 5.897828004154056e-06, 5.890460324907721e-06, 5.883101849506843e-06, 5.875752566453812e-06, 5.868412464265352e-06, 5.86108153147256e-06, 5.853759756620865e-06, 5.846447128269969e-06, 5.839143634993901e-06, 5.831849265380961e-06, 5.824564008033675e-06, 5.8172878515688456e-06, 5.8100207846174585e-06, 5.8027627958247284e-06, 5.795513873850059e-06, 5.788274007366985e-06, 5.7810431850632256e-06, 5.77382139564063e-06, 5.766608627815129e-06, 5.759404870316781e-06, 5.7522101118897265e-06, 5.745024341292132e-06, 5.737847547296249e-06, 5.7306797186883154e-06, 5.723520844268609e-06, 5.716370912851396e-06, 5.709229913264887e-06, 5.70209783435128e-06, 5.694974664966709e-06, 5.6878603939812e-06, 5.680755010278714e-06, 5.6736585027570975e-06, 5.666570860328035e-06, 5.6594920719170965e-06, 5.6524221264636805e-06, 5.645361012920977e-06, 5.638308720256015e-06, 5.631265237449566e-06, 5.624230553496196e-06, 5.617204657404219e-06, 5.610187538195653e-06, 5.6031791849062565e-06, 5.596179586585487e-06, 5.58918873229645e-06, 5.582206611115944e-06, 5.575233212134413e-06, 5.5682685244559005e-06, 5.561312537198101e-06, 5.554365239492262e-06, 5.54742662048324e-06, 5.54049666932945e-06, 5.5335753752028246e-06, 5.526662727288848e-06, 5.519758714786517e-06, 5.512863326908291e-06, 5.505976552880135e-06, 5.499098381941473e-06, 5.4922288033451415e-06, 5.485367806357433e-06, 5.478515380258047e-06, 5.4716715143400484e-06, 5.464836197909914e-06, 5.458009420287441e-06, 5.451191170805796e-06, 5.444381438811476e-06, 5.437580213664251e-06, 5.4307874847372165e-06, 5.424003241416741e-06, 5.417227473102425e-06, 5.410460169207137e-06, 5.4037013191569745e-06, 5.396950912391212e-06, 5.3902089383623595e-06, 5.383475386536059e-06, 5.376750246391145e-06, 5.370033507419595e-06, 5.363325159126483e-06, 5.356625191030023e-06, 5.3499335926615235e-06, 5.343250353565342e-06, 5.336575463298925e-06, 5.329908911432764e-06, 5.323250687550352e-06, 5.316600781248223e-06, 5.309959182135905e-06, 5.303325879835881e-06, 5.296700863983632e-06, 5.290084124227551e-06, 5.283475650228991e-06, 5.2768754316622186e-06, 5.2702834582143714e-06, 5.263699719585501e-06, 5.257124205488523e-06, 5.250556905649175e-06, 5.243997809806061e-06, 5.237446907710601e-06, 5.2309041891269914e-06, 5.22436964383225e-06, 5.217843261616131e-06, 5.211325032281169e-06, 5.2048149456426405e-06, 5.198312991528513e-06, 5.191819159779494e-06, 5.185333440248976e-06, 5.1788558228030056e-06, 5.172386297320312e-06, 5.165924853692268e-06, 5.159471481822851e-06, 5.153026171628674e-06, 5.1465889130389465e-06, 5.140159695995434e-06, 5.133738510452503e-06, 5.127325346377027e-06, 5.1209201937484504e-06, 5.114523042558727e-06, 5.108133882812288e-06, 5.101752704526081e-06, 5.0953794977295215e-06, 5.089014252464455e-06, 5.082656958785193e-06, 5.076307606758473e-06, 5.069966186463411e-06, 5.063632687991558e-06, 5.057307101446799e-06, 5.050989416945416e-06, 5.0446796246160335e-06, 5.038377714599582e-06, 5.032083677049334e-06, 5.025797502130864e-06, 5.019519180022006e-06, 5.013248700912886e-06, 5.0069860550058915e-06, 5.000731232515617e-06, 4.9944842236689115e-06, 4.98824501870483e-06, 4.982013607874596e-06, 4.975789981441648e-06, 4.969574129681548e-06, 4.9633660428820375e-06, 4.957165711342987e-06, 4.950973125376361e-06, 4.944788275306249e-06, 4.9386111514688335e-06, 4.932441744212338e-06, 4.926280043897071e-06, 4.920126040895383e-06, 4.913979725591628e-06, 4.907841088382201e-06, 4.9017101196754656e-06, 4.8955868098917886e-06, 4.889471149463507e-06, 4.883363128834883e-06, 4.87726273846214e-06, 4.871169968813428e-06, 4.865084810368774e-06, 4.859007253620127e-06, 4.852937289071311e-06, 4.8468749072379865e-06, 4.8408200986476915e-06, 4.834772853839794e-06, 4.828733163365455e-06, 4.822701017787676e-06, 4.816676407681209e-06, 4.810659323632609e-06, 4.80464975624019e-06, 4.798647696113984e-06, 4.7926531338757796e-06, 4.78666606015908e-06, 4.780686465609064e-06, 4.7747143408826246e-06, 4.768749676648322e-06, 4.762792463586352e-06, 4.756842692388582e-06, 4.7509003537584795e-06, 4.744965438411145e-06, 4.739037937073283e-06, 4.7331178404831535e-06, 4.727205139390612e-06, 4.721299824557071e-06, 4.715401886755459e-06, 4.709511316770253e-06, 4.703628105397447e-06, 4.697752243444504e-06, 4.691883721730397e-06, 4.686022531085568e-06, 4.680168662351889e-06, 4.674322106382705e-06, 4.668482854042756e-06, 4.662650896208216e-06, 4.656826223766658e-06, 4.6510088276170135e-06, 4.6451986986696085e-06, 4.6393958278461234e-06, 4.633600206079555e-06, 4.6278118243142514e-06, 4.622030673505873e-06, 4.6162567446213545e-06, 4.610490028638947e-06, 4.604730516548138e-06, 4.598978199349699e-06, 4.5932330680556395e-06, 4.587495113689176e-06, 4.5817643272847596e-06, 4.576040699888046e-06, 4.5703242225558485e-06, 4.5646148863561785e-06, 4.558912682368206e-06, 4.553217601682218e-06, 4.54752963539966e-06, 4.54184877463309e-06, 4.536175010506147e-06, 4.5305083341535874e-06, 4.524848736721215e-06, 4.519196209365913e-06, 4.513550743255617e-06, 4.507912329569267e-06, 4.502280959496849e-06, 4.4966566242393544e-06, 4.491039315008742e-06, 4.485429023027973e-06, 4.479825739530973e-06, 4.474229455762594e-06, 4.468640162978658e-06, 4.463057852445879e-06, 4.457482515441901e-06, 4.451914143255269e-06, 4.446352727185383e-06, 4.440798258542538e-06, 4.435250728647884e-06, 4.429710128833388e-06, 4.424176450441869e-06, 4.418649684826962e-06, 4.4131298233530785e-06, 4.407616857395442e-06, 4.4021107783400495e-06, 4.3966115775836365e-06, 4.391119246533715e-06, 4.385633776608502e-06, 4.380155159236958e-06, 4.374683385858748e-06, 4.369218447924212e-06, 4.363760336894389e-06, 4.358309044240988e-06, 4.352864561446347e-06, 4.34742688000347e-06, 4.341995991415984e-06, 4.336571887198111e-06, 4.331154558874702e-06, 4.325743997981165e-06, 4.320340196063504e-06, 4.314943144678286e-06, 4.309552835392603e-06, 4.304169259784101e-06, 4.298792409440951e-06, 4.2934222759618075e-06, 4.288058850955844e-06, 4.282702126042715e-06, 4.277352092852521e-06, 4.272008743025843e-06, 4.266672068213703e-06, 4.26134206007753e-06, 4.2560187102892e-06, 4.250702010530963e-06, 4.245391952495483e-06, 4.240088527885799e-06, 4.234791728415295e-06, 4.22950154580773e-06, 4.224217971797196e-06, 4.218940998128096e-06, 4.213670616555164e-06, 4.208406818843435e-06, 4.203149596768209e-06, 4.197898942115091e-06, 4.192654846679916e-06, 4.1874173022687926e-06, 4.182186300698063e-06, 4.176961833794272e-06, 4.171743893394196e-06, 4.166532471344809e-06, 4.161327559503249e-06, 4.156129149736848e-06, 4.150937233923096e-06, 4.145751803949609e-06, 4.140572851714159e-06, 4.135400369124639e-06, 4.130234348099031e-06, 4.1250747805654395e-06, 4.119921658462024e-06, 4.114774973737039e-06, 4.109634718348793e-06, 4.104500884265625e-06, 4.099373463465922e-06, 4.094252447938099e-06, 4.089137829680551e-06, 4.084029600701693e-06, 4.078927753019925e-06, 4.073832278663593e-06, 4.068743169671033e-06, 4.063660418090496e-06, 4.058584015980189e-06, 4.05351395540824e-06, 4.0484502284526635e-06, 4.043392827201393e-06, 4.038341743752245e-06, 4.0332969702128854e-06, 4.028258498700863e-06, 4.023226321343571e-06, 4.018200430278217e-06, 4.013180817651855e-06, 4.008167475621342e-06, 4.003160396353319e-06, 3.9981595720242366e-06, 3.993164994820291e-06, 3.988176656937463e-06, 3.983194550581481e-06, 3.9782186679677855e-06, 3.97324900132157e-06, 3.968285542877733e-06, 3.963328284880858e-06, 3.958377219585233e-06, 3.953432339254828e-06, 3.948493636163249e-06, 3.943561102593787e-06, 3.938634730839344e-06, 3.9337145132024686e-06, 3.928800441995327e-06, 3.923892509539669e-06, 3.918990708166856e-06, 3.9140950302178276e-06, 3.909205468043074e-06, 3.904322014002659e-06, 3.899444660466193e-06, 3.894573399812795e-06, 3.889708224431126e-06, 3.8848491267193565e-06, 3.879996099085131e-06, 3.875149133945606e-06, 3.870308223727384e-06, 3.865473360866551e-06, 3.860644537808636e-06, 3.85582174700859e-06, 3.851004980930809e-06, 3.8461942320491e-06, 3.841389492846655e-06, 3.836590755816074e-06, 3.831798013459336e-06, 3.827011258287767e-06, 3.822230482822074e-06, 3.817455679592282e-06, 3.812686841137766e-06, 3.8079239600072215e-06, 3.803167028758633e-06, 3.7984160399592997e-06, 3.7936709861858087e-06, 3.7889318600239988e-06, 3.7841986540689914e-06, 3.779471360925157e-06, 3.774749973206087e-06, 3.7700344835346173e-06, 3.7653248845428027e-06, 3.7606211688718787e-06, 3.7559233291723036e-06, 3.751231358103687e-06, 3.746545248334831e-06, 3.7418649925436945e-06, 3.7371905834173634e-06, 3.7325220136520794e-06, 3.7278592759532074e-06, 3.7232023630352065e-06, 3.718551267621655e-06, 3.713905982445222e-06, 3.709266500247636e-06, 3.7046328137797175e-06, 3.700004915801318e-06, 3.6953827990813518e-06, 3.690766456397768e-06, 3.6861558805375165e-06, 3.6815510642965784e-06, 3.6769520004799336e-06, 3.6723586819015308e-06, 3.667771101384316e-06, 3.6631892517602002e-06, 3.6586131258700287e-06, 3.6540427165636107e-06, 3.649478016699687e-06, 3.6449190191459007e-06, 3.64036571677883e-06, 3.635818102483926e-06, 3.6312761691555463e-06, 3.626739909696926e-06, 3.6222093170201467e-06, 3.617684384046162e-06, 3.6131651037047697e-06, 3.6086514689345806e-06, 3.6041434726830458e-06, 3.5996411079064273e-06, 3.595144367569765e-06, 3.5906532446469155e-06, 3.5861677321204844e-06, 3.5816878229818645e-06, 3.5772135102312035e-06, 3.5727447868773734e-06, 3.5682816459379996e-06, 3.56382408043943e-06, 3.559372083416705e-06, 3.554925647913584e-06, 3.5504847669825173e-06, 3.5460494336846157e-06, 3.5416196410896755e-06, 3.537195382276151e-06, 3.532776650331125e-06, 3.52836343835034e-06, 3.523955739438139e-06, 3.519553546707498e-06, 3.515156853279996e-06, 3.5107656522857858e-06, 3.506379936863622e-06, 3.501999700160829e-06, 3.4976249353332737e-06, 3.4932556355453916e-06, 3.4888917939701568e-06, 3.4845334037890535e-06, 3.4801804581921094e-06, 3.4758329503778327e-06, 3.471490873553248e-06, 3.467154220933866e-06, 3.462822985743653e-06, 3.45849716121506e-06, 3.4541767405889914e-06, 3.4498617171147765e-06, 3.4455520840501964e-06, 3.4412478346614542e-06, 3.4369489622231483e-06, 3.432655460018295e-06, 3.4283673213383024e-06, 3.424084539482941e-06, 3.419807107760375e-06, 3.4155350194871043e-06, 3.411268267987997e-06, 3.407006846596258e-06, 3.4027507486534045e-06, 3.3984999675092876e-06, 3.3942544965220674e-06, 3.390014329058183e-06, 3.385779458492377e-06, 3.38154987820767e-06, 3.3773255815953293e-06, 3.3731065620549032e-06, 3.3688928129941607e-06, 3.364684327829124e-06, 3.3604810999840397e-06, 3.356283122891352e-06, 3.3520903899917267e-06, 3.347902894734024e-06, 3.3437206305752687e-06, 3.3395435909806794e-06, 3.3353717694236366e-06, 3.3312051593856564e-06, 3.3270437543564147e-06, 3.3228875478337225e-06, 3.3187365333234937e-06, 3.3145907043397794e-06, 3.310450054404709e-06, 3.306314577048522e-06, 3.3021842658095406e-06, 3.2980591142341406e-06, 3.293939115876777e-06, 3.2898242642999583e-06, 3.285714553074216e-06, 3.2816099757781314e-06, 3.2775105259983074e-06, 3.273416197329341e-06, 3.269326983373855e-06, 3.2652428777424397e-06, 3.2611638740536856e-06, 3.2570899659341533e-06, 3.2530211470183503e-06, 3.248957410948751e-06, 3.244898751375773e-06, 3.240845161957749e-06, 3.2367966363609493e-06, 3.232753168259558e-06, 3.2287147513356448e-06, 3.2246813792791873e-06, 3.220653045788046e-06, 3.216629744567939e-06, 3.2126114693324676e-06, 3.2085982138030654e-06, 3.2045899717090245e-06, 3.2005867367874726e-06, 3.196588502783342e-06, 3.1925952634493976e-06, 3.188607012546208e-06, 3.184623743842118e-06, 3.1806454511132753e-06, 3.176672128143603e-06, 3.172703768724772e-06, 3.1687403666562302e-06, 3.164781915745151e-06, 3.1608284098064583e-06, 3.156879842662805e-06, 3.1529362081445423e-06, 3.1489975000897466e-06, 3.145063712344191e-06, 3.14113483876132e-06, 3.1372108732022738e-06, 3.1332918095358605e-06, 3.129377641638532e-06, 3.125468363394405e-06, 3.121563968695237e-06, 3.1176644514404e-06, 3.113769805536908e-06, 3.1098800248993652e-06, 3.105995103449994e-06, 3.1021150351186095e-06, 3.098239813842593e-06, 3.0943694335669157e-06, 3.0905038882441136e-06, 3.08664317183426e-06, 3.0827872783049905e-06, 3.078936201631476e-06, 3.0750899357963973e-06, 3.0712484747899745e-06, 3.067411812609913e-06, 3.063579943261433e-06, 3.059752860757243e-06, 3.0559305591175142e-06, 3.0521130323699067e-06, 3.0483002745495385e-06, 3.0444922796989634e-06, 3.0406890418681956e-06, 3.036890555114679e-06, 3.0330968135032676e-06, 3.0293078111062446e-06, 3.025523542003298e-06, 3.021744000281496e-06, 3.0179691800353142e-06, 3.0141990753665853e-06, 3.010433680384525e-06, 3.0066729892057076e-06, 3.0029169959540424e-06, 2.9991656947607943e-06, 2.99541907976456e-06, 2.9916771451112418e-06, 2.9879398849540713e-06, 2.9842072934535847e-06, 2.9804793647775955e-06, 2.9767560931012254e-06, 2.9730374726068514e-06, 2.9693234974841332e-06, 2.9656141619299893e-06, 2.9619094601485713e-06, 2.9582093863512873e-06, 2.9545139347567767e-06, 2.950823099590885e-06, 2.9471368750866868e-06, 2.9434552554844608e-06, 2.9397782350316648e-06, 2.9361058079829594e-06, 2.9324379686001815e-06, 2.928774711152321e-06, 2.9251160299155475e-06, 2.921461919173161e-06, 2.9178123732156175e-06, 2.914167386340506e-06, 2.9105269528525233e-06, 2.9068910670634965e-06, 2.9032597232923584e-06, 2.8996329158651237e-06, 2.89601063911491e-06, 2.892392887381914e-06, 2.888779655013388e-06, 2.885170936363666e-06, 2.8815667257941137e-06, 2.877967017673157e-06, 2.874371806376256e-06, 2.8707810862858816e-06, 2.867194851791539e-06, 2.8636130972897407e-06, 2.860035817183985e-06, 2.8564630058847747e-06, 2.8528946578095977e-06, 2.8493307673828986e-06, 2.8457713290361035e-06, 2.842216337207594e-06, 2.8386657863426843e-06, 2.8351196708936487e-06, 2.8315779853196704e-06, 2.8280407240868706e-06, 2.8245078816682822e-06, 2.820979452543829e-06, 2.817455431200344e-06, 2.813935812131548e-06, 2.8104205898380267e-06, 2.8069097588272486e-06, 2.8034033136135447e-06, 2.7999012487180836e-06, 2.7964035586688985e-06, 2.7929102380008373e-06, 2.7894212812555917e-06, 2.7859366829816703e-06, 2.782456437734378e-06, 2.7789805400758354e-06, 2.7755089845749574e-06, 2.7720417658074275e-06, 2.7685788783557207e-06, 2.765120316809079e-06, 2.7616660757634905e-06, 2.758216149821707e-06, 2.7547705335932238e-06, 2.7513292216942547e-06, 2.747892208747759e-06, 2.7444594893833943e-06, 2.7410310582375397e-06, 2.737606909953276e-06, 2.7341870391803614e-06, 2.730771440575252e-06, 2.7273601088010785e-06, 2.7239530385276255e-06, 2.720550224431349e-06, 2.7171516611953566e-06, 2.713757343509383e-06, 2.7103672660698154e-06, 2.7069814235796477e-06, 2.703599810748505e-06, 2.7002224222926213e-06, 2.6968492529348174e-06, 2.6934802974045198e-06, 2.6901155504377396e-06, 2.6867550067770493e-06, 2.6833986611716035e-06, 2.680046508377117e-06, 2.67669854315584e-06, 2.6733547602765816e-06, 2.6700151545146847e-06, 2.666679720652005e-06, 2.663348453476936e-06, 2.660021347784363e-06, 2.656698398375687e-06, 2.6533796000588036e-06, 2.6500649476480804e-06, 2.646754435964377e-06, 2.643448059835023e-06, 2.640145814093796e-06, 2.63684769358094e-06, 2.633553693143147e-06, 2.6302638076335304e-06, 2.626978031911653e-06, 2.6236963608434804e-06, 2.620418789301405e-06, 2.617145312164226e-06, 2.6138759243171253e-06, 2.6106106206516877e-06, 2.6073493960658806e-06, 2.6040922454640312e-06, 2.6008391637568447e-06, 2.5975901458613856e-06, 2.594345186701053e-06, 2.5911042812056027e-06, 2.5878674243111235e-06, 2.5846346109600163e-06, 2.5814058361010197e-06, 2.5781810946891625e-06, 2.5749603816857897e-06, 2.5717436920585427e-06, 2.5685310207813323e-06, 2.565322362834365e-06, 2.562117713204116e-06, 2.5589170668833106e-06, 2.5557204188709427e-06, 2.5525277641722535e-06, 2.549339097798711e-06, 2.546154414768032e-06, 2.5429737101041395e-06, 2.5397969788371867e-06, 2.536624216003534e-06, 2.533455416645731e-06, 2.5302905758125316e-06, 2.5271296885588758e-06, 2.5239727499458686e-06, 2.5208197550407963e-06, 2.517670698917109e-06, 2.5145255766543963e-06, 2.5113843833384087e-06, 2.5082471140610355e-06, 2.505113763920284e-06, 2.5019843280203024e-06, 2.498858801471338e-06, 2.4957371793897596e-06, 2.492619456898036e-06, 2.4895056291247163e-06, 2.4863956912044494e-06, 2.4832896382779593e-06, 2.4801874654920306e-06, 2.4770891679995206e-06, 2.4739947409593444e-06, 2.4709041795364496e-06, 2.4678174789018427e-06, 2.4647346342325444e-06, 2.4616556407116132e-06, 2.458580493528126e-06, 2.4555091878771556e-06, 2.452441718959791e-06, 2.4493780819831154e-06, 2.446318272160187e-06, 2.4432622847100567e-06, 2.4402101148577475e-06, 2.437161757834235e-06, 2.4341172088764647e-06, 2.4310764632273332e-06, 2.4280395161356655e-06, 2.4250063628562403e-06, 2.421976998649746e-06, 2.4189514187828048e-06, 2.4159296185279515e-06, 2.412911593163615e-06, 2.409897337974133e-06, 2.406886848249737e-06, 2.4038801192865266e-06, 2.4008771463864915e-06, 2.3978779248574903e-06, 2.3948824500132305e-06, 2.39189071717329e-06, 2.388902721663078e-06, 2.385918458813854e-06, 2.382937923962712e-06, 2.379961112452556e-06, 2.3769880196321234e-06, 2.374018640855959e-06, 2.3710529714843997e-06, 2.3680910068835905e-06, 2.365132742425466e-06, 2.362178173487728e-06, 2.3592272954538667e-06, 2.356280103713139e-06, 2.3533365936605485e-06, 2.3503967606968685e-06, 2.347460600228601e-06, 2.344528107667999e-06, 2.3415992784330467e-06, 2.338674107947439e-06, 2.3357525916406007e-06, 2.332834724947666e-06, 2.32992050330946e-06, 2.327009922172514e-06, 2.324102976989049e-06, 2.321199663216955e-06, 2.3182999763198102e-06, 2.3154039117668462e-06, 2.3125114650329655e-06, 2.3096226315987235e-06, 2.3067374069503094e-06, 2.303855786579563e-06, 2.300977765983955e-06, 2.2981033406665712e-06, 2.2952325061361246e-06, 2.29236525790694e-06, 2.289501591498933e-06, 2.2866415024376287e-06, 2.2837849862541412e-06, 2.280932038485155e-06, 2.2780826546729476e-06, 2.275236830365347e-06, 2.2723945611157573e-06, 2.2695558424831353e-06, 2.2667206700319747e-06, 2.2638890393323226e-06, 2.261060945959759e-06, 2.2582363854953796e-06, 2.2554153535258115e-06, 2.2525978456431965e-06, 2.2497838574451694e-06, 2.2469733845348817e-06, 2.24416642252096e-06, 2.2413629670175305e-06, 2.2385630136441965e-06, 2.235766558026023e-06, 2.2329735957935514e-06, 2.230184122582781e-06, 2.2273981340351526e-06, 2.2246156257975612e-06, 2.221836593522342e-06, 2.2190610328672484e-06, 2.21628893949547e-06, 2.213520309075614e-06, 2.210755137281688e-06, 2.2079934197931174e-06, 2.2052351522947104e-06, 2.2024803304766776e-06, 2.1997289500346132e-06, 2.196981006669477e-06, 2.1942364960876102e-06, 2.1914954140007193e-06, 2.188757756125855e-06, 2.1860235181854294e-06, 2.1832926959072e-06, 2.1805652850242477e-06, 2.1778412812750014e-06, 2.175120680403196e-06, 2.172403478157896e-06, 2.169689670293477e-06, 2.166979252569605e-06, 2.164272220751256e-06, 2.1615685706086964e-06, 2.1588682979174644e-06, 2.1561713984583867e-06, 2.153477868017562e-06, 2.15078770238634e-06, 2.148100897361341e-06, 2.1454174487444344e-06, 2.1427373523427246e-06, 2.1400606039685673e-06, 2.1373871994395355e-06, 2.1347171345784377e-06, 2.1320504052133005e-06, 2.1293870071773516e-06, 2.1267269363090347e-06, 2.124070188451992e-06, 2.1214167594550473e-06, 2.118766645172221e-06, 2.1161198414627123e-06, 2.113476344190883e-06, 2.110836149226275e-06, 2.1081992524435757e-06, 2.1055656497226377e-06, 2.1029353369484593e-06, 2.100308310011169e-06, 2.0976845648060405e-06, 2.0950640972334746e-06, 2.0924469031989834e-06, 2.0898329786132043e-06, 2.087222319391883e-06, 2.0846149214558568e-06, 2.0820107807310698e-06, 2.0794098931485545e-06, 2.0768122546444167e-06, 2.0742178611598528e-06, 2.0716267086411155e-06, 2.069038793039532e-06, 2.0664541103114873e-06, 2.0638726564184065e-06, 2.061294427326771e-06, 2.058719419008102e-06, 2.05614762743894e-06, 2.053579048600864e-06, 2.0510136784804733e-06, 2.0484515130693683e-06, 2.045892548364173e-06, 2.0433367803664976e-06, 2.040784205082957e-06, 2.038234818525156e-06, 2.0356886167096692e-06, 2.0331455956580607e-06, 2.0306057513968623e-06, 2.0280690799575604e-06, 2.0255355773766083e-06, 2.023005239695412e-06, 2.0204780629603103e-06, 2.017954043222593e-06, 2.0154331765384824e-06, 2.0129154589691164e-06, 2.0104008865805685e-06, 2.0078894554438112e-06, 2.005381161634737e-06, 2.002876001234139e-06, 2.0003739703276965e-06, 1.9978750650059903e-06, 1.9953792813644826e-06, 1.9928866155035046e-06, 1.990397063528269e-06, 1.9879106215488536e-06, 1.985427285680185e-06, 1.982947052042058e-06, 1.9804699167590996e-06, 1.9779958759607894e-06, 1.975524925781441e-06, 1.9730570623601873e-06, 1.9705922818409954e-06, 1.968130580372648e-06, 1.9656719541087296e-06, 1.9632163992076395e-06, 1.9607639118325758e-06, 1.9583144881515198e-06, 1.95586812433725e-06, 1.9534248165673258e-06, 1.9509845610240717e-06, 1.9485473538945945e-06, 1.9461131913707505e-06, 1.943682069649164e-06, 1.9412539849312105e-06, 1.9388289334229996e-06, 1.936406911335392e-06, 1.9339879148839805e-06, 1.931571940289076e-06, 1.9291589837757213e-06, 1.9267490415736747e-06, 1.9243421099173944e-06, 1.9219381850460554e-06, 1.919537263203518e-06, 1.917139340638345e-06, 1.9147444136037855e-06, 1.9123524783577582e-06, 1.9099635311628674e-06, 1.907577568286386e-06, 1.90519458600024e-06, 1.902814580581022e-06, 1.9004375483099765e-06, 1.8980634854729837e-06, 1.8956923883605733e-06, 1.8933242532679084e-06, 1.8909590764947712e-06, 1.888596854345579e-06, 1.8862375831293528e-06, 1.883881259159734e-06, 1.8815278787549692e-06, 1.8791774382378943e-06, 1.8768299339359492e-06, 1.874485362181161e-06, 1.872143719310129e-06, 1.8698050016640394e-06, 1.8674692055886488e-06, 1.8651363274342684e-06, 1.8628063635557824e-06, 1.8604793103126152e-06, 1.8581551640687488e-06, 1.8558339211927076e-06, 1.8535155780575429e-06, 1.8512001310408457e-06, 1.8488875765247331e-06, 1.8465779108958317e-06, 1.8442711305452918e-06, 1.841967231868772e-06, 1.8396662112664235e-06, 1.837368065142904e-06, 1.8350727899073638e-06, 1.8327803819734278e-06, 1.8304908377592145e-06, 1.8282041536873046e-06, 1.825920326184757e-06, 1.8236393516830934e-06, 1.8213612266182847e-06, 1.8190859474307633e-06, 1.8168135105654078e-06, 1.8145439124715293e-06, 1.812277149602883e-06, 1.8100132184176547e-06, 1.8077521153784456e-06, 1.8054938369522876e-06, 1.803238379610614e-06, 1.8009857398292754e-06, 1.7987359140885248e-06, 1.7964888988730028e-06, 1.7942446906717507e-06, 1.7920032859781961e-06, 1.7897646812901373e-06, 1.7875288731097571e-06, 1.7852958579436078e-06, 1.7830656323025968e-06, 1.7808381927019989e-06, 1.7786135356614428e-06, 1.7763916577048946e-06, 1.7741725553606763e-06, 1.7719562251614335e-06, 1.769742663644153e-06, 1.7675318673501476e-06, 1.7653238328250415e-06, 1.7631185566187833e-06, 1.7609160352856318e-06, 1.7587162653841405e-06, 1.7565192434771716e-06, 1.7543249661318811e-06, 1.7521334299197039e-06, 1.7499446314163707e-06, 1.747758567201877e-06, 1.7455752338605e-06, 1.7433946279807843e-06, 1.7412167461555264e-06, 1.7390415849817885e-06, 1.736869141060884e-06, 1.7346994109983629e-06, 1.7325323914040241e-06, 1.7303680788919028e-06, 1.7282064700802536e-06, 1.7260475615915654e-06, 1.7238913500525464e-06, 1.7217378320941098e-06, 1.719587004351389e-06, 1.7174388634637094e-06, 1.715293406074603e-06, 1.713150628831796e-06, 1.711010528387192e-06, 1.7088731013968866e-06, 1.706738344521153e-06, 1.7046062544244268e-06, 1.7024768277753199e-06, 1.7003500612466059e-06, 1.6982259515152054e-06, 1.6961044952622027e-06, 1.693985689172816e-06, 1.691869529936413e-06, 1.6897560142464982e-06, 1.6876451388006962e-06, 1.6855369003007668e-06, 1.6834312954525902e-06, 1.6813283209661522e-06, 1.6792279735555578e-06, 1.6771302499390166e-06, 1.6750351468388293e-06, 1.6729426609813998e-06, 1.670852789097221e-06, 1.6687655279208627e-06, 1.6666808741909838e-06, 1.664598824650307e-06, 1.6625193760456326e-06, 1.6604425251278245e-06, 1.6583682686517967e-06, 1.656296603376526e-06, 1.6542275260650378e-06, 1.6521610334843932e-06, 1.650097122405699e-06, 1.6480357896040976e-06, 1.6459770318587497e-06, 1.6439208459528519e-06, 1.6418672286736072e-06, 1.6398161768122417e-06, 1.6377676871639888e-06, 1.6357217565280774e-06, 1.6336783817077434e-06, 1.631637559510216e-06, 1.6295992867467044e-06, 1.62756356023241e-06, 1.6255303767865125e-06, 1.6234997332321565e-06, 1.621471626396464e-06, 1.6194460531105204e-06, 1.6174230102093616e-06, 1.615402494531988e-06, 1.6133845029213378e-06, 1.611369032224302e-06, 1.6093560792917095e-06, 1.6073456409783157e-06, 1.6053377141428126e-06, 1.6033322956478175e-06, 1.6013293823598576e-06, 1.5993289711493836e-06, 1.597331058890755e-06, 1.5953356424622283e-06, 1.5933427187459703e-06, 1.5913522846280316e-06, 1.5893643369983615e-06, 1.587378872750794e-06, 1.5853958887830354e-06, 1.5834153819966755e-06, 1.581437349297175e-06, 1.5794617875938517e-06, 1.577488693799893e-06, 1.5755180648323419e-06, 1.5735498976120848e-06, 1.571584189063863e-06, 1.569620936116259e-06, 1.5676601357016844e-06, 1.5657017847563934e-06, 1.563745880220457e-06, 1.5617924190377766e-06, 1.5598413981560712e-06, 1.5578928145268654e-06, 1.555946665105499e-06, 1.5540029468511162e-06, 1.5520616567266513e-06, 1.5501227916988407e-06, 1.5481863487382103e-06, 1.546252324819062e-06, 1.5443207169194885e-06, 1.542391522021347e-06, 1.540464737110272e-06, 1.538540359175665e-06, 1.5366183852106797e-06, 1.5346988122122339e-06, 1.532781637180997e-06, 1.5308668571213773e-06, 1.5289544690415332e-06, 1.527044469953361e-06, 1.525136856872481e-06, 1.5232316268182502e-06, 1.521328776813749e-06, 1.519428303885768e-06, 1.517530205064824e-06, 1.5156344773851312e-06, 1.5137411178846179e-06, 1.5118501236049119e-06, 1.5099614915913289e-06, 1.5080752188928838e-06, 1.5061913025622775e-06, 1.5043097396558854e-06, 1.5024305272337674e-06, 1.5005536623596567e-06, 1.498679142100946e-06, 1.4968069635287025e-06, 1.4949371237176414e-06, 1.49306961974614e-06, 1.491204448696226e-06, 1.489341607653564e-06, 1.4874810937074668e-06, 1.4856229039508836e-06, 1.4837670354803878e-06, 1.4819134853961866e-06, 1.4800622508021104e-06, 1.4782133288055999e-06, 1.476366716517716e-06, 1.4745224110531298e-06, 1.4726804095301085e-06, 1.470840709070529e-06, 1.4690033067998542e-06, 1.467168199847145e-06, 1.4653353853450494e-06, 1.4635048604297886e-06, 1.4616766222411702e-06, 1.459850667922574e-06, 1.458026994620941e-06, 1.4562055994867835e-06, 1.454386479674174e-06, 1.4525696323407326e-06, 1.4507550546476394e-06, 1.4489427437596121e-06, 1.4471326968449165e-06, 1.4453249110753567e-06, 1.443519383626262e-06, 1.441716111676498e-06, 1.439915092408454e-06, 1.4381163230080327e-06, 1.4363198006646584e-06, 1.4345255225712676e-06, 1.432733485924295e-06, 1.4309436879236857e-06, 1.4291561257728824e-06, 1.427370796678814e-06, 1.4255876978519082e-06, 1.423806826506068e-06, 1.4220281798586836e-06, 1.4202517551306222e-06, 1.4184775495462145e-06, 1.4167055603332668e-06, 1.4149357847230476e-06, 1.4131682199502777e-06, 1.4114028632531388e-06, 1.4096397118732634e-06, 1.4078787630557221e-06, 1.406120014049037e-06, 1.4043634621051573e-06, 1.402609104479473e-06, 1.4008569384308023e-06, 1.3991069612213806e-06, 1.39735917011687e-06, 1.3956135623863498e-06, 1.3938701353023021e-06, 1.3921288861406248e-06, 1.3903898121806174e-06, 1.3886529107049722e-06, 1.386918178999782e-06, 1.3851856143545318e-06, 1.383455214062083e-06, 1.38172697541869e-06, 1.380000895723975e-06, 1.3782769722809402e-06, 1.3765552023959576e-06, 1.3748355833787562e-06, 1.3731181125424336e-06, 1.3714027872034437e-06, 1.3696896046815854e-06, 1.3679785623000127e-06, 1.3662696573852248e-06, 1.3645628872670519e-06, 1.3628582492786704e-06, 1.3611557407565782e-06, 1.359455359040608e-06, 1.3577571014739154e-06, 1.3560609654029674e-06, 1.3543669481775538e-06, 1.3526750471507748e-06, 1.3509852596790297e-06, 1.3492975831220278e-06, 1.3476120148427764e-06, 1.34592855220757e-06, 1.3442471925860001e-06, 1.3425679333509447e-06, 1.3408907718785557e-06, 1.339215705548273e-06, 1.3375427317428003e-06, 1.3358718478481182e-06, 1.3342030512534723e-06, 1.3325363393513634e-06, 1.3308717095375555e-06, 1.329209159211067e-06, 1.327548685774158e-06, 1.3258902866323404e-06, 1.3242339591943678e-06, 1.3225797008722236e-06, 1.3209275090811333e-06, 1.3192773812395426e-06, 1.3176293147691283e-06, 1.3159833070947886e-06, 1.3143393556446319e-06, 1.3126974578499856e-06, 1.3110576111453868e-06, 1.3094198129685697e-06, 1.3077840607604768e-06, 1.3061503519652473e-06, 1.304518684030206e-06, 1.302889054405874e-06, 1.3012614605459567e-06, 1.2996358999073342e-06, 1.2980123699500717e-06, 1.2963908681373994e-06, 1.2947713919357221e-06, 1.2931539388146106e-06, 1.2915385062467892e-06, 1.2899250917081464e-06, 1.2883136926777243e-06, 1.2867043066377068e-06, 1.2850969310734303e-06, 1.2834915634733723e-06, 1.281888201329141e-06, 1.2802868421354873e-06, 1.2786874833902827e-06, 1.277090122594531e-06, 1.275494757252358e-06, 1.2739013848710005e-06, 1.2723100029608159e-06, 1.2707206090352722e-06, 1.2691332006109363e-06, 1.2675477752074844e-06, 1.2659643303476918e-06, 1.2643828635574204e-06, 1.2628033723656306e-06, 1.2612258543043693e-06, 1.2596503069087596e-06, 1.258076727717013e-06, 1.2565051142704073e-06, 1.2549354641132982e-06, 1.2533677747931095e-06, 1.2518020438603213e-06, 1.2502382688684815e-06, 1.2486764473741935e-06, 1.2471165769371063e-06, 1.2455586551199242e-06, 1.2440026794883964e-06, 1.2424486476113061e-06, 1.240896557060483e-06, 1.2393464054107803e-06, 1.2377981902400881e-06, 1.2362519091293223e-06, 1.2347075596624139e-06, 1.2331651394263186e-06, 1.2316246460110068e-06, 1.2300860770094528e-06, 1.2285494300176442e-06, 1.2270147026345721e-06, 1.2254818924622205e-06, 1.2239509971055753e-06, 1.222422014172614e-06, 1.2208949412742966e-06, 1.2193697760245754e-06, 1.2178465160403753e-06, 1.216325158941604e-06, 1.2148057023511434e-06, 1.2132881438948375e-06, 1.2117724812015034e-06, 1.21025871190292e-06, 1.208746833633818e-06, 1.2072368440318894e-06, 1.2057287407377774e-06, 1.2042225213950656e-06, 1.202718183650291e-06, 1.2012157251529208e-06, 1.1997151435553657e-06, 1.1982164365129684e-06, 1.196719601683995e-06, 1.1952246367296427e-06, 1.1937315393140303e-06, 1.192240307104189e-06, 1.1907509377700702e-06, 1.189263428984536e-06, 1.1877777784233493e-06, 1.1862939837651832e-06, 1.1848120426916102e-06, 1.1833319528870928e-06, 1.1818537120389945e-06, 1.1803773178375597e-06, 1.178902767975924e-06, 1.1774300601501056e-06, 1.1759591920589936e-06, 1.1744901614043582e-06, 1.173022965890841e-06, 1.1715576032259447e-06, 1.1700940711200417e-06, 1.1686323672863652e-06, 1.167172489440998e-06, 1.1657144353028853e-06, 1.1642582025938127e-06, 1.1628037890384184e-06, 1.1613511923641835e-06, 1.1599004103014206e-06, 1.1584514405832847e-06, 1.1570042809457626e-06, 1.1555589291276629e-06, 1.1541153828706251e-06, 1.1526736399191097e-06, 1.1512336980203893e-06, 1.1497955549245561e-06, 1.1483592083845135e-06, 1.1469246561559657e-06, 1.1454918959974283e-06, 1.1440609256702097e-06, 1.14263174293842e-06, 1.1412043455689632e-06, 1.1397787313315265e-06, 1.1383548979985895e-06, 1.136932843345414e-06, 1.1355125651500357e-06, 1.1340940611932716e-06, 1.1326773292587105e-06, 1.1312623671327051e-06, 1.1298491726043805e-06, 1.1284377434656158e-06, 1.1270280775110549e-06, 1.1256201725380963e-06, 1.1242140263468844e-06, 1.1228096367403175e-06, 1.1214070015240384e-06, 1.1200061185064252e-06, 1.1186069854986002e-06, 1.1172096003144194e-06, 1.1158139607704646e-06, 1.1144200646860505e-06, 1.113027909883216e-06, 1.1116374941867154e-06, 1.1102488154240274e-06, 1.1088618714253375e-06, 1.1074766600235473e-06, 1.1060931790542658e-06, 1.1047114263557995e-06, 1.1033313997691616e-06, 1.1019530971380623e-06, 1.1005765163088996e-06, 1.0992016551307675e-06, 1.0978285114554472e-06, 1.0964570831373973e-06, 1.0950873680337649e-06, 1.0937193640043658e-06, 1.0923530689116956e-06, 1.0909884806209198e-06, 1.0896255969998648e-06, 1.088264415919027e-06, 1.0869049352515621e-06, 1.085547152873278e-06, 1.0841910666626412e-06, 1.0828366745007683e-06, 1.081483974271418e-06, 1.0801329638609972e-06, 1.0787836411585544e-06, 1.0774360040557682e-06, 1.0760900504469597e-06, 1.074745778229072e-06, 1.0734031853016813e-06, 1.072062269566988e-06, 1.070723028929807e-06, 1.0693854612975766e-06, 1.068049564580349e-06, 1.0667153366907814e-06, 1.0653827755441446e-06, 1.064051879058313e-06, 1.0627226451537571e-06, 1.0613950717535524e-06, 1.0600691567833614e-06, 1.0587448981714434e-06, 1.0574222938486462e-06, 1.0561013417483964e-06, 1.0547820398067078e-06, 1.053464385962173e-06, 1.0521483781559536e-06, 1.0508340143317893e-06, 1.049521292435988e-06, 1.0482102104174178e-06, 1.0469007662275144e-06, 1.0455929578202732e-06, 1.0442867831522397e-06, 1.042982240182519e-06, 1.041679326872759e-06, 1.040378041187159e-06, 1.039078381092462e-06, 1.037780344557945e-06, 1.0364839295554274e-06, 1.0351891340592627e-06, 1.0338959560463286e-06, 1.032604393496036e-06, 1.0313144443903205e-06, 1.0300261067136322e-06, 1.028739378452947e-06, 1.027454257597748e-06, 1.0261707421400357e-06, 1.0248888300743185e-06, 1.023608519397605e-06, 1.0223298081094113e-06, 1.0210526942117527e-06, 1.0197771757091346e-06, 1.018503250608561e-06, 1.0172309169195255e-06, 1.0159601726540029e-06, 1.0146910158264567e-06, 1.0134234444538312e-06, 1.0121574565555417e-06, 1.010893050153486e-06, 1.009630223272025e-06, 1.0083689739379932e-06, 1.0071093001806903e-06, 1.005851200031872e-06, 1.0045946715257581e-06, 1.003339712699025e-06, 1.002086321590795e-06, 1.0008344962426468e-06, 9.995842346986039e-07, 9.983355350051297e-07, 9.970883952111336e-07, 9.958428133679562e-07, 9.945987875293773e-07, 9.933563157516078e-07, 9.921153960932824e-07, 9.90876026615465e-07, 9.896382053816426e-07, 9.884019304577156e-07, 9.87167199912006e-07, 9.85934011815249e-07, 9.847023642405842e-07, 9.83472255263564e-07, 9.822436829621445e-07, 9.810166454166775e-07, 9.797911407099203e-07, 9.785671669270182e-07, 9.773447221555135e-07, 9.761238044853378e-07, 9.749044120088033e-07, 9.73686542820611e-07, 9.724701950178419e-07, 9.712553666999482e-07, 9.700420559687628e-07, 9.68830260928489e-07, 9.676199796856933e-07, 9.664112103493142e-07, 9.652039510306464e-07, 9.639981998433485e-07, 9.627939549034354e-07, 9.615912143292713e-07, 9.60389976241575e-07, 9.591902387634139e-07, 9.57992000020194e-07, 9.567952581396694e-07, 9.556000112519319e-07, 9.544062574894047e-07, 9.532139949868488e-07, 9.520232218813558e-07, 9.508339363123391e-07, 9.496461364215429e-07, 9.484598203530264e-07, 9.472749862531722e-07, 9.460916322706783e-07, 9.449097565565509e-07, 9.437293572641102e-07, 9.425504325489839e-07, 9.413729805690985e-07, 9.401969994846869e-07, 9.390224874582797e-07, 9.378494426546988e-07, 9.366778632410644e-07, 9.355077473867803e-07, 9.343390932635416e-07, 9.331718990453282e-07, 9.320061629083949e-07, 9.308418830312811e-07, 9.296790575948004e-07, 9.285176847820347e-07, 9.273577627783403e-07, 9.261992897713407e-07, 9.250422639509181e-07, 9.238866835092211e-07, 9.227325466406566e-07, 9.215798515418825e-07, 9.204285964118155e-07, 9.19278779451616e-07, 9.181303988646964e-07, 9.169834528567136e-07, 9.158379396355608e-07, 9.146938574113748e-07, 9.135512043965288e-07, 9.124099788056241e-07, 9.112701788554967e-07, 9.101318027652109e-07, 9.089948487560502e-07, 9.078593150515276e-07, 9.067251998773676e-07, 9.055925014615171e-07, 9.044612180341359e-07, 9.033313478275901e-07, 9.022028890764592e-07, 9.010758400175277e-07, 8.99950198889778e-07, 8.98825963934397e-07, 8.977031333947693e-07, 8.965817055164684e-07, 8.954616785472648e-07, 8.943430507371178e-07, 8.932258203381678e-07, 8.921099856047455e-07, 8.909955447933556e-07, 8.898824961626857e-07, 8.887708379735987e-07, 8.876605684891252e-07, 8.865516859744706e-07, 8.854441886970073e-07, 8.843380749262675e-07, 8.832333429339495e-07, 8.821299909939114e-07, 8.810280173821618e-07, 8.799274203768703e-07, 8.788281982583506e-07, 8.777303493090695e-07, 8.766338718136394e-07, 8.755387640588107e-07, 8.744450243334789e-07, 8.733526509286771e-07, 8.722616421375686e-07, 8.711719962554534e-07, 8.700837115797612e-07, 8.689967864100436e-07, 8.679112190479818e-07, 8.668270077973777e-07, 8.657441509641482e-07, 8.646626468563322e-07, 8.635824937840764e-07, 8.625036900596427e-07, 8.614262339974017e-07, 8.603501239138252e-07, 8.592753581274923e-07, 8.582019349590828e-07, 8.571298527313697e-07, 8.560591097692259e-07, 8.549897043996169e-07, 8.539216349515934e-07, 8.528548997562997e-07, 8.517894971469589e-07, 8.507254254588808e-07, 8.496626830294545e-07, 8.486012681981417e-07, 8.475411793064832e-07, 8.464824146980912e-07, 8.45424972718643e-07, 8.443688517158866e-07, 8.433140500396343e-07, 8.422605660417553e-07, 8.412083980761821e-07, 8.401575444989035e-07, 8.391080036679576e-07, 8.380597739434397e-07, 8.370128536874876e-07, 8.359672412642896e-07, 8.349229350400777e-07, 8.338799333831202e-07, 8.328382346637282e-07, 8.317978372542489e-07, 8.30758739529058e-07, 8.297209398645666e-07, 8.28684436639214e-07, 8.276492282334608e-07, 8.266153130297966e-07, 8.255826894127257e-07, 8.24551355768775e-07, 8.235213104864869e-07, 8.224925519564124e-07, 8.214650785711177e-07, 8.20438888725177e-07, 8.194139808151653e-07, 8.183903532396653e-07, 8.173680043992603e-07, 8.16346932696527e-07, 8.15327136536042e-07, 8.143086143243753e-07, 8.132913644700827e-07, 8.122753853837139e-07, 8.112606754777986e-07, 8.102472331668538e-07, 8.092350568673771e-07, 8.082241449978399e-07, 8.072144959786938e-07, 8.062061082323633e-07, 8.051989801832394e-07, 8.04193110257686e-07, 8.031884968840324e-07, 8.021851384925671e-07, 8.011830335155454e-07, 8.001821803871751e-07, 7.991825775436245e-07, 7.981842234230152e-07, 7.971871164654162e-07, 7.961912551128486e-07, 7.951966378092807e-07, 7.942032630006196e-07, 7.932111291347187e-07, 7.922202346613697e-07, 7.912305780322972e-07, 7.902421577011638e-07, 7.89254972123564e-07, 7.882690197570174e-07, 7.872842990609759e-07, 7.863008084968104e-07, 7.853185465278182e-07, 7.843375116192161e-07, 7.833577022381342e-07, 7.823791168536212e-07, 7.81401753936639e-07, 7.804256119600549e-07, 7.794506893986483e-07, 7.784769847291038e-07, 7.775044964300049e-07, 7.765332229818412e-07, 7.755631628669952e-07, 7.745943145697489e-07, 7.736266765762779e-07, 7.726602473746452e-07, 7.716950254548063e-07, 7.70731009308603e-07, 7.697681974297572e-07, 7.688065883138763e-07, 7.678461804584477e-07, 7.668869723628308e-07, 7.659289625282641e-07, 7.649721494578587e-07, 7.640165316565911e-07, 7.63062107631311e-07, 7.62108875890728e-07, 7.611568349454186e-07, 7.6020598330782e-07, 7.592563194922236e-07, 7.583078420147809e-07, 7.57360549393497e-07, 7.564144401482242e-07, 7.554695128006681e-07, 7.545257658743807e-07, 7.535831978947548e-07, 7.526418073890301e-07, 7.517015928862814e-07, 7.507625529174243e-07, 7.498246860152104e-07, 7.488879907142195e-07, 7.479524655508665e-07, 7.470181090633945e-07, 7.460849197918685e-07, 7.451528962781815e-07, 7.442220370660478e-07, 7.432923407009972e-07, 7.423638057303801e-07, 7.414364307033618e-07, 7.405102141709159e-07, 7.395851546858318e-07, 7.38661250802701e-07, 7.377385010779248e-07, 7.36816904069708e-07, 7.358964583380524e-07, 7.349771624447626e-07, 7.3405901495344e-07, 7.331420144294764e-07, 7.322261594400593e-07, 7.313114485541668e-07, 7.3039788034256e-07, 7.294854533777912e-07, 7.285741662341904e-07, 7.276640174878726e-07, 7.267550057167316e-07, 7.258471295004334e-07, 7.249403874204227e-07, 7.240347780599162e-07, 7.231303000038965e-07, 7.222269518391176e-07, 7.213247321540991e-07, 7.204236395391202e-07, 7.195236725862246e-07, 7.18624829889215e-07, 7.177271100436472e-07, 7.168305116468361e-07, 7.159350332978439e-07, 7.150406735974869e-07, 7.141474311483292e-07, 7.132553045546766e-07, 7.123642924225826e-07, 7.114743933598417e-07, 7.105856059759839e-07, 7.0969792888228e-07, 7.088113606917355e-07, 7.079259000190852e-07, 7.070415454807989e-07, 7.061582956950701e-07, 7.052761492818219e-07, 7.043951048627016e-07, 7.035151610610748e-07, 7.026363165020303e-07, 7.017585698123745e-07, 7.008819196206256e-07, 7.000063645570187e-07, 6.991319032535001e-07, 6.982585343437213e-07, 6.973862564630444e-07, 6.965150682485365e-07, 6.95644968338963e-07, 6.947759553747955e-07, 6.939080279981983e-07, 6.93041184853036e-07, 6.921754245848674e-07, 6.913107458409391e-07, 6.90447147270192e-07, 6.895846275232541e-07, 6.887231852524358e-07, 6.878628191117346e-07, 6.870035277568295e-07, 6.861453098450749e-07, 6.852881640355079e-07, 6.844320889888354e-07, 6.835770833674411e-07, 6.827231458353798e-07, 6.818702750583717e-07, 6.810184697038071e-07, 6.801677284407411e-07, 6.793180499398879e-07, 6.784694328736261e-07, 6.776218759159924e-07, 6.767753777426763e-07, 6.759299370310258e-07, 6.750855524600405e-07, 6.742422227103671e-07, 6.733999464643051e-07, 6.725587224057953e-07, 6.71718549220426e-07, 6.708794255954278e-07, 6.700413502196673e-07, 6.692043217836528e-07, 6.683683389795285e-07, 6.675334005010687e-07, 6.666995050436829e-07, 6.658666513044106e-07, 6.650348379819153e-07, 6.642040637764907e-07, 6.633743273900498e-07, 6.625456275261304e-07, 6.6171796288989e-07, 6.608913321881001e-07, 6.600657341291511e-07, 6.592411674230471e-07, 6.584176307814003e-07, 6.575951229174354e-07, 6.567736425459852e-07, 6.559531883834838e-07, 6.551337591479727e-07, 6.543153535590947e-07, 6.534979703380888e-07, 6.526816082077954e-07, 6.518662658926466e-07, 6.510519421186709e-07, 6.502386356134883e-07, 6.49426345106305e-07, 6.48615069327918e-07, 6.4780480701071e-07, 6.469955568886436e-07, 6.461873176972665e-07, 6.453800881737059e-07, 6.445738670566632e-07, 6.437686530864201e-07, 6.429644450048273e-07, 6.421612415553104e-07, 6.413590414828655e-07, 6.405578435340522e-07, 6.397576464569997e-07, 6.389584490014011e-07, 6.381602499185079e-07, 6.37363047961135e-07, 6.365668418836554e-07, 6.357716304419946e-07, 6.349774123936358e-07, 6.341841864976141e-07, 6.333919515145117e-07, 6.326007062064635e-07, 6.318104493371465e-07, 6.310211796717849e-07, 6.302328959771461e-07, 6.294455970215344e-07, 6.286592815747961e-07, 6.278739484083143e-07, 6.270895962950035e-07, 6.263062240093146e-07, 6.255238303272291e-07, 6.247424140262547e-07, 6.239619738854303e-07, 6.231825086853161e-07, 6.224040172079985e-07, 6.216264982370855e-07, 6.208499505577013e-07, 6.200743729564912e-07, 6.19299764221616e-07, 6.185261231427475e-07, 6.177534485110721e-07, 6.169817391192868e-07, 6.162109937615934e-07, 6.15441211233703e-07, 6.146723903328316e-07, 6.139045298576939e-07, 6.131376286085101e-07, 6.123716853869948e-07, 6.116066989963624e-07, 6.108426682413227e-07, 6.100795919280753e-07, 6.093174688643144e-07, 6.085562978592237e-07, 6.077960777234712e-07, 6.070368072692136e-07, 6.062784853100921e-07, 6.055211106612261e-07, 6.047646821392198e-07, 6.040091985621514e-07, 6.032546587495785e-07, 6.025010615225338e-07, 6.017484057035191e-07, 6.009966901165109e-07, 6.002459135869542e-07, 5.994960749417586e-07, 5.987471730093021e-07, 5.979992066194263e-07, 5.972521746034314e-07, 5.965060757940808e-07, 5.957609090255962e-07, 5.95016673133652e-07, 5.942733669553816e-07, 5.93530989329367e-07, 5.92789539095644e-07, 5.920490150956975e-07, 5.913094161724565e-07, 5.905707411702985e-07, 5.898329889350448e-07, 5.890961583139553e-07, 5.88360248155733e-07, 5.876252573105192e-07, 5.868911846298885e-07, 5.861580289668541e-07, 5.854257891758583e-07, 5.846944641127772e-07, 5.839640526349162e-07, 5.832345536010052e-07, 5.825059658712029e-07, 5.817782883070918e-07, 5.810515197716735e-07, 5.80325659129373e-07, 5.796007052460341e-07, 5.78876656988914e-07, 5.781535132266882e-07, 5.774312728294456e-07, 5.767099346686831e-07, 5.759894976173119e-07, 5.752699605496469e-07, 5.745513223414123e-07, 5.738335818697368e-07, 5.731167380131486e-07, 5.724007896515802e-07, 5.716857356663631e-07, 5.709715749402233e-07, 5.702583063572856e-07, 5.695459288030685e-07, 5.688344411644801e-07, 5.681238423298227e-07, 5.674141311887835e-07, 5.667053066324397e-07, 5.659973675532538e-07, 5.652903128450689e-07, 5.645841414031129e-07, 5.638788521239936e-07, 5.631744439056944e-07, 5.624709156475786e-07, 5.617682662503838e-07, 5.610664946162183e-07, 5.603655996485648e-07, 5.596655802522758e-07, 5.589664353335687e-07, 5.582681638000318e-07, 5.575707645606131e-07, 5.568742365256276e-07, 5.56178578606751e-07, 5.554837897170156e-07, 5.547898687708147e-07, 5.540968146838975e-07, 5.534046263733649e-07, 5.527133027576738e-07, 5.520228427566317e-07, 5.513332452913926e-07, 5.506445092844625e-07, 5.499566336596892e-07, 5.492696173422679e-07, 5.485834592587364e-07, 5.478981583369706e-07, 5.472137135061887e-07, 5.465301236969464e-07, 5.458473878411327e-07, 5.451655048719735e-07, 5.444844737240275e-07, 5.438042933331816e-07, 5.431249626366546e-07, 5.424464805729933e-07, 5.417688460820671e-07, 5.410920581050742e-07, 5.404161155845311e-07, 5.397410174642787e-07, 5.390667626894769e-07, 5.383933502066004e-07, 5.377207789634431e-07, 5.370490479091133e-07, 5.363781559940293e-07, 5.35708102169923e-07, 5.350388853898364e-07, 5.34370504608116e-07, 5.337029587804189e-07, 5.330362468637025e-07, 5.323703678162301e-07, 5.317053205975668e-07, 5.310411041685742e-07, 5.303777174914147e-07, 5.297151595295479e-07, 5.290534292477245e-07, 5.28392525611992e-07, 5.277324475896892e-07, 5.270731941494422e-07, 5.264147642611682e-07, 5.257571568960715e-07, 5.251003710266385e-07, 5.24444405626643e-07, 5.23789259671137e-07, 5.231349321364558e-07, 5.224814220002134e-07, 5.218287282412984e-07, 5.211768498398773e-07, 5.20525785777391e-07, 5.198755350365501e-07, 5.192260966013383e-07, 5.185774694570091e-07, 5.179296525900805e-07, 5.172826449883403e-07, 5.166364456408373e-07, 5.159910535378857e-07, 5.153464676710612e-07, 5.147026870331962e-07, 5.140597106183846e-07, 5.134175374219763e-07, 5.127761664405736e-07, 5.121355966720355e-07, 5.114958271154722e-07, 5.10856856771242e-07, 5.102186846409543e-07, 5.095813097274661e-07, 5.089447310348772e-07, 5.08308947568535e-07, 5.076739583350258e-07, 5.070397623421798e-07, 5.064063585990665e-07, 5.057737461159907e-07, 5.051419239044962e-07, 5.045108909773613e-07, 5.038806463485953e-07, 5.032511890334418e-07, 5.026225180483745e-07, 5.019946324110929e-07, 5.013675311405276e-07, 5.007412132568307e-07, 5.001156777813814e-07, 4.994909237367813e-07, 4.988669501468503e-07, 4.982437560366303e-07, 4.976213404323814e-07, 4.969997023615773e-07, 4.963788408529094e-07, 4.95758754936282e-07, 4.951394436428092e-07, 4.945209060048179e-07, 4.939031410558437e-07, 4.93286147830627e-07, 4.926699253651175e-07, 4.920544726964658e-07, 4.914397888630278e-07, 4.908258729043606e-07, 4.902127238612189e-07, 4.89600340775558e-07, 4.8898872269053e-07, 4.883778686504799e-07, 4.877677777009489e-07, 4.871584488886706e-07, 4.86549881261567e-07, 4.859420738687527e-07, 4.853350257605268e-07, 4.847287359883774e-07, 4.841232036049774e-07, 4.835184276641808e-07, 4.829144072210257e-07, 4.82311141331731e-07, 4.817086290536919e-07, 4.811068694454837e-07, 4.805058615668578e-07, 4.799056044787375e-07, 4.793060972432218e-07, 4.787073389235814e-07, 4.781093285842546e-07, 4.775120652908519e-07, 4.769155481101474e-07, 4.76319776110084e-07, 4.7572474835976845e-07, 4.7513046392946813e-07, 4.745369218906144e-07, 4.739441213157985e-07, 4.7335206127876775e-07, 4.72760740854429e-07, 4.7217015911884494e-07, 4.715803151492297e-07, 4.7099120802395367e-07, 4.704028368225351e-07, 4.6981520062564486e-07, 4.6922829851510196e-07, 4.6864212957387016e-07, 4.6805669288606114e-07, 4.674719875369308e-07, 4.6688801261287525e-07, 4.663047672014344e-07, 4.65722250391288e-07, 4.651404612722518e-07, 4.64559398935281e-07, 4.639790624724663e-07, 4.633994509770303e-07, 4.628205635433316e-07, 4.6224239926685673e-07, 4.6166495724422475e-07, 4.610882365731832e-07, 4.6051223635260435e-07, 4.599369556824884e-07, 4.593623936639602e-07, 4.5878854939926473e-07, 4.5821542199177097e-07, 4.5764301054596814e-07, 4.570713141674616e-07, 4.5650033196297723e-07, 4.559300630403536e-07, 4.5536050650854625e-07, 4.547916614776238e-07, 4.542235270587641e-07, 4.5365610236425783e-07, 4.5308938650750465e-07, 4.525233786030092e-07, 4.519580777663849e-07, 4.5139348311434993e-07, 4.508295937647233e-07, 4.5026640883642864e-07, 4.497039274494902e-07, 4.4914214872502915e-07, 4.485810717852676e-07, 4.480206957535212e-07, 4.4746101975420306e-07, 4.4690204291282015e-07, 4.4634376435596936e-07, 4.4578618321134117e-07, 4.452292986077158e-07, 4.446731096749593e-07, 4.441176155440271e-07, 4.4356281534696034e-07, 4.4300870821688206e-07, 4.424552932880012e-07, 4.419025696956054e-07, 4.413505365760646e-07, 4.4079919306682784e-07, 4.402485383064191e-07, 4.396985714344411e-07, 4.391492915915711e-07, 4.386006979195578e-07, 4.380527895612243e-07, 4.3750556566046437e-07, 4.36959025362239e-07, 4.3641316781257965e-07, 4.358679921585846e-07, 4.353234975484152e-07, 4.347796831313e-07, 4.342365480575274e-07, 4.336940914784495e-07, 4.3315231254647856e-07, 4.326112104150833e-07, 4.3207078423879237e-07, 4.3153103317319043e-07, 4.309919563749149e-07, 4.304535530016588e-07, 4.2991582221216774e-07, 4.293787631662355e-07, 4.2884237502470886e-07, 4.283066569494797e-07, 4.2777160810348914e-07, 4.27237227650724e-07, 4.2670351475621325e-07, 4.2617046858603114e-07, 4.2563808830729364e-07, 4.2510637308815495e-07, 4.2457532209781074e-07, 4.240449345064944e-07, 4.2351520948547377e-07, 4.2298614620705413e-07, 4.224577438445747e-07, 4.2193000157240525e-07, 4.214029185659499e-07, 4.2087649400163973e-07, 4.203507270569371e-07, 4.198256169103317e-07, 4.193011627413375e-07, 4.187773637304953e-07, 4.182542190593699e-07, 4.177317279105461e-07, 4.172098894676322e-07, 4.166887029152562e-07, 4.1616816743906257e-07, 4.1564828222571597e-07, 4.151290464628941e-07, 4.1461045933929186e-07, 4.1409252004461736e-07, 4.13575227769589e-07, 4.130585817059381e-07, 4.12542581046406e-07, 4.120272249847399e-07, 4.115125127156967e-07, 4.1099844343503906e-07, 4.104850163395322e-07, 4.0997223062694684e-07, 4.0946008549605596e-07, 4.089485801466313e-07, 4.08437713779447e-07, 4.0792748559627293e-07, 4.07417894799878e-07, 4.069089405940274e-07, 4.0640062218347847e-07, 4.058929387739844e-07, 4.053858895722905e-07, 4.0487947378613075e-07, 4.043736906242312e-07, 4.0386853929630623e-07, 4.0336401901305537e-07, 4.02860128986167e-07, 4.023568684283114e-07, 4.0185423655314457e-07, 4.0135223257530486e-07, 4.0085085571040947e-07, 4.003501051750577e-07, 3.998499801868274e-07, 3.993504799642718e-07, 3.988516037269224e-07, 3.9835335069528566e-07, 3.9785572009083976e-07, 3.9735871113603734e-07, 3.9686232305430273e-07, 3.9636655507002786e-07, 3.958714064085767e-07, 3.9537687629627787e-07, 3.9488296396042864e-07, 3.943896686292917e-07, 3.9389698953209147e-07, 3.9340492589901757e-07, 3.9291347696122114e-07, 3.924226419508117e-07, 3.9193242010086006e-07, 3.9144281064539537e-07, 3.909538128194012e-07, 3.904654258588198e-07, 3.8997764900054506e-07, 3.894904814824262e-07, 3.8900392254326463e-07, 3.8851797142281046e-07, 3.8803262736176567e-07, 3.875478896017808e-07, 3.870637573854516e-07, 3.8658022995632206e-07, 3.8609730655888114e-07, 3.8561498643855957e-07, 3.851332688417328e-07, 3.846521530157176e-07, 3.841716382087691e-07, 3.8369172367008413e-07, 3.8321240864979476e-07, 3.827336923989719e-07, 3.822555741696219e-07, 3.817780532146837e-07, 3.8130112878803125e-07, 3.808248001444708e-07, 3.8034906653973743e-07, 3.798739272304979e-07, 3.7939938147434766e-07, 3.789254285298074e-07, 3.7845206765632706e-07, 3.779792981142787e-07, 3.775071191649606e-07, 3.770355300705936e-07, 3.765645300943184e-07, 3.760941185001981e-07, 3.7562429455321515e-07, 3.7515505751926814e-07, 3.746864066651749e-07, 3.742183412586689e-07, 3.7375086056839666e-07, 3.732839638639201e-07, 3.7281765041571363e-07, 3.723519194951611e-07, 3.7188677037455925e-07, 3.714222023271111e-07, 3.7095821462692965e-07, 3.704948065490347e-07, 3.700319773693497e-07, 3.695697263647046e-07, 3.691080528128328e-07, 3.6864695599236795e-07, 3.6818643518284683e-07, 3.677264896647063e-07, 3.6726711871928e-07, 3.6680832162880204e-07, 3.663500976764006e-07, 3.6589244614610136e-07, 3.654353663228243e-07, 3.6497885749238085e-07, 3.6452291894147647e-07, 3.640675499577077e-07, 3.636127498295592e-07, 3.631585178464063e-07, 3.62704853298512e-07, 3.622517554770242e-07, 3.61799223673978e-07, 3.61347257182293e-07, 3.608958552957703e-07, 3.604450173090955e-07, 3.59994742517833e-07, 3.5954503021842887e-07, 3.590958797082083e-07, 3.5864729028537214e-07, 3.5819926124900004e-07, 3.5775179189904715e-07, 3.573048815363413e-07, 3.568585294625855e-07, 3.564127349803552e-07, 3.559674973930952e-07, 3.5552281600512296e-07, 3.550786901216224e-07, 3.546351190486474e-07, 3.541921020931187e-07, 3.537496385628209e-07, 3.533077277664054e-07, 3.5286636901338706e-07, 3.524255616141414e-07, 3.519853048799075e-07, 3.515455981227847e-07, 3.5110644065572984e-07, 3.5066783179255996e-07, 3.502297708479492e-07, 3.4979225713742606e-07, 3.4935528997737645e-07, 3.4891886868503795e-07, 3.484829925785027e-07, 3.480476609767149e-07, 3.4761287319946754e-07, 3.471786285674053e-07, 3.4674492640202145e-07, 3.46311766025655e-07, 3.458791467614934e-07, 3.454470679335697e-07, 3.450155288667592e-07, 3.4458452888678346e-07, 3.4415406732020355e-07, 3.4372414349442383e-07, 3.432947567376889e-07, 3.4286590637908057e-07, 3.424375917485208e-07, 3.420098121767683e-07, 3.4158256699541635e-07, 3.411558555368948e-07, 3.407296771344676e-07, 3.403040311222296e-07, 3.3987891683510946e-07, 3.3945433360886664e-07, 3.3903028078008854e-07, 3.386067576861937e-07, 3.381837636654261e-07, 3.3776129805685796e-07, 3.3733936020038744e-07, 3.3691794943673516e-07, 3.3649706510744753e-07, 3.3607670655489313e-07, 3.356568731222605e-07, 3.3523756415356044e-07, 3.348187789936231e-07, 3.3440051698809553e-07, 3.3398277748344436e-07, 3.3356555982695035e-07, 3.3314886336671147e-07, 3.327326874516399e-07, 3.3231703143145966e-07, 3.319018946567086e-07, 3.3148727647873606e-07, 3.3107317624969985e-07, 3.3065959332256897e-07, 3.3024652705112043e-07, 3.2983397678993706e-07, 3.294219418944095e-07, 3.2901042172073377e-07, 3.2859941562590834e-07, 3.281889229677372e-07, 3.277789431048245e-07, 3.2736947539657696e-07, 3.26960519203202e-07, 3.265520738857042e-07, 3.261441388058883e-07, 3.2573671332635623e-07, 3.2532979681050435e-07, 3.2492338862252626e-07, 3.245174881274095e-07, 3.241120946909335e-07, 3.2370720767967185e-07, 3.2330282646098754e-07, 3.228989504030354e-07, 3.2249557887475944e-07, 3.220927112458905e-07, 3.2169034688694853e-07, 3.212884851692395e-07, 3.2088712546485333e-07, 3.204862671466661e-07, 3.2008590958833695e-07, 3.1968605216430607e-07, 3.192866942497968e-07, 3.188878352208128e-07, 3.1848947445413564e-07, 3.1809161132732766e-07, 3.176942452187266e-07, 3.1729737550744825e-07, 3.1690100157338425e-07, 3.1650512279719915e-07, 3.1610973856033283e-07, 3.1571484824499784e-07, 3.1532045123417696e-07, 3.1492654691162524e-07, 3.1453313466186777e-07, 3.1414021387019656e-07, 3.13747783922674e-07, 3.133558442061271e-07, 3.1296439410815057e-07, 3.1257343301710404e-07, 3.121829603221096e-07, 3.117929754130542e-07, 3.114034776805869e-07, 3.1101446651611626e-07, 3.1062594131181285e-07, 3.102379014606064e-07, 3.098503463561836e-07, 3.094632753929901e-07, 3.090766879662278e-07, 3.086905834718528e-07, 3.083049613065779e-07, 3.0791982086786715e-07, 3.075351615539392e-07, 3.0715098276376427e-07, 3.067672838970618e-07, 3.063840643543029e-07, 3.0600132353670744e-07, 3.0561906084624164e-07, 3.0523727568562067e-07, 3.0485596745830557e-07, 3.044751355685011e-07, 3.0409477942115843e-07, 3.0371489842197e-07, 3.0333549197737206e-07, 3.029565594945426e-07, 3.025781003813985e-07, 3.0220011404659775e-07, 3.018225998995373e-07, 3.0144555735035e-07, 3.010689858099074e-07, 3.0069288468981686e-07, 3.003172534024194e-07, 2.999420913607914e-07, 2.995673979787427e-07, 2.991931726708138e-07, 2.988194148522786e-07, 2.9844612393913936e-07, 2.980732993481295e-07, 2.97700940496711e-07, 2.9732904680307216e-07, 2.9695761768612937e-07, 2.9658665256552516e-07, 2.962161508616254e-07, 2.9584611199552165e-07, 2.954765353890286e-07, 2.9510742046468165e-07, 2.947387666457398e-07, 2.9437057335618024e-07, 2.940028400207014e-07, 2.936355660647205e-07, 2.932687509143708e-07, 2.92902393996504e-07, 2.92536494738688e-07, 2.92171052569204e-07, 2.9180606691704905e-07, 2.9144153721193356e-07, 2.910774628842788e-07, 2.9071384336521896e-07, 2.9035067808659903e-07, 2.899879664809722e-07, 2.8962570798160247e-07, 2.8926390202245993e-07, 2.889025480382231e-07, 2.8854164546427686e-07, 2.881811937367099e-07, 2.8782119229231676e-07, 2.874616405685956e-07, 2.871025380037459e-07, 2.8674388403667017e-07, 2.863856781069721e-07, 2.860279196549539e-07, 2.8567060812161876e-07, 2.853137429486665e-07, 2.849573235784956e-07, 2.8460134945420127e-07, 2.8424582001957287e-07, 2.838907347190961e-07, 2.835360929979506e-07, 2.8318189430200755e-07, 2.8282813807783197e-07, 2.8247482377268017e-07, 2.821219508344975e-07, 2.817695187119204e-07, 2.8141752685427414e-07, 2.810659747115703e-07, 2.807148617345097e-07, 2.803641873744771e-07, 2.8001395108354436e-07, 2.7966415231446763e-07, 2.793147905206853e-07, 2.7896586515632e-07, 2.786173756761762e-07, 2.7826932153573816e-07, 2.7792170219117155e-07, 2.775745170993217e-07, 2.772277657177108e-07, 2.768814475045407e-07, 2.7653556191868823e-07, 2.761901084197075e-07, 2.758450864678278e-07, 2.755004955239514e-07, 2.7515633504965527e-07, 2.748126045071891e-07, 2.7446930335947296e-07, 2.7412643107009913e-07, 2.737839871033301e-07, 2.7344197092409616e-07, 2.731003819979974e-07, 2.7275921979130156e-07, 2.7241848377094165e-07, 2.720781734045185e-07, 2.7173828816029623e-07, 2.713988275072045e-07, 2.7105979091483637e-07, 2.707211778534463e-07, 2.7038298779395167e-07, 2.7004522020793096e-07, 2.6970787456762125e-07, 2.6937095034592046e-07, 2.6903444701638485e-07, 2.68698364053227e-07, 2.683627009313181e-07, 2.680274571261835e-07, 2.6769263211400524e-07, 2.6735822537161956e-07, 2.6702423637651496e-07, 2.6669066460683403e-07, 2.6635750954137124e-07, 2.660247706595709e-07, 2.6569244744152876e-07, 2.653605393679903e-07, 2.650290459203481e-07, 2.646979665806441e-07, 2.643673008315672e-07, 2.6403704815645123e-07, 2.637072080392771e-07, 2.633777799646688e-07, 2.6304876341789517e-07, 2.6272015788486843e-07, 2.6239196285214133e-07, 2.6206417780690965e-07, 2.617368022370095e-07, 2.6140983563091566e-07, 2.610832774777432e-07, 2.607571272672453e-07, 2.604313844898114e-07, 2.601060486364692e-07, 2.597811191988805e-07, 2.5945659566934333e-07, 2.591324775407902e-07, 2.588087643067855e-07, 2.5848545546152756e-07, 2.581625504998469e-07, 2.578400489172035e-07, 2.5751795020968896e-07, 2.5719625387402446e-07, 2.5687495940755857e-07, 2.5655406630826894e-07, 2.562335740747606e-07, 2.559134822062634e-07, 2.555937902026347e-07, 2.5527449756435475e-07, 2.5495560379252917e-07, 2.546371083888868e-07, 2.543190108557777e-07, 2.5400131069617475e-07, 2.5368400741367195e-07, 2.5336710051248184e-07, 2.5305058949743786e-07, 2.527344738739919e-07, 2.524187531482123e-07, 2.5210342682678635e-07, 2.517884944170156e-07, 2.5147395542681865e-07, 2.5115980936472866e-07, 2.5084605573989147e-07, 2.505326940620674e-07, 2.5021972384162917e-07, 2.4990714458955993e-07, 2.4959495581745496e-07, 2.492831570375197e-07, 2.489717477625676e-07, 2.48660727506022e-07, 2.483500957819141e-07, 2.4803985210488103e-07, 2.4772999599016774e-07, 2.474205269536232e-07, 2.471114445117023e-07, 2.468027481814642e-07, 2.464944374805699e-07, 2.461865119272843e-07, 2.458789710404741e-07, 2.4557181433960575e-07, 2.4526504134474726e-07, 2.4495865157656624e-07, 2.4465264455632766e-07, 2.4434701980589645e-07, 2.4404177684773296e-07, 2.4373691520489543e-07, 2.4343243440103796e-07, 2.431283339604083e-07, 2.428246134078499e-07, 2.425212722687998e-07, 2.4221831006928657e-07, 2.419157263359321e-07, 2.4161352059594963e-07, 2.413116923771418e-07, 2.410102412079025e-07, 2.4070916661721447e-07, 2.4040846813464787e-07, 2.4010814529036204e-07, 2.3980819761510167e-07, 2.395086246401988e-07, 2.392094258975712e-07, 2.389106009197197e-07, 2.386121492397308e-07, 2.3831407039127405e-07, 2.3801636390860033e-07, 2.3771902932654365e-07, 2.374220661805191e-07, 2.3712547400652083e-07, 2.3682925234112433e-07, 2.365334007214824e-07, 2.362379186853272e-07, 2.3594280577096845e-07, 2.356480615172913e-07, 2.353536854637582e-07, 2.3505967715040693e-07, 2.3476603611784864e-07, 2.3447276190726955e-07, 2.3417985406042905e-07, 2.3388731211965773e-07, 2.3359513562785918e-07, 2.3330332412850802e-07, 2.3301187716564785e-07, 2.3272079428389355e-07, 2.3243007502842728e-07, 2.3213971894500054e-07, 2.3184972557993226e-07, 2.3156009448010697e-07, 2.3127082519297643e-07, 2.3098191726655768e-07, 2.3069337024943125e-07, 2.304051836907428e-07, 2.3011735714020112e-07, 2.298298901480764e-07, 2.2954278226520221e-07, 2.292560330429716e-07, 2.2896964203333926e-07, 2.2868360878881957e-07, 2.2839793286248473e-07, 2.281126138079665e-07, 2.2782765117945412e-07, 2.2754304453169265e-07, 2.2725879341998458e-07, 2.2697489740018787e-07, 2.266913560287141e-07, 2.2640816886253026e-07, 2.261253354591567e-07, 2.2584285537666546e-07, 2.2556072817368205e-07, 2.252789534093819e-07, 2.249975306434923e-07, 2.247164594362905e-07, 2.244357393486019e-07, 2.241553699418017e-07, 2.23875350777813e-07, 2.2359568141910507e-07, 2.2331636142869483e-07, 2.230373903701452e-07, 2.2275876780756295e-07, 2.2248049330560113e-07, 2.2220256642945498e-07, 2.2192498674486407e-07, 2.216477538181105e-07, 2.2137086721601698e-07, 2.210943265059485e-07, 2.2081813125581058e-07, 2.2054228103404726e-07, 2.2026677540964297e-07, 2.1999161395212044e-07, 2.1971679623153903e-07, 2.1944232181849647e-07, 2.191681902841268e-07, 2.1889440120009864e-07, 2.186209541386173e-07, 2.1834784867242086e-07, 2.180750843747824e-07, 2.1780266081950802e-07, 2.1753057758093513e-07, 2.1725883423393394e-07, 2.1698743035390583e-07, 2.1671636551678139e-07, 2.1644563929902218e-07, 2.1617525127761883e-07, 2.1590520103008914e-07, 2.156354881344804e-07, 2.1536611216936536e-07, 2.1509707271384438e-07, 2.1482836934754366e-07, 2.145600016506134e-07, 2.1429196920372936e-07, 2.1402427158809118e-07, 2.1375690838542052e-07, 2.134898791779627e-07, 2.132231835484849e-07, 2.129568210802744e-07, 2.1269079135714016e-07, 2.1242509396341108e-07, 2.1215972848393412e-07, 2.1189469450407651e-07, 2.1162999160972175e-07, 2.1136561938727197e-07, 2.1110157742364587e-07, 2.1083786530627704e-07, 2.1057448262311565e-07, 2.1031142896262658e-07, 2.1004870391378768e-07, 2.0978630706609136e-07, 2.0952423800954292e-07, 2.092624963346586e-07, 2.0900108163246776e-07, 2.0873999349450911e-07, 2.0847923151283278e-07, 2.0821879527999846e-07, 2.0795868438907377e-07, 2.0769889843363572e-07, 2.0743943700776912e-07, 2.0718029970606467e-07, 2.069214861236207e-07, 2.066629958560412e-07, 2.0640482849943446e-07, 2.061469836504142e-07, 2.0588946090609822e-07, 2.0563225986410644e-07, 2.053753801225629e-07, 2.051188212800922e-07, 2.0486258293582147e-07, 2.0460666468937865e-07, 2.0435106614089067e-07, 2.0409578689098508e-07, 2.0384082654078843e-07, 2.0358618469192434e-07, 2.0333186094651528e-07, 2.0307785490718064e-07, 2.0282416617703527e-07, 2.0257079435969115e-07, 2.023177390592541e-07, 2.0206499988032547e-07, 2.0181257642800065e-07, 2.0156046830786716e-07, 2.0130867512600643e-07, 2.010571964889919e-07, 2.0080603200388745e-07, 2.0055518127824882e-07, 2.0030464392012212e-07, 2.0005441953804193e-07, 1.99804507741033e-07, 1.995549081386084e-07, 1.99305620340768e-07, 1.9905664395800028e-07, 1.988079786012789e-07, 1.9855962388206454e-07, 1.9831157941230326e-07, 1.980638448044248e-07, 1.9781641967134411e-07, 1.9756930362645977e-07, 1.973224962836522e-07, 1.9707599725728523e-07, 1.9682980616220438e-07, 1.965839226137354e-07, 1.9633834622768582e-07, 1.960930766203418e-07, 1.9584811340846992e-07, 1.9560345620931544e-07, 1.9535910464060072e-07, 1.9511505832052678e-07, 1.9487131686777147e-07, 1.9462787990148809e-07, 1.9438474704130663e-07, 1.9414191790733233e-07, 1.9389939212014392e-07, 1.9365716930079514e-07, 1.9341524907081314e-07, 1.931736310521968e-07, 1.9293231486741865e-07, 1.9269130013942135e-07, 1.9245058649161976e-07, 1.9221017354789904e-07, 1.9197006093261326e-07, 1.9173024827058675e-07, 1.914907351871125e-07, 1.9125152130795061e-07, 1.9101260625932966e-07, 1.907739896679452e-07, 1.9053567116095808e-07, 1.9029765036599624e-07, 1.9005992691115148e-07, 1.8982250042498116e-07, 1.8958537053650676e-07, 1.89348536875212e-07, 1.8911199907104468e-07, 1.8887575675441468e-07, 1.8863980955619275e-07, 1.8840415710771158e-07, 1.8816879904076458e-07, 1.8793373498760403e-07, 1.8769896458094262e-07, 1.874644874539519e-07, 1.8723030324026063e-07, 1.8699641157395662e-07, 1.867628120895834e-07, 1.8652950442214205e-07, 1.8629648820708962e-07, 1.860637630803376e-07, 1.8583132867825328e-07, 1.8559918463765813e-07, 1.853673305958264e-07, 1.8513576619048646e-07, 1.8490449105981917e-07, 1.8467350484245646e-07, 1.8444280717748296e-07, 1.842123977044329e-07, 1.839822760632917e-07, 1.8375244189449461e-07, 1.8352289483892505e-07, 1.83293634537916e-07, 1.8306466063324854e-07, 1.8283597276715024e-07, 1.8260757058229658e-07, 1.8237945372180945e-07, 1.8215162182925553e-07, 1.8192407454864776e-07, 1.8169681152444383e-07, 1.8146983240154454e-07, 1.8124313682529561e-07, 1.8101672444148455e-07, 1.8079059489634226e-07, 1.8056474783654158e-07, 1.803391829091958e-07, 1.8011389976186002e-07, 1.7988889804252958e-07, 1.796641773996386e-07, 1.7943973748206138e-07, 1.7921557793911078e-07, 1.7899169842053686e-07, 1.7876809857652846e-07, 1.7854477805771016e-07, 1.7832173651514386e-07, 1.780989736003275e-07, 1.7787648896519327e-07, 1.7765428226210926e-07, 1.7743235314387774e-07, 1.7721070126373378e-07, 1.7698932627534663e-07, 1.7676822783281808e-07, 1.7654740559068116e-07, 1.7632685920390143e-07, 1.7610658832787535e-07, 1.758865926184291e-07, 1.7566687173181986e-07, 1.7544742532473316e-07, 1.7522825305428423e-07, 1.7500935457801662e-07, 1.7479072955390088e-07, 1.745723776403356e-07, 1.743542984961462e-07, 1.741364917805834e-07, 1.739189571533244e-07, 1.737016942744717e-07, 1.7348470280455128e-07, 1.7326798240451461e-07, 1.730515327357354e-07, 1.728353534600113e-07, 1.7261944423956243e-07, 1.7240380473703e-07, 1.7218843461547756e-07, 1.7197333353838954e-07, 1.7175850116966987e-07, 1.715439371736432e-07, 1.7132964121505357e-07, 1.711156129590629e-07, 1.709018520712523e-07, 1.7068835821762063e-07, 1.7047513106458308e-07, 1.7026217027897282e-07, 1.7004947552803798e-07, 1.6983704647944322e-07, 1.6962488280126845e-07, 1.6941298416200726e-07, 1.6920135023056828e-07, 1.689899806762738e-07, 1.6877887516885816e-07, 1.6856803337846935e-07, 1.6835745497566724e-07, 1.6814713963142252e-07, 1.6793708701711796e-07, 1.6772729680454577e-07, 1.675177686659089e-07, 1.6730850227382e-07, 1.6709949730129963e-07, 1.668907534217778e-07, 1.6668227030909244e-07, 1.6647404763748806e-07, 1.6626608508161695e-07, 1.6605838231653793e-07, 1.6585093901771478e-07, 1.6564375486101755e-07, 1.654368295227213e-07, 1.6523016267950453e-07, 1.650237540084509e-07, 1.6481760318704616e-07, 1.6461170989317993e-07, 1.644060738051442e-07, 1.6420069460163194e-07, 1.639955719617384e-07, 1.6379070556495973e-07, 1.635860950911915e-07, 1.6338174022073015e-07, 1.6317764063427145e-07, 1.6297379601290911e-07, 1.627702060381365e-07, 1.6256687039184367e-07, 1.6236378875631888e-07, 1.6216096081424735e-07, 1.6195838624870978e-07, 1.617560647431837e-07, 1.6155399598154194e-07, 1.6135217964805153e-07, 1.6115061542737462e-07, 1.609493030045674e-07, 1.6074824206507858e-07, 1.6054743229475068e-07, 1.603468733798187e-07, 1.6014656500690871e-07, 1.599465068630394e-07, 1.5974669863561934e-07, 1.595471400124484e-07, 1.5934783068171644e-07, 1.591487703320021e-07, 1.5894995865227404e-07, 1.5875139533188815e-07, 1.5855308006059033e-07, 1.5835501252851238e-07, 1.5815719242617313e-07, 1.579596194444798e-07, 1.57762293274724e-07, 1.5756521360858296e-07, 1.573683801381208e-07, 1.5717179255578465e-07, 1.5697545055440575e-07, 1.5677935382720085e-07, 1.565835020677682e-07, 1.563878949700894e-07, 1.5619253222852774e-07, 1.5599741353783003e-07, 1.558025385931227e-07, 1.5560790708991306e-07, 1.5541351872409047e-07, 1.552193731919225e-07, 1.5502547019005618e-07, 1.5483180941551912e-07, 1.5463839056571578e-07, 1.5444521333842858e-07, 1.5425227743181922e-07, 1.5405958254442472e-07, 1.5386712837515875e-07, 1.536749146233127e-07, 1.5348294098855203e-07, 1.5329120717091733e-07, 1.5309971287082558e-07, 1.5290845778906633e-07, 1.5271744162680294e-07, 1.525266640855737e-07, 1.5233612486728812e-07, 1.521458236742281e-07, 1.5195576020904907e-07, 1.5176593417477628e-07, 1.515763452748065e-07, 1.5138699321290655e-07, 1.5119787769321481e-07, 1.5100899842023773e-07, 1.5082035509885088e-07, 1.5063194743430006e-07, 1.5044377513219778e-07, 1.5025583789852422e-07, 1.5006813543962847e-07, 1.4988066746222487e-07, 1.4969343367339416e-07, 1.495064337805845e-07, 1.493196674916081e-07, 1.4913313451464197e-07, 1.489468345582294e-07, 1.4876076733127614e-07, 1.4857493254305157e-07, 1.4838932990318982e-07, 1.4820395912168627e-07, 1.480188199088985e-07, 1.4783391197554743e-07, 1.476492350327139e-07, 1.4746478879183962e-07, 1.4728057296472838e-07, 1.4709658726354236e-07, 1.4691283140080385e-07, 1.4672930508939378e-07, 1.4654600804255326e-07, 1.4636293997388014e-07, 1.4618010059733e-07, 1.459974896272173e-07, 1.4581510677821184e-07, 1.4563295176533987e-07, 1.4545102430398517e-07, 1.4526932410988554e-07, 1.4508785089913388e-07, 1.4490660438817927e-07, 1.4472558429382352e-07, 1.4454479033322216e-07, 1.443642222238856e-07, 1.4418387968367563e-07, 1.440037624308065e-07, 1.4382387018384597e-07, 1.4364420266171188e-07, 1.4346475958367314e-07, 1.4328554066935095e-07, 1.4310654563871523e-07, 1.4292777421208566e-07, 1.427492261101329e-07, 1.4257090105387495e-07, 1.4239279876467893e-07, 1.4221491896425942e-07, 1.4203726137468024e-07, 1.4185982571835086e-07, 1.416826117180275e-07, 1.4150561909681432e-07, 1.4132884757815974e-07, 1.4115229688585777e-07, 1.4097596674404887e-07, 1.4079985687721673e-07, 1.4062396701018908e-07, 1.40448296868139e-07, 1.4027284617658135e-07, 1.400976146613739e-07, 1.3992260204871836e-07, 1.3974780806515696e-07, 1.3957323243757362e-07, 1.3939887489319485e-07, 1.3922473515958646e-07, 1.3905081296465461e-07, 1.3887710803664678e-07, 1.3870362010414852e-07, 1.385303488960844e-07, 1.3835729414171907e-07, 1.3818445557065404e-07, 1.380118329128289e-07, 1.3783942589852032e-07, 1.3766723425834324e-07, 1.3749525772324767e-07, 1.3732349602451977e-07, 1.3715194889378287e-07, 1.36980616062994e-07, 1.368094972644451e-07, 1.3663859223076403e-07, 1.3646790069491108e-07, 1.3629742239018026e-07, 1.3612715705020015e-07, 1.3595710440893063e-07, 1.357872642006639e-07, 1.3561763616002561e-07, 1.354482200219714e-07, 1.3527901552178808e-07, 1.351100223950945e-07, 1.3494124037783838e-07, 1.3477266920629734e-07, 1.3460430861707984e-07, 1.3443615834712193e-07, 1.3426821813368831e-07, 1.3410048771437333e-07, 1.3393296682709768e-07, 1.3376565521010994e-07, 1.335985526019852e-07, 1.3343165874162656e-07, 1.3326497336826187e-07, 1.3309849622144468e-07, 1.3293222704105541e-07, 1.327661655672979e-07, 1.3260031154070068e-07, 1.3243466470211766e-07, 1.322692247927252e-07, 1.321039915540229e-07, 1.3193896472783477e-07, 1.3177414405630585e-07, 1.3160952928190335e-07, 1.3144512014741762e-07, 1.3128091639595885e-07, 1.311169177709582e-07, 1.3095312401616872e-07, 1.3078953487566213e-07, 1.3062615009382995e-07, 1.304629694153843e-07, 1.3029999258535495e-07, 1.3013721934909004e-07, 1.299746494522573e-07, 1.2981228264084076e-07, 1.2965011866114228e-07, 1.294881572597801e-07, 1.2932639818369047e-07, 1.291648411801243e-07, 1.290034859966483e-07, 1.2884233238114587e-07, 1.28681380081814e-07, 1.2852062884716423e-07, 1.2836007842602362e-07, 1.2819972856753168e-07, 1.2803957902114126e-07, 1.2787962953661955e-07, 1.2771987986404501e-07, 1.275603297538083e-07, 1.2740097895661325e-07, 1.272418272234737e-07, 1.2708287430571465e-07, 1.2692411995497302e-07, 1.2676556392319462e-07, 1.266072059626352e-07, 1.264490458258613e-07, 1.2629108326574723e-07, 1.2613331803547601e-07, 1.2597574988854032e-07, 1.2581837857873946e-07, 1.2566120386018075e-07, 1.2550422548727818e-07, 1.253474432147539e-07, 1.2519085679763516e-07, 1.2503446599125518e-07, 1.2487827055125422e-07, 1.2472227023357637e-07, 1.245664647944707e-07, 1.2441085399049207e-07, 1.242554375784981e-07, 1.2410021531565018e-07, 1.239451869594144e-07, 1.2379035226755844e-07, 1.2363571099815267e-07, 1.2348126290957091e-07, 1.2332700776048757e-07, 1.231729453098785e-07, 1.23019075317022e-07, 1.228653975414957e-07, 1.227119117431776e-07, 1.22558617682247e-07, 1.2240551511918148e-07, 1.222526038147578e-07, 1.2209988353005288e-07, 1.2194735402644084e-07, 1.2179501506559425e-07, 1.2164286640948306e-07, 1.214909078203758e-07, 1.2133913906083674e-07, 1.211875598937267e-07, 1.210361700822041e-07, 1.2088496938972188e-07, 1.207339575800285e-07, 1.205831344171688e-07, 1.204324996654812e-07, 1.2028205308959838e-07, 1.201317944544484e-07, 1.1998172352525172e-07, 1.19831840067522e-07, 1.1968214384706721e-07, 1.1953263462998656e-07, 1.193833121826714e-07, 1.192341762718062e-07, 1.1908522666436571e-07, 1.1893646312761569e-07, 1.1878788542911392e-07, 1.186394933367073e-07, 1.1849128661853274e-07, 1.1834326504301804e-07, 1.1819542837887907e-07, 1.1804777639512096e-07, 1.1790030886103708e-07, 1.177530255462102e-07, 1.1760592622050969e-07, 1.1745901065409241e-07, 1.173122786174036e-07, 1.1716572988117399e-07, 1.1701936421642074e-07, 1.1687318139444829e-07, 1.1672718118684555e-07, 1.1658136336548676e-07, 1.1643572770253236e-07, 1.1629027397042618e-07, 1.1614500194189633e-07, 1.1599991138995605e-07, 1.1585500208790092e-07, 1.1571027380930972e-07, 1.1556572632804529e-07, 1.1542135941825174e-07, 1.1527717285435538e-07, 1.1513316641106547e-07, 1.149893398633715e-07, 1.1484569298654403e-07, 1.1470222555613565e-07, 1.1455893734797802e-07, 1.1441582813818331e-07, 1.1427289770314294e-07, 1.1413014581952887e-07, 1.139875722642909e-07, 1.1384517681465735e-07, 1.1370295924813614e-07, 1.135609193425119e-07, 1.1341905687584682e-07, 1.132773716264816e-07, 1.1313586337303259e-07, 1.129945318943927e-07, 1.128533769697323e-07, 1.1271239837849638e-07, 1.1257159590040544e-07, 1.1243096931545641e-07, 1.122905184039198e-07, 1.1215024294634066e-07, 1.1201014272353932e-07, 1.1187021751660878e-07, 1.1173046710691547e-07, 1.1159089127610015e-07, 1.1145148980607516e-07, 1.1131226247902526e-07, 1.1117320907740853e-07, 1.1103432938395359e-07, 1.1089562318166092e-07, 1.1075709025380163e-07, 1.1061873038391877e-07, 1.1048054335582466e-07, 1.1034252895360164e-07, 1.1020468696160293e-07, 1.1006701716445003e-07, 1.0992951934703344e-07, 1.097921932945136e-07, 1.0965503879231812e-07, 1.0951805562614267e-07, 1.0938124358195179e-07, 1.0924460244597628e-07, 1.0910813200471393e-07, 1.089718320449304e-07, 1.0883570235365664e-07, 1.0869974271818954e-07, 1.0856395292609295e-07, 1.084283327651949e-07, 1.0829288202358846e-07, 1.081576004896326e-07, 1.0802248795194952e-07, 1.0788754419942544e-07, 1.0775276902121153e-07, 1.0761816220672111e-07, 1.0748372354563104e-07, 1.0734945282788052e-07, 1.0721534984367224e-07, 1.070814143834699e-07, 1.0694764623799896e-07, 1.068140451982474e-07, 1.0668061105546318e-07, 1.0654734360115508e-07, 1.0641424262709338e-07, 1.0628130792530747e-07, 1.0614853928808643e-07, 1.0601593650797999e-07, 1.0588349937779592e-07, 1.0575122769060079e-07, 1.0561912123972082e-07, 1.0548717981873928e-07, 1.0535540322149727e-07, 1.0522379124209464e-07, 1.0509234367488721e-07, 1.0496106031448778e-07, 1.0482994095576682e-07, 1.0469898539384994e-07, 1.0456819342411866e-07, 1.0443756484221124e-07, 1.0430709944402016e-07, 1.0417679702569317e-07, 1.0404665738363234e-07, 1.0391668031449524e-07, 1.0378686561519226e-07, 1.0365721308288754e-07, 1.0352772251499973e-07, 1.0339839370919941e-07, 1.0326922646340993e-07, 1.0314022057580818e-07, 1.0301137584482206e-07, 1.028826920691313e-07, 1.0275416904766818e-07, 1.0262580657961511e-07, 1.0249760446440532e-07, 1.0236956250172374e-07, 1.022416804915044e-07, 1.0211395823393126e-07, 1.0198639552943899e-07, 1.0185899217871049e-07, 1.0173174798267763e-07, 1.0160466274252205e-07, 1.0147773625967268e-07, 1.013509683358065e-07, 1.0122435877284932e-07, 1.0109790737297332e-07, 1.0097161393859817e-07, 1.0084547827238998e-07, 1.0071950017726245e-07, 1.0059367945637445e-07, 1.004680159131307e-07, 1.0034250935118262e-07, 1.0021715957442582e-07, 1.0009196638700089e-07, 9.996692959329413e-08, 9.984204899793523e-08, 9.971732440579783e-08, 9.959275562200047e-08, 9.946834245190403e-08, 9.934408470111254e-08, 9.921998217547396e-08, 9.909603468107773e-08, 9.89722420242555e-08, 9.884860401158191e-08, 9.87251204498722e-08, 9.860179114618293e-08, 9.847861590781273e-08, 9.835559454229993e-08, 9.823272685742326e-08, 9.811001266120265e-08, 9.798745176189678e-08, 9.786504396800421e-08, 9.774278908826241e-08, 9.76206869316488e-08, 9.749873730737837e-08, 9.737694002490448e-08, 9.725529489391954e-08, 9.713380172435265e-08, 9.701246032637037e-08, 9.689127051037744e-08, 9.677023208701439e-08, 9.664934486715832e-08, 9.652860866192361e-08, 9.640802328265958e-08, 9.62875885409512e-08, 9.616730424861985e-08, 9.604717021772093e-08, 9.59271862605447e-08, 9.580735218961686e-08, 9.568766781769629e-08, 9.556813295777584e-08, 9.544874742308289e-08, 9.532951102707723e-08, 9.52104235834516e-08, 9.509148490613251e-08, 9.497269480927795e-08, 9.485405310727834e-08, 9.473555961475569e-08, 9.461721414656453e-08, 9.449901651778974e-08, 9.438096654374713e-08, 9.42630640399843e-08, 9.41453088222782e-08, 9.402770070663596e-08, 9.391023950929555e-08, 9.379292504672345e-08, 9.36757571356155e-08, 9.355873559289747e-08, 9.344186023572283e-08, 9.33251308814735e-08, 9.320854734776048e-08, 9.309210945242165e-08, 9.297581701352245e-08, 9.28596698493566e-08, 9.274366777844376e-08, 9.262781061953037e-08, 9.251209819159025e-08, 9.239653031382236e-08, 9.228110680565157e-08, 9.216582748672927e-08, 9.205069217693116e-08, 9.193570069635831e-08, 9.182085286533617e-08, 9.170614850441565e-08, 9.159158743437082e-08, 9.147716947619966e-08, 9.136289445112474e-08, 9.1248762180591e-08, 9.11347724862664e-08, 9.102092519004268e-08, 9.090722011403308e-08, 9.079365708057308e-08, 9.068023591222107e-08, 9.056695643175612e-08, 9.04538184621787e-08, 9.034082182671134e-08, 9.022796634879648e-08, 9.011525185209707e-08, 9.000267816049734e-08, 8.989024509810053e-08, 8.977795248922967e-08, 8.966580015842815e-08, 8.955378793045762e-08, 8.944191563029864e-08, 8.933018308315134e-08, 8.921859011443329e-08, 8.910713654978044e-08, 8.899582221504626e-08, 8.888464693630272e-08, 8.877361053983809e-08, 8.866271285215769e-08, 8.855195369998447e-08, 8.844133291025691e-08, 8.833085031012972e-08, 8.82205057269744e-08, 8.811029898837725e-08, 8.800022992213987e-08, 8.789029835627996e-08, 8.778050411902912e-08, 8.76708470388335e-08, 8.756132694435455e-08, 8.745194366446675e-08, 8.73426970282584e-08, 8.723358686503224e-08, 8.712461300430332e-08, 8.701577527579963e-08, 8.69070735094628e-08, 8.679850753544603e-08, 8.669007718411463e-08, 8.658178228604678e-08, 8.647362267203136e-08, 8.636559817306895e-08, 8.625770862037097e-08, 8.614995384536055e-08, 8.604233367967055e-08, 8.593484795514411e-08, 8.582749650383541e-08, 8.572027915800744e-08, 8.561319575013281e-08, 8.550624611289424e-08, 8.539943007918262e-08, 8.529274748209758e-08, 8.518619815494813e-08, 8.507978193125063e-08, 8.497349864472941e-08, 8.486734812931741e-08, 8.476133021915412e-08, 8.465544474858626e-08, 8.454969155216833e-08, 8.444407046466065e-08, 8.433858132102996e-08, 8.423322395645003e-08, 8.412799820629968e-08, 8.402290390616334e-08, 8.391794089183174e-08, 8.381310899929988e-08, 8.370840806476787e-08, 8.360383792464019e-08, 8.349939841552657e-08, 8.339508937423997e-08, 8.329091063779718e-08, 8.318686204341951e-08, 8.30829434285307e-08, 8.297915463075761e-08, 8.28754954879308e-08, 8.277196583808256e-08, 8.266856551944749e-08, 8.256529437046315e-08, 8.246215222976807e-08, 8.235913893620233e-08, 8.225625432880822e-08, 8.215349824682825e-08, 8.20508705297057e-08, 8.194837101708534e-08, 8.184599954881136e-08, 8.174375596492804e-08, 8.164164010568033e-08, 8.153965181151191e-08, 8.143779092306575e-08, 8.133605728118474e-08, 8.12344507269098e-08, 8.113297110148064e-08, 8.103161824633505e-08, 8.093039200310973e-08, 8.082929221363839e-08, 8.07283187199523e-08, 8.06274713642809e-08, 8.052674998904993e-08, 8.042615443688191e-08, 8.032568455059683e-08, 8.022534017321023e-08, 8.012512114793367e-08, 8.00250273181755e-08, 7.992505852753877e-08, 7.9825214619822e-08, 7.972549543901958e-08, 7.962590082932e-08, 7.95264306351064e-08, 7.942708470095711e-08, 7.932786287164383e-08, 7.922876499213214e-08, 7.912979090758217e-08, 7.903094046334658e-08, 7.893221350497126e-08, 7.883360987819589e-08, 7.873512942895198e-08, 7.863677200336383e-08, 7.853853744774765e-08, 7.84404256086125e-08, 7.834243633265831e-08, 7.824456946677656e-08, 7.81468248580508e-08, 7.804920235375477e-08, 7.795170180135301e-08, 7.785432304850147e-08, 7.775706594304553e-08, 7.765993033302067e-08, 7.756291606665303e-08, 7.746602299235752e-08, 7.736925095873841e-08, 7.727259981458997e-08, 7.717606940889444e-08, 7.707965959082279e-08, 7.69833702097352e-08, 7.688720111517924e-08, 7.679115215689038e-08, 7.669522318479267e-08, 7.659941404899678e-08, 7.650372459980067e-08, 7.640815468769007e-08, 7.631270416333671e-08, 7.621737287759915e-08, 7.612216068152192e-08, 7.602706742633654e-08, 7.593209296345948e-08, 7.583723714449284e-08, 7.574249982122494e-08, 7.564788084562843e-08, 7.555338006986085e-08, 7.545899734626526e-08, 7.53647325273684e-08, 7.527058546588117e-08, 7.517655601469931e-08, 7.508264402690152e-08, 7.498884935575002e-08, 7.489517185469118e-08, 7.480161137735359e-08, 7.470816777754872e-08, 7.461484090927148e-08, 7.452163062669835e-08, 7.442853678418796e-08, 7.433555923628169e-08, 7.424269783770187e-08, 7.414995244335225e-08, 7.405732290831868e-08, 7.396480908786722e-08, 7.3872410837445e-08, 7.378012801267949e-08, 7.368796046937926e-08, 7.359590806353227e-08, 7.350397065130634e-08, 7.341214808904977e-08, 7.33204402332895e-08, 7.322884694073178e-08, 7.313736806826254e-08, 7.304600347294581e-08, 7.29547530120241e-08, 7.286361654291908e-08, 7.277259392322971e-08, 7.268168501073291e-08, 7.259088966338397e-08, 7.250020773931491e-08, 7.240963909683494e-08, 7.231918359443104e-08, 7.222884109076622e-08, 7.213861144468004e-08, 7.204849451518918e-08, 7.195849016148566e-08, 7.186859824293739e-08, 7.177881861908877e-08, 7.168915114965883e-08, 7.159959569454215e-08, 7.151015211380807e-08, 7.142082026770145e-08, 7.133160001664103e-08, 7.12424912212199e-08, 7.115349374220606e-08, 7.106460744054066e-08, 7.09758321773386e-08, 7.0887167813889e-08, 7.079861421165354e-08, 7.071017123226692e-08, 7.06218387375375e-08, 7.053361658944547e-08, 7.044550465014347e-08, 7.035750278195707e-08, 7.026961084738307e-08, 7.018182870909007e-08, 7.009415622991896e-08, 7.000659327288121e-08, 6.991913970115944e-08, 6.983179537810795e-08, 6.974456016725093e-08, 6.965743393228312e-08, 6.957041653707023e-08, 6.948350784564735e-08, 6.939670772221962e-08, 6.931001603116156e-08, 6.922343263701791e-08, 6.913695740450184e-08, 6.905059019849552e-08, 6.896433088405068e-08, 6.887817932638689e-08, 6.879213539089206e-08, 6.870619894312302e-08, 6.86203698488038e-08, 6.853464797382621e-08, 6.844903318425024e-08, 6.836352534630256e-08, 6.827812432637689e-08, 6.819282999103462e-08, 6.810764220700309e-08, 6.802256084117612e-08, 6.793758576061453e-08, 6.785271683254452e-08, 6.776795392435814e-08, 6.768329690361378e-08, 6.75987456380346e-08, 6.7514299995509e-08, 6.742995984409112e-08, 6.734572505199922e-08, 6.72615954876164e-08, 6.717757101948998e-08, 6.709365151633218e-08, 6.700983684701854e-08, 6.692612688058835e-08, 6.684252148624528e-08, 6.675902053335562e-08, 6.66756238914489e-08, 6.65923314302183e-08, 6.650914301951911e-08, 6.642605852936919e-08, 6.634307782994947e-08, 6.626020079160235e-08, 6.617742728483223e-08, 6.609475718030593e-08, 6.601219034885116e-08, 6.592972666145702e-08, 6.584736598927444e-08, 6.576510820361461e-08, 6.568295317594949e-08, 6.560090077791231e-08, 6.551895088129594e-08, 6.543710335805341e-08, 6.535535808029844e-08, 6.527371492030375e-08, 6.519217375050191e-08, 6.51107344434846e-08, 6.50293968720033e-08, 6.494816090896788e-08, 6.486702642744685e-08, 6.478599330066804e-08, 6.470506140201694e-08, 6.462423060503722e-08, 6.45435007834312e-08, 6.446287181105827e-08, 6.438234356193545e-08, 6.430191591023776e-08, 6.422158873029676e-08, 6.4141361896601e-08, 6.406123528379648e-08, 6.398120876668512e-08, 6.390128222022525e-08, 6.382145551953207e-08, 6.374172853987614e-08, 6.366210115668378e-08, 6.358257324553767e-08, 6.350314468217518e-08, 6.342381534248895e-08, 6.334458510252732e-08, 6.326545383849281e-08, 6.318642142674278e-08, 6.310748774378887e-08, 6.302865266629762e-08, 6.294991607108899e-08, 6.28712778351368e-08, 6.279273783556924e-08, 6.271429594966733e-08, 6.263595205486537e-08, 6.255770602875146e-08, 6.247955774906596e-08, 6.240150709370192e-08, 6.232355394070564e-08, 6.224569816827506e-08, 6.216793965476033e-08, 6.209027827866416e-08, 6.201271391864044e-08, 6.193524645349462e-08, 6.18578757621842e-08, 6.178060172381725e-08, 6.170342421765283e-08, 6.162634312310153e-08, 6.15493583197239e-08, 6.147246968723093e-08, 6.13956771054846e-08, 6.131898045449622e-08, 6.124237961442728e-08, 6.116587446558873e-08, 6.108946488844169e-08, 6.101315076359597e-08, 6.093693197181052e-08, 6.086080839399388e-08, 6.078477991120275e-08, 6.070884640464237e-08, 6.063300775566707e-08, 6.055726384577872e-08, 6.048161455662724e-08, 6.040605977001103e-08, 6.033059936787549e-08, 6.025523323231352e-08, 6.017996124556596e-08, 6.010478329002009e-08, 6.002969924821011e-08, 5.995470900281764e-08, 5.987981243667018e-08, 5.980500943274163e-08, 5.97302998741527e-08, 5.965568364416947e-08, 5.9581160626203855e-08, 5.950673070381406e-08, 5.943239376070309e-08, 5.935814968071947e-08, 5.928399834785659e-08, 5.92099396462534e-08, 5.913597346019295e-08, 5.906209967410286e-08, 5.8988318172555726e-08, 5.8914628840267744e-08, 5.88410315620991e-08, 5.876752622305445e-08, 5.8694112708281485e-08, 5.862079090307136e-08, 5.8547560692859155e-08, 5.847442196322244e-08, 5.840137459988173e-08, 5.8328418488700925e-08, 5.8255553515685876e-08, 5.818277956698484e-08, 5.811009652888893e-08, 5.803750428783066e-08, 5.7965002730384444e-08, 5.7892591743266984e-08, 5.782027121333591e-08, 5.7748041027590164e-08, 5.7675901073170476e-08, 5.760385123735795e-08, 5.75318914075747e-08, 5.746002147138328e-08, 5.73882413164873e-08, 5.731655083073005e-08, 5.7244949902094934e-08, 5.717343841870589e-08, 5.7102016268826005e-08, 5.703068334085796e-08, 5.6959439523344433e-08, 5.688828470496676e-08, 5.68172187745453e-08, 5.674624162103994e-08, 5.6675353133548654e-08, 5.660455320130798e-08, 5.653384171369339e-08, 5.646321856021798e-08, 5.6392683630532863e-08, 5.632223681442759e-08, 5.62518780018288e-08, 5.6181607082800624e-08, 5.611142394754515e-08, 5.604132848640101e-08, 5.5971320589843835e-08, 5.590140014848666e-08, 5.58315670530786e-08, 5.576182119450542e-08, 5.5692162463789e-08, 5.562259075208795e-08, 5.555310595069627e-08, 5.5483707951043754e-08, 5.5414396644696387e-08, 5.534517192335505e-08, 5.527603367885591e-08, 5.520698180317084e-08, 5.513801618840606e-08, 5.50691367268026e-08, 5.500034331073668e-08, 5.493163583271837e-08, 5.486301418539203e-08, 5.47944782615367e-08, 5.472602795406482e-08, 5.465766315602255e-08, 5.458938376059027e-08, 5.452118966108123e-08, 5.4453080750941933e-08, 5.438505692375258e-08, 5.4317118073225734e-08, 5.4249264093206734e-08, 5.418149487767411e-08, 5.411381032073826e-08, 5.404621031664204e-08, 5.397869475976024e-08, 5.391126354460019e-08, 5.384391656580039e-08, 5.377665371813098e-08, 5.3709474896494146e-08, 5.364237999592276e-08, 5.357536891158085e-08, 5.350844153876394e-08, 5.344159777289783e-08, 5.337483750953892e-08, 5.330816064437467e-08, 5.324156707322227e-08, 5.3175056692029064e-08, 5.3108629396872947e-08, 5.304228508396107e-08, 5.297602364963024e-08, 5.290984499034733e-08, 5.2843749002707974e-08, 5.2777735583437e-08, 5.2711804629388804e-08, 5.2645956037546065e-08, 5.258018970502016e-08, 5.2514505529051546e-08, 5.244890340700851e-08, 5.2383383236387724e-08, 5.231794491481371e-08, 5.225258834003946e-08, 5.218731340994511e-08, 5.212212002253841e-08, 5.205700807595503e-08, 5.199197746845736e-08, 5.192702809843487e-08, 5.186215986440454e-08, 5.1797372665009554e-08, 5.17326663990197e-08, 5.166804096533181e-08, 5.1603496262968434e-08, 5.153903219107829e-08, 5.1474648648936614e-08, 5.141034553594393e-08, 5.1346122751626406e-08, 5.1281980195636324e-08, 5.121791776775073e-08, 5.115393536787188e-08, 5.1090032896027636e-08, 5.102621025237018e-08, 5.0962467337176456e-08, 5.089880405084849e-08, 5.08352202939122e-08, 5.0771715967017975e-08, 5.070829097094009e-08, 5.064494520657735e-08, 5.058167857495179e-08, 5.051849097720912e-08, 5.045538231461906e-08, 5.039235248857413e-08, 5.032940140059003e-08, 5.0266528952306045e-08, 5.020373504548378e-08, 5.014101958200754e-08, 5.0078382463884796e-08, 5.001582359324483e-08, 4.9953342872339235e-08, 4.989094020354221e-08, 4.9828615489349405e-08, 4.976636863237827e-08, 4.970419953536842e-08, 4.964210810118045e-08, 4.958009423279632e-08, 4.951815783331968e-08, 4.9456298805974744e-08, 4.9394517054106574e-08, 4.9332812481181526e-08, 4.927118499078601e-08, 4.9209634486627076e-08, 4.914816087253186e-08, 4.908676405244818e-08, 4.9025443930443315e-08, 4.89642004107044e-08, 4.890303339753876e-08, 4.884194279537275e-08, 4.878092850875212e-08, 4.871999044234239e-08, 4.865912850092763e-08, 4.859834258941088e-08, 4.853763261281449e-08, 4.8476998476278934e-08, 4.841644008506319e-08, 4.835595734454509e-08, 4.8295550160220186e-08, 4.823521843770206e-08, 4.817496208272273e-08, 4.8114781001131455e-08, 4.805467509889511e-08, 4.799464428209855e-08, 4.7934688456943456e-08, 4.787480752974865e-08, 4.7815001406950526e-08, 4.7755269995101827e-08, 4.769561320087221e-08, 4.763603093104775e-08, 4.757652309253148e-08, 4.751708959234223e-08, 4.745773033761496e-08, 4.739844523560117e-08, 4.73392341936677e-08, 4.728009711929712e-08, 4.722103392008808e-08, 4.716204450375415e-08, 4.710312877812417e-08, 4.7044286651142674e-08, 4.6985518030868633e-08, 4.692682282547591e-08, 4.6868200943253565e-08, 4.680965229260473e-08, 4.6751176782046954e-08, 4.669277432021259e-08, 4.6634444815847585e-08, 4.6576188177811936e-08, 4.651800431507996e-08, 4.645989313673918e-08, 4.640185455199072e-08, 4.63438884701496e-08, 4.6285994800643646e-08, 4.622817345301399e-08, 4.6170424336914586e-08, 4.6112747362112765e-08, 4.605514243848808e-08, 4.5997609476032666e-08, 4.594014838485158e-08, 4.5882759075161694e-08, 4.5825441457292025e-08, 4.576819544168413e-08, 4.5711020938890915e-08, 4.565391785957706e-08, 4.559688611451931e-08, 4.553992561460539e-08, 4.548303627083435e-08, 4.5426217994316895e-08, 4.5369470696274296e-08, 4.531279428803873e-08, 4.5256188681053624e-08, 4.519965378687253e-08, 4.514318951715952e-08, 4.508679578368948e-08, 4.5030472498347015e-08, 4.4974219573126834e-08, 4.4918036920134045e-08, 4.4861924451583086e-08, 4.4805882079798206e-08, 4.474990971721303e-08, 4.4694007276371063e-08, 4.463817466992455e-08, 4.458241181063487e-08, 4.452671861137289e-08, 4.447109498511779e-08, 4.44155408449575e-08, 4.4360056104088973e-08, 4.430464067581713e-08, 4.4249294473555206e-08, 4.4194017410825055e-08, 4.4138809401256095e-08, 4.408367035858565e-08, 4.402860019665927e-08, 4.397359882942964e-08, 4.391866617095699e-08, 4.386380213540931e-08, 4.38090066370614e-08, 4.375427959029511e-08, 4.369962090959974e-08, 4.364503050957094e-08, 4.359050830491102e-08, 4.3536054210429365e-08, 4.348166814104126e-08, 4.342735001176848e-08, 4.337309973773877e-08, 4.331891723418638e-08, 4.326480241645098e-08, 4.321075519997801e-08, 4.3156775500318974e-08, 4.3102863233130445e-08, 4.304901831417433e-08, 4.299524065931825e-08, 4.294153018453444e-08, 4.288788680590013e-08, 4.283431043959783e-08, 4.278080100191431e-08, 4.27273584092409e-08, 4.267398257807386e-08, 4.2620673425013273e-08, 4.256743086676343e-08, 4.251425482013314e-08, 4.2461145202034645e-08, 4.240810192948402e-08, 4.2355124919601434e-08, 4.2302214089610156e-08, 4.2249369356836854e-08, 4.219659063871191e-08, 4.2143877852768426e-08, 4.209123091664266e-08, 4.203864974807362e-08, 4.198613426490351e-08, 4.193368438507673e-08, 4.1881300026640185e-08, 4.1828981107743604e-08, 4.177672754663851e-08, 4.172453926167856e-08, 4.167241617131985e-08, 4.1620358194119874e-08, 4.15683652487379e-08, 4.151643725393524e-08, 4.1464574128574226e-08, 4.141277579161858e-08, 4.136104216213368e-08, 4.130937315928558e-08, 4.125776870234129e-08, 4.1206228710669145e-08, 4.115475310373774e-08, 4.1103341801116284e-08, 4.105199472247491e-08, 4.100071178758363e-08, 4.0949492916312715e-08, 4.0898338028632965e-08, 4.0847247044614705e-08, 4.079621988442826e-08, 4.074525646834354e-08, 4.069435671673049e-08, 4.064352055005808e-08, 4.0592747888894666e-08, 4.054203865390822e-08, 4.049139276586543e-08, 4.044081014563192e-08, 4.039029071417264e-08, 4.033983439255082e-08, 4.0289441101928295e-08, 4.023911076356584e-08, 4.0188843298822136e-08, 4.013863862915412e-08, 4.008849667611727e-08, 4.003841736136463e-08, 3.998840060664713e-08, 3.9938446333813845e-08, 3.988855446481109e-08, 3.983872492168266e-08, 3.978895762657016e-08, 3.973925250171205e-08, 3.9689609469443915e-08, 3.9640028452198795e-08, 3.9590509372506197e-08, 3.9541052152992547e-08, 3.949165671638079e-08, 3.9442322985490826e-08, 3.9393050883238553e-08, 3.9343840332636165e-08, 3.929469125679244e-08, 3.924560357891179e-08, 3.9196577222294577e-08, 3.914761211033739e-08, 3.9098708166532095e-08, 3.9049865314466126e-08, 3.900108347782279e-08, 3.8952362580380325e-08, 3.8903702546012175e-08, 3.885510329868731e-08, 3.880656476246925e-08, 3.875808686151639e-08, 3.870966952008228e-08, 3.8661312662514666e-08, 3.861301621325582e-08, 3.8564780096842796e-08, 3.8516604237906514e-08, 3.846848856117206e-08, 3.842043299145895e-08, 3.83724374536802e-08, 3.832450187284278e-08, 3.827662617404719e-08, 3.822881028248793e-08, 3.8181054123452505e-08, 3.813335762232179e-08, 3.808572070457025e-08, 3.803814329576506e-08, 3.799062532156637e-08, 3.794316670772761e-08, 3.789576738009455e-08, 3.78484272646056e-08, 3.7801146287292085e-08, 3.7753924374277334e-08, 3.770676145177696e-08, 3.765965744609917e-08, 3.7612612283643795e-08, 3.756562589090263e-08, 3.75186981944597e-08, 3.7471829120990327e-08, 3.742501859726145e-08, 3.7378266550131876e-08, 3.73315729065514e-08, 3.728493759356104e-08, 3.7238360538293396e-08, 3.719184166797166e-08, 3.714538090991011e-08, 3.709897819151365e-08, 3.7052633440278296e-08, 3.700634658379023e-08, 3.69601175497261e-08, 3.6913946265853286e-08, 3.686783266002903e-08, 3.682177666020067e-08, 3.6775778194405966e-08, 3.672983719077218e-08, 3.6683953577516336e-08, 3.663812728294555e-08, 3.6592358235456104e-08, 3.654664636353371e-08, 3.650099159575383e-08, 3.645539386078074e-08, 3.640985308736785e-08, 3.6364369204357944e-08, 3.6318942140682316e-08, 3.6273571825361044e-08, 3.622825818750326e-08, 3.618300115630626e-08, 3.6137800661055804e-08, 3.609265663112636e-08, 3.6047568995980244e-08, 3.6002537685168024e-08, 3.595756262832812e-08, 3.591264375518728e-08, 3.586778099555961e-08, 3.5822974279346914e-08, 3.5778223536538945e-08, 3.5733528697212535e-08, 3.568888969153185e-08, 3.56443064497487e-08, 3.559977890220163e-08, 3.555530697931621e-08, 3.5510890611605305e-08, 3.546652972966821e-08, 3.54222242641909e-08, 3.537797414594634e-08, 3.5333779305793574e-08, 3.528963967467804e-08, 3.524555518363181e-08, 3.5201525763772716e-08, 3.515755134630467e-08, 3.511363186251788e-08, 3.506976724378802e-08, 3.5025957421576485e-08, 3.498220232743067e-08, 3.493850189298312e-08, 3.489485604995187e-08, 3.485126473014018e-08, 3.480772786543685e-08, 3.4764245387815386e-08, 3.472081722933429e-08, 3.46774433221373e-08, 3.463412359845257e-08, 3.459085799059287e-08, 3.454764643095595e-08, 3.45044888520236e-08, 3.446138518636198e-08, 3.441833536662185e-08, 3.437533932553773e-08, 3.4332396995928184e-08, 3.4289508310696046e-08, 3.424667320282762e-08, 3.420389160539292e-08, 3.416116345154594e-08, 3.411848867452379e-08, 3.4075867207647024e-08, 3.4033298984319816e-08, 3.3990783938029204e-08, 3.3948322002345286e-08, 3.390591311092152e-08, 3.3863557197493897e-08, 3.3821254195881276e-08, 3.37790040399851e-08, 3.373680666378973e-08, 3.3694662001361635e-08, 3.3652569986849654e-08, 3.361053055448524e-08, 3.356854363858166e-08, 3.352660917353422e-08, 3.348472709382055e-08, 3.344289733399979e-08, 3.340111982871279e-08, 3.335939451268244e-08, 3.331772132071281e-08, 3.327610018768939e-08, 3.323453104857941e-08, 3.3193013838430956e-08, 3.315154849237326e-08, 3.3110134945616935e-08, 3.3068773133453204e-08, 3.3027462991254114e-08, 3.2986204454472776e-08, 3.294499745864261e-08, 3.290384193937756e-08, 3.286273783237235e-08, 3.282168507340169e-08, 3.278068359832063e-08, 3.273973334306425e-08, 3.2698834243647995e-08, 3.26579862361669e-08, 3.261718925679583e-08, 3.2576443241789716e-08, 3.25357481274828e-08, 3.249510385028884e-08, 3.245451034670137e-08, 3.241396755329292e-08, 3.2373475406715255e-08, 3.233303384369961e-08, 3.229264280105592e-08, 3.225230221567307e-08, 3.2212012024519104e-08, 3.217177216464048e-08, 3.21315825731623e-08, 3.209144318728853e-08, 3.205135394430128e-08, 3.201131478156097e-08, 3.197132563650664e-08, 3.193138644665511e-08, 3.189149714960129e-08, 3.185165768301837e-08, 3.181186798465706e-08, 3.177212799234595e-08, 3.1732437643991175e-08, 3.169279687757679e-08, 3.165320563116397e-08, 3.161366384289128e-08, 3.1574171450974887e-08, 3.153472839370781e-08, 3.1495334609460156e-08, 3.145599003667934e-08, 3.141669461388937e-08, 3.1377448279691e-08, 3.133825097276207e-08, 3.129910263185666e-08, 3.1260003195805365e-08, 3.122095260351554e-08, 3.118195079397051e-08, 3.1142997706229825e-08, 3.1104093279429504e-08, 3.106523745278126e-08, 3.102643016557275e-08, 3.0987671357167784e-08, 3.094896096700563e-08, 3.0910298934601165e-08, 3.087168519954519e-08, 3.083311970150362e-08, 3.0794602380217854e-08, 3.0756133175504466e-08, 3.071771202725553e-08, 3.067933887543789e-08, 3.064101366009337e-08, 3.0602736321339036e-08, 3.056450679936643e-08, 3.052632503444181e-08, 3.0488190966906376e-08, 3.045010453717553e-08, 3.041206568573911e-08, 3.037407435316162e-08, 3.033613048008148e-08, 3.029823400721129e-08, 3.0260384875338007e-08, 3.0222583025322243e-08, 3.01848283980985e-08, 3.014712093467538e-08, 3.0109460576134846e-08, 3.007184726363248e-08, 3.00342809383977e-08, 2.9996761541732985e-08, 2.995928901501418e-08, 2.992186329969067e-08, 2.988448433728464e-08, 2.984715206939148e-08, 2.9809866437679385e-08, 2.9772627383889772e-08, 2.9735434849836508e-08, 2.9698288777406136e-08, 2.966118910855813e-08, 2.9624135785324136e-08, 2.958712874980823e-08, 2.955016794418712e-08, 2.951325331070944e-08, 2.9476384791695953e-08, 2.9439562329539803e-08, 2.9402785866705787e-08, 2.9366055345730564e-08, 2.9329370709222893e-08, 2.9292731899862928e-08, 2.925613886040241e-08, 2.9219591533664918e-08, 2.918308986254514e-08, 2.914663379000911e-08, 2.9110223259094407e-08, 2.907385821290947e-08, 2.90375385946338e-08, 2.90012643475182e-08, 2.896503541488404e-08, 2.8928851740123608e-08, 2.8892713266699802e-08, 2.885661993814646e-08, 2.8820571698067638e-08, 2.878456849013786e-08, 2.8748610258102304e-08, 2.8712696945776124e-08, 2.867682849704466e-08, 2.8641004855863666e-08, 2.860522596625858e-08, 2.8569491772324787e-08, 2.8533802218227797e-08, 2.8498157248202586e-08, 2.8462556806553768e-08, 2.8427000837655853e-08, 2.839148928595253e-08, 2.835602209595689e-08, 2.8320599212251647e-08, 2.8285220579488434e-08, 2.824988614238803e-08, 2.821459584574057e-08, 2.8179349634404866e-08, 2.8144147453308595e-08, 2.8108989247448546e-08, 2.807387496188991e-08, 2.8038804541766618e-08, 2.8003777932281025e-08, 2.796879507870425e-08, 2.793385592637548e-08, 2.789896042070217e-08, 2.78641085071603e-08, 2.7829300131293637e-08, 2.7794535238713994e-08, 2.7759813775101416e-08, 2.7725135686203508e-08, 2.7690500917835653e-08, 2.7655909415881213e-08, 2.762136112629086e-08, 2.758685599508279e-08, 2.7552393968342925e-08, 2.7517974992224238e-08, 2.748359901294698e-08, 2.7449265976798866e-08, 2.7414975830134428e-08, 2.7380728519375204e-08, 2.7346523991009957e-08, 2.731236219159401e-08, 2.727824306774945e-08, 2.7244166566165328e-08, 2.721013263359701e-08, 2.7176141216866467e-08, 2.714219226286201e-08, 2.7108285718538577e-08, 2.7074421530917098e-08, 2.7040599647084674e-08, 2.7006820014194794e-08, 2.697308257946668e-08, 2.6939387290185492e-08, 2.6905734093702514e-08, 2.687212293743454e-08, 2.6838553768864025e-08, 2.6805026535539326e-08, 2.6771541185074044e-08, 2.6738097665147215e-08, 2.6704695923503524e-08, 2.6671335907952647e-08, 2.663801756636946e-08, 2.660474084669423e-08, 2.6571505696931985e-08, 2.6538312065152708e-08, 2.6505159899491523e-08, 2.6472049148148074e-08, 2.6438979759386712e-08, 2.6405951681536695e-08, 2.637296486299155e-08, 2.6340019252209376e-08, 2.6307114797712547e-08, 2.627425144808803e-08, 2.624142915198675e-08, 2.6208647858123765e-08, 2.6175907515278483e-08, 2.6143208072294022e-08, 2.6110549478077396e-08, 2.6077931681599735e-08, 2.6045354631895634e-08, 2.601281827806335e-08, 2.598032256926501e-08, 2.5947867454725974e-08, 2.591545288373502e-08, 2.5883078805644564e-08, 2.5850745169870005e-08, 2.581845192588994e-08, 2.5786199023246357e-08, 2.5753986411543993e-08, 2.5721814040450545e-08, 2.568968185969686e-08, 2.5657589819076306e-08, 2.5625537868444976e-08, 2.5593525957721868e-08, 2.5561554036888276e-08, 2.5529622055988067e-08, 2.5497729965127423e-08, 2.5465877714475128e-08, 2.5434065254261945e-08, 2.5402292534780804e-08, 2.537055950638701e-08, 2.53388661194976e-08, 2.5307212324591573e-08, 2.527559807221004e-08, 2.5244023312955637e-08, 2.5212487997492707e-08, 2.5180992076547492e-08, 2.5149535500907516e-08, 2.5118118221421792e-08, 2.5086740189000987e-08, 2.5055401354616832e-08, 2.5024101669302302e-08, 2.499284108415181e-08, 2.4961619550320598e-08, 2.4930437019024922e-08, 2.489929344154225e-08, 2.4868188769210646e-08, 2.4837122953428963e-08, 2.4806095945657038e-08, 2.4775107697415072e-08, 2.474415816028393e-08, 2.4713247285904854e-08, 2.4682375025979777e-08, 2.4651541332270704e-08, 2.462074615659989e-08, 2.458998945085004e-08, 2.4559271166963712e-08, 2.4528591256943487e-08, 2.4497949672852185e-08, 2.4467346366812225e-08, 2.4436781291005857e-08, 2.4406254397675317e-08, 2.4375765639122236e-08, 2.434531496770784e-08, 2.431490233585312e-08, 2.4284527696038247e-08, 2.4254191000802754e-08, 2.4223892202745718e-08, 2.4193631254525178e-08, 2.4163408108858312e-08, 2.4133222718521614e-08, 2.4103075036350328e-08, 2.40729650152386e-08, 2.4042892608139693e-08, 2.401285776806538e-08, 2.3982860448086215e-08, 2.3952900601331292e-08, 2.392297818098852e-08, 2.3893093140304017e-08, 2.386324543258233e-08, 2.3833435011186564e-08, 2.3803661829537856e-08, 2.377392584111551e-08, 2.3744226999457218e-08, 2.371456525815844e-08, 2.368494057087262e-08, 2.3655352891311345e-08, 2.3625802173243773e-08, 2.359628837049682e-08, 2.3566811436955334e-08, 2.353737132656151e-08, 2.3507967993315088e-08, 2.3478601391273522e-08, 2.344927147455141e-08, 2.341997819732066e-08, 2.3390721513810693e-08, 2.336150137830785e-08, 2.333231774515558e-08, 2.330317056875462e-08, 2.3274059803562415e-08, 2.3244985404093385e-08, 2.3215947324918696e-08, 2.3186945520666507e-08, 2.3157979946021414e-08, 2.3129050555724613e-08, 2.3100157304574094e-08, 2.3071300147424064e-08, 2.3042479039185126e-08, 2.3013693934824456e-08, 2.2984944789365243e-08, 2.2956231557886857e-08, 2.292755419552503e-08, 2.2898912657471302e-08, 2.2870306898973177e-08, 2.2841736875334315e-08, 2.281320254191397e-08, 2.2784703854127156e-08, 2.2756240767444827e-08, 2.2727813237393332e-08, 2.2699421219554562e-08, 2.2671064669566147e-08, 2.264274354312089e-08, 2.2614457795966945e-08, 2.2586207383907986e-08, 2.2557992262802662e-08, 2.2529812388564837e-08, 2.2501667717163376e-08, 2.2473558204622376e-08, 2.2445483807020645e-08, 2.241744448049185e-08, 2.2389440181224695e-08, 2.236147086546238e-08, 2.233353648950276e-08, 2.230563700969853e-08, 2.2277772382456667e-08, 2.2249942564238602e-08, 2.22221475115604e-08, 2.2194387180992205e-08, 2.216666152915842e-08, 2.213897051273786e-08, 2.211131408846323e-08, 2.2083692213121287e-08, 2.2056104843552994e-08, 2.2028551936653008e-08, 2.200103344936983e-08, 2.1973549338705967e-08, 2.1946099561717415e-08, 2.191868407551382e-08, 2.1891302837258625e-08, 2.186395580416857e-08, 2.1836642933513907e-08, 2.1809364182618193e-08, 2.1782119508858528e-08, 2.1754908869665025e-08, 2.1727732222520983e-08, 2.1700589524963037e-08, 2.1673480734580637e-08, 2.1646405809016217e-08, 2.1619364705965354e-08, 2.1592357383176242e-08, 2.1565383798449862e-08, 2.1538443909640127e-08, 2.1511537674653384e-08, 2.148466505144856e-08, 2.1457825998037322e-08, 2.1431020472483572e-08, 2.1404248432903598e-08, 2.1377509837466227e-08, 2.135080464439233e-08, 2.1324132811954956e-08, 2.1297494298479515e-08, 2.1270889062343246e-08, 2.1244317061975392e-08, 2.1217778255857347e-08, 2.119127260252214e-08, 2.1164800060554687e-08, 2.1138360588591558e-08, 2.1111954145321227e-08, 2.108558068948354e-08, 2.10592401798699e-08, 2.1032932575323395e-08, 2.1006657834738318e-08, 2.098041591706031e-08, 2.0954206781286518e-08, 2.092803038646508e-08, 2.0901886691695305e-08, 2.0875775656127813e-08, 2.0849697238964033e-08, 2.0823651399456354e-08, 2.07976380969083e-08, 2.0771657290674002e-08, 2.0745708940158372e-08, 2.0719793004817258e-08, 2.0693909444156927e-08, 2.0668058217734242e-08, 2.0642239285156795e-08, 2.0616452606082437e-08, 2.0590698140219394e-08, 2.0564975847326455e-08, 2.0539285687212466e-08, 2.051362761973654e-08, 2.048800160480787e-08, 2.0462407602385952e-08, 2.043684557248007e-08, 2.0411315475149486e-08, 2.0385817270503554e-08, 2.0360350918701256e-08, 2.033491637995134e-08, 2.0309513614512472e-08, 2.0284142582692762e-08, 2.025880324484989e-08, 2.0233495561391284e-08, 2.020821949277361e-08, 2.0182974999502932e-08, 2.0157762042134868e-08, 2.0132580581274098e-08, 2.010743057757451e-08, 2.008231199173936e-08, 2.005722478452078e-08, 2.003216891671994e-08, 2.000714434918718e-08, 1.9982151042821534e-08, 1.9957188958570886e-08, 1.9932258057432115e-08, 1.990735830045062e-08, 1.9882489648720514e-08, 1.985765206338446e-08, 1.983284550563387e-08, 1.980806993670841e-08, 1.978332531789619e-08, 1.9758611610533877e-08, 1.9733928776006224e-08, 1.9709276775746224e-08, 1.968465557123527e-08, 1.9660065124002652e-08, 1.9635505395625716e-08, 1.961097634773003e-08, 1.9586477941988872e-08, 1.9562010140123416e-08, 1.9537572903902854e-08, 1.9513166195143928e-08, 1.948878997571108e-08, 1.946444420751661e-08, 1.944012885252017e-08, 1.941584387272895e-08, 1.93915892301978e-08, 1.9367364887028765e-08, 1.934317080537124e-08, 1.9319006947422102e-08, 1.929487327542525e-08, 1.9270769751671814e-08, 1.9246696338499968e-08, 1.922265299829514e-08, 1.9198639693489527e-08, 1.9174656386562273e-08, 1.9150703040039593e-08, 1.912677961649431e-08, 1.9102886078546003e-08, 1.9079022388861148e-08, 1.9055188510152656e-08, 1.9031384405180017e-08, 1.9007610036749456e-08, 1.898386536771344e-08, 1.896015036097086e-08, 1.893646497946714e-08, 1.8912809186193807e-08, 1.8889182944188605e-08, 1.8865586216535663e-08, 1.8842018966365023e-08, 1.8818481156852785e-08, 1.879497275122125e-08, 1.8771493712738466e-08, 1.8748044004718355e-08, 1.8724623590520887e-08, 1.8701232433551585e-08, 1.8677870497261768e-08, 1.8654537745148336e-08, 1.863123414075399e-08, 1.8607959647666783e-08, 1.8584714229520242e-08, 1.8561497849993532e-08, 1.8538310472810992e-08, 1.851515206174227e-08, 1.8492022580602474e-08, 1.8468921993251725e-08, 1.8445850263595284e-08, 1.8422807355583697e-08, 1.839979323321235e-08, 1.8376807860521607e-08, 1.8353851201596954e-08, 1.8330923220568537e-08, 1.8308023881611312e-08, 1.8285153148945195e-08, 1.8262310986834595e-08, 1.823949735958856e-08, 1.8216712231560925e-08, 1.819395556714986e-08, 1.8171227330798005e-08, 1.8148527486992614e-08, 1.8125856000265115e-08, 1.8103212835191302e-08, 1.8080597956391166e-08, 1.805801132852908e-08, 1.8035452916313364e-08, 1.801292268449644e-08, 1.799042059787494e-08, 1.7967946621289282e-08, 1.794550071962381e-08, 1.7923082857806926e-08, 1.7900693000810658e-08, 1.787833111365078e-08, 1.7855997161386968e-08, 1.7833691109122355e-08, 1.7811412922003663e-08, 1.778916256522135e-08, 1.7766940004009163e-08, 1.7744745203644286e-08, 1.772257812944746e-08, 1.7700438746782568e-08, 1.7678327021056756e-08, 1.7656242917720577e-08, 1.7634186402267544e-08, 1.7612157440234293e-08, 1.759015599720069e-08, 1.7568182038789405e-08, 1.7546235530666134e-08, 1.7524316438539387e-08, 1.7502424728160704e-08, 1.7480560365324216e-08, 1.7458723315866797e-08, 1.743691354566817e-08, 1.7415131020650507e-08, 1.7393375706778545e-08, 1.7371647570059726e-08, 1.7349946576543768e-08, 1.7328272692322805e-08, 1.730662588353151e-08, 1.728500611634668e-08, 1.7263413356987362e-08, 1.7241847571714987e-08, 1.722030872683295e-08, 1.7198796788686742e-08, 1.7177311723664076e-08, 1.7155853498194476e-08, 1.7134422078749393e-08, 1.7113017431842355e-08, 1.709163952402854e-08, 1.7070288321904895e-08, 1.7048963792110283e-08, 1.702766590132507e-08, 1.7006394616271288e-08, 1.69851499037125e-08, 1.6963931730453947e-08, 1.6942740063342174e-08, 1.6921574869265138e-08, 1.6900436115152338e-08, 1.6879323767974405e-08, 1.6858237794743235e-08, 1.683717816251211e-08, 1.681614483837529e-08, 1.6795137789468138e-08, 1.677415698296726e-08, 1.6753202386090084e-08, 1.673227396609498e-08, 1.6711371690281416e-08, 1.6690495525989515e-08, 1.666964544060021e-08, 1.6648821401535358e-08, 1.6628023376257335e-08, 1.660725133226916e-08, 1.6586505237114627e-08, 1.6565785058377903e-08, 1.6545090763683644e-08, 1.6524422320697128e-08, 1.650377969712385e-08, 1.6483162860709705e-08, 1.6462571779240826e-08, 1.6442006420543763e-08, 1.6421466752485073e-08, 1.640095274297147e-08, 1.638046435994992e-08, 1.6360001571407267e-08, 1.6339564345370338e-08, 1.631915264990608e-08, 1.629876645312116e-08, 1.627840572316208e-08, 1.6258070428215314e-08, 1.6237760536506896e-08, 1.6217476016302564e-08, 1.6197216835907866e-08, 1.617698296366777e-08, 1.6156774367966787e-08, 1.6136591017229096e-08, 1.6116432879918157e-08, 1.609629992453681e-08, 1.607619211962743e-08, 1.6056109433771508e-08, 1.6036051835589782e-08, 1.6016019293742373e-08, 1.5996011776928368e-08, 1.597602925388602e-08, 1.595607169339257e-08, 1.593613906426445e-08, 1.5916231335356854e-08, 1.5896348475563903e-08, 1.5876490453818737e-08, 1.5856657239093136e-08, 1.583684880039764e-08, 1.581706510678167e-08, 1.5797306127333153e-08, 1.5777571831178614e-08, 1.5757862187483328e-08, 1.5738177165450914e-08, 1.571851673432347e-08, 1.5698880863381678e-08, 1.5679269521944426e-08, 1.5659682679368937e-08, 1.5640120305050877e-08, 1.5620582368423976e-08, 1.5601068838960145e-08, 1.5581579686169607e-08, 1.5562114879600498e-08, 1.5542674388839002e-08, 1.5523258183509452e-08, 1.5503866233273974e-08, 1.548449850783264e-08, 1.5465154976923318e-08, 1.544583561032185e-08, 1.5426540377841663e-08, 1.5407269249333905e-08, 1.5388022194687534e-08, 1.5368799183828975e-08, 1.5349600186722213e-08, 1.5330425173368922e-08, 1.531127411380808e-08, 1.5292146978116103e-08, 1.5273043736406945e-08, 1.525396435883173e-08, 1.523490881557888e-08, 1.5215877076874205e-08, 1.5196869112980558e-08, 1.5177884894197937e-08, 1.5158924390863607e-08, 1.513998757335172e-08, 1.5121074412073443e-08, 1.5102184877477066e-08, 1.5083318940047633e-08, 1.506447657030706e-08, 1.5045657738814245e-08, 1.5026862416164706e-08, 1.5008090572990753e-08, 1.4989342179961317e-08, 1.497061720778214e-08, 1.49519156271954e-08, 1.4933237408979815e-08, 1.4914582523950772e-08, 1.4895950942959955e-08, 1.4877342636895466e-08, 1.4858757576681927e-08, 1.4840195733280125e-08, 1.482165707768712e-08, 1.480314158093637e-08, 1.4784649214097352e-08, 1.4766179948275686e-08, 1.4747733754613244e-08, 1.4729310604287795e-08, 1.4710910468513112e-08, 1.4692533318539078e-08, 1.4674179125651344e-08, 1.4655847861171428e-08, 1.4637539496456827e-08, 1.461925400290067e-08, 1.4600991351931813e-08, 1.4582751515014967e-08, 1.456453446365033e-08, 1.4546340169373755e-08, 1.4528168603756603e-08, 1.45100197384059e-08, 1.4491893544963992e-08, 1.4473789995108645e-08, 1.4455709060553162e-08, 1.4437650713046026e-08, 1.4419614924371015e-08, 1.4401601666347309e-08, 1.4383610910829136e-08, 1.4365642629705887e-08, 1.434769679490222e-08, 1.4329773378377714e-08, 1.4311872352126977e-08, 1.4293993688179753e-08, 1.4276137358600576e-08, 1.4258303335488872e-08, 1.4240491590979083e-08, 1.4222702097240303e-08, 1.4204934826476392e-08, 1.4187189750926088e-08, 1.4169466842862657e-08, 1.4151766074594e-08, 1.4134087418462763e-08, 1.4116430846845995e-08, 1.4098796332155295e-08, 1.4081183846836683e-08, 1.4063593363370747e-08, 1.4046024854272303e-08, 1.40284782920905e-08, 1.4010953649408935e-08, 1.3993450898845294e-08, 1.3975970013051482e-08, 1.3958510964713708e-08, 1.3941073726552156e-08, 1.3923658271321089e-08, 1.3906264571808954e-08, 1.388889260083804e-08, 1.3871542331264593e-08, 1.3854213735978909e-08, 1.3836906787905007e-08, 1.3819621460000726e-08, 1.3802357725257836e-08, 1.37851155567017e-08, 1.3767894927391379e-08, 1.375069581041973e-08, 1.3733518178913084e-08, 1.3716362006031338e-08, 1.3699227264968064e-08, 1.368211392895018e-08, 1.3665021971238092e-08, 1.3647951365125568e-08, 1.3630902083939876e-08, 1.3613874101041463e-08, 1.3596867389824056e-08, 1.3579881923714759e-08, 1.3562917676173728e-08, 1.3545974620694282e-08, 1.3529052730802982e-08, 1.3512151980059327e-08, 1.3495272342055841e-08, 1.3478413790418184e-08, 1.3461576298804817e-08, 1.3444759840907107e-08, 1.3427964390449434e-08, 1.341118992118885e-08, 1.33944364069152e-08, 1.3377703821451208e-08, 1.3360992138652159e-08, 1.3344301332405997e-08, 1.332763137663343e-08, 1.33109822452876e-08, 1.3294353912354187e-08, 1.3277746351851517e-08, 1.3261159537830224e-08, 1.3244593444373404e-08, 1.322804804559649e-08, 1.3211523315647385e-08, 1.3195019228706148e-08, 1.3178535758985094e-08, 1.3162072880728893e-08, 1.3145630568214244e-08, 1.3129208795749986e-08, 1.311280753767719e-08, 1.3096426768368839e-08, 1.308006646222993e-08, 1.3063726593697578e-08, 1.3047407137240685e-08, 1.3031108067360053e-08, 1.3014829358588473e-08, 1.2998570985490415e-08, 1.2982332922662119e-08, 1.2966115144731703e-08, 1.2949917626358837e-08, 1.2933740342234853e-08, 1.2917583267082829e-08, 1.2901446375657288e-08, 1.288532964274429e-08, 1.2869233043161524e-08, 1.2853156551758007e-08, 1.2837100143414219e-08, 1.2821063793041968e-08, 1.2805047475584548e-08, 1.2789051166016415e-08, 1.2773074839343284e-08, 1.2757118470602235e-08, 1.2741182034861393e-08, 1.2725265507220026e-08, 1.2709368862808648e-08, 1.2693492076788704e-08, 1.2677635124352668e-08, 1.2661797980724137e-08, 1.2645980621157526e-08, 1.2630183020938165e-08, 1.2614405155382389e-08, 1.2598646999837233e-08, 1.2582908529680536e-08, 1.2567189720321017e-08, 1.2551490547197996e-08, 1.2535810985781463e-08, 1.252015101157219e-08, 1.250451060010142e-08, 1.2488889726930962e-08, 1.2473288367653289e-08, 1.2457706497891228e-08, 1.2442144093298103e-08, 1.2426601129557611e-08, 1.2411077582383957e-08, 1.239557342752155e-08, 1.2380088640745101e-08, 1.2364623197859717e-08, 1.2349177074700595e-08, 1.233375024713312e-08, 1.2318342691052961e-08, 1.2302954382385761e-08, 1.2287585297087243e-08, 1.2272235411143297e-08, 1.2256904700569676e-08, 1.2241593141412102e-08, 1.2226300709746343e-08, 1.2211027381677931e-08, 1.2195773133342244e-08, 1.2180537940904602e-08, 1.2165321780559972e-08, 1.2150124628533056e-08, 1.2134946461078385e-08, 1.211978725448003e-08, 1.2104646985051683e-08, 1.2089525629136756e-08, 1.2074423163108083e-08, 1.2059339563368058e-08, 1.2044274806348514e-08, 1.2029228868510847e-08, 1.2014201726345735e-08, 1.1999193356373222e-08, 1.198420373514281e-08, 1.1969232839233174e-08, 1.1954280645252243e-08, 1.1939347129837293e-08, 1.1924432269654664e-08, 1.1909536041399839e-08, 1.1894658421797543e-08, 1.1879799387601453e-08, 1.186495891559428e-08, 1.1850136982587869e-08, 1.1835333565422904e-08, 1.1820548640969e-08, 1.1805782186124796e-08, 1.1791034177817658e-08, 1.1776304593003781e-08, 1.1761593408668268e-08, 1.1746900601824849e-08, 1.173222614951597e-08, 1.1717570028812876e-08, 1.1702932216815337e-08, 1.1688312690651768e-08, 1.1673711427479113e-08, 1.1659128404482981e-08, 1.1644563598877353e-08, 1.1630016987904677e-08, 1.161548854883595e-08, 1.1600978258970446e-08, 1.1586486095635788e-08, 1.1572012036188055e-08, 1.1557556058011482e-08, 1.1543118138518561e-08, 1.152869825515012e-08, 1.1514296385375048e-08, 1.149991250669038e-08, 1.1485546596621385e-08, 1.1471198632721283e-08, 1.1456868592571338e-08, 1.144255645378094e-08, 1.1428262193987329e-08, 1.1413985790855681e-08, 1.1399727222079194e-08, 1.1385486465378812e-08, 1.1371263498503307e-08, 1.1357058299229373e-08, 1.134287084536134e-08, 1.1328701114731312e-08, 1.131454908519904e-08, 1.1300414734652057e-08, 1.1286298041005394e-08, 1.1272198982201678e-08, 1.1258117536211204e-08, 1.1244053681031672e-08, 1.1230007394688262e-08, 1.1215978655233732e-08, 1.1201967440748134e-08, 1.11879737293389e-08, 1.1173997499140935e-08, 1.1160038728316334e-08, 1.114609739505448e-08, 1.113217347757211e-08, 1.1118266954113065e-08, 1.1104377802948357e-08, 1.1090506002376266e-08, 1.107665153072206e-08, 1.1062814366338085e-08, 1.1048994487603847e-08, 1.1035191872925744e-08, 1.1021406500737149e-08, 1.1007638349498492e-08, 1.0993887397696995e-08, 1.0980153623846796e-08, 1.0966437006488826e-08, 1.0952737524190951e-08, 1.0939055155547685e-08, 1.0925389879180286e-08, 1.0911741673736836e-08, 1.089811051789197e-08, 1.0884496390346967e-08, 1.0870899269829827e-08, 1.0857319135095009e-08, 1.0843755964923508e-08, 1.0830209738122949e-08, 1.0816680433527307e-08, 1.0803168029997005e-08, 1.0789672506418987e-08, 1.0776193841706455e-08, 1.0762732014798955e-08, 1.0749287004662458e-08, 1.073585879028909e-08, 1.0722447350697228e-08, 1.0709052664931572e-08, 1.0695674712062885e-08, 1.0682313471188072e-08, 1.0668968921430269e-08, 1.0655641041938576e-08, 1.064232981188818e-08, 1.0629035210480241e-08, 1.061575721694202e-08, 1.060249581052661e-08, 1.0589250970513023e-08, 1.057602267620627e-08, 1.05628109069371e-08, 1.0549615642062083e-08, 1.053643686096369e-08, 1.0523274543050037e-08, 1.0510128667754962e-08, 1.0496999214538104e-08, 1.0483886162884656e-08, 1.0470789492305433e-08, 1.0457709182336958e-08, 1.0444645212541207e-08, 1.043159756250569e-08, 1.0418566211843525e-08, 1.0405551140193186e-08, 1.0392552327218582e-08, 1.037956975260914e-08, 1.0366603396079548e-08, 1.0353653237369836e-08, 1.0340719256245452e-08, 1.0327801432497007e-08, 1.0314899745940403e-08, 1.0302014176416713e-08, 1.0289144703792307e-08, 1.0276291307958593e-08, 1.0263453968832104e-08, 1.0250632666354563e-08, 1.0237827380492651e-08, 1.0225038091238066e-08, 1.0212264778607615e-08, 1.019950742264296e-08, 1.018676600341069e-08, 1.0174040501002411e-08, 1.0161330895534482e-08, 1.014863716714811e-08, 1.0135959296009414e-08, 1.0123297262309177e-08, 1.011065104626294e-08, 1.0098020628111052e-08, 1.0085405988118451e-08, 1.0072807106574723e-08, 1.0060223963794183e-08, 1.0047656540115634e-08, 1.0035104815902439e-08, 1.0022568771542593e-08, 1.0010048387448494e-08, 9.997543644057037e-09, 9.98505452182952e-09, 9.972581001251762e-09, 9.960123062833848e-09, 9.94768068711021e-09, 9.935253854639704e-09, 9.922842546005369e-09, 9.910446741814494e-09, 9.898066422698706e-09, 9.885701569313716e-09, 9.873352162339405e-09, 9.86101818247989e-09, 9.848699610463292e-09, 9.836396427041805e-09, 9.824108612991772e-09, 9.811836149113443e-09, 9.79957901623106e-09, 9.78733719519292e-09, 9.775110666871136e-09, 9.762899412161723e-09, 9.750703411984663e-09, 9.738522647283669e-09, 9.726357099026258e-09, 9.714206748203826e-09, 9.702071575831416e-09, 9.689951562947816e-09, 9.677846690615472e-09, 9.665756939920584e-09, 9.653682291972882e-09, 9.641622727905689e-09, 9.629578228876005e-09, 9.617548776064264e-09, 9.605534350674408e-09, 9.593534933933962e-09, 9.581550507093803e-09, 9.569581051428227e-09, 9.557626548235024e-09, 9.545686978835247e-09, 9.533762324573283e-09, 9.521852566816924e-09, 9.509957686957139e-09, 9.49807766640814e-09, 9.48621248660746e-09, 9.474362129015723e-09, 9.462526575116705e-09, 9.45070580641742e-09, 9.43889980444788e-09, 9.42710855076117e-09, 9.415332026933524e-09, 9.403570214564084e-09, 9.391823095275019e-09, 9.380090650711417e-09, 9.368372862541397e-09, 9.356669712455882e-09, 9.344981182168664e-09, 9.333307253416477e-09, 9.32164790795877e-09, 9.310003127577786e-09, 9.298372894078614e-09, 9.286757189288982e-09, 9.275155995059313e-09, 9.263569293262809e-09, 9.251997065795208e-09, 9.240439294574871e-09, 9.228895961542847e-09, 9.217367048662639e-09, 9.205852537920288e-09, 9.194352411324433e-09, 9.18286665090609e-09, 9.171395238718726e-09, 9.159938156838322e-09, 9.14849538736315e-09, 9.13706691241385e-09, 9.125652714133493e-09, 9.114252774687356e-09, 9.102867076263036e-09, 9.091495601070341e-09, 9.080138331341406e-09, 9.068795249330459e-09, 9.057466337313903e-09, 9.046151577590374e-09, 9.034850952480527e-09, 9.023564444327096e-09, 9.012292035494979e-09, 9.001033708371001e-09, 8.989789445363991e-09, 8.978559228904853e-09, 8.967343041446335e-09, 8.95614086546311e-09, 8.944952683451843e-09, 8.933778477930963e-09, 8.922618231440742e-09, 8.911471926543353e-09, 8.900339545822664e-09, 8.889221071884293e-09, 8.878116487355688e-09, 8.867025774885899e-09, 8.855948917145658e-09, 8.844885896827432e-09, 8.83383669664522e-09, 8.822801299334643e-09, 8.811779687652861e-09, 8.800771844378664e-09, 8.789777752312263e-09, 8.77879739427536e-09, 8.767830753111201e-09, 8.756877811684379e-09, 8.745938552880887e-09, 8.735012959608194e-09, 8.724101014795029e-09, 8.713202701391442e-09, 8.70231800236888e-09, 8.691446900719966e-09, 8.680589379458574e-09, 8.669745421619883e-09, 8.658915010260177e-09, 8.648098128456906e-09, 8.637294759308752e-09, 8.626504885935416e-09, 8.615728491477688e-09, 8.60496555909751e-09, 8.594216071977773e-09, 8.583480013322363e-09, 8.572757366356252e-09, 8.562048114325269e-09, 8.551352240496208e-09, 8.540669728156731e-09, 8.530000560615472e-09, 8.519344721201826e-09, 8.508702193266008e-09, 8.49807296017913e-09, 8.48745700533298e-09, 8.476854312140098e-09, 8.466264864033833e-09, 8.455688644468141e-09, 8.445125636917646e-09, 8.434575824877706e-09, 8.42403919186421e-09, 8.413515721413634e-09, 8.403005397083116e-09, 8.392508202450238e-09, 8.382024121113106e-09, 8.371553136690397e-09, 8.361095232821169e-09, 8.350650393164913e-09, 8.340218601401624e-09, 8.329799841231597e-09, 8.319394096375486e-09, 8.309001350574376e-09, 8.298621587589563e-09, 8.28825479120267e-09, 8.277900945215546e-09, 8.267560033450362e-09, 8.257232039749414e-09, 8.246916947975176e-09, 8.236614742010377e-09, 8.226325405757789e-09, 8.216048923140291e-09, 8.205785278100938e-09, 8.19553445460275e-09, 8.185296436628785e-09, 8.175071208182198e-09, 8.164858753286036e-09, 8.154659055983309e-09, 8.144472100337043e-09, 8.134297870430092e-09, 8.12413635036519e-09, 8.113987524265017e-09, 8.103851376272003e-09, 8.093727890548382e-09, 8.083617051276266e-09, 8.073518842657438e-09, 8.063433248913415e-09, 8.053360254285513e-09, 8.043299843034646e-09, 8.03325199944142e-09, 8.02321670780605e-09, 8.013193952448446e-09, 8.003183717708024e-09, 7.99318598794376e-09, 7.983200747534257e-09, 7.973227980877546e-09, 7.963267672391149e-09, 7.953319806512138e-09, 7.943384367696943e-09, 7.93346134042141e-09, 7.923550709180865e-09, 7.913652458489915e-09, 7.903766572882512e-09, 7.893893036912017e-09, 7.884031835150997e-09, 7.874182952191295e-09, 7.864346372644086e-09, 7.854522081139686e-09, 7.844710062327606e-09, 7.834910300876623e-09, 7.825122781474579e-09, 7.815347488828445e-09, 7.80558440766438e-09, 7.79583352272754e-09, 7.786094818782166e-09, 7.776368280611503e-09, 7.766653893017887e-09, 7.75695164082256e-09, 7.747261508865722e-09, 7.737583482006596e-09, 7.727917545123233e-09, 7.718263683112581e-09, 7.708621880890531e-09, 7.698992123391737e-09, 7.689374395569677e-09, 7.6797686823967e-09, 7.670174968863853e-09, 7.660593239980927e-09, 7.651023480776524e-09, 7.641465676297867e-09, 7.631919811610857e-09, 7.622385871800132e-09, 7.612863841968882e-09, 7.603353707238908e-09, 7.593855452750676e-09, 7.584369063663132e-09, 7.574894525153768e-09, 7.565431822418666e-09, 7.555980940672326e-09, 7.546541865147743e-09, 7.537114581096334e-09, 7.527699073788018e-09, 7.518295328511034e-09, 7.508903330572005e-09, 7.499523065295986e-09, 7.49015451802628e-09, 7.480797674124508e-09, 7.471452518970648e-09, 7.462119037962871e-09, 7.452797216517581e-09, 7.443487040069485e-09, 7.434188494071403e-09, 7.42490156399433e-09, 7.415626235327487e-09, 7.406362493578146e-09, 7.3971103242716815e-09, 7.38786971295163e-09, 7.378640645179508e-09, 7.369423106534869e-09, 7.360217082615359e-09, 7.351022559036539e-09, 7.341839521431936e-09, 7.332667955453106e-09, 7.323507846769447e-09, 7.31435918106829e-09, 7.305221944054814e-09, 7.296096121452139e-09, 7.286981699001137e-09, 7.2778786624604975e-09, 7.268786997606774e-09, 7.259706690234214e-09, 7.250637726154808e-09, 7.24158009119835e-09, 7.232533771212258e-09, 7.223498752061628e-09, 7.2144750196292955e-09, 7.205462559815648e-09, 7.19646135853869e-09, 7.1874714017340955e-09, 7.178492675355028e-09, 7.1695251653722e-09, 7.160568857773928e-09, 7.151623738565953e-09, 7.142689793771499e-09, 7.133767009431326e-09, 7.124855371603557e-09, 7.11595486636373e-09, 7.107065479804855e-09, 7.098187198037237e-09, 7.089320007188562e-09, 7.080463893403815e-09, 7.0716188428453655e-09, 7.062784841692798e-09, 7.053961876142957e-09, 7.045149932410009e-09, 7.036348996725261e-09, 7.027559055337229e-09, 7.018780094511675e-09, 7.010012100531447e-09, 7.0012550596965275e-09, 6.992508958324088e-09, 6.983773782748318e-09, 6.97504951932048e-09, 6.96633615440896e-09, 6.9576336743990976e-09, 6.948942065693243e-09, 6.940261314710804e-09, 6.931591407888082e-09, 6.922932331678321e-09, 6.91428407255176e-09, 6.905646616995469e-09, 6.897019951513398e-09, 6.88840406262643e-09, 6.879798936872209e-09, 6.8712045608052285e-09, 6.862620920996747e-09, 6.8540480040348755e-09, 6.845485796524404e-09, 6.836934285086858e-09, 6.828393456360549e-09, 6.8198632970004035e-09, 6.811343793678023e-09, 6.802834933081731e-09, 6.7943367019164055e-09, 6.785849086903535e-09, 6.777372074781268e-09, 6.768905652304245e-09, 6.760449806243658e-09, 6.752004523387292e-09, 6.743569790539368e-09, 6.735145594520591e-09, 6.726731922168197e-09, 6.718328760335802e-09, 6.709936095893437e-09, 6.701553915727611e-09, 6.6931822067411424e-09, 6.684820955853209e-09, 6.6764701499994034e-09, 6.668129776131565e-09, 6.659799821217859e-09, 6.651480272242704e-09, 6.643171116206852e-09, 6.634872340127221e-09, 6.6265839310369474e-09, 6.618305875985438e-09, 6.610038162038206e-09, 6.601780776276923e-09, 6.5935337057994704e-09, 6.585296937719774e-09, 6.5770704591678595e-09, 6.568854257289898e-09, 6.5606483192480515e-09, 6.552452632220515e-09, 6.544267183401572e-09, 6.536091960001434e-09, 6.527926949246292e-09, 6.519772138378357e-09, 6.511627514655717e-09, 6.503493065352368e-09, 6.495368777758282e-09, 6.487254639179232e-09, 6.4791506369368524e-09, 6.4710567583686834e-09, 6.462972990828017e-09, 6.454899321683963e-09, 6.44683573832139e-09, 6.438782228140993e-09, 6.430738778559136e-09, 6.422705377007907e-09, 6.414682010935159e-09, 6.406668667804358e-09, 6.398665335094631e-09, 6.390672000300816e-09, 6.3826886509333004e-09, 6.374715274518078e-09, 6.366751858596791e-09, 6.3587983907265786e-09, 6.3508548584801234e-09, 6.3429212494456995e-09, 6.3349975512270176e-09, 6.327083751443276e-09, 6.319179837729206e-09, 6.311285797734918e-09, 6.30340161912595e-09, 6.2955272895833175e-09, 6.287662796803355e-09, 6.27980812849777e-09, 6.2719632723936855e-09, 6.264128216233491e-09, 6.256302947774908e-09, 6.248487454790931e-09, 6.240681725069896e-09, 6.232885746415326e-09, 6.225099506645981e-09, 6.217322993595904e-09, 6.209556195114269e-09, 6.20179909906543e-09, 6.194051693328968e-09, 6.186313965799535e-09, 6.1785859043869125e-09, 6.170867497016043e-09, 6.163158731626894e-09, 6.1554595961744944e-09, 6.147770078628988e-09, 6.140090166975481e-09, 6.132419849214087e-09, 6.124759113359977e-09, 6.117107947443228e-09, 6.109466339508868e-09, 6.10183427761693e-09, 6.094211749842292e-09, 6.086598744274731e-09, 6.0789952490189674e-09, 6.0714012521945175e-09, 6.063816741935759e-09, 6.056241706391873e-09, 6.048676133726906e-09, 6.041120012119629e-09, 6.033573329763578e-09, 6.026036074867104e-09, 6.018508235653223e-09, 6.010989800359663e-09, 6.003480757238911e-09, 5.995981094558063e-09, 5.988490800598874e-09, 5.981009863657801e-09, 5.973538272045857e-09, 5.9660760140886565e-09, 5.958623078126463e-09, 5.951179452514042e-09, 5.943745125620704e-09, 5.936320085830356e-09, 5.92890432154135e-09, 5.921497821166531e-09, 5.9141005731332836e-09, 5.906712565883385e-09, 5.899333787873051e-09, 5.891964227572982e-09, 5.884603873468218e-09, 5.877252714058203e-09, 5.869910737856728e-09, 5.862577933391996e-09, 5.8552542892064785e-09, 5.847939793856958e-09, 5.840634435914576e-09, 5.8333382039646886e-09, 5.82605108660691e-09, 5.818773072455161e-09, 5.811504150137521e-09, 5.804244308296279e-09, 5.796993535587969e-09, 5.789751820683237e-09, 5.782519152266883e-09, 5.775295519037901e-09, 5.7680809097093435e-09, 5.760875313008359e-09, 5.753678717676244e-09, 5.746491112468297e-09, 5.7393124861538614e-09, 5.732142827516373e-09, 5.724982125353219e-09, 5.7178303684757804e-09, 5.710687545709476e-09, 5.703553645893624e-09, 5.696428657881504e-09, 5.6893125705403e-09, 5.682205372751166e-09, 5.675107053409082e-09, 5.668017601422904e-09, 5.660937005715402e-09, 5.6538652552231226e-09, 5.6468023388964344e-09, 5.63974824569957e-09, 5.632702964610487e-09, 5.625666484620912e-09, 5.618638794736384e-09, 5.611619883976116e-09, 5.604609741373038e-09, 5.597608355973841e-09, 5.59061571683884e-09, 5.5836318130420134e-09, 5.57665663367105e-09, 5.569690167827212e-09, 5.562732404625375e-09, 5.5557833331940704e-09, 5.548842942675355e-09, 5.541911222224847e-09, 5.534988161011771e-09, 5.5280737482188215e-09, 5.521167973042229e-09, 5.514270824691699e-09, 5.507382292390473e-09, 5.500502365375199e-09, 5.493631032895971e-09, 5.486768284216369e-09, 5.4799141086133275e-09, 5.473068495377176e-09, 5.466231433811682e-09, 5.459402913233915e-09, 5.452582922974291e-09, 5.445771452376613e-09, 5.438968490797937e-09, 5.432174027608616e-09, 5.425388052192337e-09, 5.4186105539459935e-09, 5.411841522279724e-09, 5.4050809466169525e-09, 5.39832881639426e-09, 5.391585121061423e-09, 5.384849850081453e-09, 5.37812299293047e-09, 5.371404539097738e-09, 5.36469447808571e-09, 5.357992799409896e-09, 5.35129949259892e-09, 5.344614547194473e-09, 5.33793795275136e-09, 5.331269698837386e-09, 5.3246097750333815e-09, 5.317958170933252e-09, 5.311314876143848e-09, 5.304679880284999e-09, 5.29805317298956e-09, 5.291434743903283e-09, 5.284824582684851e-09, 5.278222679005923e-09, 5.271629022551005e-09, 5.265043603017488e-09, 5.2584664101156914e-09, 5.25189743356873e-09, 5.245336663112559e-09, 5.238784088496009e-09, 5.232239699480663e-09, 5.225703485840894e-09, 5.219175437363903e-09, 5.212655543849596e-09, 5.206143795110616e-09, 5.199640180972395e-09, 5.193144691273015e-09, 5.186657315863271e-09, 5.180178044606619e-09, 5.173706867379236e-09, 5.167243774069885e-09, 5.160788754579963e-09, 5.154341798823539e-09, 5.147902896727225e-09, 5.1414720382302144e-09, 5.13504921328433e-09, 5.1286344118538845e-09, 5.122227623915733e-09, 5.115828839459305e-09, 5.109438048486479e-09, 5.103055241011625e-09, 5.096680407061641e-09, 5.09031353667583e-09, 5.083954619905938e-09, 5.077603646816192e-09, 5.071260607483178e-09, 5.064925491995876e-09, 5.058598290455704e-09, 5.0522789929763895e-09, 5.045967589684012e-09, 5.039664070717038e-09, 5.033368426226199e-09, 5.02708064637455e-09, 5.020800721337418e-09, 5.01452864130245e-09, 5.0082643964695055e-09, 5.00200797705068e-09, 4.9957593732703566e-09, 4.989518575365068e-09, 4.983285573583552e-09, 4.977060358186777e-09, 4.970842919447823e-09, 4.9646332476519244e-09, 4.958431333096504e-09, 4.952237166091049e-09, 4.9460507369571564e-09, 4.939872036028564e-09, 4.933701053651033e-09, 4.927537780182385e-09, 4.921382205992538e-09, 4.91523432146339e-09, 4.909094116988851e-09, 4.902961582974886e-09, 4.896836709839393e-09, 4.890719488012237e-09, 4.8846099079352935e-09, 4.878507960062325e-09, 4.872413634859036e-09, 4.8663269228030264e-09, 4.860247814383841e-09, 4.854176300102854e-09, 4.848112370473306e-09, 4.842056016020341e-09, 4.836007227280886e-09, 4.82996599480369e-09, 4.823932309149361e-09, 4.817906160890247e-09, 4.811887540610471e-09, 4.805876438905975e-09, 4.799872846384392e-09, 4.79387675366509e-09, 4.787888151379209e-09, 4.781907030169538e-09, 4.7759333806905575e-09, 4.769967193608473e-09, 4.764008459601099e-09, 4.758057169357896e-09, 4.752113313580005e-09, 4.746176882980134e-09, 4.74024786828259e-09, 4.734326260223321e-09, 4.728412049549798e-09, 4.722505227021065e-09, 4.716605783407692e-09, 4.710713709491832e-09, 4.704828996067102e-09, 4.698951633938618e-09, 4.693081613923035e-09, 4.687218926848429e-09, 4.681363563554334e-09, 4.675515514891775e-09, 4.669674771723159e-09, 4.663841324922308e-09, 4.658015165374492e-09, 4.65219628397632e-09, 4.646384671635772e-09, 4.640580319272234e-09, 4.63478321781639e-09, 4.62899335821025e-09, 4.6232107314071905e-09, 4.61743532837184e-09, 4.611667140080112e-09, 4.605906157519245e-09, 4.600152371687688e-09, 4.594405773595129e-09, 4.588666354262544e-09, 4.582934104722071e-09, 4.577209016017068e-09, 4.571491079202068e-09, 4.565780285342826e-09, 4.560076625516208e-09, 4.554380090810229e-09, 4.548690672324085e-09, 4.543008361168042e-09, 4.5373331484634705e-09, 4.5316650253428846e-09, 4.526003982949821e-09, 4.5203500124388865e-09, 4.514703104975782e-09, 4.509063251737197e-09, 4.5034304439108445e-09, 4.497804672695493e-09, 4.492185929300858e-09, 4.486574204947634e-09, 4.4809694908675355e-09, 4.475371778303178e-09, 4.4697810585081186e-09, 4.464197322746888e-09, 4.458620562294883e-09, 4.453050768438397e-09, 4.447487932474659e-09, 4.44193204571172e-09, 4.436383099468506e-09, 4.430841085074773e-09, 4.425305993871152e-09, 4.419777817209046e-09, 4.414256546450664e-09, 4.408742172969049e-09, 4.403234688147976e-09, 4.397734083381984e-09, 4.392240350076407e-09, 4.386753479647271e-09, 4.381273463521324e-09, 4.375800293136071e-09, 4.3703339599396655e-09, 4.364874455390946e-09, 4.359421770959467e-09, 4.3539758981253914e-09, 4.348536828379528e-09, 4.343104553223358e-09, 4.337679064168937e-09, 4.3322603527389205e-09, 4.326848410466602e-09, 4.321443228895805e-09, 4.316044799580917e-09, 4.310653114086922e-09, 4.305268163989295e-09, 4.29988994087405e-09, 4.294518436337696e-09, 4.289153641987289e-09, 4.28379554944032e-09, 4.278444150324753e-09, 4.273099436279057e-09, 4.267761398952099e-09, 4.26243003000318e-09, 4.257105321102066e-09, 4.251787263928882e-09, 4.246475850174148e-09, 4.241171071538808e-09, 4.235872919734131e-09, 4.230581386481738e-09, 4.2252964635136364e-09, 4.220018142572119e-09, 4.214746415409793e-09, 4.209481273789613e-09, 4.20422270948478e-09, 4.198970714278772e-09, 4.193725279965373e-09, 4.188486398348577e-09, 4.183254061242617e-09, 4.1780282604719926e-09, 4.172808987871376e-09, 4.1675962352856505e-09, 4.162389994569877e-09, 4.1571902575893315e-09, 4.151997016219409e-09, 4.146810262345654e-09, 4.141629987863793e-09, 4.13645618467963e-09, 4.131288844709083e-09, 4.126127959878211e-09, 4.120973522123115e-09, 4.115825523389972e-09, 4.110683955635061e-09, 4.105548810824667e-09, 4.100420080935111e-09, 4.095297757952779e-09, 4.0901818338740286e-09, 4.08507230070521e-09, 4.0799691504627075e-09, 4.074872375172832e-09, 4.069781966871858e-09, 4.06469791760605e-09, 4.059620219431565e-09, 4.054548864414484e-09, 4.0494838446308426e-09, 4.044425152166533e-09, 4.039372779117346e-09, 4.034326717588934e-09, 4.0292869596968536e-09, 4.024253497566467e-09, 4.0192263233329755e-09, 4.014205429141446e-09, 4.009190807146716e-09, 4.0041824495134235e-09, 3.999180348416037e-09, 3.9941844960387596e-09, 3.989194884575554e-09, 3.984211506230183e-09, 3.9792343532161e-09, 3.97426341775649e-09, 3.9692986920842926e-09, 3.964340168442109e-09, 3.959387839082231e-09, 3.954441696266672e-09, 3.949501732267067e-09, 3.9445679393647084e-09, 3.9396403098505725e-09, 3.934718836025221e-09, 3.929803510198838e-09, 3.9248943246912526e-09, 3.9199912718318484e-09, 3.915094343959604e-09, 3.910203533423055e-09, 3.905318832580336e-09, 3.900440233799088e-09, 3.895567729456484e-09, 3.890701311939264e-09, 3.885840973643636e-09, 3.880986706975306e-09, 3.876138504349508e-09, 3.8712963581909126e-09, 3.866460260933651e-09, 3.861630205021347e-09, 3.856806182907024e-09, 3.851988187053133e-09, 3.847176209931581e-09, 3.84237024402364e-09, 3.8375702818199736e-09, 3.832776315820667e-09, 3.827988338535134e-09, 3.823206342482144e-09, 3.818430320189856e-09, 3.813660264195721e-09, 3.80889616704651e-09, 3.80413802129835e-09, 3.7993858195166205e-09, 3.794639554276008e-09, 3.789899218160457e-09, 3.785164803763219e-09, 3.780436303686757e-09, 3.775713710542776e-09, 3.770997016952249e-09, 3.7662862155453275e-09, 3.761581298961371e-09, 3.756882259848973e-09, 3.75218909086587e-09, 3.747501784678971e-09, 3.742820333964387e-09, 3.738144731407337e-09, 3.733474969702177e-09, 3.728811041552429e-09, 3.7241529396706924e-09, 3.7195006567786682e-09, 3.714854185607191e-09, 3.710213518896134e-09, 3.7055786493944417e-09, 3.700949569860157e-09, 3.696326273060327e-09, 3.6917087517710382e-09, 3.6870969987774387e-09, 3.6824910068736493e-09, 3.6778907688628073e-09, 3.6732962775570272e-09, 3.6687075257774413e-09, 3.6641245063541104e-09, 3.6595472121260535e-09, 3.6549756359412726e-09, 3.650409770656667e-09, 3.6458496091380574e-09, 3.641295144260217e-09, 3.63674636890678e-09, 3.6322032759702714e-09, 3.6276658583521337e-09, 3.6231341089626377e-09, 3.618608020720911e-09, 3.614087586554966e-09, 3.60957279940161e-09, 3.605063652206475e-09, 3.6005601379240426e-09, 3.596062249517558e-09, 3.5915699799590576e-09, 3.587083322229394e-09, 3.5826022693181513e-09, 3.5781268142236706e-09, 3.573656949953078e-09, 3.5691926695221963e-09, 3.564733965955587e-09, 3.5602808322865123e-09, 3.555833261556975e-09, 3.551391246817632e-09, 3.546954781127822e-09, 3.5425238575555925e-09, 3.5380984691776104e-09, 3.533678609079194e-09, 3.5292642703543357e-09, 3.524855446105618e-09, 3.5204521294442396e-09, 3.5160543134900417e-09, 3.5116619913714243e-09, 3.50727515622537e-09, 3.502893801197474e-09, 3.4985179194418544e-09, 3.494147504121184e-09, 3.489782548406711e-09, 3.4854230454781807e-09, 3.4810689885238558e-09, 3.4767203707405456e-09, 3.4723771853335223e-09, 3.468039425516545e-09, 3.4637070845118877e-09, 3.459380155550255e-09, 3.4550586318708193e-09, 3.4507425067211866e-09, 3.4464317733574346e-09, 3.44212642504403e-09, 3.4378264550538523e-09, 3.4335318566682222e-09, 3.429242623176817e-09, 3.4249587478776962e-09, 3.4206802240773275e-09, 3.416407045090505e-09, 3.4121392042403734e-09, 3.4078766948584544e-09, 3.403619510284565e-09, 3.3993676438668405e-09, 3.3951210889617633e-09, 3.3908798389340784e-09, 3.3866438871568197e-09, 3.3824132270113355e-09, 3.378187851887207e-09, 3.373967755182272e-09, 3.3697529303026533e-09, 3.3655433706626733e-09, 3.3613390696848827e-09, 3.357140020800085e-09, 3.352946217447252e-09, 3.3487576530735666e-09, 3.344574321134383e-09, 3.3403962150932687e-09, 3.33622332842192e-09, 3.3320556546001892e-09, 3.327893187116108e-09, 3.323735919465809e-09, 3.3195838451535486e-09, 3.3154369576917335e-09, 3.3112952506008393e-09, 3.307158717409436e-09, 3.303027351654213e-09, 3.2989011468798993e-09, 3.294780096639287e-09, 3.2906641944932576e-09, 3.2865534340107016e-09, 3.282447808768543e-09, 3.2783473123517652e-09, 3.2742519383533302e-09, 3.2701616803742035e-09, 3.266076532023379e-09, 3.2619964869178e-09, 3.2579215386823845e-09, 3.253851680950047e-09, 3.2497869073616238e-09, 3.2457272115659037e-09, 3.241672587219601e-09, 3.2376230279873867e-09, 3.233578527541812e-09, 3.2295390795633335e-09, 3.225504677740335e-09, 3.221475315769052e-09, 3.2174509873535936e-09, 3.2134316862059686e-09, 3.2094174060460077e-09, 3.205408140601385e-09, 3.2014038836076457e-09, 3.1974046288081257e-09, 3.1934103699539776e-09, 3.1894211008041935e-09, 3.185436815125528e-09, 3.181457506692523e-09, 3.177483169287531e-09, 3.1735137967006376e-09, 3.1695493827296855e-09, 3.1655899211803004e-09, 3.161635405865811e-09, 3.157685830607275e-09, 3.1537411892335035e-09, 3.1498014755809815e-09, 3.145866683493906e-09, 3.141936806824152e-09, 3.13801183943131e-09, 3.1340917751826047e-09, 3.130176607952925e-09, 3.1262663316248427e-09, 3.12236094008854e-09, 3.11846042724183e-09, 3.1145647869901835e-09, 3.1106740132466502e-09, 3.1067880999318846e-09, 3.1029070409741678e-09, 3.099030830309334e-09, 3.0951594618807924e-09, 3.0912929296395503e-09, 3.0874312275441395e-09, 3.0835743495606394e-09, 3.0797222896626988e-09, 3.075875041831462e-09, 3.072032600055593e-09, 3.0681949583312976e-09, 3.0643621106622487e-09, 3.0605340510596105e-09, 3.0567107735420604e-09, 3.052892272135716e-09, 3.0490785408741683e-09, 3.0452695737984495e-09, 3.0414653649570703e-09, 3.037665908405943e-09, 3.0338711982084045e-09, 3.0300812284352413e-09, 3.026295993164614e-09, 3.022515486482081e-09, 3.0187397024806214e-09, 3.014968635260561e-09, 3.0112022789295955e-09, 3.0074406276028147e-09, 3.003683675402626e-09, 2.9999314164587808e-09, 2.9961838449083947e-09, 2.992440954895876e-09, 2.9887027405729475e-09, 2.9849691960986697e-09, 2.981240315639368e-09, 2.9775160933686554e-09, 2.973796523467455e-09, 2.970081600123928e-09, 2.9663713175334947e-09, 2.962665669898859e-09, 2.9589646514299353e-09, 2.9552682563438815e-09, 2.951576478865069e-09, 2.9478893132251154e-09, 2.944206753662814e-09, 2.9405287944241533e-09, 2.936855429762343e-09, 2.9331866539377388e-09, 2.929522461217868e-09, 2.925862845877449e-09, 2.9222078021983223e-09, 2.9185573244694702e-09]} +RLMATH_EOF diff --git a/tasks/optimize-ae-p16-gagliardo-nirenberg-p6/tests/check.py b/tasks/optimize-ae-p16-gagliardo-nirenberg-p6/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..838f9f39aaa01ca7e91b20edcc51de765745cae1 --- /dev/null +++ b/tasks/optimize-ae-p16-gagliardo-nirenberg-p6/tests/check.py @@ -0,0 +1,27 @@ +"""Nagy / Gagliardo-Nirenberg quotient Q(f) = ||f||_p^{4p} / (||f||_2^{2(p+2)} ||f'||_2^{2(p-2)}), integer p. + +f is the non-negative piecewise-linear function with f(0) = f(m+1) = 0 and f(k) = values[k-1] (unit spacing; +Q is invariant under dilation and scaling, and |f| has the same norms as f, so this is no restriction in the +limit). All three norms are integrated exactly (polynomials on each unit segment). Upstream +(classical_inequalities.ipynb) sampled a user-supplied callable on [-15, 15]; this closed form replaces it. +""" +import numpy as np + +from run import Invalid, float_list + + +def check(inst, ans): + p = inst["p"] + v = float_list(ans.get("values"), None, "values") + if not 1 <= len(v) <= inst["max_len"]: + raise Invalid(f"need 1 <= len(values) <= {inst['max_len']}") + f = np.array([0.0] + v + [0.0]) + if f.min() < 0 or f.max() > 1e6 or f.max() <= 0: + raise Invalid("values must be non-negative, at most 1e6, and not all zero") + f = f / f.max() + c0, c1 = f[:-1], f[1:] + lp = sum(float(np.sum(c0 ** k * c1 ** (p - k))) for k in range(p + 1)) / (p + 1) # int f^p + l2 = float(np.sum(c0 * c0 + c0 * c1 + c1 * c1)) / 3 # int f^2 + d2 = float(np.sum((c1 - c0) ** 2)) # int f'^2 + q = lp ** 4 / (l2 ** (p + 2) * d2 ** (p - 2)) + return q, {} diff --git a/tasks/optimize-ae-p16-gagliardo-nirenberg-p6/tests/instance.json b/tasks/optimize-ae-p16-gagliardo-nirenberg-p6/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..51cb7ea2f7d7f504f44e363d98cfc8e81d28fe33 --- /dev/null +++ b/tasks/optimize-ae-p16-gagliardo-nirenberg-p6/tests/instance.json @@ -0,0 +1 @@ +{"p": 6, "max_len": 200000, "direction": "maximize", "best_known": 0.02697994026329436, "baseline": 0.010674263327780095, "family": "ae_p16_gagliardo_nirenberg", "subset": "optimize"} \ No newline at end of file diff --git a/tasks/optimize-ae-p16-gagliardo-nirenberg-p6/tests/run.py b/tasks/optimize-ae-p16-gagliardo-nirenberg-p6/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/optimize-ae-p16-gagliardo-nirenberg-p6/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/optimize-ae-p16-gagliardo-nirenberg-p6/tests/test.sh b/tasks/optimize-ae-p16-gagliardo-nirenberg-p6/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/optimize-ae-p16-gagliardo-nirenberg-p6/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/optimize-ae-p39-beat-the-average/environment/Dockerfile b/tasks/optimize-ae-p39-beat-the-average/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/optimize-ae-p39-beat-the-average/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/optimize-ae-p39-beat-the-average/environment/instance.json b/tasks/optimize-ae-p39-beat-the-average/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..b6bd2480d7736dc963ba05ca1055079775b0e383 --- /dev/null +++ b/tasks/optimize-ae-p39-beat-the-average/environment/instance.json @@ -0,0 +1 @@ +{"max_support": 1000, "max_value": 1000000000, "direction": "maximize", "family": "ae_p39_beat_the_average", "subset": "optimize"} \ No newline at end of file diff --git a/tasks/optimize-ae-p39-beat-the-average/solution/solve.sh b/tasks/optimize-ae-p39-beat-the-average/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..5caec31176dcbfdbb1f4535375801a1869817c60 --- /dev/null +++ b/tasks/optimize-ae-p39-beat-the-average/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"support": [0, 2, 3, 9784, 9785, 9786, 9787, 9788, 9789, 9790, 9791, 14825, 14989, 15055, 15056, 15059, 15085, 15086, 15097, 15098, 15104, 15105, 17351, 17353, 17358, 17377, 17381, 17382, 17383, 17384, 17390, 17391, 17392, 17394, 17395, 17397, 18482, 18483, 18486, 18488, 18489, 18491, 18492, 19051, 19052, 19057, 19058, 19059, 19060, 19064, 19066, 19333, 19351, 19365, 19366, 19367, 19376, 19377, 19378, 19379, 19382, 19383, 19474, 19475, 19477, 19478, 19521, 19522, 19523, 19544, 19545, 19555, 19556, 19560, 19561], "weights": [0.231672936, 0.101419306, 0.137386075, 0.013408059, 0.00779777817, 0.00751048105, 0.00735614544, 0.00697185805, 0.00557015355, 0.00426255416, 0.000164311564, 0.004223136, 0.00333411785, 0.000375469675, 0.00240596592, 0.00187748607, 0.00244663796, 0.00192819888, 0.00359048057, 0.00338419561, 0.00829361367, 0.00232804033, 0.00383314529, 0.00179236313, 0.00190350489, 0.000737058365, 0.00161431121, 0.0022678183, 0.00271079966, 0.0015775745, 0.00205766854, 0.000814282674, 0.00693967581, 0.00075133907, 0.00448648396, 0.00397850101, 0.00502777815, 0.0010249368, 0.00435638816, 0.00420180388, 0.00271864323, 0.00169505503, 0.0177106972, 0.00702431107, 0.00302390953, 0.000242645708, 0.00269677338, 0.00367775705, 0.00446012202, 0.0163248532, 0.00157995257, 0.008891556, 0.000905389718, 0.00301771357, 0.00717264418, 0.00124256938, 0.00131059943, 0.00398981888, 0.00453302282, 0.00248197017, 0.000991310357, 0.00776726232, 0.0138276568, 0.0069201992, 0.00713790761, 0.0155374818, 0.00505003438, 0.0157074944, 0.0243120869, 0.0316767993, 0.0186226699, 0.0386125038, 0.0177646278, 0.0384388325, 0.055150695]} +RLMATH_EOF diff --git a/tasks/optimize-ae-p39-beat-the-average/tests/check.py b/tasks/optimize-ae-p39-beat-the-average/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..d263a6c1292a91bebac4f75022e9e65d6038ea5b --- /dev/null +++ b/tasks/optimize-ae-p39-beat-the-average/tests/check.py @@ -0,0 +1,31 @@ +"""Beat-the-average game (AlphaEvolve problem 39): maximize P[X1+X2+X3 < 2 X4] for iid X on the integers. + +Sparse re-implementation of the upstream convolution score; ties (X1+X2+X3 = 2 X4) are decided exactly +because the support is integral.""" +import numpy as np + +from run import Invalid, float_list, int_list + + +def check(inst, ans): + s = ans.get("support") + w = ans.get("weights") + if not isinstance(s, list) or not (1 <= len(s) <= inst["max_support"]): + raise Invalid(f"support must be a list of 1..{inst['max_support']} integers") + int_list(s, None, 0, inst["max_value"], "support") + if len(set(s)) != len(s): + raise Invalid("support values must be distinct") + w = float_list(w, len(s), "weights") + if any(x < 0 for x in w) or sum(w) <= 1e-12: + raise Invalid("weights must be non-negative with positive sum") + x = np.array(s, dtype=np.int64) + p = np.array(w, dtype=np.float64) + p = p / p.sum() + z = np.add.outer(x, x).ravel() # X1 + X2 + pz = np.multiply.outer(p, p).ravel() + order = np.argsort(z, kind="stable") + z, cz = z[order], np.concatenate([[0.0], np.cumsum(pz[order])]) + t = (2 * x[None, :] - x[:, None]).ravel() # need X1+X2 < 2 X4 - X3; rows X3, cols X4 + pt = np.multiply.outer(p, p).ravel() + prob = float(np.dot(pt, cz[np.searchsorted(z, t, side="left")])) + return prob, {"support_size": len(s)} diff --git a/tasks/optimize-ae-p39-beat-the-average/tests/instance.json b/tasks/optimize-ae-p39-beat-the-average/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..16e7e65a081d558274e2fe589885a32027263889 --- /dev/null +++ b/tasks/optimize-ae-p39-beat-the-average/tests/instance.json @@ -0,0 +1 @@ +{"max_support": 1000, "max_value": 1000000000, "direction": "maximize", "best_known": 0.400695, "baseline": 0.25, "family": "ae_p39_beat_the_average", "subset": "optimize"} \ No newline at end of file diff --git a/tasks/optimize-ae-p39-beat-the-average/tests/run.py b/tasks/optimize-ae-p39-beat-the-average/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/optimize-ae-p39-beat-the-average/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/optimize-ae-p39-beat-the-average/tests/test.sh b/tasks/optimize-ae-p39-beat-the-average/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/optimize-ae-p39-beat-the-average/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/optimize-ae-p44-sum-difference-iii/environment/Dockerfile b/tasks/optimize-ae-p44-sum-difference-iii/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/optimize-ae-p44-sum-difference-iii/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/optimize-ae-p44-sum-difference-iii/environment/instance.json b/tasks/optimize-ae-p44-sum-difference-iii/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..64e65252404d32d589f1021aa9c41e2c8f6c1e8b --- /dev/null +++ b/tasks/optimize-ae-p44-sum-difference-iii/environment/instance.json @@ -0,0 +1 @@ +{"max_size": 60000, "max_value": 1000000000, "direction": "maximize", "family": "ae_p44_sum_difference_iii", "subset": "optimize"} \ No newline at end of file diff --git a/tasks/optimize-ae-p44-sum-difference-iii/solution/solve.sh b/tasks/optimize-ae-p44-sum-difference-iii/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..607b7895d1fcb73368e88766a29e43b95ac22457 --- /dev/null +++ b/tasks/optimize-ae-p44-sum-difference-iii/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"U": [0, 6, 43, 80, 117, 154, 191, 228, 2084, 2121, 2158, 2195, 2232, 2269, 4162, 4199, 4236, 4273, 4310, 6240, 6277, 6314, 6351, 6796, 6833, 6870, 6907, 6944, 6981, 8318, 8355, 8392, 8874, 8911, 8948, 8985, 9022, 10396, 10433, 10952, 10989, 11026, 11063, 12474, 13030, 13067, 13104, 13586, 13623, 13660, 13697, 13734, 15108, 15145, 15664, 15701, 15738, 15775, 17186, 17742, 17779, 17816, 19820, 19857, 20376, 20413, 20450, 20487, 21898, 22454, 22491, 22528, 24532, 24569, 26610, 27166, 27203, 27240, 29244, 29281, 31322, 33956, 33993, 36034, 40746, 309562, 309599, 309636, 309673, 309710, 309747, 311640, 311677, 311714, 311751, 311788, 313718, 313755, 313792, 313829, 315796, 315833, 315870, 316352, 316389, 316426, 316463, 316500, 317874, 317911, 318430, 318467, 318504, 318541, 319952, 320508, 320545, 320582, 322586, 322623, 323142, 323179, 323216, 323253, 324664, 325220, 325257, 325294, 327298, 327335, 329376, 329932, 329969, 330006, 332010, 332047, 334088, 336722, 336759, 338800, 343512, 619118, 619155, 619192, 619229, 619266, 621196, 621233, 621270, 621307, 623274, 623311, 623348, 625352, 625389, 625908, 625945, 625982, 626019, 627430, 627986, 628023, 628060, 630064, 630101, 632142, 632698, 632735, 632772, 634776, 634813, 636854, 639488, 639525, 641566, 646278, 928674, 928711, 928748, 928785, 930752, 930789, 930826, 932830, 932867, 934908, 935464, 935501, 935538, 937542, 937579, 939620, 942254, 942291, 944332, 949044, 1090636, 1090673, 1090710, 1090747, 1090784, 1090821, 1092714, 1092751, 1092788, 1092825, 1092862, 1094792, 1094829, 1094866, 1094903, 1096870, 1096907, 1096944, 1097426, 1097463, 1097500, 1097537, 1097574, 1098948, 1098985, 1099504, 1099541, 1099578, 1099615, 1101026, 1101582, 1101619, 1101656, 1103660, 1103697, 1104216, 1104253, 1104290, 1104327, 1105738, 1106294, 1106331, 1106368, 1108372, 1108409, 1110450, 1111006, 1111043, 1111080, 1113084, 1113121, 1115162, 1117796, 1117833, 1119874, 1124586, 1238230, 1238267, 1238304, 1240308, 1240345, 1242386, 1245020, 1245057, 1247098, 1251810, 1400192, 1400229, 1400266, 1400303, 1400340, 1402270, 1402307, 1402344, 1402381, 1404348, 1404385, 1404422, 1406426, 1406463, 1406982, 1407019, 1407056, 1407093, 1408504, 1409060, 1409097, 1409134, 1411138, 1411175, 1413216, 1413772, 1413809, 1413846, 1415850, 1415887, 1417928, 1420562, 1420599, 1422640, 1427352, 1547786, 1547823, 1549864, 1554576, 1709748, 1709785, 1709822, 1709859, 1711826, 1711863, 1711900, 1713904, 1713941, 1715982, 1716538, 1716575, 1716612, 1718616, 1718653, 1720694, 1723328, 1723365, 1725406, 1730118, 1857342, 2019304, 2019341, 2019378, 2021382, 2021419, 2023460, 2026094, 2026131, 2028172, 2032884, 2181266, 2181303, 2181340, 2181377, 2181414, 2183344, 2183381, 2183418, 2183455, 2185422, 2185459, 2185496, 2187500, 2187537, 2188056, 2188093, 2188130, 2188167, 2189578, 2190134, 2190171, 2190208, 2192212, 2192249, 2194290, 2194846, 2194883, 2194920, 2196924, 2196961, 2199002, 2201636, 2201673, 2203714, 2208426, 2328860, 2328897, 2330938, 2335650, 2490822, 2490859, 2490896, 2490933, 2492900, 2492937, 2492974, 2494978, 2495015, 2497056, 2497612, 2497649, 2497686, 2499690, 2499727, 2501768, 2504402, 2504439, 2506480, 2511192, 2523896, 2523933, 2523970, 2524007, 2524044, 2524081, 2525974, 2526011, 2526048, 2526085, 2526122, 2528052, 2528089, 2528126, 2528163, 2530130, 2530167, 2530204, 2530686, 2530723, 2530760, 2530797, 2530834, 2532208, 2532245, 2532764, 2532801, 2532838, 2532875, 2534286, 2534842, 2534879, 2534916, 2536920, 2536957, 2537476, 2537513, 2537550, 2537587, 2538998, 2539554, 2539591, 2539628, 2541632, 2541669, 2543710, 2544266, 2544303, 2544340, 2546344, 2546381, 2548422, 2551056, 2551093, 2553134, 2557846, 2638416, 2800378, 2800415, 2800452, 2802456, 2802493, 2804534, 2807168, 2807205, 2809246, 2813958, 2833452, 2833489, 2833526, 2833563, 2833600, 2835530, 2835567, 2835604, 2835641, 2837608, 2837645, 2837682, 2839686, 2839723, 2840242, 2840279, 2840316, 2840353, 2841764, 2842320, 2842357, 2842394, 2844398, 2844435, 2846476, 2847032, 2847069, 2847106, 2849110, 2849147, 2851188, 2853822, 2853859, 2855900, 2860612, 3109934, 3109971, 3112012, 3116724, 3143008, 3143045, 3143082, 3143119, 3145086, 3145123, 3145160, 3147164, 3147201, 3149242, 3149798, 3149835, 3149872, 3151876, 3151913, 3153954, 3156588, 3156625, 3158666, 3163378, 3271896, 3271933, 3271970, 3272007, 3273974, 3274011, 3274048, 3276052, 3276089, 3278130, 3278686, 3278723, 3278760, 3280764, 3280801, 3282842, 3285476, 3285513, 3287554, 3292266, 3419490, 3452564, 3452601, 3452638, 3454642, 3454679, 3456720, 3459354, 3459391, 3461432, 3466144, 3581452, 3581489, 3581526, 3583530, 3583567, 3585608, 3588242, 3588279, 3590320, 3595032, 3599084, 3599121, 3599158, 3599195, 3599232, 3599269, 3601162, 3601199, 3601236, 3601273, 3601310, 3603240, 3603277, 3603314, 3603351, 3605318, 3605355, 3605392, 3605874, 3605911, 3605948, 3605985, 3606022, 3607396, 3607433, 3607952, 3607989, 3608026, 3608063, 3609474, 3610030, 3610067, 3610104, 3612108, 3612145, 3612664, 3612701, 3612738, 3612775, 3614186, 3614526, 3614563, 3614600, 3614637, 3614674, 3614742, 3614779, 3614816, 3616604, 3616641, 3616678, 3616715, 3616820, 3616857, 3618682, 3618719, 3618756, 3618898, 3619454, 3619491, 3619528, 3620760, 3620797, 3621316, 3621353, 3621390, 3621427, 3621532, 3621569, 3622838, 3623394, 3623431, 3623468, 3623610, 3625472, 3625509, 3626244, 3626281, 3627550, 3628106, 3628143, 3628180, 3628322, 3630184, 3630221, 3632262, 3633034, 3634896, 3634933, 3636974, 3641686, 3762120, 3762157, 3764198, 3768910, 3891008, 3891045, 3893086, 3897798, 3908640, 3908677, 3908714, 3908751, 3908788, 3910718, 3910755, 3910792, 3910829, 3912796, 3912833, 3912870, 3914874, 3914911, 3915430, 3915467, 3915504, 3915541, 3916952, 3917508, 3917545, 3917582, 3919586, 3919623, 3921664, 3922220, 3922257, 3922294, 3924082, 3924119, 3924156, 3924193, 3924298, 3924335, 3926160, 3926197, 3926234, 3926376, 3928238, 3928275, 3929010, 3929047, 3930316, 3930872, 3930909, 3930946, 3931088, 3932950, 3932987, 3935028, 3935800, 3937662, 3937699, 3939740, 3944452, 4071676, 4200564, 4218196, 4218233, 4218270, 4218307, 4220274, 4220311, 4220348, 4222352, 4222389, 4224430, 4224986, 4225023, 4225060, 4227064, 4227101, 4229142, 4231776, 4231813, 4233638, 4233675, 4233712, 4233854, 4235716, 4235753, 4237794, 4238566, 4240428, 4240465, 4242506, 4247218, 4362526, 4362563, 4362600, 4364604, 4364641, 4366682, 4369316, 4369353, 4371394, 4376106, 4527752, 4527789, 4527826, 4529830, 4529867, 4531908, 4534542, 4534579, 4536620, 4541332, 4543194, 4543231, 4545272, 4549984, 4672082, 4672119, 4674160, 4678872, 4689714, 4689751, 4689788, 4689825, 4689862, 4691792, 4691829, 4691866, 4691903, 4693870, 4693907, 4693944, 4695948, 4695985, 4696504, 4696541, 4696578, 4696615, 4698026, 4698582, 4698619, 4698656, 4700660, 4700697, 4702738, 4703294, 4703331, 4703368, 4705156, 4705193, 4705230, 4705267, 4705372, 4705409, 4707234, 4707271, 4707308, 4707450, 4709312, 4709349, 4710084, 4710121, 4711390, 4711946, 4711983, 4712020, 4712162, 4714024, 4714061, 4716102, 4716874, 4718736, 4718773, 4720814, 4725526, 4837308, 4837345, 4839386, 4844098, 4852750, 4981638, 4999270, 4999307, 4999344, 4999381, 5001348, 5001385, 5001422, 5003426, 5003463, 5005504, 5006060, 5006097, 5006134, 5008138, 5008175, 5010216, 5012850, 5012887, 5014712, 5014749, 5014786, 5014928, 5016790, 5016827, 5018868, 5019640, 5021502, 5021539, 5023580, 5028292, 5047786, 5047823, 5047860, 5047897, 5047934, 5049864, 5049901, 5049938, 5049975, 5051942, 5051979, 5052016, 5054020, 5054057, 5054576, 5054613, 5054650, 5054687, 5056098, 5056654, 5056691, 5056728, 5058732, 5058769, 5060810, 5061366, 5061403, 5061440, 5063444, 5063481, 5065522, 5068156, 5068193, 5070234, 5074946, 5146864, 5308826, 5308863, 5308900, 5310904, 5310941, 5312982, 5315616, 5315653, 5317694, 5322406, 5324268, 5324305, 5326346, 5331058, 5357342, 5357379, 5357416, 5357453, 5359420, 5359457, 5359494, 5361498, 5361535, 5363576, 5364132, 5364169, 5364206, 5366210, 5366247, 5368288, 5370922, 5370959, 5373000, 5377712, 5453156, 5453193, 5455234, 5459946, 5618382, 5618419, 5620460, 5625172, 5633824, 5666898, 5666935, 5666972, 5668976, 5669013, 5671054, 5673688, 5673725, 5675766, 5680478, 5762712, 5780344, 5780381, 5780418, 5780455, 5782422, 5782459, 5782496, 5784500, 5784537, 5786578, 5787134, 5787171, 5787208, 5789212, 5789249, 5791290, 5793924, 5793961, 5795786, 5795823, 5795860, 5796002, 5797864, 5797901, 5799942, 5800714, 5802576, 5802613, 5804654, 5809366, 5927938, 5976454, 5976491, 5978532, 5983244, 6036640, 6036677, 6036714, 6036751, 6036788, 6036825, 6038718, 6038755, 6038792, 6038829, 6038866, 6040796, 6040833, 6040870, 6040907, 6042874, 6042911, 6042948, 6043430, 6043467, 6043504, 6043541, 6043578, 6044952, 6044989, 6045508, 6045545, 6045582, 6045619, 6047030, 6047586, 6047623, 6047660, 6049664, 6049701, 6050220, 6050257, 6050294, 6050331, 6051742, 6052298, 6052335, 6052372, 6054376, 6054413, 6056454, 6057010, 6057047, 6057084, 6059088, 6059125, 6061166, 6063800, 6063837, 6065878, 6070590, 6089900, 6089937, 6089974, 6091978, 6092015, 6094056, 6096690, 6096727, 6098768, 6103480, 6105342, 6105379, 6107420, 6112132, 6122974, 6123011, 6123048, 6123085, 6123122, 6125052, 6125089, 6125126, 6125163, 6127130, 6127167, 6127204, 6129208, 6129245, 6129764, 6129801, 6129838, 6129875, 6131286, 6131842, 6131879, 6131916, 6133920, 6133957, 6135998, 6136554, 6136591, 6136628, 6138416, 6138453, 6138490, 6138527, 6138632, 6138669, 6140494, 6140531, 6140568, 6140710, 6142572, 6142609, 6143344, 6143381, 6144650, 6145206, 6145243, 6145280, 6145422, 6147284, 6147321, 6149362, 6150134, 6151996, 6152033, 6154074, 6158786, 6286010, 6346196, 6346233, 6346270, 6346307, 6346344, 6348274, 6348311, 6348348, 6348385, 6350352, 6350389, 6350426, 6352430, 6352467, 6352986, 6353023, 6353060, 6353097, 6354508, 6355064, 6355101, 6355138, 6357142, 6357179, 6359220, 6359776, 6359813, 6359850, 6361854, 6361891, 6363932, 6366566, 6366603, 6368644, 6373356, 6399456, 6399493, 6401534, 6406246, 6414898, 6432530, 6432567, 6432604, 6432641, 6434608, 6434645, 6434682, 6436686, 6436723, 6438764, 6439320, 6439357, 6439394, 6441398, 6441435, 6443476, 6446110, 6446147, 6447972, 6448009, 6448046, 6448188, 6450050, 6450087, 6452128, 6452900, 6454762, 6454799, 6456840, 6461552, 6543786, 6655752, 6655789, 6655826, 6655863, 6657830, 6657867, 6657904, 6659908, 6659945, 6661986, 6662542, 6662579, 6662616, 6664620, 6664657, 6666698, 6669332, 6669369, 6671410, 6676122, 6709012, 6742086, 6742123, 6742160, 6744164, 6744201, 6746242, 6748876, 6748913, 6750954, 6755666, 6757528, 6757565, 6759606, 6764318, 6870974, 6871011, 6871048, 6873052, 6873089, 6875130, 6877764, 6877801, 6879842, 6884554, 6886416, 6886453, 6888494, 6893206, 6965308, 6965345, 6965382, 6967386, 6967423, 6969464, 6972098, 6972135, 6974176, 6978888, 7051642, 7051679, 7053720, 7058432, 7067084, 7127270, 7127307, 7127344, 7127381, 7127418, 7129348, 7129385, 7129422, 7129459, 7131426, 7131463, 7131500, 7133504, 7133541, 7134060, 7134097, 7134134, 7134171, 7135582, 7136138, 7136175, 7136212, 7138216, 7138253, 7140294, 7140850, 7140887, 7140924, 7142928, 7142965, 7145006, 7147640, 7147677, 7149718, 7154430, 7180530, 7180567, 7182608, 7187320, 7195972, 7198162, 7198199, 7198236, 7198273, 7198310, 7200240, 7200277, 7200314, 7200351, 7202318, 7202355, 7202392, 7204396, 7204433, 7204952, 7204989, 7205026, 7205063, 7206474, 7207030, 7207067, 7207104, 7209108, 7209145, 7211186, 7211742, 7211779, 7211816, 7213604, 7213641, 7213678, 7213715, 7213820, 7213857, 7215682, 7215719, 7215756, 7215898, 7217760, 7217797, 7218532, 7218569, 7219838, 7220394, 7220431, 7220468, 7220610, 7222472, 7222509, 7224550, 7225322, 7227184, 7227221, 7229046, 7229083, 7229120, 7229262, 7231124, 7231161, 7233202, 7233974, 7235836, 7235873, 7237914, 7242626, 7274864, 7274901, 7276942, 7281654, 7361198, 7436826, 7436863, 7436900, 7436937, 7438904, 7438941, 7438978, 7440982, 7441019, 7443060, 7443616, 7443653, 7443690, 7445694, 7445731, 7447772, 7450406, 7450443, 7452484, 7457196, 7490086, 7507718, 7507755, 7507792, 7507829, 7509796, 7509833, 7509870, 7511874, 7511911, 7513952, 7514508, 7514545, 7514582, 7516586, 7516623, 7518664, 7521298, 7521335, 7523160, 7523197, 7523234, 7523376, 7525238, 7525275, 7527316, 7528088, 7529950, 7529987, 7532028, 7536740, 7538602, 7538639, 7540680, 7545392, 7571676, 7571713, 7571750, 7571787, 7573754, 7573791, 7573828, 7575832, 7575869, 7577910, 7578466, 7578503, 7578540, 7580544, 7580581, 7582622, 7584420, 7585256, 7585293, 7587334, 7592046, 7746382, 7746419, 7746456, 7748460, 7748497, 7750538, 7753172, 7753209, 7755250, 7759962, 7817274, 7817311, 7817348, 7819352, 7819389, 7821430, 7824064, 7824101, 7826142, 7830854, 7832716, 7832753, 7834794, 7839506, 7848158, 7881232, 7881269, 7881306, 7883310, 7883347, 7885388, 7888022, 7888059, 7890100, 7894812, 7961604, 7961641, 7963682, 7968394, 7977046, 8055938, 8055975, 8058016, 8062728, 8126830, 8126867, 8128908, 8133620, 8142272, 8190788, 8190825, 8192866, 8197578, 8217900, 8217937, 8217974, 8218011, 8219978, 8220015, 8220052, 8222056, 8222093, 8224134, 8224690, 8224727, 8224764, 8226768, 8226805, 8228846, 8231480, 8231517, 8233558, 8238270, 8271160, 8288792, 8288829, 8288866, 8288903, 8290870, 8290907, 8290944, 8292948, 8292985, 8295026, 8295582, 8295619, 8295656, 8297660, 8297697, 8299738, 8302372, 8302409, 8304234, 8304271, 8304308, 8304450, 8306312, 8306349, 8308390, 8309162, 8311024, 8311061, 8313102, 8317814, 8319676, 8319713, 8321754, 8326466, 8365494, 8436386, 8500344, 8527456, 8527493, 8527530, 8529534, 8529571, 8531612, 8534246, 8534283, 8536324, 8541036, 8560530, 8560567, 8560604, 8560641, 8560678, 8562608, 8562645, 8562682, 8562719, 8564686, 8564723, 8564760, 8566764, 8566801, 8567320, 8567357, 8567394, 8567431, 8568842, 8569398, 8569435, 8569472, 8571476, 8571513, 8573554, 8574110, 8574147, 8574184, 8576188, 8576225, 8578266, 8580900, 8580937, 8582978, 8587690, 8598348, 8598385, 8598422, 8600426, 8600463, 8602504, 8605138, 8605175, 8607216, 8611928, 8613790, 8613827, 8615868, 8620580, 8629232, 8646864, 8646901, 8646938, 8646975, 8648942, 8648979, 8649016, 8651020, 8651057, 8653098, 8653654, 8653691, 8653728, 8655732, 8655769, 8657810, 8660444, 8660481, 8662306, 8662343, 8662380, 8662522, 8664384, 8664421, 8666462, 8667234, 8669096, 8669133, 8671174, 8675886, 8837012, 8837049, 8839090, 8843802, 8870086, 8870123, 8870160, 8870197, 8872164, 8872201, 8872238, 8874242, 8874279, 8876320, 8876876, 8876913, 8876950, 8878954, 8878991, 8881032, 8883666, 8883703, 8885744, 8890456, 8907904, 8907941, 8909982, 8914694, 8923346, 8956420, 8956457, 8956494, 8958498, 8958535, 8960576, 8963210, 8963247, 8965288, 8970000, 8971862, 8971899, 8973940, 8978652, 9052234, 9146568, 9179642, 9179679, 9179716, 9181720, 9181757, 9183798, 9186432, 9186469, 9188510, 9193222, 9217460, 9265976, 9266013, 9268054, 9272766, 9281418, 9308530, 9308567, 9308604, 9310608, 9310645, 9312686, 9315320, 9315357, 9317398, 9322110, 9379422, 9379459, 9379496, 9381500, 9381537, 9383578, 9386212, 9386249, 9388290, 9393002, 9394864, 9394901, 9396942, 9401654, 9410306, 9489198, 9489235, 9491276, 9495988, 9575532, 9618086, 9618123, 9620164, 9624876, 9635718, 9635755, 9635792, 9635829, 9635866, 9637796, 9637833, 9637870, 9637907, 9639874, 9639911, 9639948, 9641952, 9641989, 9642508, 9642545, 9642582, 9642619, 9644030, 9644586, 9644623, 9644660, 9646664, 9646701, 9648742, 9649298, 9649335, 9649372, 9651160, 9651197, 9651234, 9651271, 9651376, 9651413, 9653238, 9653275, 9653312, 9653454, 9655316, 9655353, 9656088, 9656125, 9657394, 9657950, 9657987, 9658024, 9658166, 9660028, 9660065, 9662106, 9662878, 9664740, 9664777, 9666818, 9671530, 9688978, 9689015, 9691056, 9695768, 9704420, 9722052, 9722089, 9722126, 9722163, 9724130, 9724167, 9724204, 9726208, 9726245, 9728286, 9728842, 9728879, 9728916, 9730920, 9730957, 9732998, 9735632, 9735669, 9737494, 9737531, 9737568, 9737710, 9739572, 9739609, 9741650, 9742422, 9744284, 9744321, 9746362, 9751074, 9752936, 9752973, 9755014, 9759726, 9798754, 9927642, 9945274, 9945311, 9945348, 9945385, 9947352, 9947389, 9947426, 9949430, 9949467, 9951508, 9952064, 9952101, 9952138, 9954142, 9954179, 9956220, 9958854, 9958891, 9960716, 9960753, 9960790, 9960932, 9962794, 9962831, 9964872, 9965644, 9967506, 9967543, 9969584, 9974296, 9998534, 10031608, 10031645, 10031682, 10033686, 10033723, 10035764, 10038398, 10038435, 10040476, 10045188, 10047050, 10047087, 10049128, 10053840, 10062492, 10095566, 10095603, 10095640, 10097644, 10097681, 10099722, 10102356, 10102393, 10104434, 10109146, 10254830, 10254867, 10254904, 10256908, 10256945, 10258986, 10261620, 10261657, 10263698, 10268410, 10270272, 10270309, 10272350, 10277062, 10341164, 10341201, 10343242, 10347954, 10356606, 10399160, 10399197, 10401238, 10405122, 10405159, 10405950, 10407200, 10411912, 10470052, 10470089, 10472130, 10476842, 10485494, 10564386, 10564423, 10566464, 10571176, 10579828, 10650720, 10708716, 10714678, 10726348, 10726385, 10726422, 10726459, 10728426, 10728463, 10728500, 10730504, 10730541, 10732582, 10733138, 10733175, 10733212, 10735216, 10735253, 10737294, 10739928, 10739965, 10741790, 10741827, 10741864, 10742006, 10743868, 10743905, 10745946, 10746718, 10748580, 10748617, 10750658, 10755370, 10779608, 10797240, 10797277, 10797314, 10797351, 10799318, 10799355, 10799392, 10801396, 10801433, 10803474, 10804030, 10804067, 10804104, 10806108, 10806145, 10808186, 10810820, 10810857, 10812682, 10812719, 10812756, 10812898, 10814760, 10814797, 10816838, 10817610, 10819472, 10819509, 10821550, 10826262, 10828124, 10828161, 10830202, 10834914, 10843566, 10873942, 11035904, 11035941, 11035978, 11037982, 11038019, 11040060, 11042694, 11042731, 11044772, 11049484, 11051346, 11051383, 11053424, 11058136, 11084420, 11084457, 11084494, 11084531, 11086498, 11086535, 11086572, 11088576, 11088613, 11090654, 11091210, 11091247, 11091284, 11093288, 11093325, 11095366, 11098000, 11098037, 11100078, 11104790, 11106796, 11106833, 11106870, 11108874, 11108911, 11110952, 11113586, 11113623, 11115664, 11120376, 11122238, 11122275, 11124316, 11129028, 11137680, 11170754, 11170791, 11170828, 11172832, 11172869, 11174910, 11177544, 11177581, 11179622, 11184334, 11186196, 11186233, 11188274, 11192986, 11345460, 11345497, 11347538, 11352250, 11360902, 11393976, 11394013, 11394050, 11396054, 11396091, 11398132, 11400766, 11400803, 11402844, 11407556, 11416352, 11416389, 11418430, 11423142, 11431794, 11480310, 11480347, 11482388, 11487100, 11489790, 11495752, 11560682, 11655016, 11703532, 11703569, 11705610, 11710322, 11725908, 11789866, 11816978, 11817015, 11817052, 11819056, 11819093, 11821134, 11823768, 11823805, 11825846, 11830558, 11832420, 11832457, 11834498, 11839210, 11887870, 11887907, 11887944, 11889948, 11889985, 11892026, 11894660, 11894697, 11896738, 11901450, 11903312, 11903349, 11905390, 11910102, 11918754, 12013088, 12073274, 12073311, 12073348, 12073385, 12073422, 12075352, 12075389, 12075426, 12075463, 12077430, 12077467, 12077504, 12079508, 12079545, 12080064, 12080101, 12080138, 12080175, 12081586, 12082142, 12082179, 12082216, 12084220, 12084257, 12086298, 12086854, 12086891, 12086928, 12088932, 12088969, 12091010, 12093644, 12093681, 12095722, 12100434, 12126534, 12126571, 12128612, 12133324, 12141976, 12159608, 12159645, 12159682, 12159719, 12161686, 12161723, 12161760, 12163764, 12163801, 12165842, 12166398, 12166435, 12166472, 12168476, 12168513, 12170554, 12173188, 12173225, 12175050, 12175087, 12175124, 12175266, 12177128, 12177165, 12179206, 12179978, 12181840, 12181877, 12183918, 12188630, 12197426, 12197463, 12199504, 12204216, 12212868, 12245942, 12245979, 12246016, 12248020, 12248057, 12250098, 12252732, 12252769, 12254810, 12259522, 12261384, 12261421, 12263462, 12268174, 12276826, 12382830, 12382867, 12382904, 12382941, 12384908, 12384945, 12384982, 12386986, 12387023, 12389064, 12389620, 12389657, 12389694, 12391698, 12391735, 12393776, 12396410, 12396447, 12398488, 12403200, 12436090, 12469164, 12469201, 12469238, 12471242, 12471279, 12473320, 12475954, 12475991, 12478032, 12482744, 12484606, 12484643, 12486684, 12491396, 12506982, 12555498, 12555535, 12557576, 12562288, 12570940, 12619456, 12619493, 12621534, 12626246, 12692386, 12692423, 12692460, 12694464, 12694501, 12696542, 12699176, 12699213, 12701254, 12705966, 12778720, 12778757, 12780798, 12785510, 12794162, 12865054, 12907608, 12907645, 12909686, 12914398, 12923050, 12929012, 12978500, 12978537, 12980578, 12985290, 12993942, 13001942, 13001979, 13004020, 13008732, 13088276, 13163904, 13163941, 13163978, 13164015, 13165982, 13166019, 13166056, 13168060, 13168097, 13170138, 13170694, 13170731, 13170768, 13172772, 13172809, 13174850, 13177484, 13177521, 13179562, 13184274, 13217164, 13234796, 13234833, 13234870, 13234907, 13236874, 13236911, 13236948, 13238952, 13238989, 13241030, 13241586, 13241623, 13241660, 13243664, 13243701, 13245742, 13248376, 13248413, 13250238, 13250275, 13250312, 13250454, 13252316, 13252353, 13254394, 13255166, 13257028, 13257065, 13259106, 13263818, 13265680, 13265717, 13267758, 13272470, 13288056, 13311498, 13321130, 13321167, 13321204, 13323208, 13323245, 13325286, 13327920, 13327957, 13329998, 13334710, 13336572, 13336609, 13338650, 13343362, 13352014, 13473460, 13473497, 13473534, 13475538, 13475575, 13477616, 13480250, 13480287, 13482328, 13487040, 13544352, 13544389, 13544426, 13546430, 13546467, 13548508, 13551142, 13551179, 13553220, 13557932, 13559794, 13559831, 13561872, 13566584, 13575236, 13608310, 13608347, 13608384, 13610388, 13610425, 13612466, 13615100, 13615137, 13617178, 13621890, 13630686, 13630723, 13632764, 13637476, 13646128, 13694644, 13694681, 13696722, 13701434, 13710086, 13783016, 13783053, 13785094, 13789806, 13853908, 13853945, 13855986, 13860698, 13869350, 13917866, 13917903, 13919944, 13924656, 13940242, 13998238, 14004200, 14069130, 14092572, 14163464, 14227422, 14254534, 14254571, 14254608, 14256612, 14256649, 14258690, 14261324, 14261361, 14263402, 14268114, 14325426, 14325463, 14325500, 14327504, 14327541, 14329582, 14332216, 14332253, 14334294, 14339006, 14340868, 14340905, 14342946, 14347658, 14356310, 14396318, 14396355, 14396392, 14398396, 14398433, 14400474, 14403108, 14403145, 14405186, 14409898, 14411760, 14411797, 14413838, 14418550, 14427202, 14564090, 14564127, 14566168, 14570880, 14597164, 14597201, 14597238, 14597275, 14599242, 14599279, 14599316, 14601320, 14601357, 14603398, 14603954, 14603991, 14604028, 14606032, 14606069, 14608110, 14610744, 14610781, 14612822, 14617534, 14634982, 14635019, 14637060, 14641772, 14650424, 14683498, 14683535, 14683572, 14685576, 14685613, 14687654, 14690288, 14690325, 14692366, 14697078, 14698940, 14698977, 14701018, 14705730, 14705874, 14705911, 14707952, 14712664, 14721316, 14769832, 14769869, 14771910, 14776622, 14785274, 14873646, 14906720, 14906757, 14906794, 14908798, 14908835, 14910876, 14913510, 14913547, 14915588, 14920300, 14944538, 14993054, 14993091, 14995132, 14999844, 15008496, 15015430, 15079388, 15143346, 15216276, 15216313, 15218354, 15223066, 15302610, 15345164, 15345201, 15347242, 15351954, 15416056, 15416093, 15418134, 15422846, 15431498, 15486948, 15486985, 15489026, 15493738, 15502390, 15525832, 15654720, 15672352, 15672389, 15672426, 15672463, 15674430, 15674467, 15674504, 15676508, 15676545, 15678586, 15679142, 15679179, 15679216, 15681220, 15681257, 15683298, 15685932, 15685969, 15687794, 15687831, 15687868, 15688010, 15689872, 15689909, 15691950, 15692722, 15694584, 15694621, 15696662, 15701374, 15725612, 15758686, 15758723, 15758760, 15760764, 15760801, 15762842, 15765476, 15765513, 15767554, 15772266, 15774128, 15774165, 15776206, 15780918, 15789570, 15796504, 15845020, 15845057, 15847098, 15851810, 15860462, 15981908, 15981945, 15981982, 15983986, 15984023, 15986064, 15988698, 15988735, 15990776, 15995488, 15997350, 15997387, 15999428, 16004140, 16068242, 16068279, 16070320, 16075032, 16083684, 16132200, 16132237, 16134278, 16138990, 16154576, 16218534, 16291464, 16291501, 16293542, 16298254, 16306906, 16377798, 16435794, 16441756, 16506686, 16577578, 16601020, 16762982, 16763019, 16763056, 16765060, 16765097, 16767138, 16767492, 16767529, 16767566, 16767603, 16767640, 16767677, 16769570, 16769607, 16769644, 16769681, 16769718, 16769772, 16769809, 16771648, 16771685, 16771722, 16771759, 16771850, 16773726, 16773763, 16773800, 16774282, 16774319, 16774356, 16774393, 16774430, 16775804, 16775841, 16776360, 16776397, 16776434, 16776471, 16776562, 16777882, 16778424, 16778438, 16778461, 16778475, 16778512, 16780502, 16780516, 16780553, 16781072, 16781109, 16781146, 16781183, 16782594, 16783150, 16783187, 16783224, 16785214, 16785228, 16785265, 16787306, 16787862, 16787899, 16787936, 16789940, 16789977, 16792018, 16794652, 16794689, 16796730, 16801442, 16833874, 16833911, 16833948, 16835952, 16835989, 16838030, 16840664, 16840701, 16842742, 16847454, 16849316, 16849353, 16851394, 16856106, 16864758, 16920208, 16920245, 16922286, 16926998, 16935650, 17072538, 17072575, 17074616, 17077048, 17077085, 17077122, 17077159, 17077196, 17079126, 17079163, 17079200, 17079237, 17079328, 17081204, 17081241, 17081278, 17083282, 17083319, 17083838, 17083875, 17083912, 17083949, 17085360, 17085916, 17085953, 17085990, 17087980, 17087994, 17088031, 17090072, 17090628, 17090665, 17090702, 17092706, 17092743, 17094784, 17097418, 17097455, 17099496, 17104208, 17121054, 17121091, 17121128, 17123132, 17123169, 17125210, 17127844, 17127881, 17129922, 17134634, 17143430, 17143467, 17145508, 17150220, 17158872, 17207388, 17207425, 17209466, 17214178, 17222830, 17229764, 17293722, 17382094, 17386604, 17386641, 17386678, 17386715, 17388682, 17388719, 17388756, 17390760, 17390797, 17392838, 17393394, 17393431, 17393468, 17395472, 17395509, 17397550, 17400184, 17400221, 17402262, 17406974, 17430610, 17430647, 17432688, 17437400, 17452986, 17516944, 17696160, 17696197, 17696234, 17698238, 17698275, 17700316, 17702950, 17702987, 17705028, 17709740, 17740166, 17853612, 17853649, 17855690, 17858122, 17858159, 17858196, 17858233, 17858270, 17860200, 17860237, 17860274, 17860311, 17860402, 17862278, 17862315, 17862352, 17864356, 17864393, 17864912, 17864949, 17864986, 17865023, 17866434, 17866990, 17867027, 17867064, 17869054, 17869068, 17869105, 17871146, 17871702, 17871739, 17871776, 17873780, 17873817, 17875858, 17878492, 17878529, 17880570, 17885282, 17924504, 17924541, 17926582, 17931294, 17939946, 17995396, 17995433, 17997474, 18002186, 18005716, 18005753, 18007794, 18010838, 18012506, 18109908, 18109945, 18109982, 18110019, 18111986, 18112023, 18112060, 18114064, 18114101, 18116142, 18116698, 18116735, 18116772, 18118776, 18118813, 18120854, 18123488, 18123525, 18125566, 18130278, 18163168, 18167678, 18167715, 18167752, 18167789, 18169756, 18169793, 18169830, 18171834, 18171871, 18173912, 18174468, 18174505, 18174542, 18176546, 18176583, 18178624, 18181258, 18181295, 18183336, 18188048, 18196242, 18196279, 18196316, 18198320, 18198357, 18200398, 18203032, 18203069, 18205110, 18209822, 18211684, 18211721, 18213762, 18218474, 18234060, 18282576, 18282613, 18284654, 18289366, 18298018, 18304952, 18315272, 18368910, 18419464, 18419501, 18419538, 18421542, 18421579, 18423620, 18426254, 18426291, 18428332, 18433044, 18477234, 18477271, 18477308, 18479312, 18479349, 18481390, 18484024, 18484061, 18486102, 18490814, 18505798, 18505835, 18507876, 18512588, 18521240, 18592132, 18656090, 18729020, 18729057, 18731098, 18735810, 18786790, 18786827, 18788868, 18793580, 18815354, 18944242, 18948752, 18948789, 18948826, 18948863, 18950830, 18950867, 18950904, 18952908, 18952945, 18954986, 18955542, 18955579, 18955616, 18957620, 18957657, 18959698, 18962332, 18962369, 18964410, 18969122, 19015134, 19038576, 19086026, 19096346, 19200538, 19200575, 19200612, 19202616, 19202653, 19204694, 19207328, 19207365, 19209406, 19214118, 19258308, 19258345, 19258382, 19260386, 19260423, 19262464, 19265098, 19265135, 19267176, 19271430, 19271467, 19271504, 19271888, 19273508, 19273545, 19275586, 19278220, 19278257, 19280298, 19285010, 19286872, 19286909, 19288950, 19291382, 19291419, 19291456, 19291493, 19291530, 19293460, 19293497, 19293534, 19293571, 19293662, 19295538, 19295575, 19295612, 19297616, 19297653, 19298172, 19298209, 19298246, 19298283, 19299694, 19300250, 19300287, 19300324, 19302314, 19302328, 19302365, 19304406, 19304962, 19304999, 19305036, 19307040, 19307077, 19309118, 19311752, 19311789, 19313830, 19318542, 19357764, 19357801, 19359842, 19364554, 19373206, 19444098, 19510094, 19510131, 19512172, 19516884, 19567864, 19567901, 19569942, 19574654, 19580986, 19581023, 19583064, 19587776, 19596428, 19600938, 19600975, 19601012, 19601049, 19603016, 19603053, 19603090, 19605094, 19605131, 19607172, 19607728, 19607765, 19607802, 19609806, 19609843, 19611884, 19614518, 19614555, 19616596, 19621308, 19644944, 19644981, 19647022, 19651734, 19667320, 19731278, 19819650, 19877420, 19890542, 19910494, 19910531, 19910568, 19912572, 19912609, 19914650, 19917284, 19917321, 19919362, 19924074, 19954500, 20039382, 20039419, 20039456, 20041460, 20041497, 20043538, 20046172, 20046209, 20048250, 20052962, 20220050, 20220087, 20222128, 20226840, 20291168, 20291205, 20293246, 20297958, 20348938, 20348975, 20351016, 20355728, 20362060, 20362097, 20364138, 20366570, 20366607, 20366644, 20366681, 20366718, 20368648, 20368685, 20368722, 20368759, 20368850, 20370726, 20370763, 20370800, 20372804, 20372841, 20373360, 20373397, 20373434, 20373471, 20374882, 20375438, 20375475, 20375512, 20377502, 20377516, 20377553, 20379594, 20380150, 20380187, 20380224, 20382012, 20382049, 20382086, 20382123, 20382228, 20382265, 20384090, 20384127, 20384164, 20384306, 20386168, 20386205, 20386940, 20386977, 20388246, 20388802, 20388839, 20388876, 20389018, 20390880, 20390917, 20392958, 20393730, 20395592, 20395629, 20397670, 20402382, 20432952, 20432989, 20435030, 20439742, 20448394, 20519286, 20529606, 20600724, 20633798, 20633835, 20633872, 20635876, 20635913, 20637954, 20640588, 20640625, 20642666, 20647378, 20658494, 20671616, 20676126, 20676163, 20676200, 20676237, 20678204, 20678241, 20678278, 20680282, 20680319, 20682360, 20682916, 20682953, 20682990, 20684994, 20685031, 20687072, 20689706, 20689743, 20691568, 20691605, 20691642, 20691784, 20693646, 20693683, 20695724, 20696496, 20698358, 20698395, 20700436, 20705148, 20720132, 20720169, 20722210, 20726922, 20735574, 20742508, 20806466, 20943354, 20943391, 20945432, 20950144, 20985682, 20985719, 20985756, 20987760, 20987797, 20989838, 20992472, 20992509, 20994550, 20999262, 21001124, 21001161, 21003202, 21007914, 21029688, 21130012, 21130049, 21132090, 21136802, 21252910, 21295238, 21295275, 21297316, 21302028, 21310680, 21381798, 21439568, 21452690, 21457200, 21457237, 21457274, 21457311, 21459278, 21459315, 21459352, 21461356, 21461393, 21463434, 21463990, 21464027, 21464064, 21466068, 21466105, 21468146, 21470780, 21470817, 21472642, 21472679, 21472716, 21472858, 21474720, 21474757, 21476798, 21477570, 21479432, 21479469, 21481510, 21486222, 21523582, 21594474, 21604794, 21708986, 21709023, 21709060, 21711064, 21711101, 21713142, 21715776, 21715813, 21717854, 21722566, 21724428, 21724465, 21726506, 21731218, 21766756, 21766793, 21766830, 21768834, 21768871, 21770912, 21773546, 21773583, 21775624, 21780336, 21782198, 21782235, 21784276, 21788988, 21795320, 21795357, 21797398, 21802110, 21810762, 21815272, 21815309, 21815346, 21815383, 21817350, 21817387, 21817424, 21819428, 21819465, 21821506, 21822062, 21822099, 21822136, 21824140, 21824177, 21826218, 21828852, 21828889, 21830930, 21835642, 21881654, 22018542, 22018579, 22020620, 22025332, 22033984, 22076312, 22076349, 22078390, 22083102, 22091754, 22104876, 22124828, 22124865, 22124902, 22126906, 22126943, 22128984, 22131618, 22131655, 22133696, 22138408, 22168834, 22220642, 22328098, 22385868, 22434384, 22434421, 22436462, 22441174, 22547830, 22547867, 22547904, 22549908, 22549945, 22551986, 22554620, 22554657, 22556698, 22561410, 22563272, 22563309, 22565350, 22570062, 22743940, 22799616, 22799653, 22801694, 22804126, 22804163, 22804200, 22804237, 22804274, 22806204, 22806241, 22806278, 22806315, 22806406, 22808282, 22808319, 22808356, 22810360, 22810397, 22810916, 22810953, 22810990, 22811027, 22812438, 22812994, 22813031, 22813068, 22815058, 22815072, 22815109, 22817150, 22817706, 22817743, 22817780, 22819784, 22819821, 22821862, 22824496, 22824533, 22826574, 22831286, 22857386, 22857423, 22859464, 22864176, 22870508, 22870545, 22872586, 22872828, 22877298, 22885950, 22890460, 22890497, 22890534, 22890571, 22892538, 22892575, 22892612, 22894616, 22894653, 22896694, 22897250, 22897287, 22897324, 22899328, 22899365, 22901406, 22904040, 22904077, 22905902, 22905939, 22905976, 22906118, 22907980, 22908017, 22910058, 22910830, 22912692, 22912729, 22914770, 22919482, 22956842, 23109172, 23113682, 23113719, 23113756, 23113793, 23115760, 23115797, 23115834, 23117838, 23117875, 23119916, 23120472, 23120509, 23120546, 23122550, 23122587, 23124628, 23127262, 23127299, 23129340, 23134052, 23157688, 23157725, 23159766, 23164478, 23166942, 23180064, 23200016, 23200053, 23200090, 23202094, 23202131, 23204172, 23206806, 23206843, 23208884, 23213596, 23215458, 23215495, 23217536, 23222248, 23244022, 23423238, 23423275, 23423312, 23425316, 23425353, 23427394, 23430028, 23430065, 23432106, 23436818, 23467244, 23509572, 23509609, 23511650, 23516362, 23525014, 23638460, 23638497, 23640538, 23645250, 23653902, 23732794, 23732831, 23734872, 23739584, 23819128, 23890246, 23894756, 23894793, 23894830, 23894867, 23896834, 23896871, 23896908, 23898912, 23898949, 23900990, 23901546, 23901583, 23901620, 23903624, 23903661, 23905702, 23908336, 23908373, 23910414, 23915126, 23948016, 23961138, 23965648, 23965685, 23965722, 23965759, 23967726, 23967763, 23967800, 23969804, 23969841, 23971882, 23972438, 23972475, 23972512, 23974516, 23974553, 23976594, 23979228, 23979265, 23981090, 23981127, 23981164, 23981306, 23983168, 23983205, 23985246, 23986018, 23987880, 23987917, 23989958, 23994670, 23996532, 23996569, 23998610, 24003322, 24032030, 24042350, 24146542, 24146579, 24146616, 24148620, 24148657, 24150698, 24153332, 24153369, 24155410, 24160122, 24204312, 24204349, 24204386, 24206390, 24206427, 24208468, 24211102, 24211139, 24213180, 24217892, 24232876, 24232913, 24234954, 24239666, 24248318, 24275204, 24275241, 24275278, 24277282, 24277319, 24279360, 24281994, 24282031, 24284072, 24288784, 24290646, 24290683, 24292724, 24297436, 24306088, 24319210, 24339162, 24339199, 24339236, 24341240, 24341277, 24343318, 24345952, 24345989, 24348030, 24352742, 24456098, 24456135, 24458176, 24462888, 24513868, 24513905, 24515946, 24520658, 24542432, 24584760, 24584797, 24586838, 24591550, 24600202, 24648718, 24648755, 24650796, 24655508, 24729090, 24765654, 24823424, 24894316, 24958274, 24985386, 24985423, 24985460, 24987464, 24987501, 24989542, 24992176, 24992213, 24994254, 24998966, 25056278, 25056315, 25056352, 25058356, 25058393, 25060434, 25063068, 25063105, 25065146, 25069858, 25071720, 25071757, 25073798, 25078510, 25087162, 25237172, 25237209, 25239250, 25243962, 25294942, 25294979, 25297020, 25301732, 25308064, 25308101, 25310142, 25314854, 25323506, 25328016, 25328053, 25328090, 25328127, 25330094, 25330131, 25330168, 25332172, 25332209, 25334250, 25334806, 25334843, 25334880, 25336884, 25336921, 25338962, 25341596, 25341633, 25343674, 25348386, 25365834, 25365871, 25367912, 25372624, 25381276, 25394398, 25414350, 25414387, 25414424, 25416428, 25416465, 25418506, 25421140, 25421177, 25423218, 25427930, 25429792, 25429829, 25431870, 25436582, 25546728, 25604498, 25617620, 25637572, 25637609, 25637646, 25639650, 25639687, 25641728, 25644362, 25644399, 25646440, 25651152, 25675390, 25681578, 25723906, 25723943, 25725984, 25730696, 25739348, 25947128, 25947165, 25949206, 25953918, 26033462, 26076016, 26076053, 26078094, 26082806, 26146908, 26146945, 26148986, 26153698, 26162350, 26256684, 26327802, 26385572, 26398694, 26403204, 26403241, 26403278, 26403315, 26405282, 26405319, 26405356, 26407360, 26407397, 26409438, 26409994, 26410031, 26410068, 26412072, 26412109, 26414150, 26416784, 26416821, 26418646, 26418683, 26418720, 26418862, 26420724, 26420761, 26422802, 26423574, 26425436, 26425473, 26427514, 26432226, 26456464, 26469586, 26489538, 26489575, 26489612, 26491616, 26491653, 26493694, 26496328, 26496365, 26498406, 26503118, 26504980, 26505017, 26507058, 26511770, 26520422, 26670432, 26670469, 26672510, 26677222, 26712760, 26712797, 26712834, 26714838, 26714875, 26716916, 26719550, 26719587, 26721628, 26726340, 26728202, 26728239, 26730280, 26734992, 26756766, 26799094, 26799131, 26801172, 26805884, 26814536, 26863052, 26863089, 26865130, 26869842, 26979988, 27022316, 27022353, 27024394, 27029106, 27037758, 27108650, 27166646, 27172608, 27237538, 27331872, 27493834, 27493871, 27493908, 27495912, 27495949, 27497990, 27500624, 27500661, 27502702, 27507414, 27509276, 27509313, 27511354, 27516066, 27564726, 27564763, 27564800, 27566804, 27566841, 27568882, 27571516, 27571553, 27573594, 27578306, 27580168, 27580205, 27582246, 27586958, 27595610, 27745620, 27745657, 27747698, 27752410, 27761062, 27803390, 27803427, 27805468, 27810180, 27818832, 27831954, 27851906, 27851943, 27851980, 27853984, 27854021, 27856062, 27858696, 27858733, 27860774, 27865486, 27874282, 27874319, 27876360, 27881072, 27889724, 27938240, 27938277, 27940318, 27945030, 27953682, 28055176, 28112946, 28161462, 28161499, 28163540, 28168252, 28183838, 28247796, 28471018, 28584464, 28584501, 28586542, 28591254, 28599906, 28655356, 28655393, 28657434, 28662146, 28670798, 28836250, 28840760, 28840797, 28840834, 28840871, 28842838, 28842875, 28842912, 28844916, 28844953, 28846994, 28847550, 28847587, 28847624, 28849628, 28849665, 28851706, 28854340, 28854377, 28856418, 28861130, 28894020, 28907142, 28927094, 28927131, 28927168, 28929172, 28929209, 28931250, 28933884, 28933921, 28935962, 28940674, 28942536, 28942573, 28944614, 28949326, 28964912, 29013428, 29013465, 29015506, 29020218, 29028870, 29150316, 29150353, 29150390, 29152394, 29152431, 29154472, 29157106, 29157143, 29159184, 29163896, 29194322, 29236650, 29236687, 29238728, 29243440, 29252092, 29322984, 29386942, 29459872, 29459909, 29461950, 29466662, 29546206, 29675094, 29745986, 29769428, 29931390, 29931427, 29931464, 29933468, 29933505, 29935546, 29938180, 29938217, 29940258, 29944970, 30002282, 30002319, 30002356, 30004360, 30004397, 30006438, 30009072, 30009109, 30011150, 30015862, 30017724, 30017761, 30019802, 30024514, 30033166, 30088616, 30088653, 30090694, 30095406, 30104058, 30183176, 30183213, 30185254, 30189966, 30240946, 30240983, 30243024, 30247736, 30269510, 30311838, 30311875, 30313916, 30318628, 30327280, 30375796, 30375833, 30377874, 30382586, 30398172, 30462130, 30492732, 30550502, 30621394, 30685352, 31022020, 31022057, 31024098, 31028810, 31092912, 31092949, 31094990, 31099702, 31108354, 31163804, 31163841, 31165882, 31170594, 31179246, 31273806, 31331576, 31344698, 31364650, 31364687, 31364724, 31366728, 31366765, 31368806, 31371440, 31371477, 31373518, 31378230, 31402468, 31450984, 31451021, 31453062, 31457774, 31466426, 31473360, 31537318, 31674206, 31674243, 31676284, 31680996, 31760540, 31983762, 32112650, 32183542, 32254434, 32439838, 32439875, 32439912, 32441916, 32441953, 32443994, 32446628, 32446665, 32448706, 32453418, 32455280, 32455317, 32457358, 32462070, 32526172, 32526209, 32528250, 32532962, 32541614, 32612506, 32707066, 32749394, 32749431, 32751472, 32756184, 32764836, 32835728, 32899686, 33058950, 33530468, 33530505, 33532546, 33534978, 33535015, 33535052, 33535089, 33535126, 33537056, 33537093, 33537130, 33537167, 33537258, 33539134, 33539171, 33539208, 33541212, 33541249, 33541768, 33541805, 33541842, 33541879, 33543290, 33543846, 33543883, 33543920, 33545910, 33545924, 33545961, 33548002, 33548558, 33548595, 33548632, 33550636, 33550673, 33552714, 33555348, 33555385, 33557426, 33562138, 33601360, 33601397, 33603438, 33608150, 33616802, 33687694, 33782254, 33840024, 33844534, 33844571, 33844608, 33844645, 33846612, 33846649, 33846686, 33848690, 33848727, 33850768, 33851324, 33851361, 33851398, 33853402, 33853439, 33855480, 33858114, 33858151, 33860192, 33864904, 33888540, 33888577, 33890618, 33895330, 33910916, 33974874, 34154090, 34154127, 34154164, 34156168, 34156205, 34158246, 34160880, 34160917, 34162958, 34167670, 34198096, 34463646, 34463683, 34465724, 34470436, 34621098, 34625608, 34625645, 34625682, 34625719, 34627686, 34627723, 34627760, 34629764, 34629801, 34631842, 34632398, 34632435, 34632472, 34634476, 34634513, 34636554, 34639188, 34639225, 34641266, 34645978, 34691990, 34762882, 34773202, 34877394, 34877431, 34877468, 34879472, 34879509, 34881550, 34884184, 34884221, 34886262, 34890974, 34935164, 34935201, 34935238, 34937242, 34937279, 34939320, 34941954, 34941991, 34944032, 34948744, 34963728, 34963765, 34965806, 34970518, 34979170, 35050062, 35186950, 35186987, 35189028, 35193740, 35244720, 35244757, 35246798, 35251510, 35273284, 35496506, 35554276, 35716238, 35716275, 35716312, 35718316, 35718353, 35720394, 35723028, 35723065, 35725106, 35729818, 35968024, 35968061, 35970102, 35974814, 36025794, 36025831, 36027872, 36032584, 36038916, 36038953, 36040994, 36045706, 36054358, 36058868, 36058905, 36058942, 36058979, 36060946, 36060983, 36061020, 36063024, 36063061, 36065102, 36065658, 36065695, 36065732, 36067736, 36067773, 36069814, 36072448, 36072485, 36074526, 36079238, 36125250, 36219810, 36277580, 36335350, 36348472, 36368424, 36368461, 36368498, 36370502, 36370539, 36372580, 36375214, 36375251, 36377292, 36382004, 36412430, 36677980, 36678017, 36680058, 36684770, 36806868, 36806905, 36808946, 36813658, 36987536, 37058654, 37116424, 37129546, 37134056, 37134093, 37134130, 37134167, 37136134, 37136171, 37136208, 37138212, 37138249, 37140290, 37140846, 37140883, 37140920, 37142924, 37142961, 37145002, 37147636, 37147673, 37149498, 37149535, 37149572, 37149714, 37151576, 37151613, 37153654, 37154426, 37156288, 37156325, 37158366, 37163078, 37200438, 37401284, 37401321, 37403362, 37408074, 37443612, 37443649, 37443686, 37445690, 37445727, 37447768, 37450402, 37450439, 37452480, 37457192, 37459054, 37459091, 37461132, 37465844, 37487618, 37710840, 37753168, 37753205, 37755246, 37759958, 37768610, 37897498, 38062724, 38224686, 38224723, 38224760, 38226764, 38226801, 38228842, 38231476, 38231513, 38233554, 38238266, 38240128, 38240165, 38242206, 38246918, 38476472, 38476509, 38478550, 38483262, 38491914, 38534242, 38534279, 38536320, 38541032, 38549684, 38562806, 38582758, 38582795, 38582832, 38584836, 38584873, 38586914, 38589548, 38589585, 38591626, 38596338, 38786028, 38843798, 38892314, 38892351, 38894392, 38899104, 39201870, 39315316, 39315353, 39317394, 39322106, 39330758, 39567102, 39571612, 39571649, 39571686, 39571723, 39573690, 39573727, 39573764, 39575768, 39575805, 39577846, 39578402, 39578439, 39578476, 39580480, 39580517, 39582558, 39585192, 39585229, 39587270, 39591982, 39624872, 39637994, 39657946, 39657983, 39658020, 39660024, 39660061, 39662102, 39664736, 39664773, 39666814, 39671526, 39673388, 39673425, 39675466, 39680178, 39881168, 39881205, 39881242, 39883246, 39883283, 39885324, 39887958, 39887995, 39890036, 39894748, 39925174, 39967502, 39967539, 39969580, 39974292, 39982944, 40190724, 40190761, 40192802, 40197514, 40277058, 40405946, 40500280, 40662242, 40662279, 40662316, 40664320, 40664357, 40666398, 40669032, 40669069, 40671110, 40675822, 40733134, 40733171, 40733208, 40735212, 40735249, 40737290, 40739924, 40739961, 40742002, 40746714, 40748576, 40748613, 40750654, 40755366, 40764018, 40914028, 40914065, 40916106, 40920818, 40971798, 40971835, 40973876, 40978588, 41000362, 41042690, 41042727, 41044768, 41049480, 41058132, 41106648, 41106685, 41108726, 41113438, 41223584, 41281354, 41352246, 41416204, 41752872, 41752909, 41754950, 41759662, 41823764, 41823801, 41825842, 41830554, 41839206, 42004658, 42062428, 42075550, 42095502, 42095539, 42095576, 42097580, 42097617, 42099658, 42102292, 42102329, 42104370, 42109082, 42133320, 42181836, 42181873, 42183914, 42188626, 42197278, 42405058, 42405095, 42407136, 42411848, 42491392, 42714614, 42843502, 42914394, 43170690, 43170727, 43170764, 43172768, 43172805, 43174846, 43177480, 43177517, 43179558, 43184270, 43186132, 43186169, 43188210, 43192922, 43257024, 43257061, 43259102, 43263814, 43272466, 43437918, 43480246, 43480283, 43482324, 43487036, 43495688, 43566580, 43630538, 43789802, 44261320, 44261357, 44263398, 44268110, 44276762, 44332212, 44332249, 44334290, 44339002, 44347654, 44513106, 44570876, 44619392, 44619429, 44621470, 44626182, 44641768, 44705726, 44928948, 45351950, 45422842, 45608246, 45608283, 45608320, 45610324, 45610361, 45612402, 45615036, 45615073, 45617114, 45621826, 45694580, 45694617, 45696658, 45701370, 45710022, 45780914, 45917802, 45917839, 45919880, 45924592, 46004136, 46227358, 46698876, 46698913, 46700954, 46705666, 46769768, 46769805, 46771846, 46776558, 46785210, 46856102, 46950662, 47008432, 47079324, 47143282, 47789506, 47860398, 47931290, 48132136, 48132173, 48134214, 48138926, 48218470, 48441692, 49207324, 49207361, 49209402, 49214114, 49222766, 49293658, 49516880, 50297954, 50302464, 50302501, 50302538, 50302575, 50304542, 50304579, 50304616, 50306620, 50306657, 50308698, 50309254, 50309291, 50309328, 50311332, 50311369, 50313410, 50316044, 50316081, 50318122, 50322834, 50368846, 50612020, 50612057, 50612094, 50614098, 50614135, 50616176, 50618810, 50618847, 50620888, 50625600, 50656026, 50921576, 50921613, 50923654, 50928366, 51231132, 51393094, 51393131, 51393168, 51395172, 51395209, 51397250, 51399884, 51399921, 51401962, 51406674, 51644880, 51644917, 51646958, 51651670, 51702650, 51702687, 51704728, 51709440, 51731214, 51954436, 52012206, 52483724, 52483761, 52485802, 52490514, 52735510, 52793280, 52806402, 52826354, 52826391, 52826428, 52828432, 52828469, 52830510, 52833144, 52833181, 52835222, 52839934, 53135910, 53135947, 53137988, 53142700, 53445466, 53574354, 53901542, 53901579, 53901616, 53903620, 53903657, 53905698, 53908332, 53908369, 53910410, 53915122, 53916984, 53917021, 53919062, 53923774, 54168770, 54211098, 54211135, 54213176, 54217888, 54226540, 54520654, 54992172, 54992209, 54994250, 54998962, 55007614, 55243958, 55301728, 55350244, 55350281, 55352322, 55357034, 55659800, 56082802, 56339098, 56339135, 56339172, 56341176, 56341213, 56343254, 56345888, 56345925, 56347966, 56352678, 56425432, 56425469, 56427510, 56432222, 56440874, 56648654, 56648691, 56650732, 56655444, 56734988, 56958210, 57429728, 57429765, 57431806, 57436518, 57500620, 57500657, 57502698, 57507410, 57516062, 57681514, 57739284, 57810176, 57874134, 58520358, 58591250, 58862988, 58863025, 58865066, 58869778, 58949322, 59172544, 59938176, 59938213, 59940254, 59944966, 59953618, 60024510, 60247732, 61028806, 61099698, 61386878, 62375732, 62375769, 62377810, 62382522, 62462066, 62685288, 63466362, 63537254, 64899622, 65974810, 67069950, 67069987, 67070024, 67072028, 67072065, 67074106, 67076740, 67076777, 67078818, 67083530, 67379506, 67379543, 67381584, 67386296, 67689062, 68160580, 68160617, 68162658, 68167370, 68412366, 68470136, 69251210, 69593840, 69593877, 69595918, 69600630, 69903396, 70669028, 70669065, 70671106, 70675818, 70684470, 70978584, 71759658, 72117730, 73106584, 73106621, 73108662, 73113374, 73192918, 73416140, 74197214, 74268106, 75630474, 76705662, 79143218, 79790198, 79790235, 79790272, 79790309, 79790346, 79790383, 79792276, 79792313, 79792350, 79792387, 79792424, 79794354, 79794391, 79794428, 79794465, 79796432, 79796469, 79796506, 79796988, 79797025, 79797062, 79797099, 79797136, 79798510, 79798547, 79799066, 79799103, 79799140, 79799177, 79800588, 79801144, 79801181, 79801218, 79803222, 79803259, 79803778, 79803815, 79803852, 79803889, 79805300, 79805856, 79805893, 79805930, 79807934, 79807971, 79810012, 79810568, 79810605, 79810642, 79812646, 79812683, 79814724, 79817358, 79817395, 79819436, 79824148, 80099754, 80099791, 80099828, 80099865, 80099902, 80101832, 80101869, 80101906, 80101943, 80103910, 80103947, 80103984, 80105988, 80106025, 80106544, 80106581, 80106618, 80106655, 80108066, 80108622, 80108659, 80108696, 80110700, 80110737, 80112778, 80113334, 80113371, 80113408, 80115412, 80115449, 80117490, 80120124, 80120161, 80122202, 80126914, 80409310, 80409347, 80409384, 80409421, 80411388, 80411425, 80411462, 80413466, 80413503, 80415544, 80416100, 80416137, 80416174, 80418178, 80418215, 80420256, 80422890, 80422927, 80424968, 80429680, 80718866, 80718903, 80718940, 80720944, 80720981, 80723022, 80725656, 80725693, 80727734, 80732446, 80880828, 80880865, 80880902, 80880939, 80880976, 80882906, 80882943, 80882980, 80883017, 80884984, 80885021, 80885058, 80887062, 80887099, 80887618, 80887655, 80887692, 80887729, 80889140, 80889696, 80889733, 80889770, 80891774, 80891811, 80893852, 80894408, 80894445, 80894482, 80896486, 80896523, 80898564, 80901198, 80901235, 80903276, 80907988, 81028422, 81028459, 81030500, 81035212, 81190384, 81190421, 81190458, 81190495, 81192462, 81192499, 81192536, 81194540, 81194577, 81196618, 81197174, 81197211, 81197248, 81199252, 81199289, 81201330, 81203964, 81204001, 81206042, 81210754, 81337978, 81499940, 81499977, 81500014, 81502018, 81502055, 81504096, 81506730, 81506767, 81508808, 81513520, 81809496, 81809533, 81811574, 81816286, 81971458, 81971495, 81971532, 81971569, 81973536, 81973573, 81973610, 81975614, 81975651, 81977692, 81978248, 81978285, 81978322, 81980326, 81980363, 81982404, 81985038, 81985075, 81987116, 81991828, 82119052, 82281014, 82281051, 82281088, 82283092, 82283129, 82285170, 82287804, 82287841, 82289882, 82294594, 82314088, 82314125, 82314162, 82314199, 82314236, 82316166, 82316203, 82316240, 82316277, 82318244, 82318281, 82318318, 82320322, 82320359, 82320878, 82320915, 82320952, 82320989, 82322400, 82322956, 82322993, 82323030, 82325034, 82325071, 82327112, 82327668, 82327705, 82327742, 82329746, 82329783, 82331824, 82334458, 82334495, 82336536, 82341248, 82590570, 82590607, 82592648, 82597360, 82623644, 82623681, 82623718, 82623755, 82625722, 82625759, 82625796, 82627800, 82627837, 82629878, 82630434, 82630471, 82630508, 82632512, 82632549, 82634590, 82637224, 82637261, 82639302, 82644014, 82900126, 82933200, 82933237, 82933274, 82935278, 82935315, 82937356, 82939990, 82940027, 82942068, 82946780, 83062088, 83062125, 83062162, 83064166, 83064203, 83066244, 83068878, 83068915, 83070956, 83075668, 83242756, 83242793, 83244834, 83249546, 83371644, 83371681, 83373722, 83378434, 83389276, 83389313, 83389350, 83389387, 83389424, 83391354, 83391391, 83391428, 83391465, 83393432, 83393469, 83393506, 83395510, 83395547, 83396066, 83396103, 83396140, 83396177, 83397588, 83398144, 83398181, 83398218, 83400222, 83400259, 83402300, 83402856, 83402893, 83402930, 83404718, 83404755, 83404792, 83404829, 83404934, 83404971, 83406796, 83406833, 83406870, 83407012, 83408874, 83408911, 83409646, 83409683, 83410952, 83411508, 83411545, 83411582, 83411724, 83413586, 83413623, 83415664, 83416436, 83418298, 83418335, 83420376, 83425088, 83552312, 83681200, 83698832, 83698869, 83698906, 83698943, 83700910, 83700947, 83700984, 83702988, 83703025, 83705066, 83705622, 83705659, 83705696, 83707700, 83707737, 83709778, 83712412, 83712449, 83714274, 83714311, 83714348, 83714490, 83716352, 83716389, 83718430, 83719202, 83721064, 83721101, 83723142, 83727854, 83837436, 83837473, 83839514, 83844226, 84008388, 84008425, 84008462, 84010466, 84010503, 84012544, 84015178, 84015215, 84017256, 84021968, 84023830, 84023867, 84025908, 84030620, 84146992, 84152718, 84152755, 84154796, 84159508, 84317944, 84317981, 84320022, 84324734, 84333386, 84462274, 84479906, 84479943, 84479980, 84480017, 84481984, 84482021, 84482058, 84484062, 84484099, 84486140, 84486696, 84486733, 84486770, 84488774, 84488811, 84490852, 84493486, 84493523, 84495348, 84495385, 84495422, 84495564, 84497426, 84497463, 84499504, 84500276, 84502138, 84502175, 84504216, 84508928, 84627500, 84789462, 84789499, 84789536, 84791540, 84791577, 84793618, 84796252, 84796289, 84798330, 84803042, 84804904, 84804941, 84806982, 84811694, 84837978, 84838015, 84838052, 84838089, 84840056, 84840093, 84840130, 84842134, 84842171, 84844212, 84844768, 84844805, 84844842, 84846846, 84846883, 84848924, 84851558, 84851595, 84853636, 84858348, 84928066, 85099018, 85099055, 85101096, 85105808, 85114460, 85147534, 85147571, 85147608, 85149612, 85149649, 85151690, 85154324, 85154361, 85156402, 85161114, 85243348, 85408574, 85457090, 85457127, 85459168, 85463880, 85570536, 85570573, 85570610, 85572614, 85572651, 85574692, 85577326, 85577363, 85579404, 85584116, 85585978, 85586015, 85588056, 85592768, 85766646, 85826832, 85826869, 85826906, 85826943, 85826980, 85828910, 85828947, 85828984, 85829021, 85830988, 85831025, 85831062, 85833066, 85833103, 85833622, 85833659, 85833696, 85833733, 85835144, 85835700, 85835737, 85835774, 85837778, 85837815, 85839856, 85840412, 85840449, 85840486, 85842490, 85842527, 85844568, 85847202, 85847239, 85849280, 85853992, 85880092, 85880129, 85882170, 85886882, 85895534, 85913166, 85913203, 85913240, 85913277, 85915244, 85915281, 85915318, 85917322, 85917359, 85919400, 85919956, 85919993, 85920030, 85922034, 85922071, 85924112, 85926746, 85926783, 85928608, 85928645, 85928682, 85928824, 85930686, 85930723, 85932764, 85933536, 85935398, 85935435, 85937476, 85942188, 86136388, 86136425, 86136462, 86136499, 86138466, 86138503, 86138540, 86140544, 86140581, 86142622, 86143178, 86143215, 86143252, 86145256, 86145293, 86147334, 86149968, 86150005, 86152046, 86156758, 86189648, 86222722, 86222759, 86222796, 86224800, 86224837, 86226878, 86229512, 86229549, 86231590, 86236302, 86238164, 86238201, 86240242, 86244954, 86361326, 86445944, 86445981, 86446018, 86448022, 86448059, 86450100, 86452734, 86452771, 86454812, 86459524, 86532278, 86532315, 86534356, 86539068, 86547720, 86661166, 86661203, 86663244, 86667956, 86676608, 86755500, 86755537, 86757578, 86762290, 86841834, 86917462, 86917499, 86917536, 86917573, 86919540, 86919577, 86919614, 86921618, 86921655, 86923696, 86924252, 86924289, 86924326, 86926330, 86926367, 86928408, 86931042, 86931079, 86933120, 86937832, 86970722, 86988354, 86988391, 86988428, 86988465, 86990432, 86990469, 86990506, 86992510, 86992547, 86994588, 86995144, 86995181, 86995218, 86997222, 86997259, 86999300, 87001934, 87001971, 87003796, 87003833, 87003870, 87004012, 87005874, 87005911, 87007952, 87008724, 87010586, 87010623, 87012664, 87017376, 87019238, 87019275, 87021316, 87026028, 87065056, 87227018, 87227055, 87227092, 87229096, 87229133, 87231174, 87233808, 87233845, 87235886, 87240598, 87297910, 87297947, 87297984, 87299988, 87300025, 87302066, 87304700, 87304737, 87306778, 87311490, 87313352, 87313389, 87315430, 87320142, 87328794, 87361868, 87361905, 87361942, 87363946, 87363983, 87366024, 87368658, 87368695, 87370736, 87375448, 87436514, 87536574, 87536611, 87538652, 87543364, 87607466, 87607503, 87609544, 87614256, 87622908, 87671424, 87671461, 87673502, 87678214, 87751796, 87846130, 87917022, 87980980, 88008092, 88008129, 88008166, 88010170, 88010207, 88012248, 88014882, 88014919, 88016960, 88021672, 88078984, 88079021, 88079058, 88081062, 88081099, 88083140, 88085774, 88085811, 88087852, 88092564, 88094426, 88094463, 88096504, 88101216, 88109868, 88317648, 88317685, 88319726, 88324438, 88350722, 88350759, 88350796, 88350833, 88352800, 88352837, 88352874, 88354878, 88354915, 88356956, 88357512, 88357549, 88357586, 88359590, 88359627, 88361668, 88364302, 88364339, 88366380, 88371092, 88388540, 88388577, 88390618, 88395330, 88403982, 88437056, 88437093, 88437130, 88439134, 88439171, 88441212, 88443846, 88443883, 88445924, 88450636, 88452498, 88452535, 88454576, 88459288, 88627204, 88660278, 88660315, 88660352, 88662356, 88662393, 88664434, 88667068, 88667105, 88669146, 88673858, 88698096, 88746612, 88746649, 88748690, 88753402, 88762054, 88969834, 88969871, 88971912, 88976624, 89056168, 89098722, 89098759, 89100800, 89105512, 89169614, 89169651, 89171692, 89176404, 89185056, 89279390, 89408278, 89425910, 89425947, 89425984, 89426021, 89427988, 89428025, 89428062, 89430066, 89430103, 89432144, 89432700, 89432737, 89432774, 89434778, 89434815, 89436856, 89439490, 89439527, 89441352, 89441389, 89441426, 89441568, 89443430, 89443467, 89445508, 89446280, 89448142, 89448179, 89450220, 89454932, 89479170, 89512244, 89512281, 89512318, 89514322, 89514359, 89516400, 89519034, 89519071, 89521112, 89525824, 89527686, 89527723, 89529764, 89534476, 89543128, 89735466, 89735503, 89735540, 89737544, 89737581, 89739622, 89742256, 89742293, 89744334, 89749046, 89750908, 89750945, 89752986, 89757698, 89821800, 89821837, 89823878, 89828590, 89837242, 89874070, 89885758, 89885795, 89887836, 89892548, 90045022, 90045059, 90047100, 90051812, 90060464, 90131356, 90189352, 90195314, 90260244, 90354578, 90516540, 90516577, 90516614, 90518618, 90518655, 90520696, 90523330, 90523367, 90525408, 90530120, 90531982, 90532019, 90534060, 90538772, 90587432, 90587469, 90587506, 90589510, 90589547, 90591588, 90594222, 90594259, 90596300, 90601012, 90602874, 90602911, 90604952, 90609664, 90618316, 90826096, 90826133, 90828174, 90832886, 90841538, 90874612, 90874649, 90874686, 90876690, 90876727, 90878768, 90881402, 90881439, 90883480, 90888192, 90896988, 90897025, 90899066, 90903778, 90912430, 90960946, 90960983, 90963024, 90967736, 90976388, 91135652, 91184168, 91184205, 91186246, 91190958, 91206544, 91270502, 91493724, 91607170, 91607207, 91609248, 91613960, 91622612, 91678062, 91678099, 91680140, 91684852, 91693504, 91863466, 91863503, 91863540, 91863577, 91865544, 91865581, 91865618, 91867622, 91867659, 91869700, 91870256, 91870293, 91870330, 91872334, 91872371, 91874412, 91877046, 91877083, 91879124, 91883836, 91916726, 91949800, 91949837, 91949874, 91951878, 91951915, 91953956, 91956590, 91956627, 91958668, 91963380, 91965242, 91965279, 91967320, 91972032, 91987618, 92036134, 92036171, 92038212, 92042924, 92051576, 92173022, 92173059, 92173096, 92175100, 92175137, 92177178, 92179812, 92179849, 92181890, 92186602, 92259356, 92259393, 92261434, 92266146, 92274798, 92345690, 92409648, 92482578, 92482615, 92484656, 92489368, 92568912, 92697800, 92768692, 92792134, 92954096, 92954133, 92954170, 92956174, 92956211, 92958252, 92960886, 92960923, 92962964, 92967676, 93024988, 93025025, 93025062, 93027066, 93027103, 93029144, 93031778, 93031815, 93033856, 93038568, 93040430, 93040467, 93042508, 93047220, 93055872, 93111322, 93111359, 93113400, 93118112, 93126764, 93263652, 93263689, 93265730, 93270442, 93334544, 93334581, 93336622, 93341334, 93349986, 93398502, 93398539, 93400580, 93405292, 93420878, 93484836, 93573208, 93644100, 93708058, 94044726, 94044763, 94046804, 94051516, 94115618, 94115655, 94117696, 94122408, 94131060, 94186510, 94186547, 94188588, 94193300, 94201952, 94354282, 94387356, 94387393, 94387430, 94389434, 94389471, 94391512, 94394146, 94394183, 94396224, 94400936, 94425174, 94473690, 94473727, 94475768, 94480480, 94489132, 94496066, 94560024, 94696912, 94696949, 94698990, 94703702, 94783246, 95006468, 95135356, 95206248, 95277140, 95462544, 95462581, 95462618, 95464622, 95464659, 95466700, 95469334, 95469371, 95471412, 95476124, 95477986, 95478023, 95480064, 95484776, 95548878, 95548915, 95550956, 95555668, 95564320, 95635212, 95772100, 95772137, 95774178, 95778890, 95787542, 95858434, 95922392, 96081656, 96553174, 96553211, 96555252, 96557684, 96557721, 96557758, 96557795, 96557832, 96559762, 96559799, 96559836, 96559873, 96559964, 96561840, 96561877, 96561914, 96563918, 96563955, 96564474, 96564511, 96564548, 96564585, 96565996, 96566552, 96566589, 96566626, 96568616, 96568630, 96568667, 96570708, 96571264, 96571301, 96571338, 96573342, 96573379, 96575420, 96578054, 96578091, 96580132, 96584844, 96624066, 96624103, 96626144, 96630856, 96639508, 96710400, 96862730, 96867240, 96867277, 96867314, 96867351, 96869318, 96869355, 96869392, 96871396, 96871433, 96873474, 96874030, 96874067, 96874104, 96876108, 96876145, 96878186, 96880820, 96880857, 96882898, 96887610, 96911246, 96911283, 96913324, 96918036, 96933622, 96997580, 97176796, 97176833, 97176870, 97178874, 97178911, 97180952, 97183586, 97183623, 97185664, 97190376, 97220802, 97486352, 97486389, 97488430, 97493142, 97643804, 97648314, 97648351, 97648388, 97648425, 97650392, 97650429, 97650466, 97652470, 97652507, 97654548, 97655104, 97655141, 97655178, 97657182, 97657219, 97659260, 97661894, 97661931, 97663972, 97668684, 97714696, 97785588, 97795908, 97900100, 97900137, 97900174, 97902178, 97902215, 97904256, 97906890, 97906927, 97908968, 97913680, 97957870, 97957907, 97957944, 97959948, 97959985, 97962026, 97964660, 97964697, 97966738, 97971450, 97986434, 97986471, 97988512, 97993224, 98001876, 98072768, 98209656, 98209693, 98211734, 98216446, 98267426, 98267463, 98269504, 98274216, 98295990, 98519212, 98576982, 98738944, 98738981, 98739018, 98741022, 98741059, 98743100, 98745734, 98745771, 98747812, 98752524, 98990730, 98990767, 98992808, 98997520, 99048500, 99048537, 99050578, 99055290, 99061622, 99061659, 99063700, 99068412, 99077064, 99081574, 99081611, 99081648, 99081685, 99083652, 99083689, 99083726, 99085730, 99085767, 99087808, 99088364, 99088401, 99088438, 99090442, 99090479, 99092520, 99095154, 99095191, 99097232, 99101944, 99147956, 99300286, 99358056, 99371178, 99391130, 99391167, 99391204, 99393208, 99393245, 99395286, 99397920, 99397957, 99399998, 99404710, 99435136, 99700686, 99700723, 99702764, 99707476, 99829574, 99829611, 99831652, 99836364, 100010242, 100081360, 100139130, 100152252, 100156762, 100156799, 100156836, 100156873, 100158840, 100158877, 100158914, 100160918, 100160955, 100162996, 100163552, 100163589, 100163626, 100165630, 100165667, 100167708, 100170342, 100170379, 100172204, 100172241, 100172278, 100172420, 100174282, 100174319, 100176360, 100177132, 100178994, 100179031, 100181072, 100185784, 100223144, 100423990, 100424027, 100426068, 100430780, 100466318, 100466355, 100466392, 100468396, 100468433, 100470474, 100473108, 100473145, 100475186, 100479898, 100481760, 100481797, 100483838, 100488550, 100510324, 100604922, 100733546, 100775874, 100775911, 100777952, 100782664, 100791316, 100920204, 101085430, 101247392, 101247429, 101247466, 101249470, 101249507, 101251548, 101254182, 101254219, 101256260, 101260972, 101262834, 101262871, 101264912, 101269624, 101499178, 101499215, 101501256, 101505968, 101514620, 101556948, 101556985, 101559026, 101563738, 101572390, 101585512, 101605464, 101605501, 101605538, 101607542, 101607579, 101609620, 101612254, 101612291, 101614332, 101619044, 101808734, 101866504, 101915020, 101915057, 101917098, 101921810, 102224576, 102338022, 102338059, 102340100, 102344812, 102353464, 102589808, 102594318, 102594355, 102594392, 102594429, 102596396, 102596433, 102596470, 102598474, 102598511, 102600552, 102601108, 102601145, 102601182, 102603186, 102603223, 102605264, 102607898, 102607935, 102609976, 102614688, 102647578, 102660700, 102680652, 102680689, 102680726, 102682730, 102682767, 102684808, 102687442, 102687479, 102689520, 102694232, 102696094, 102696131, 102698172, 102702884, 102903874, 102903911, 102903948, 102905952, 102905989, 102908030, 102910664, 102910701, 102912742, 102917454, 102947880, 102990208, 102990245, 102992286, 102996998, 103005650, 103213430, 103213467, 103215508, 103220220, 103299764, 103428652, 103522986, 103684948, 103684985, 103685022, 103687026, 103687063, 103689104, 103691738, 103691775, 103693816, 103698528, 103755840, 103755877, 103755914, 103757918, 103757955, 103759996, 103762630, 103762667, 103764708, 103769420, 103771282, 103771319, 103773360, 103778072, 103786724, 103936734, 103936771, 103938812, 103943524, 103994504, 103994541, 103996582, 104001294, 104023068, 104065396, 104065433, 104067474, 104072186, 104080838, 104129354, 104129391, 104131432, 104136144, 104246290, 104304060, 104374952, 104438910, 104775578, 104775615, 104777656, 104782368, 104846470, 104846507, 104848548, 104853260, 104861912, 105027364, 105085134, 105098256, 105118208, 105118245, 105118282, 105120286, 105120323, 105122364, 105124998, 105125035, 105127076, 105131788, 105156026, 105204542, 105204579, 105206620, 105211332, 105219984, 105427764, 105427801, 105429842, 105434554, 105514098, 105737320, 105866208, 105937100, 106193396, 106193433, 106193470, 106195474, 106195511, 106197552, 106200186, 106200223, 106202264, 106206976, 106208838, 106208875, 106210916, 106215628, 106279730, 106279767, 106281808, 106286520, 106295172, 106460624, 106502952, 106502989, 106505030, 106509742, 106518394, 106589286, 106653244, 106812508, 107284026, 107284063, 107286104, 107290816, 107299468, 107354918, 107354955, 107356996, 107361708, 107370360, 107535812, 107593582, 107642098, 107642135, 107644176, 107648888, 107664474, 107728432, 107951654, 108374656, 108445548, 108630952, 108630989, 108631026, 108633030, 108633067, 108635108, 108637742, 108637779, 108639820, 108644532, 108717286, 108717323, 108719364, 108724076, 108732728, 108803620, 108940508, 108940545, 108942586, 108947298, 109026842, 109250064, 109721582, 109721619, 109723660, 109728372, 109792474, 109792511, 109794552, 109799264, 109807916, 109878808, 109973368, 110031138, 110102030, 110165988, 110812212, 110883104, 110953996, 111154842, 111154879, 111156920, 111161632, 111241176, 111464398, 112230030, 112230067, 112232108, 112236820, 112245472, 112316364, 112539586, 113320660, 113325170, 113325207, 113325244, 113325281, 113327248, 113327285, 113327322, 113329326, 113329363, 113331404, 113331960, 113331997, 113332034, 113334038, 113334075, 113336116, 113338750, 113338787, 113340828, 113345540, 113391552, 113634726, 113634763, 113634800, 113636804, 113636841, 113638882, 113641516, 113641553, 113643594, 113648306, 113678732, 113944282, 113944319, 113946360, 113951072, 114253838, 114415800, 114415837, 114415874, 114417878, 114417915, 114419956, 114422590, 114422627, 114424668, 114429380, 114667586, 114667623, 114669664, 114674376, 114725356, 114725393, 114727434, 114732146, 114753920, 114977142, 115034912, 115338569, 115338606, 115338643, 115338680, 115338717, 115338754, 115340647, 115340684, 115340721, 115340758, 115340795, 115342725, 115342762, 115342799, 115342836, 115344803, 115344840, 115344877, 115345359, 115345396, 115345433, 115345470, 115345507, 115346881, 115346918, 115347437, 115347474, 115347511, 115347548, 115348959, 115349515, 115349552, 115349589, 115351593, 115351630, 115352149, 115352186, 115352223, 115352260, 115353671, 115354227, 115354264, 115354301, 115356305, 115356342, 115358383, 115358939, 115358976, 115359013, 115361017, 115361054, 115363095, 115365729, 115365766, 115367807, 115372519, 115506430, 115506467, 115508508, 115513220, 115648125, 115648162, 115648199, 115648236, 115648273, 115650203, 115650240, 115650277, 115650314, 115652281, 115652318, 115652355, 115654359, 115654396, 115654915, 115654952, 115654989, 115655026, 115656437, 115656993, 115657030, 115657067, 115659071, 115659108, 115661149, 115661705, 115661742, 115661779, 115663783, 115663820, 115665861, 115668495, 115668532, 115670573, 115675285, 115758216, 115815986, 115829108, 115849060, 115849097, 115849134, 115851138, 115851175, 115853216, 115855850, 115855887, 115857928, 115862640, 115957681, 115957718, 115957755, 115957792, 115959759, 115959796, 115959833, 115961837, 115961874, 115963915, 115964471, 115964508, 115964545, 115966549, 115966586, 115968627, 115971261, 115971298, 115973339, 115978051, 116158616, 116158653, 116160694, 116165406, 116267237, 116267274, 116267311, 116269315, 116269352, 116271393, 116274027, 116274064, 116276105, 116280817, 116429199, 116429236, 116429273, 116429310, 116429347, 116431277, 116431314, 116431351, 116431388, 116433355, 116433392, 116433429, 116435433, 116435470, 116435989, 116436026, 116436063, 116436100, 116437511, 116438067, 116438104, 116438141, 116440145, 116440182, 116442223, 116442779, 116442816, 116442853, 116444857, 116444894, 116446935, 116449569, 116449606, 116451647, 116456359, 116468172, 116576793, 116576830, 116578871, 116583583, 116597060, 116738755, 116738792, 116738829, 116738866, 116740833, 116740870, 116740907, 116742911, 116742948, 116744989, 116745545, 116745582, 116745619, 116747623, 116747660, 116749701, 116752335, 116752372, 116754413, 116759125, 116886349, 116924248, 116924285, 116924322, 116926326, 116926363, 116928404, 116931038, 116931075, 116933116, 116937828, 116939690, 116939727, 116941768, 116946480, 117048311, 117048348, 117048385, 117050389, 117050426, 117052467, 117055101, 117055138, 117057179, 117061891, 117191476, 117233804, 117233841, 117235882, 117240594, 117249246, 117357867, 117357904, 117359945, 117364657, 117519829, 117519866, 117519903, 117519940, 117521907, 117521944, 117521981, 117523985, 117524022, 117526063, 117526619, 117526656, 117526693, 117528697, 117528734, 117530775, 117533409, 117533446, 117535487, 117540199, 117543360, 117667423, 117829385, 117829422, 117829459, 117831463, 117831500, 117833541, 117836175, 117836212, 117838253, 117842965, 117862459, 117862496, 117862533, 117862570, 117862607, 117864537, 117864574, 117864611, 117864648, 117866615, 117866652, 117866689, 117868693, 117868730, 117869249, 117869286, 117869323, 117869360, 117870771, 117871327, 117871364, 117871401, 117873405, 117873442, 117875483, 117876039, 117876076, 117876113, 117878117, 117878154, 117880195, 117882829, 117882866, 117884907, 117889619, 118014878, 118014915, 118016956, 118021668, 118030320, 118138941, 118138978, 118141019, 118145731, 118172015, 118172052, 118172089, 118172126, 118174093, 118174130, 118174167, 118176171, 118176208, 118178249, 118178805, 118178842, 118178879, 118180883, 118180920, 118182961, 118185595, 118185632, 118187673, 118192385, 118266664, 118324434, 118372950, 118372987, 118375028, 118379740, 118448497, 118481571, 118481608, 118481645, 118483649, 118483686, 118485727, 118488361, 118488398, 118490439, 118495151, 118610459, 118610496, 118610533, 118612537, 118612574, 118614615, 118617249, 118617286, 118619327, 118624039, 118682506, 118791127, 118791164, 118793205, 118797917, 118920015, 118920052, 118922093, 118926805, 118937647, 118937684, 118937721, 118937758, 118937795, 118939725, 118939762, 118939799, 118939836, 118941803, 118941840, 118941877, 118943881, 118943918, 118944437, 118944474, 118944511, 118944548, 118945959, 118946515, 118946552, 118946589, 118948593, 118948630, 118950671, 118951227, 118951264, 118951301, 118953089, 118953126, 118953163, 118953200, 118953305, 118953342, 118955167, 118955204, 118955241, 118955383, 118957245, 118957282, 118958017, 118958054, 118959323, 118959879, 118959916, 118959953, 118960095, 118961957, 118961994, 118964035, 118964807, 118966669, 118966706, 118968747, 118973459, 119100683, 119105508, 119229571, 119247203, 119247240, 119247277, 119247314, 119249281, 119249318, 119249355, 119251359, 119251396, 119253437, 119253993, 119254030, 119254067, 119256071, 119256108, 119258149, 119260783, 119260820, 119262645, 119262682, 119262719, 119262861, 119264723, 119264760, 119266801, 119267573, 119269435, 119269472, 119271513, 119276225, 119361804, 119361841, 119361878, 119363882, 119363919, 119365960, 119368594, 119368631, 119370672, 119375384, 119448138, 119448175, 119450216, 119454928, 119463580, 119556759, 119556796, 119556833, 119558837, 119558874, 119560915, 119563549, 119563586, 119565627, 119570339, 119572201, 119572238, 119574279, 119578991, 119671360, 119671397, 119673438, 119678150, 119701089, 119701126, 119703167, 119707879, 119757694, 119866315, 119866352, 119868393, 119873105, 119881757, 119980916, 120010645, 120028277, 120028314, 120028351, 120028388, 120030355, 120030392, 120030429, 120032433, 120032470, 120034511, 120035067, 120035104, 120035141, 120037145, 120037182, 120039223, 120041857, 120041894, 120043719, 120043756, 120043793, 120043935, 120045797, 120045834, 120047875, 120048647, 120050509, 120050546, 120052587, 120057299, 120175871, 120337833, 120337870, 120337907, 120339911, 120339948, 120341989, 120344623, 120344660, 120346701, 120351413, 120353275, 120353312, 120355353, 120360065, 120386349, 120386386, 120386423, 120386460, 120388427, 120388464, 120388501, 120390505, 120390542, 120392583, 120393139, 120393176, 120393213, 120395217, 120395254, 120397295, 120399929, 120399966, 120402007, 120406719, 120452434, 120452471, 120454512, 120459224, 120523326, 120523363, 120525404, 120530116, 120538768, 120647389, 120647426, 120649467, 120654179, 120662831, 120695905, 120695942, 120695979, 120697983, 120698020, 120700061, 120702695, 120702732, 120704220, 120704773, 120709485, 120761990, 120791719, 120832882, 120896840, 120956945, 121005461, 121005498, 121007539, 121012251, 121118907, 121118944, 121118981, 121120985, 121121022, 121123063, 121125697, 121125734, 121127775, 121132487, 121134349, 121134386, 121136427, 121141139, 121315017, 121375203, 121375240, 121375277, 121375314, 121375351, 121377281, 121377318, 121377355, 121377392, 121379359, 121379396, 121379433, 121381437, 121381474, 121381993, 121382030, 121382067, 121382104, 121383515, 121384071, 121384108, 121384145, 121386149, 121386186, 121388227, 121388783, 121388820, 121388857, 121390861, 121390898, 121392939, 121395573, 121395610, 121397651, 121402363, 121428463, 121428500, 121430541, 121435253, 121443905, 121461537, 121461574, 121461611, 121461648, 121463615, 121463652, 121463689, 121465693, 121465730, 121467771, 121468327, 121468364, 121468401, 121470405, 121470442, 121472483, 121475117, 121475154, 121476979, 121477016, 121477053, 121477195, 121479057, 121479094, 121481135, 121481907, 121483769, 121483806, 121485847, 121490559, 121543064, 121613956, 121684759, 121684796, 121684833, 121684870, 121686837, 121686874, 121686911, 121688915, 121688952, 121690993, 121691549, 121691586, 121691623, 121693627, 121693664, 121695705, 121698339, 121698376, 121700417, 121705129, 121738019, 121771093, 121771130, 121771167, 121773171, 121773208, 121775249, 121777883, 121777920, 121779961, 121784673, 121786535, 121786572, 121788613, 121793325, 121885694, 121885731, 121887772, 121892484, 121972028, 121994315, 121994352, 121994389, 121996393, 121996430, 121998471, 122001105, 122001142, 122003183, 122007895, 122080649, 122080686, 122082727, 122087439, 122096091, 122195250, 122209537, 122209574, 122211615, 122216327, 122224979, 122303871, 122303908, 122305949, 122310661, 122390205, 122465833, 122465870, 122465907, 122465944, 122467911, 122467948, 122467985, 122469989, 122470026, 122472067, 122472623, 122472660, 122472697, 122474701, 122474738, 122476779, 122479413, 122479450, 122481491, 122486203, 122519093, 122536725, 122536762, 122536799, 122536836, 122538803, 122538840, 122538877, 122540881, 122540918, 122542959, 122543515, 122543552, 122543589, 122545593, 122545630, 122547671, 122550305, 122550342, 122552167, 122552204, 122552241, 122552383, 122554245, 122554282, 122556323, 122557095, 122558957, 122558994, 122561035, 122565747, 122567609, 122567646, 122569687, 122574399, 122613427, 122775389, 122775426, 122775463, 122777467, 122777504, 122779545, 122782179, 122782216, 122784257, 122788969, 122846281, 122846318, 122846355, 122848359, 122848396, 122850437, 122853071, 122853108, 122855149, 122859861, 122861723, 122861760, 122863801, 122868513, 122877165, 122910239, 122910276, 122910313, 122912317, 122912354, 122914395, 122917029, 122917066, 122919107, 122923819, 122960882, 122960919, 122962960, 122967672, 122976324, 123047216, 123084945, 123084982, 123087023, 123091735, 123155837, 123155874, 123157915, 123162627, 123171279, 123219795, 123219832, 123221873, 123226585, 123270438, 123300167, 123394501, 123465393, 123529351, 123556463, 123556500, 123556537, 123558541, 123558578, 123560619, 123563253, 123563290, 123565331, 123570043, 123627355, 123627392, 123627429, 123629433, 123629470, 123631511, 123634145, 123634182, 123636223, 123640935, 123642797, 123642834, 123644875, 123649587, 123658239, 123866019, 123866056, 123868097, 123872809, 123899093, 123899130, 123899167, 123899204, 123901171, 123901208, 123901245, 123903249, 123903286, 123905327, 123905883, 123905920, 123905957, 123907961, 123907998, 123910039, 123912673, 123912710, 123914751, 123919463, 123936911, 123936948, 123938989, 123943701, 123952353, 123985427, 123985464, 123985501, 123987505, 123987542, 123989583, 123992217, 123992254, 123994295, 123999007, 124000869, 124000906, 124002947, 124007659, 124051512, 124122404, 124175575, 124208649, 124208686, 124208723, 124210727, 124210764, 124212805, 124215439, 124215476, 124217517, 124222229, 124246467, 124294983, 124295020, 124297061, 124301773, 124310425, 124409584, 124518205, 124518242, 124520283, 124524995, 124604539, 124647093, 124647130, 124649171, 124653883, 124717985, 124718022, 124720063, 124724775, 124733427, 124827761, 124956649, 124974281, 124974318, 124974355, 124974392, 124976359, 124976396, 124976433, 124978437, 124978474, 124980515, 124981071, 124981108, 124981145, 124983149, 124983186, 124985227, 124987861, 124987898, 124989723, 124989760, 124989797, 124989939, 124991801, 124991838, 124993879, 124994651, 124996513, 124996550, 124998591, 125003303, 125027541, 125060615, 125060652, 125060689, 125062693, 125062730, 125064771, 125067405, 125067442, 125069483, 125074195, 125076057, 125076094, 125078135, 125082847, 125091499, 125283837, 125283874, 125283911, 125285915, 125285952, 125287993, 125290627, 125290664, 125292705, 125297417, 125299279, 125299316, 125301357, 125306069, 125370171, 125370208, 125372249, 125376961, 125385613, 125398438, 125398475, 125400516, 125405228, 125434129, 125434166, 125436207, 125440919, 125484772, 125498603, 125498640, 125498677, 125498714, 125498751, 125498788, 125500681, 125500718, 125500755, 125500792, 125500829, 125502759, 125502796, 125502833, 125502870, 125504837, 125504874, 125504911, 125505393, 125505430, 125505467, 125505504, 125505541, 125506915, 125506952, 125507471, 125507508, 125507545, 125507582, 125508993, 125509549, 125509586, 125509623, 125511627, 125511664, 125512183, 125512220, 125512257, 125512294, 125513705, 125514261, 125514298, 125514335, 125516339, 125516376, 125518417, 125518973, 125519010, 125519047, 125521051, 125521088, 125523129, 125525763, 125525800, 125527841, 125532553, 125593393, 125593430, 125595471, 125600183, 125608835, 125679727, 125707994, 125737723, 125743685, 125808159, 125808196, 125808233, 125808270, 125808307, 125808615, 125810237, 125810274, 125810311, 125810348, 125812315, 125812352, 125812389, 125814393, 125814430, 125814949, 125814986, 125815023, 125815060, 125816471, 125817027, 125817064, 125817101, 125819105, 125819142, 125821183, 125821739, 125821776, 125821813, 125823817, 125823854, 125825895, 125828529, 125828566, 125830607, 125835319, 125902949, 126064911, 126064948, 126064985, 126066989, 126067026, 126069067, 126071701, 126071738, 126073779, 126078491, 126080353, 126080390, 126082431, 126087143, 126117715, 126117752, 126117789, 126117826, 126119793, 126119830, 126119867, 126121871, 126121908, 126123949, 126124505, 126124542, 126124579, 126126583, 126126620, 126128661, 126131295, 126131332, 126133373, 126135803, 126135840, 126135877, 126137881, 126137918, 126138085, 126139959, 126142593, 126142630, 126144671, 126149383, 126151245, 126151282, 126153323, 126158035, 126166687, 126374467, 126374504, 126376545, 126381257, 126389909, 126422983, 126423020, 126423057, 126425061, 126425098, 126427139, 126427271, 126427308, 126427345, 126429349, 126429386, 126429773, 126429810, 126431427, 126431851, 126434061, 126434098, 126436139, 126436563, 126440851, 126445359, 126445396, 126447437, 126452149, 126460801, 126489068, 126509317, 126509354, 126511395, 126516107, 126524759, 126559960, 126589233, 126589270, 126589307, 126589344, 126589381, 126591311, 126591348, 126591385, 126591422, 126593389, 126593426, 126593463, 126595467, 126595504, 126596023, 126596060, 126596097, 126596134, 126597545, 126598101, 126598138, 126598175, 126600179, 126600216, 126602257, 126602813, 126602850, 126602887, 126604891, 126604928, 126606969, 126609603, 126609640, 126611681, 126616393, 126684023, 126732539, 126732576, 126734617, 126736827, 126736864, 126738905, 126739329, 126743617, 126754915, 126818873, 126898789, 126898826, 126898863, 126898900, 126900867, 126900904, 126900941, 126902945, 126902982, 126905023, 126905579, 126905616, 126905653, 126907657, 126907694, 126909735, 126912369, 126912406, 126914447, 126919159, 127042095, 127046383, 127155541, 127155578, 127157619, 127162331, 127170983, 127208345, 127208382, 127208419, 127210423, 127210460, 127212501, 127215135, 127215172, 127217213, 127221925, 127226433, 127226470, 127228511, 127233223, 127241875, 127411837, 127411874, 127411911, 127411948, 127413915, 127413952, 127413989, 127415993, 127416030, 127418071, 127418627, 127418664, 127418701, 127420705, 127420742, 127422783, 127425417, 127425454, 127427495, 127432207, 127465097, 127498171, 127498208, 127498245, 127500249, 127500286, 127502327, 127504961, 127504998, 127507039, 127511751, 127513613, 127513650, 127515691, 127517901, 127517938, 127519979, 127520403, 127524691, 127535989, 127584505, 127584542, 127586583, 127591295, 127599947, 127679863, 127679900, 127679937, 127679974, 127681941, 127681978, 127682015, 127684019, 127684056, 127686097, 127686653, 127686690, 127686727, 127688731, 127688768, 127690809, 127693443, 127693480, 127695521, 127700233, 127721393, 127721430, 127721467, 127723471, 127723508, 127725549, 127728183, 127728220, 127730261, 127734973, 127807727, 127807764, 127809805, 127814517, 127823169, 127827457, 127894061, 127922328, 127958019, 127989419, 127989456, 127989493, 127991497, 127991534, 127993575, 127996209, 127996246, 127998287, 128002999, 128022493, 128022530, 128022567, 128022604, 128022641, 128024571, 128024608, 128024645, 128024682, 128026649, 128026686, 128026723, 128028727, 128028764, 128029283, 128029320, 128029357, 128029394, 128030805, 128030949, 128030986, 128031361, 128031398, 128031435, 128033027, 128033439, 128033476, 128035517, 128036073, 128036110, 128036147, 128037739, 128038151, 128038188, 128040229, 128042863, 128042900, 128044941, 128049653, 128117283, 128246171, 128298975, 128299012, 128301053, 128305765, 128317063, 128332049, 128332086, 128332123, 128332160, 128334127, 128334164, 128334201, 128336205, 128336242, 128338283, 128338839, 128338876, 128338913, 128340505, 128340917, 128340954, 128342995, 128345629, 128345666, 128347707, 128352419, 128502467, 128502504, 128502541, 128504545, 128504582, 128506623, 128509257, 128509294, 128511335, 128516047, 128573359, 128573396, 128573433, 128575437, 128575474, 128577515, 128580149, 128580186, 128582227, 128586939, 128588801, 128588838, 128590879, 128595591, 128604243, 128608531, 128641605, 128641642, 128641679, 128643683, 128643720, 128645761, 128648395, 128648432, 128650473, 128655185, 128659693, 128659730, 128661771, 128666483, 128675135, 128770493, 128770530, 128770567, 128772571, 128772608, 128774649, 128777283, 128777320, 128779361, 128784073, 128812023, 128812060, 128814101, 128818813, 128882915, 128882952, 128884993, 128889705, 128898357, 128946873, 128946910, 128948951, 128951161, 128951198, 128953239, 128953663, 128957951, 128969249, 128997516, 129033207, 129080049, 129080086, 129082127, 129086839, 129097681, 129097718, 129097755, 129097792, 129097829, 129099759, 129099796, 129099833, 129099870, 129101837, 129101874, 129101911, 129103915, 129103952, 129104471, 129104508, 129104545, 129104582, 129105993, 129106549, 129106586, 129106623, 129108627, 129108664, 129110705, 129111261, 129111298, 129111335, 129113123, 129113160, 129113197, 129113234, 129113339, 129113376, 129115201, 129115238, 129115275, 129115417, 129117279, 129117316, 129118051, 129118088, 129119357, 129119913, 129119950, 129119987, 129120129, 129121579, 129121991, 129122028, 129124069, 129124841, 129126703, 129126740, 129128781, 129133493, 129192471, 129256429, 129260717, 129389605, 129407237, 129407274, 129407311, 129407348, 129409315, 129409352, 129409389, 129411393, 129411430, 129413471, 129414027, 129414064, 129414101, 129416105, 129416142, 129418183, 129420817, 129420854, 129422679, 129422716, 129422753, 129422895, 129424757, 129424794, 129426835, 129427607, 129429469, 129429506, 129431547, 129436259, 129593097, 129593134, 129595175, 129599887, 129663989, 129664026, 129666067, 129670779, 129679431, 129716793, 129716830, 129716867, 129718871, 129718908, 129720949, 129723583, 129723620, 129725661, 129730373, 129732235, 129732272, 129734313, 129734881, 129734918, 129736959, 129739025, 129741671, 129750323, 129861123, 129861160, 129863201, 129867913, 129902653, 129935727, 129935764, 129935801, 129937805, 129937842, 129939883, 129942517, 129942554, 129944595, 129949307, 129973545, 130022061, 130022098, 130024139, 130026349, 130026386, 130028427, 130028851, 130033139, 130037503, 130041791, 130044437, 130092656, 130092693, 130092730, 130094734, 130094771, 130096812, 130099446, 130099483, 130101524, 130106236, 130108395, 130170679, 130188311, 130188348, 130188385, 130188422, 130190389, 130190426, 130190463, 130192467, 130192504, 130194545, 130195101, 130195138, 130195175, 130197179, 130197216, 130199257, 130201891, 130201928, 130203753, 130203790, 130203827, 130203969, 130205831, 130205868, 130207909, 130208681, 130210543, 130210580, 130212621, 130217333, 130245283, 130245320, 130247361, 130252073, 130331617, 130335905, 130402212, 130402249, 130404290, 130409002, 130497867, 130497904, 130497941, 130499945, 130499982, 130502023, 130504657, 130504694, 130506735, 130511447, 130513309, 130513346, 130515387, 130520099, 130546383, 130546420, 130546457, 130546494, 130548461, 130548498, 130548535, 130550539, 130550576, 130552617, 130553173, 130553210, 130553247, 130554839, 130555251, 130555288, 130557329, 130559963, 130560000, 130562041, 130566753, 130683727, 130711768, 130754619, 130807423, 130807460, 130809501, 130814213, 130822865, 130825511, 130855939, 130855976, 130856013, 130858017, 130858054, 130860095, 130862729, 130862766, 130864807, 130869519, 130951753, 131010915, 131010952, 131010989, 131012993, 131013030, 131015071, 131017705, 131017742, 131019783, 131024495, 131026357, 131026394, 131028435, 131033147, 131097249, 131097286, 131099327, 131104039, 131112691, 131116979, 131165495, 131165532, 131167573, 131172285, 131183286, 131183323, 131183583, 131185364, 131190076, 131278941, 131278978, 131279015, 131281019, 131281056, 131283097, 131285731, 131285768, 131287809, 131292521, 131294383, 131294420, 131296461, 131301173, 131320471, 131320508, 131322549, 131327261, 131335913, 131406805, 131435072, 131470763, 131475051, 131492842, 131535237, 131535274, 131535311, 131535348, 131535385, 131537315, 131537352, 131537389, 131537426, 131539393, 131539430, 131539467, 131541471, 131541508, 131542027, 131542064, 131542101, 131542138, 131543549, 131544105, 131544142, 131544179, 131546183, 131546220, 131548261, 131548817, 131548854, 131548891, 131550895, 131550932, 131552973, 131555607, 131555644, 131557685, 131562397, 131588497, 131588534, 131590575, 131595287, 131603939, 131621571, 131621608, 131621645, 131621682, 131623649, 131623686, 131623723, 131625727, 131625764, 131627805, 131628361, 131628398, 131628435, 131630027, 131630439, 131630476, 131632517, 131635151, 131635188, 131637013, 131637050, 131637087, 131637229, 131639091, 131639128, 131641169, 131641941, 131643803, 131643840, 131645881, 131650593, 131844793, 131844830, 131844867, 131844904, 131846871, 131846908, 131846945, 131848949, 131848986, 131851027, 131851583, 131851620, 131851657, 131853661, 131853698, 131855739, 131858373, 131858410, 131860451, 131865163, 131898053, 131931127, 131931164, 131931201, 131933205, 131933242, 131935283, 131937917, 131937954, 131939995, 131944707, 131946569, 131946606, 131948647, 131953359, 132101545, 132101582, 132103623, 132106055, 132106092, 132106129, 132106166, 132106203, 132108133, 132108170, 132108207, 132108244, 132108335, 132110211, 132110248, 132110285, 132112289, 132112326, 132112845, 132112882, 132112919, 132112956, 132114367, 132114923, 132114960, 132114997, 132116987, 132117001, 132117038, 132119079, 132119635, 132119672, 132119709, 132121713, 132121750, 132123791, 132126425, 132126462, 132128503, 132133215, 132154349, 132154386, 132154423, 132156427, 132156464, 132158505, 132161139, 132161176, 132163217, 132167929, 132172437, 132172474, 132174515, 132179227, 132187879, 132240683, 132240720, 132242761, 132247473, 132256125, 132258771, 132273916, 132369571, 132369608, 132371649, 132376361, 132385013, 132411101, 132415611, 132415648, 132415685, 132415722, 132417689, 132417726, 132417763, 132419767, 132419804, 132421845, 132422401, 132422438, 132422475, 132424479, 132424516, 132426557, 132429191, 132429228, 132431269, 132435981, 132459617, 132459654, 132461695, 132463905, 132463942, 132465983, 132466407, 132470695, 132481993, 132545951, 132550239, 132616546, 132616583, 132618624, 132623336, 132625867, 132625904, 132625941, 132625978, 132627945, 132627982, 132628019, 132630023, 132630060, 132632101, 132632657, 132632694, 132632731, 132634735, 132634772, 132636813, 132639447, 132639484, 132641525, 132646237, 132679127, 132696759, 132696796, 132696833, 132696870, 132698837, 132698874, 132698911, 132700915, 132700952, 132702993, 132703549, 132703586, 132703623, 132705627, 132705664, 132707705, 132710339, 132710376, 132712201, 132712238, 132712275, 132712417, 132714279, 132714316, 132716357, 132717129, 132718991, 132719028, 132721069, 132725167, 132725204, 132725241, 132725781, 132727245, 132727282, 132727643, 132727680, 132729323, 132729721, 132731957, 132731994, 132734035, 132734433, 132738747, 132769173, 132773461, 132926102, 132935423, 132935460, 132935497, 132937501, 132937538, 132939579, 132942213, 132942250, 132944291, 132949003, 133006315, 133006352, 133006389, 133008393, 133008430, 133010471, 133013105, 133013142, 133015183, 133019895, 133021757, 133021794, 133023835, 133028547, 133034723, 133034760, 133036801, 133037199, 133041513, 133070273, 133070310, 133070347, 133072351, 133072388, 133074429, 133077063, 133077100, 133079141, 133083853, 133192175, 133196685, 133196722, 133196759, 133196796, 133198763, 133198800, 133198837, 133200841, 133200878, 133202919, 133203475, 133203512, 133203549, 133205553, 133205590, 133207631, 133210265, 133210302, 133212343, 133217055, 133244979, 133245016, 133247057, 133251769, 133263067, 133315871, 133315908, 133317949, 133322661, 133331313, 133333959, 133344279, 133379829, 133379866, 133381907, 133386619, 133448471, 133448508, 133448545, 133450549, 133450586, 133452627, 133455261, 133455298, 133457339, 133460201, 133462051, 133506241, 133506278, 133506315, 133508319, 133508356, 133510397, 133513031, 133513068, 133515109, 133519821, 133534805, 133534842, 133536883, 133541595, 133550247, 133554535, 133621139, 133625427, 133689385, 133691734, 133691771, 133693812, 133698524, 133707176, 133716497, 133716534, 133716571, 133718575, 133718612, 133720653, 133723287, 133723324, 133725365, 133730077, 133758027, 133758064, 133760105, 133764817, 133787389, 133787426, 133787463, 133789467, 133789504, 133791545, 133794179, 133794216, 133796257, 133800969, 133802831, 133802868, 133804909, 133809621, 133815797, 133815834, 133817875, 133818273, 133822587, 133844361, 134001290, 134026053, 134026090, 134028131, 134032843, 134059127, 134059164, 134059201, 134059238, 134061205, 134061242, 134061279, 134063283, 134063320, 134065361, 134065917, 134065954, 134065991, 134067583, 134067995, 134068032, 134070073, 134072707, 134072744, 134074785, 134079497, 134096945, 134096982, 134099023, 134103735, 134112387, 134125353, 134145461, 134145498, 134145535, 134147539, 134147576, 134149617, 134152251, 134152288, 134154329, 134159041, 134160903, 134160940, 134162981, 134167693, 134287315, 134287352, 134287389, 134289393, 134289430, 134291471, 134294105, 134294142, 134296183, 134300895, 134335609, 134368683, 134368720, 134368757, 134370761, 134370798, 134372839, 134375473, 134375510, 134377551, 134382263, 134406501, 134455017, 134455054, 134457095, 134461807, 134470459, 134539101, 134539138, 134541179, 134545891, 134596871, 134596908, 134598949, 134603661, 134609993, 134610030, 134612071, 134616783, 134625435, 134629945, 134629982, 134630019, 134630056, 134632023, 134632060, 134632097, 134634101, 134634138, 134636179, 134636735, 134636772, 134636809, 134638813, 134638850, 134640891, 134643525, 134643562, 134645603, 134650315, 134678239, 134678276, 134680317, 134685029, 134696327, 134764573, 134782364, 134807127, 134807164, 134809205, 134813917, 134848657, 134878019, 134878056, 134880097, 134884809, 134893461, 134906427, 134919549, 134939501, 134939538, 134939575, 134941579, 134941616, 134943657, 134946291, 134946328, 134948369, 134953081, 134983507, 134987795, 135116683, 135134315, 135134352, 135134389, 135134426, 135136393, 135136430, 135136467, 135138471, 135138508, 135140436, 135140549, 135141105, 135141142, 135141179, 135143183, 135143220, 135145261, 135147895, 135147932, 135149757, 135149794, 135149831, 135149973, 135151835, 135151872, 135153913, 135154685, 135156547, 135156584, 135158625, 135163337, 135187575, 135220649, 135220686, 135220723, 135222727, 135222764, 135224805, 135227439, 135227476, 135229517, 135234229, 135236091, 135236128, 135238169, 135242881, 135249057, 135249094, 135251135, 135251533, 135255847, 135377945, 135377982, 135380023, 135384735, 135443871, 135443908, 135443945, 135445949, 135445986, 135448027, 135450661, 135450698, 135452739, 135457451, 135459313, 135459350, 135461391, 135466103, 135530205, 135530242, 135532283, 135536995, 135545647, 135558613, 135594163, 135594200, 135596241, 135600953, 135629731, 135687501, 135700623, 135701655, 135701663, 135701692, 135701694, 135701700, 135701729, 135701731, 135701737, 135701766, 135701768, 135701774, 135701803, 135701805, 135701811, 135701840, 135701842, 135701848, 135701879, 135703733, 135703741, 135703770, 135703772, 135703778, 135703807, 135703809, 135703815, 135703844, 135703846, 135703852, 135703881, 135703883, 135703889, 135703920, 135705133, 135705170, 135705207, 135705244, 135705811, 135705819, 135705848, 135705850, 135705856, 135705885, 135705887, 135705893, 135705922, 135705924, 135705930, 135705961, 135707211, 135707248, 135707285, 135707889, 135707897, 135707926, 135707928, 135707934, 135707963, 135707965, 135707971, 135708002, 135708445, 135708453, 135708482, 135708484, 135708490, 135708519, 135708521, 135708527, 135708556, 135708558, 135708564, 135708593, 135708595, 135708601, 135708632, 135709289, 135709326, 135709967, 135709975, 135710004, 135710006, 135710012, 135710043, 135710523, 135710531, 135710560, 135710562, 135710568, 135710597, 135710599, 135710605, 135710634, 135710636, 135710642, 135710673, 135711367, 135711923, 135711960, 135711997, 135712045, 135712053, 135712084, 135712601, 135712609, 135712638, 135712640, 135712646, 135712675, 135712677, 135712683, 135712714, 135714001, 135714038, 135714679, 135714687, 135714716, 135714718, 135714724, 135714755, 135715235, 135715243, 135715272, 135715274, 135715280, 135715309, 135715311, 135715317, 135715346, 135715348, 135715354, 135715385, 135716079, 135716757, 135716765, 135716796, 135717313, 135717321, 135717350, 135717352, 135717358, 135717387, 135717389, 135717395, 135717426, 135718713, 135718750, 135719391, 135719399, 135719428, 135719430, 135719436, 135719467, 135720575, 135720612, 135720649, 135720791, 135721469, 135721477, 135721508, 135722025, 135722033, 135722062, 135722064, 135722070, 135722099, 135722101, 135722107, 135722138, 135722653, 135722690, 135724103, 135724111, 135724140, 135724142, 135724148, 135724179, 135724731, 135725503, 135726181, 135726189, 135726220, 135727365, 135727402, 135728815, 135728823, 135728852, 135728854, 135728860, 135728891, 135729443, 135730893, 135730901, 135730932, 135734155, 135735605, 135735613, 135735644, 135753427, 135753464, 135755505, 135760217, 135768869, 135771515, 135839761, 135897757, 135903719, 135968649, 135972361, 135972398, 135974439, 135979151, 136011211, 136011219, 136011248, 136011250, 136011256, 136011285, 136011287, 136011293, 136011322, 136011324, 136011330, 136011359, 136011361, 136011367, 136011398, 136013289, 136013297, 136013326, 136013328, 136013334, 136013363, 136013365, 136013371, 136013400, 136013402, 136013408, 136013439, 136014689, 136014726, 136014763, 136015367, 136015375, 136015404, 136015406, 136015412, 136015441, 136015443, 136015449, 136015480, 136016767, 136016804, 136017445, 136017453, 136017482, 136017484, 136017490, 136017521, 136018001, 136018009, 136018038, 136018040, 136018046, 136018075, 136018077, 136018083, 136018112, 136018114, 136018120, 136018151, 136018845, 136019523, 136019531, 136019562, 136020079, 136020087, 136020116, 136020118, 136020124, 136020153, 136020155, 136020161, 136020192, 136021479, 136021516, 136022157, 136022165, 136022194, 136022196, 136022202, 136022233, 136023557, 136024235, 136024243, 136024274, 136024791, 136024799, 136024828, 136024830, 136024836, 136024865, 136024867, 136024873, 136024904, 136026869, 136026877, 136026906, 136026908, 136026914, 136026945, 136028269, 136028947, 136028955, 136028986, 136030131, 136030168, 136031581, 136031589, 136031618, 136031620, 136031626, 136031657, 136032209, 136033659, 136033667, 136033698, 136036921, 136038371, 136038379, 136038410, 136058695, 136062983, 136129290, 136129327, 136131368, 136136080, 136215624, 136224945, 136224982, 136225019, 136227023, 136227060, 136229101, 136231735, 136231772, 136233813, 136238525, 136240387, 136240424, 136242465, 136247177, 136281917, 136295837, 136295874, 136295911, 136297915, 136297952, 136299993, 136302627, 136302664, 136304705, 136309417, 136311279, 136311316, 136313357, 136318069, 136320767, 136320775, 136320804, 136320806, 136320812, 136320841, 136320843, 136320849, 136320878, 136320880, 136320886, 136320917, 136322845, 136322853, 136322882, 136322884, 136322890, 136322919, 136322921, 136322927, 136322958, 136324245, 136324282, 136324923, 136324931, 136324960, 136324962, 136324968, 136324999, 136326323, 136326721, 136327001, 136327009, 136327040, 136327557, 136327565, 136327594, 136327596, 136327602, 136327631, 136327633, 136327639, 136327670, 136329635, 136329643, 136329672, 136329674, 136329680, 136329711, 136331035, 136331713, 136331721, 136331752, 136334347, 136334355, 136334384, 136334386, 136334392, 136334423, 136336425, 136336433, 136336464, 136339687, 136341137, 136341145, 136341176, 136438846, 136468575, 136534501, 136534538, 136536579, 136541291, 136549943, 136583017, 136583054, 136583091, 136585095, 136585132, 136587173, 136589807, 136589844, 136591885, 136596597, 136605393, 136605430, 136607471, 136612183, 136620835, 136630323, 136630331, 136630360, 136630362, 136630368, 136630397, 136630399, 136630405, 136630436, 136632401, 136632409, 136632438, 136632440, 136632446, 136632477, 136633801, 136634479, 136634487, 136634518, 136637113, 136637121, 136637150, 136637152, 136637158, 136637189, 136639191, 136639199, 136639230, 136643903, 136643911, 136643942, 136669351, 136669388, 136671429, 136676141, 136684793, 136792285, 136792293, 136792322, 136792324, 136792330, 136792359, 136792361, 136792367, 136792396, 136792398, 136792404, 136792433, 136792435, 136792441, 136792472, 136794363, 136794371, 136794400, 136794402, 136794408, 136794437, 136794439, 136794445, 136794474, 136794476, 136794482, 136794513, 136795763, 136795800, 136795837, 136796441, 136796449, 136796478, 136796480, 136796486, 136796515, 136796517, 136796523, 136796554, 136797841, 136797878, 136798519, 136798527, 136798556, 136798558, 136798564, 136798595, 136799075, 136799083, 136799112, 136799114, 136799120, 136799149, 136799151, 136799157, 136799186, 136799188, 136799194, 136799225, 136799919, 136800597, 136800605, 136800636, 136801153, 136801161, 136801190, 136801192, 136801198, 136801227, 136801229, 136801235, 136801266, 136802553, 136802590, 136803231, 136803239, 136803268, 136803270, 136803276, 136803307, 136804631, 136805309, 136805317, 136805348, 136805865, 136805873, 136805902, 136805904, 136805910, 136805939, 136805941, 136805947, 136805978, 136807943, 136807951, 136807980, 136807982, 136807988, 136808019, 136809343, 136810021, 136810029, 136810060, 136811205, 136811242, 136812655, 136812663, 136812692, 136812694, 136812700, 136812731, 136813283, 136814733, 136814741, 136814772, 136817995, 136819445, 136819453, 136819484, 136844057, 136892573, 136892610, 136894651, 136899363, 136914949, 136939879, 136939887, 136939916, 136939918, 136939924, 136939955, 136941957, 136941965, 136941996, 136946669, 136946677, 136946708, 136978907, 137047549, 137047586, 137049627, 137054339, 137062991, 137101841, 137101849, 137101878, 137101880, 137101886, 137101915, 137101917, 137101923, 137101952, 137101954, 137101960, 137101991, 137103919, 137103927, 137103956, 137103958, 137103964, 137103993, 137103995, 137104001, 137104032, 137105319, 137105356, 137105997, 137106005, 137106034, 137106036, 137106042, 137106073, 137107397, 137108075, 137108083, 137108114, 137108631, 137108639, 137108668, 137108670, 137108676, 137108705, 137108707, 137108713, 137108744, 137110709, 137110717, 137110746, 137110748, 137110754, 137110785, 137112109, 137112787, 137112795, 137112826, 137115421, 137115429, 137115458, 137115460, 137115466, 137115497, 137117499, 137117507, 137117538, 137120761, 137122211, 137122219, 137122250, 137133883, 137153835, 137153872, 137153909, 137155913, 137155950, 137157991, 137160625, 137160662, 137162703, 137167415, 137202129, 137219920, 137249435, 137249443, 137249474, 137290812, 137315575, 137315612, 137317653, 137322365, 137331017, 137357105, 137386467, 137386504, 137388545, 137393257, 137401909, 137411397, 137411405, 137411434, 137411436, 137411442, 137411471, 137411473, 137411479, 137411510, 137413475, 137413483, 137413512, 137413514, 137413520, 137413551, 137414875, 137415553, 137415561, 137415592, 137418187, 137418195, 137418224, 137418226, 137418232, 137418263, 137420265, 137420273, 137420304, 137424977, 137424985, 137425016, 137463391, 137463428, 137465469, 137470181, 137571871, 137571908, 137571945, 137571982, 137573949, 137573986, 137574023, 137576027, 137576064, 137578105, 137578661, 137578698, 137578735, 137580739, 137580776, 137582817, 137585451, 137585488, 137587529, 137592241, 137625131, 137658205, 137658242, 137658279, 137660283, 137660320, 137662361, 137664995, 137665032, 137667073, 137671785, 137673647, 137673684, 137675725, 137680437, 137696023, 137720953, 137720961, 137720990, 137720992, 137720998, 137721029, 137723031, 137723039, 137723070, 137727743, 137727751, 137727782, 137744539, 137744576, 137746617, 137751329, 137759981, 137772947, 137881427, 137881464, 137881501, 137882915, 137882923, 137882952, 137882954, 137882960, 137882989, 137882991, 137882997, 137883026, 137883028, 137883034, 137883065, 137883505, 137883542, 137884993, 137885001, 137885030, 137885032, 137885038, 137885067, 137885069, 137885075, 137885106, 137885583, 137886393, 137886430, 137887071, 137887079, 137887108, 137887110, 137887116, 137887147, 137888217, 137888254, 137888471, 137889149, 137889157, 137889188, 137889705, 137889713, 137889742, 137889744, 137889750, 137889779, 137889781, 137889787, 137889818, 137890295, 137891783, 137891791, 137891820, 137891822, 137891828, 137891859, 137893183, 137893861, 137893869, 137893900, 137895007, 137896495, 137896503, 137896532, 137896534, 137896540, 137896571, 137898573, 137898581, 137898612, 137901835, 137903285, 137903293, 137903324, 137967761, 137967798, 137969839, 137974551, 137983203, 138030509, 138030517, 138030548, 138054095, 138118053, 138138179, 138142689, 138142726, 138142763, 138142800, 138144767, 138144804, 138144841, 138146845, 138146882, 138148923, 138149479, 138149516, 138149553, 138151557, 138151594, 138153635, 138156269, 138156306, 138158347, 138163059, 138190983, 138191020, 138192471, 138192479, 138192508, 138192510, 138192516, 138192545, 138192547, 138192553, 138192584, 138193061, 138194549, 138194557, 138194586, 138194588, 138194594, 138194625, 138195949, 138196627, 138196635, 138196666, 138197773, 138199261, 138199269, 138199298, 138199300, 138199306, 138199337, 138201339, 138201347, 138201378, 138206051, 138206059, 138206090, 138209071, 138225545, 138225553, 138225582, 138225584, 138225590, 138225619, 138225621, 138225627, 138225656, 138225658, 138225664, 138225693, 138225695, 138225701, 138225732, 138227623, 138227631, 138227660, 138227662, 138227668, 138227697, 138227699, 138227705, 138227734, 138227736, 138227742, 138227773, 138229023, 138229060, 138229097, 138229701, 138229709, 138229738, 138229740, 138229746, 138229775, 138229777, 138229783, 138229814, 138231101, 138231138, 138231779, 138231787, 138231816, 138231818, 138231824, 138231855, 138232335, 138232343, 138232372, 138232374, 138232380, 138232409, 138232411, 138232417, 138232446, 138232448, 138232454, 138232485, 138233179, 138233857, 138233865, 138233896, 138234413, 138234421, 138234450, 138234452, 138234458, 138234487, 138234489, 138234495, 138234526, 138235813, 138235850, 138236491, 138236499, 138236528, 138236530, 138236536, 138236567, 138237891, 138238569, 138238577, 138238608, 138239125, 138239133, 138239162, 138239164, 138239170, 138239199, 138239201, 138239207, 138239238, 138241203, 138241211, 138241240, 138241242, 138241248, 138241279, 138242603, 138243281, 138243289, 138243320, 138244465, 138244502, 138245915, 138245923, 138245952, 138245954, 138245960, 138245991, 138246543, 138247993, 138248001, 138248032, 138251255, 138252705, 138252713, 138252744, 138277317, 138406205, 138452245, 138452282, 138452319, 138454323, 138454360, 138456401, 138459035, 138459072, 138461113, 138465825, 138477097, 138496251, 138500539, 138502027, 138502035, 138502064, 138502066, 138502072, 138502103, 138504105, 138504113, 138504144, 138508817, 138508825, 138508856, 138535101, 138535109, 138535138, 138535140, 138535146, 138535175, 138535177, 138535183, 138535212, 138535214, 138535220, 138535251, 138537179, 138537187, 138537216, 138537218, 138537224, 138537253, 138537255, 138537261, 138537292, 138538579, 138538616, 138539257, 138539265, 138539294, 138539296, 138539302, 138539333, 138540657, 138541335, 138541343, 138541374, 138541891, 138541899, 138541928, 138541930, 138541936, 138541965, 138541967, 138541973, 138542004, 138543969, 138543977, 138544006, 138544008, 138544014, 138544045, 138545369, 138546047, 138546055, 138546086, 138548681, 138548689, 138548718, 138548720, 138548726, 138548757, 138550759, 138550767, 138550798, 138554021, 138555471, 138555479, 138555510, 138653180, 138662501, 138662538, 138662575, 138664579, 138664616, 138666657, 138669291, 138669328, 138671369, 138676081, 138733393, 138733430, 138733467, 138735471, 138735508, 138737549, 138740183, 138740220, 138742261, 138746973, 138748835, 138748872, 138750913, 138755625, 138761801, 138761838, 138763879, 138764277, 138768591, 138811583, 138811591, 138811622, 138819727, 138819764, 138821805, 138826517, 138835169, 138844657, 138844665, 138844694, 138844696, 138844702, 138844731, 138844733, 138844739, 138844770, 138846735, 138846743, 138846772, 138846774, 138846780, 138846811, 138848135, 138848813, 138848821, 138848852, 138851447, 138851455, 138851484, 138851486, 138851492, 138851523, 138853525, 138853533, 138853564, 138858237, 138858245, 138858276, 138972057, 138972094, 138973545, 138973553, 138973582, 138973584, 138973590, 138973619, 138973621, 138973627, 138973658, 138974135, 138975623, 138975631, 138975660, 138975662, 138975668, 138975699, 138977023, 138977701, 138977709, 138977740, 138978847, 138980335, 138980343, 138980372, 138980374, 138980380, 138980411, 138982413, 138982421, 138982452, 138987125, 138987133, 138987164, 139042949, 139042986, 139045027, 139049739, 139058391, 139071357, 139106907, 139106944, 139108985, 139113697, 139129283, 139154213, 139154221, 139154250, 139154252, 139154258, 139154289, 139156291, 139156299, 139156330, 139161003, 139161011, 139161042, 139193241, 139233319, 139233356, 139233393, 139235397, 139235434, 139237475, 139240109, 139240146, 139242187, 139246899, 139281613, 139283101, 139283109, 139283138, 139283140, 139283146, 139283177, 139285179, 139285187, 139285218, 139289891, 139289899, 139289930, 139300733, 139300741, 139300770, 139300772, 139300778, 139300807, 139300809, 139300815, 139300844, 139300846, 139300852, 139300881, 139300883, 139300889, 139300920, 139302811, 139302819, 139302848, 139302850, 139302856, 139302885, 139302887, 139302893, 139302922, 139302924, 139302930, 139302961, 139304211, 139304248, 139304285, 139304889, 139304897, 139304926, 139304928, 139304934, 139304963, 139304965, 139304971, 139305002, 139306289, 139306326, 139306967, 139306975, 139307004, 139307006, 139307012, 139307043, 139307523, 139307531, 139307560, 139307562, 139307568, 139307597, 139307599, 139307605, 139307634, 139307636, 139307642, 139307673, 139308367, 139309045, 139309053, 139309084, 139309601, 139309609, 139309638, 139309640, 139309646, 139309675, 139309677, 139309683, 139309714, 139311001, 139311038, 139311679, 139311687, 139311716, 139311718, 139311724, 139311755, 139313079, 139313757, 139313765, 139313796, 139314313, 139314321, 139314350, 139314352, 139314358, 139314387, 139314389, 139314395, 139314426, 139316175, 139316183, 139316212, 139316214, 139316220, 139316249, 139316251, 139316257, 139316286, 139316288, 139316294, 139316325, 139316391, 139316399, 139316428, 139316430, 139316436, 139316467, 139317791, 139318253, 139318261, 139318290, 139318292, 139318298, 139318327, 139318329, 139318335, 139318366, 139318469, 139318477, 139318508, 139319653, 139319690, 139320331, 139320339, 139320368, 139320370, 139320376, 139320407, 139321103, 139321111, 139321140, 139321142, 139321148, 139321179, 139321731, 139322409, 139322417, 139322448, 139322965, 139322973, 139323002, 139323004, 139323010, 139323039, 139323041, 139323047, 139323078, 139323181, 139323189, 139323220, 139325043, 139325051, 139325080, 139325082, 139325088, 139325119, 139326443, 139327121, 139327129, 139327160, 139327893, 139327901, 139327932, 139329755, 139329763, 139329792, 139329794, 139329800, 139329831, 139331833, 139331841, 139331872, 139335095, 139336545, 139336553, 139336584, 139352505, 139416463, 139463769, 139463777, 139463808, 139485105, 139485142, 139487183, 139491895, 139542875, 139542912, 139544953, 139549665, 139571439, 139592657, 139592665, 139592696, 139610289, 139610297, 139610326, 139610328, 139610334, 139610363, 139610365, 139610371, 139610400, 139610402, 139610408, 139610439, 139612367, 139612375, 139612404, 139612406, 139612412, 139612441, 139612443, 139612449, 139612480, 139613767, 139613804, 139614445, 139614453, 139614482, 139614484, 139614490, 139614521, 139615845, 139616523, 139616531, 139616562, 139617079, 139617087, 139617116, 139617118, 139617124, 139617153, 139617155, 139617161, 139617192, 139619157, 139619165, 139619194, 139619196, 139619202, 139619233, 139620557, 139621235, 139621243, 139621274, 139623869, 139623877, 139623906, 139623908, 139623914, 139623945, 139625731, 139625739, 139625768, 139625770, 139625776, 139625805, 139625807, 139625813, 139625844, 139625947, 139625955, 139625986, 139627809, 139627817, 139627846, 139627848, 139627854, 139627885, 139629209, 139629887, 139629895, 139629926, 139630659, 139630667, 139630698, 139632521, 139632529, 139632558, 139632560, 139632566, 139632597, 139634599, 139634607, 139634638, 139639311, 139639319, 139639350, 139677725, 139677762, 139679803, 139684515, 139728368, 139753131, 139753168, 139755209, 139759921, 139794661, 139824023, 139824060, 139826101, 139830813, 139839465, 139852431, 139894915, 139894952, 139896993, 139901705, 139910357, 139919845, 139919853, 139919882, 139919884, 139919890, 139919919, 139919921, 139919927, 139919958, 139921923, 139921931, 139921960, 139921962, 139921968, 139921999, 139923323, 139924001, 139924009, 139924040, 139926635, 139926643, 139926672, 139926674, 139926680, 139926711, 139928713, 139928721, 139928752, 139933425, 139933433, 139933464, 139935287, 139935295, 139935324, 139935326, 139935332, 139935363, 139937365, 139937373, 139937404, 139942077, 139942085, 139942116, 139987281, 140062687, 140064175, 140064183, 140064212, 140064214, 140064220, 140064251, 140066253, 140066261, 140066292, 140070965, 140070973, 140071004, 140095761, 140095798, 140095835, 140097839, 140097876, 140099917, 140102551, 140102588, 140104629, 140109341, 140133579, 140182095, 140182132, 140184173, 140188885, 140197537, 140204471, 140229401, 140229409, 140229438, 140229440, 140229446, 140229477, 140231479, 140231487, 140231518, 140236191, 140236199, 140236230, 140244843, 140244851, 140244882, 140268429, 140323949, 140323986, 140326027, 140330739, 140373731, 140373739, 140373770, 140391363, 140391371, 140391400, 140391402, 140391408, 140391437, 140391439, 140391445, 140391474, 140391476, 140391482, 140391513, 140393441, 140393449, 140393478, 140393480, 140393486, 140393515, 140393517, 140393523, 140393554, 140394841, 140394878, 140395519, 140395527, 140395556, 140395558, 140395564, 140395595, 140396919, 140397597, 140397605, 140397636, 140398153, 140398161, 140398190, 140398192, 140398198, 140398227, 140398229, 140398235, 140398266, 140400231, 140400239, 140400268, 140400270, 140400276, 140400307, 140401631, 140402309, 140402317, 140402348, 140404943, 140404951, 140404980, 140404982, 140404988, 140405019, 140405317, 140405354, 140406805, 140406813, 140406842, 140406844, 140406850, 140406879, 140406881, 140406887, 140406918, 140407021, 140407029, 140407060, 140407395, 140408883, 140408891, 140408920, 140408922, 140408928, 140408959, 140410283, 140410961, 140410969, 140411000, 140411733, 140411741, 140411772, 140412107, 140413595, 140413603, 140413632, 140413634, 140413640, 140413671, 140415673, 140415681, 140415712, 140420385, 140420393, 140420424, 140491651, 140538957, 140538965, 140538996, 140575735, 140633505, 140646627, 140666579, 140666616, 140666653, 140668657, 140668694, 140670735, 140673369, 140673406, 140675447, 140680159, 140700919, 140700927, 140700956, 140700958, 140700964, 140700993, 140700995, 140701001, 140701032, 140702997, 140703005, 140703034, 140703036, 140703042, 140703073, 140704397, 140705075, 140705083, 140705114, 140707709, 140707717, 140707746, 140707748, 140707754, 140707785, 140709787, 140709795, 140709826, 140714499, 140714507, 140714538, 140714873, 140716361, 140716369, 140716398, 140716400, 140716406, 140716437, 140718439, 140718447, 140718478, 140723151, 140723159, 140723190, 140749435, 140749443, 140749472, 140749474, 140749480, 140749509, 140749511, 140749517, 140749546, 140749548, 140749554, 140749585, 140751513, 140751521, 140751550, 140751552, 140751558, 140751587, 140751589, 140751595, 140751626, 140752913, 140752950, 140753591, 140753599, 140753628, 140753630, 140753636, 140753667, 140754991, 140755669, 140755677, 140755708, 140756225, 140756233, 140756262, 140756264, 140756270, 140756299, 140756301, 140756307, 140756338, 140758303, 140758311, 140758340, 140758342, 140758348, 140758379, 140759703, 140760381, 140760389, 140760420, 140763015, 140763023, 140763052, 140763054, 140763060, 140763091, 140765093, 140765101, 140765132, 140768355, 140769805, 140769813, 140769844, 140843761, 140914653, 140976135, 140976172, 140978213, 140982925, 140985545, 141010475, 141010483, 141010512, 141010514, 141010520, 141010551, 141012553, 141012561, 141012592, 141017265, 141017273, 141017304, 141025917, 141025925, 141025956, 141058991, 141058999, 141059028, 141059030, 141059036, 141059065, 141059067, 141059073, 141059104, 141061069, 141061077, 141061106, 141061108, 141061114, 141061145, 141062469, 141063147, 141063155, 141063186, 141065781, 141065789, 141065818, 141065820, 141065826, 141065857, 141067859, 141067867, 141067898, 141072571, 141072579, 141072610, 141154805, 141154813, 141154844, 141170949, 141170986, 141171023, 141173027, 141173064, 141175105, 141177739, 141177776, 141179817, 141184529, 141186391, 141186428, 141188469, 141193181, 141257283, 141257320, 141259361, 141264073, 141272725, 141285691, 141320031, 141320039, 141320070, 141343617, 141368547, 141368555, 141368584, 141368586, 141368592, 141368623, 141370625, 141370633, 141370664, 141375337, 141375345, 141375376, 141414579, 141480505, 141480542, 141481993, 141482001, 141482030, 141482032, 141482038, 141482067, 141482069, 141482075, 141482106, 141482583, 141484071, 141484079, 141484108, 141484110, 141484116, 141484147, 141485471, 141486149, 141486157, 141486188, 141487295, 141488783, 141488791, 141488820, 141488822, 141488828, 141488859, 141490861, 141490869, 141490900, 141495573, 141495581, 141495612, 141495947, 141497435, 141497443, 141497472, 141497474, 141497480, 141497511, 141499513, 141499521, 141499552, 141504225, 141504233, 141504264, 141566839, 141630797, 141678103, 141678111, 141678142, 141738289, 141738297, 141738326, 141738328, 141738334, 141738363, 141738365, 141738371, 141738400, 141738402, 141738408, 141738437, 141738439, 141738445, 141738476, 141740367, 141740375, 141740404, 141740406, 141740412, 141740441, 141740443, 141740449, 141740478, 141740480, 141740486, 141740517, 141741767, 141741804, 141741841, 141742445, 141742453, 141742482, 141742484, 141742490, 141742519, 141742521, 141742527, 141742558, 141743845, 141743882, 141744523, 141744531, 141744560, 141744562, 141744568, 141744599, 141745079, 141745087, 141745116, 141745118, 141745124, 141745153, 141745155, 141745161, 141745190, 141745192, 141745198, 141745229, 141745923, 141746601, 141746609, 141746640, 141747157, 141747165, 141747194, 141747196, 141747202, 141747231, 141747233, 141747239, 141747270, 141748557, 141748594, 141749235, 141749243, 141749272, 141749274, 141749280, 141749311, 141750635, 141751313, 141751321, 141751352, 141751869, 141751877, 141751906, 141751908, 141751914, 141751943, 141751945, 141751951, 141751982, 141753947, 141753955, 141753984, 141753986, 141753992, 141754023, 141755347, 141756025, 141756033, 141756064, 141757209, 141757246, 141758659, 141758667, 141758696, 141758698, 141758704, 141758735, 141759287, 141760737, 141760745, 141760776, 141763999, 141765449, 141765457, 141765488, 141790061, 141791549, 141791557, 141791586, 141791588, 141791594, 141791625, 141793627, 141793635, 141793666, 141798339, 141798347, 141798378, 141806991, 141806999, 141807030, 141824623, 141824631, 141824660, 141824662, 141824668, 141824697, 141824699, 141824705, 141824734, 141824736, 141824742, 141824773, 141826701, 141826709, 141826738, 141826740, 141826746, 141826775, 141826777, 141826783, 141826814, 141828101, 141828138, 141828779, 141828787, 141828816, 141828818, 141828824, 141828855, 141830179, 141830857, 141830865, 141830896, 141831413, 141831421, 141831450, 141831452, 141831458, 141831487, 141831489, 141831495, 141831526, 141833491, 141833499, 141833528, 141833530, 141833536, 141833567, 141834891, 141835569, 141835577, 141835608, 141838203, 141838211, 141838240, 141838242, 141838248, 141838279, 141840065, 141840073, 141840102, 141840104, 141840110, 141840139, 141840141, 141840147, 141840178, 141840281, 141840289, 141840320, 141842143, 141842151, 141842180, 141842182, 141842188, 141842219, 141843543, 141844221, 141844229, 141844260, 141844993, 141845001, 141845032, 141846855, 141846863, 141846892, 141846894, 141846900, 141846931, 141848933, 141848941, 141848972, 141853645, 141853653, 141853684, 142008995, 142047845, 142047853, 142047882, 142047884, 142047890, 142047919, 142047921, 142047927, 142047956, 142047958, 142047964, 142047995, 142049923, 142049931, 142049960, 142049962, 142049968, 142049997, 142049999, 142050005, 142050036, 142051323, 142051360, 142052001, 142052009, 142052038, 142052040, 142052046, 142052077, 142053401, 142054079, 142054087, 142054118, 142054635, 142054643, 142054672, 142054674, 142054680, 142054709, 142054711, 142054717, 142054748, 142056713, 142056721, 142056750, 142056752, 142056758, 142056789, 142058113, 142058791, 142058799, 142058830, 142061425, 142061433, 142061462, 142061464, 142061470, 142061501, 142063503, 142063511, 142063542, 142066765, 142068215, 142068223, 142068254, 142101105, 142101113, 142101144, 142134179, 142134187, 142134216, 142134218, 142134224, 142134253, 142134255, 142134261, 142134292, 142136257, 142136265, 142136294, 142136296, 142136302, 142136333, 142137657, 142138335, 142138343, 142138374, 142140969, 142140977, 142141006, 142141008, 142141014, 142141045, 142143047, 142143055, 142143086, 142147759, 142147767, 142147798, 142149621, 142149629, 142149658, 142149660, 142149666, 142149697, 142151699, 142151707, 142151738, 142156411, 142156419, 142156450, 142165924, 142201615, 142261579, 142261616, 142263657, 142266089, 142266126, 142266163, 142266200, 142266237, 142268167, 142268204, 142268241, 142268278, 142268369, 142270245, 142270282, 142270319, 142272323, 142272360, 142272879, 142272916, 142272953, 142272990, 142274401, 142274957, 142274994, 142275031, 142277021, 142277035, 142277072, 142279113, 142279669, 142279706, 142279743, 142281747, 142281784, 142283825, 142286459, 142286496, 142288537, 142293249, 142332471, 142332508, 142334549, 142339261, 142347913, 142357401, 142357409, 142357438, 142357440, 142357446, 142357475, 142357477, 142357483, 142357514, 142359479, 142359487, 142359516, 142359518, 142359524, 142359555, 142360879, 142361557, 142361565, 142361596, 142364191, 142364199, 142364228, 142364230, 142364236, 142364267, 142366269, 142366277, 142366308, 142370981, 142370989, 142371020, 142418805, 142443735, 142443743, 142443772, 142443774, 142443780, 142443811, 142445813, 142445821, 142445852, 142450525, 142450533, 142450564, 142459177, 142459185, 142459216, 142571135, 142572623, 142572631, 142572660, 142572662, 142572668, 142572699, 142574701, 142574709, 142574740, 142575645, 142575682, 142575719, 142575756, 142577723, 142577760, 142577797, 142579413, 142579421, 142579452, 142579801, 142579838, 142581879, 142582435, 142582472, 142582509, 142584513, 142584550, 142586591, 142588065, 142588073, 142588104, 142589225, 142589262, 142591303, 142596015, 142619651, 142619688, 142621729, 142626441, 142642027, 142666957, 142666965, 142666994, 142666996, 142667002, 142667033, 142669035, 142669043, 142669074, 142673747, 142673755, 142673786, 142705985, 142753291, 142753299, 142753330, 142828919, 142828927, 142828956, 142828958, 142828964, 142828993, 142828995, 142829001, 142829030, 142829032, 142829038, 142829069, 142830997, 142831005, 142831034, 142831036, 142831042, 142831071, 142831073, 142831079, 142831110, 142832397, 142832434, 142833075, 142833083, 142833112, 142833114, 142833120, 142833151, 142834475, 142835153, 142835161, 142835192, 142835709, 142835717, 142835746, 142835748, 142835754, 142835783, 142835785, 142835791, 142835822, 142837787, 142837795, 142837824, 142837826, 142837832, 142837863, 142839187, 142839865, 142839873, 142839904, 142842499, 142842507, 142842536, 142842538, 142842544, 142842575, 142844577, 142844585, 142844616, 142847839, 142849289, 142849297, 142849328, 142882179, 142882187, 142882218, 142885201, 142885238, 142885275, 142887279, 142887316, 142889357, 142891991, 142892028, 142894069, 142898781, 142899811, 142899819, 142899848, 142899850, 142899856, 142899885, 142899887, 142899893, 142899922, 142899924, 142899930, 142899961, 142901889, 142901897, 142901926, 142901928, 142901934, 142901963, 142901965, 142901971, 142902002, 142903289, 142903326, 142903967, 142903975, 142904004, 142904006, 142904012, 142904043, 142905367, 142906045, 142906053, 142906084, 142906601, 142906609, 142906638, 142906640, 142906646, 142906675, 142906677, 142906683, 142906714, 142908679, 142908687, 142908716, 142908718, 142908724, 142908755, 142910079, 142910757, 142910765, 142910796, 142913391, 142913399, 142913428, 142913430, 142913436, 142913467, 142915253, 142915261, 142915290, 142915292, 142915298, 142915327, 142915329, 142915335, 142915366, 142915469, 142915477, 142915508, 142917331, 142917339, 142917368, 142917370, 142917376, 142917407, 142918731, 142919409, 142919417, 142919448, 142920181, 142920189, 142920220, 142922043, 142922051, 142922080, 142922082, 142922088, 142922119, 142924121, 142924129, 142924160, 142928833, 142928841, 142928872, 142929207, 142930695, 142930703, 142930732, 142930734, 142930740, 142930771, 142932773, 142932781, 142932812, 142937485, 142937493, 142937524, 142976513, 142976521, 142976552, 143084183, 143138475, 143138483, 143138512, 143138514, 143138520, 143138549, 143138551, 143138557, 143138588, 143140553, 143140561, 143140590, 143140592, 143140598, 143140629, 143141953, 143142631, 143142639, 143142670, 143145265, 143145273, 143145302, 143145304, 143145310, 143145341, 143147343, 143147351, 143147382, 143152055, 143152063, 143152094, 143190469, 143190506, 143192547, 143194757, 143194794, 143196835, 143197259, 143201547, 143209367, 143209375, 143209404, 143209406, 143209412, 143209441, 143209443, 143209449, 143209480, 143211445, 143211453, 143211482, 143211484, 143211490, 143211521, 143212845, 143213523, 143213531, 143213562, 143216157, 143216165, 143216194, 143216196, 143216202, 143216233, 143218235, 143218243, 143218274, 143222947, 143222955, 143222986, 143224809, 143224817, 143224846, 143224848, 143224854, 143224885, 143226887, 143226895, 143226926, 143231599, 143231607, 143231638, 143240251, 143240259, 143240290, 143273325, 143273333, 143273362, 143273364, 143273370, 143273399, 143273401, 143273407, 143273438, 143275403, 143275411, 143275440, 143275442, 143275448, 143275479, 143276803, 143277481, 143277489, 143277520, 143280115, 143280123, 143280152, 143280154, 143280160, 143280191, 143282193, 143282201, 143282232, 143286905, 143286913, 143286944, 143352209, 143356719, 143356756, 143356793, 143356830, 143358797, 143358834, 143358871, 143360875, 143360912, 143362953, 143363509, 143363546, 143363583, 143365587, 143365624, 143367665, 143370299, 143370336, 143372377, 143377089, 143423101, 143448031, 143448039, 143448068, 143448070, 143448076, 143448107, 143450109, 143450117, 143450148, 143454821, 143454829, 143454860, 143493993, 143500025, 143504313, 143518923, 143518931, 143518960, 143518962, 143518968, 143518999, 143521001, 143521009, 143521040, 143525713, 143525721, 143525752, 143534365, 143534373, 143534404, 143582881, 143582889, 143582918, 143582920, 143582926, 143582957, 143584959, 143584967, 143584998, 143589671, 143589679, 143589710, 143608505, 143608542, 143608579, 143610583, 143610620, 143612661, 143615295, 143615332, 143617373, 143622085, 143663253, 143663261, 143663292, 143666275, 143666312, 143666349, 143668353, 143668390, 143670431, 143673065, 143673102, 143675143, 143679855, 143694839, 143694876, 143696917, 143701629, 143710281, 143757587, 143757595, 143757626, 143781173, 143828479, 143828487, 143828518, 143892437, 143892445, 143892476, 143918061, 143918098, 143919549, 143919557, 143919586, 143919588, 143919594, 143919623, 143919625, 143919631, 143919662, 143920139, 143921627, 143921635, 143921664, 143921666, 143921672, 143921703, 143923027, 143923705, 143923713, 143923744, 143924851, 143926339, 143926347, 143926376, 143926378, 143926384, 143926415, 143928417, 143928425, 143928456, 143933129, 143933137, 143933168, 143975831, 143975868, 143977909, 143982621, 143990441, 143990449, 143990478, 143990480, 143990486, 143990515, 143990517, 143990523, 143990554, 143992519, 143992527, 143992556, 143992558, 143992564, 143992595, 143993919, 143994597, 143994605, 143994636, 143997231, 143997239, 143997268, 143997270, 143997276, 143997307, 143999309, 143999317, 143999348, 144004021, 144004029, 144004060, 144004395, 144005883, 144005891, 144005920, 144005922, 144005928, 144005959, 144007961, 144007969, 144008000, 144012673, 144012681, 144012712, 144021325, 144021333, 144021364, 144179323, 144179360, 144179397, 144181401, 144181438, 144183479, 144186113, 144186150, 144188191, 144192903, 144227617, 144229105, 144229113, 144229142, 144229144, 144229150, 144229181, 144231183, 144231191, 144231222, 144235895, 144235903, 144235934, 144262179, 144262187, 144262216, 144262218, 144262224, 144262253, 144262255, 144262261, 144262290, 144262292, 144262298, 144262329, 144264257, 144264265, 144264294, 144264296, 144264302, 144264331, 144264333, 144264339, 144264370, 144265657, 144265694, 144266335, 144266343, 144266372, 144266374, 144266380, 144266411, 144267735, 144268413, 144268421, 144268452, 144268969, 144268977, 144269006, 144269008, 144269014, 144269043, 144269045, 144269051, 144269082, 144271047, 144271055, 144271084, 144271086, 144271092, 144271123, 144272447, 144273125, 144273133, 144273164, 144275759, 144275767, 144275796, 144275798, 144275804, 144275835, 144277837, 144277845, 144277876, 144281099, 144282549, 144282557, 144282588, 144285387, 144299997, 144300005, 144300034, 144300036, 144300042, 144300073, 144302075, 144302083, 144302114, 144306787, 144306795, 144306826, 144315439, 144315447, 144315478, 144348513, 144348521, 144348550, 144348552, 144348558, 144348587, 144348589, 144348595, 144348626, 144350591, 144350599, 144350628, 144350630, 144350636, 144350667, 144351991, 144352669, 144352677, 144352708, 144355303, 144355311, 144355340, 144355342, 144355348, 144355379, 144357381, 144357389, 144357420, 144362093, 144362101, 144362132, 144363955, 144363963, 144363992, 144363994, 144364000, 144364031, 144366033, 144366041, 144366072, 144370745, 144370753, 144370784, 144447349, 144447386, 144447423, 144449427, 144449464, 144451505, 144454139, 144454176, 144456217, 144460929, 144488879, 144488916, 144490957, 144495669, 144538661, 144538669, 144538700, 144571735, 144571743, 144571772, 144571774, 144571780, 144571809, 144571811, 144571817, 144571848, 144573813, 144573821, 144573850, 144573852, 144573858, 144573889, 144575213, 144575891, 144575899, 144575930, 144578525, 144578533, 144578562, 144578564, 144578570, 144578601, 144580603, 144580611, 144580642, 144585315, 144585323, 144585354, 144609553, 144609561, 144609592, 144658069, 144658077, 144658106, 144658108, 144658114, 144658145, 144660147, 144660155, 144660186, 144664859, 144664867, 144664898, 144673511, 144673519, 144673550, 144699135, 144699172, 144701213, 144705925, 144756905, 144756942, 144758983, 144763695, 144770027, 144770064, 144772105, 144776817, 144785469, 144789979, 144790016, 144790053, 144790090, 144792057, 144792094, 144792131, 144794135, 144794172, 144796213, 144796769, 144796806, 144796843, 144798435, 144798847, 144798884, 144800925, 144803559, 144803596, 144805637, 144810349, 144856361, 144881291, 144881299, 144881328, 144881330, 144881336, 144881367, 144883369, 144883377, 144883408, 144888081, 144888089, 144888120, 144967625, 144967633, 144967664, 145008691, 145010179, 145010187, 145010216, 145010218, 145010224, 145010255, 145012257, 145012265, 145012296, 145016969, 145016977, 145017008, 145066461, 145079583, 145081071, 145081079, 145081108, 145081110, 145081116, 145081147, 145083149, 145083157, 145083188, 145087861, 145087869, 145087900, 145096513, 145096521, 145096552, 145099535, 145099572, 145099609, 145101613, 145101650, 145103691, 145106325, 145106362, 145108403, 145113115, 145143541, 145190847, 145190855, 145190886, 145269953, 145269990, 145272031, 145276743, 145319735, 145319743, 145319774, 145337367, 145337375, 145337404, 145337406, 145337412, 145337441, 145337443, 145337449, 145337478, 145337480, 145337486, 145337517, 145339445, 145339453, 145339482, 145339484, 145339490, 145339519, 145339521, 145339527, 145339558, 145340845, 145340882, 145341523, 145341531, 145341560, 145341562, 145341568, 145341599, 145342923, 145343601, 145343609, 145343640, 145344157, 145344165, 145344194, 145344196, 145344202, 145344231, 145344233, 145344239, 145344270, 145346235, 145346243, 145346272, 145346274, 145346280, 145346311, 145347635, 145348313, 145348321, 145348352, 145350947, 145350955, 145350984, 145350986, 145350992, 145351023, 145352809, 145352817, 145352846, 145352848, 145352854, 145352883, 145352885, 145352891, 145352922, 145353025, 145353033, 145353064, 145354887, 145354895, 145354924, 145354926, 145354932, 145354963, 145356287, 145356965, 145356973, 145357004, 145357737, 145357745, 145357776, 145359599, 145359607, 145359636, 145359638, 145359644, 145359675, 145361677, 145361685, 145361716, 145366389, 145366397, 145366428, 145390627, 145390635, 145390666, 145409091, 145409128, 145411169, 145415881, 145423701, 145423709, 145423738, 145423740, 145423746, 145423775, 145423777, 145423783, 145423814, 145425779, 145425787, 145425816, 145425818, 145425824, 145425855, 145427179, 145427857, 145427865, 145427896, 145430491, 145430499, 145430528, 145430530, 145430536, 145430567, 145432569, 145432577, 145432608, 145437281, 145437289, 145437320, 145439143, 145439151, 145439180, 145439182, 145439188, 145439219, 145441221, 145441229, 145441260, 145445933, 145445941, 145445972, 145454585, 145454593, 145454624, 145521739, 145537979, 145538016, 145540057, 145544769, 145579509, 145646923, 145646931, 145646960, 145646962, 145646968, 145646997, 145646999, 145647005, 145647036, 145649001, 145649009, 145649038, 145649040, 145649046, 145649077, 145650401, 145651079, 145651087, 145651118, 145653713, 145653721, 145653750, 145653752, 145653758, 145653789, 145655791, 145655799, 145655830, 145660503, 145660511, 145660542, 145662365, 145662373, 145662402, 145662404, 145662410, 145662441, 145664443, 145664451, 145664482, 145669155, 145669163, 145669194, 145714359, 145718647, 145733257, 145733265, 145733294, 145733296, 145733302, 145733333, 145735335, 145735343, 145735374, 145740047, 145740055, 145740086, 145748699, 145748707, 145748738, 145789765, 145797215, 145797223, 145797252, 145797254, 145797260, 145797291, 145799293, 145799301, 145799332, 145804005, 145804013, 145804044, 145847535, 145860657, 145865167, 145865204, 145865241, 145865278, 145867245, 145867282, 145867319, 145869323, 145869360, 145871401, 145871957, 145871994, 145872031, 145874035, 145874072, 145876113, 145878747, 145878784, 145880609, 145880646, 145880683, 145880825, 145882687, 145882724, 145884765, 145885537, 145887399, 145887436, 145889477, 145894189, 145931549, 145956479, 145956487, 145956516, 145956518, 145956524, 145956555, 145958557, 145958565, 145958596, 145963269, 145963277, 145963308, 145971921, 145971929, 145971960, 146042813, 146042821, 146042852, 146100809, 146100817, 146100848, 146106771, 146106779, 146106810, 146132395, 146132432, 146134473, 146139185, 146171701, 146171709, 146171740, 146174723, 146174760, 146174797, 146176801, 146176838, 146178879, 146181513, 146181550, 146183591, 146188303, 146190165, 146190202, 146192243, 146196955, 146218729, 146266035, 146266043, 146266074, 146360583, 146427997, 146428005, 146428034, 146428036, 146428042, 146428071, 146428073, 146428079, 146428110, 146430075, 146430083, 146430112, 146430114, 146430120, 146430151, 146431475, 146432153, 146432161, 146432192, 146434787, 146434795, 146434824, 146434826, 146434832, 146434863, 146436865, 146436873, 146436904, 146441577, 146441585, 146441616, 146441951, 146443439, 146443447, 146443476, 146443478, 146443484, 146443515, 146445517, 146445525, 146445556, 146450229, 146450237, 146450268, 146484279, 146484316, 146486357, 146491069, 146498889, 146498897, 146498926, 146498928, 146498934, 146498963, 146498965, 146498971, 146499002, 146499721, 146500967, 146500975, 146501004, 146501006, 146501012, 146501043, 146502367, 146503045, 146503053, 146503084, 146505679, 146505687, 146505716, 146505718, 146505724, 146505755, 146507757, 146507765, 146507796, 146512469, 146512477, 146512508, 146514331, 146514339, 146514368, 146514370, 146514376, 146514407, 146516409, 146516417, 146516448, 146521121, 146521129, 146521160, 146529773, 146529781, 146529812, 146628609, 146703213, 146703250, 146705291, 146710003, 146737553, 146737561, 146737590, 146737592, 146737598, 146737629, 146739631, 146739639, 146739670, 146744343, 146744351, 146744382, 146752995, 146753003, 146753034, 146786069, 146786077, 146786106, 146786108, 146786114, 146786143, 146786145, 146786151, 146786182, 146788147, 146788155, 146788184, 146788186, 146788192, 146788223, 146789547, 146790225, 146790233, 146790264, 146792859, 146792867, 146792896, 146792898, 146792904, 146792935, 146793835, 146794937, 146794945, 146794976, 146799649, 146799657, 146799688, 146808445, 146808453, 146808482, 146808484, 146808490, 146808521, 146810523, 146810531, 146810562, 146815235, 146815243, 146815274, 146823887, 146823895, 146823926, 146860142, 146860179, 146862220, 146866932, 146872403, 146872411, 146872440, 146872442, 146872448, 146872479, 146874481, 146874489, 146874520, 146879193, 146879201, 146879232, 146887845, 146887853, 146887884, 146955797, 146955834, 146955871, 146957875, 146957912, 146959953, 146962587, 146962624, 146964665, 146969377, 146971239, 146971276, 146973317, 146978029, 147012769, 147047109, 147047117, 147047148, 147095625, 147095633, 147095662, 147095664, 147095670, 147095701, 147097703, 147097711, 147097742, 147102415, 147102423, 147102454, 147118001, 147118009, 147118040, 147169698, 147181959, 147181967, 147181998, 147207583, 147207620, 147209661, 147214373, 147223025, 147265353, 147265390, 147267431, 147272143, 147280795, 147293917, 147313869, 147313906, 147313943, 147315947, 147315984, 147318025, 147320659, 147320696, 147322737, 147327449, 147405181, 147405189, 147405220, 147517139, 147518627, 147518635, 147518664, 147518666, 147518672, 147518703, 147520705, 147520713, 147520744, 147525417, 147525425, 147525456, 147534069, 147534077, 147534108, 147574909, 147589519, 147589527, 147589556, 147589558, 147589564, 147589595, 147591597, 147591605, 147591636, 147596309, 147596317, 147596348, 147604961, 147604969, 147605000, 147623425, 147623462, 147625503, 147630215, 147774923, 147774931, 147774960, 147774962, 147774968, 147774997, 147774999, 147775005, 147775034, 147775036, 147775042, 147775073, 147777001, 147777009, 147777038, 147777040, 147777046, 147777075, 147777077, 147777083, 147777114, 147778401, 147778438, 147779079, 147779087, 147779116, 147779118, 147779124, 147779155, 147780479, 147781157, 147781165, 147781196, 147781713, 147781721, 147781750, 147781752, 147781758, 147781787, 147781789, 147781795, 147781826, 147783791, 147783799, 147783828, 147783830, 147783836, 147783867, 147785191, 147785869, 147785877, 147785908, 147788503, 147788511, 147788540, 147788542, 147788548, 147788579, 147790581, 147790589, 147790620, 147793843, 147795293, 147795301, 147795332, 147828183, 147828191, 147828222, 147861257, 147861265, 147861294, 147861296, 147861302, 147861331, 147861333, 147861339, 147861370, 147863335, 147863343, 147863372, 147863374, 147863380, 147863411, 147864735, 147865413, 147865421, 147865452, 147868047, 147868055, 147868084, 147868086, 147868092, 147868123, 147870125, 147870133, 147870164, 147874837, 147874845, 147874876, 147876699, 147876707, 147876736, 147876738, 147876744, 147876775, 147878777, 147878785, 147878816, 147883489, 147883497, 147883528, 147899075, 147899083, 147899114, 147932981, 147947591, 147947599, 147947628, 147947630, 147947636, 147947667, 147949669, 147949677, 147949708, 147950772, 147954381, 147954389, 147954420, 147963033, 147963041, 147963072, 148046427, 148046464, 148048505, 148053217, 148061869, 148084479, 148084487, 148084516, 148084518, 148084524, 148084553, 148084555, 148084561, 148084592, 148086557, 148086565, 148086594, 148086596, 148086602, 148086633, 148087957, 148088635, 148088643, 148088674, 148091269, 148091277, 148091306, 148091308, 148091314, 148091345, 148093347, 148093355, 148093386, 148098059, 148098067, 148098098, 148170813, 148170821, 148170850, 148170852, 148170858, 148170889, 148172891, 148172899, 148172930, 148177603, 148177611, 148177642, 148186255, 148186263, 148186294, 148257147, 148257155, 148257186, 148298213, 148302723, 148302760, 148302797, 148302834, 148304801, 148304838, 148304875, 148306879, 148306916, 148308957, 148309513, 148309550, 148309587, 148311591, 148311628, 148313669, 148316303, 148316340, 148318381, 148321105, 148321113, 148321144, 148323093, 148355983, 148369105, 148389057, 148389094, 148389131, 148391135, 148391172, 148393213, 148394035, 148394043, 148394072, 148394074, 148394080, 148394111, 148395847, 148395884, 148396113, 148396121, 148396152, 148397925, 148400825, 148400833, 148400864, 148402637, 148404499, 148404536, 148406577, 148411289, 148480369, 148480377, 148480408, 148609257, 148609265, 148609296, 148612279, 148612316, 148612353, 148614357, 148614394, 148616435, 148619069, 148619106, 148621147, 148625859, 148656285, 148680149, 148680157, 148680188, 148698613, 148698650, 148700691, 148703591, 148703599, 148703630, 148705403, 148714055, 148865553, 148865561, 148865590, 148865592, 148865598, 148865627, 148865629, 148865635, 148865666, 148867631, 148867639, 148867668, 148867670, 148867676, 148867707, 148869031, 148869709, 148869717, 148869748, 148872343, 148872351, 148872380, 148872382, 148872388, 148872419, 148873541, 148873578, 148873615, 148873652, 148874421, 148874429, 148874460, 148875619, 148875656, 148875693, 148877697, 148877734, 148879133, 148879141, 148879172, 148879775, 148880331, 148880368, 148880405, 148882409, 148882446, 148884487, 148887121, 148887158, 148889199, 148893911, 148921835, 148921872, 148923913, 148928625, 148936445, 148936453, 148936482, 148936484, 148936490, 148936519, 148936521, 148936527, 148936558, 148938523, 148938531, 148938560, 148938562, 148938568, 148938599, 148939923, 148940601, 148940609, 148940640, 148943235, 148943243, 148943272, 148943274, 148943280, 148943311, 148945313, 148945321, 148945352, 148950025, 148950033, 148950064, 148951887, 148951895, 148951924, 148951926, 148951932, 148951963, 148953965, 148953973, 148954004, 148958677, 148958685, 148958716, 148967329, 148967337, 148967368, 149008169, 149022779, 149022787, 149022816, 149022818, 149022824, 149022855, 149024857, 149024865, 149024896, 149029569, 149029577, 149029608, 149038221, 149038229, 149038260, 149137057, 149175109, 149175117, 149175146, 149175148, 149175154, 149175185, 149177187, 149177195, 149177226, 149181899, 149181907, 149181938, 149183097, 149183134, 149183171, 149185175, 149185212, 149187253, 149189887, 149189924, 149191965, 149196677, 149227103, 149231391, 149246001, 149246009, 149246038, 149246040, 149246046, 149246077, 149248079, 149248087, 149248118, 149252791, 149252799, 149252830, 149261443, 149261451, 149261482, 149309959, 149309967, 149309996, 149309998, 149310004, 149310035, 149312037, 149312045, 149312076, 149316749, 149316757, 149316788, 149332335, 149332343, 149332374, 149384032, 149393353, 149393390, 149393427, 149395431, 149395468, 149396293, 149396301, 149396332, 149397509, 149400143, 149400180, 149402221, 149406933, 149464245, 149464282, 149464319, 149466323, 149466360, 149468401, 149471035, 149471072, 149473113, 149477825, 149479687, 149479724, 149481765, 149484665, 149484673, 149484704, 149486477, 149492653, 149492690, 149494731, 149495129, 149499443, 149555557, 149555565, 149555596, 149619515, 149619523, 149619554, 149645139, 149645176, 149647217, 149651929, 149702909, 149702946, 149704987, 149709699, 149731473, 149773801, 149773838, 149775879, 149780591, 149789243, 149802209, 149837759, 149837796, 149839837, 149844549, 149954695, 149956183, 149956191, 149956220, 149956222, 149956228, 149956259, 149958261, 149958269, 149958300, 149962973, 149962981, 149963012, 149964171, 149964208, 149964245, 149966249, 149966286, 149968327, 149970961, 149970998, 149973039, 149977751, 150012465, 150027075, 150027083, 150027112, 150027114, 150027120, 150027151, 150029153, 150029161, 150029192, 150033865, 150033873, 150033904, 150042517, 150042525, 150042556, 150083357, 150097967, 150097975, 150098004, 150098006, 150098012, 150098043, 150100045, 150100053, 150100084, 150104757, 150104765, 150104796, 150113409, 150113417, 150113448, 150147315, 150215957, 150215994, 150218035, 150222747, 150265739, 150265747, 150265778, 150273727, 150273764, 150275805, 150280517, 150298813, 150298821, 150298850, 150298852, 150298858, 150298887, 150298889, 150298895, 150298926, 150300891, 150300899, 150300928, 150300930, 150300936, 150300967, 150302291, 150302969, 150302977, 150303008, 150305603, 150305611, 150305640, 150305642, 150305648, 150305679, 150307681, 150307689, 150307720, 150312393, 150312401, 150312432, 150336631, 150336639, 150336670, 150385147, 150385155, 150385184, 150385186, 150385192, 150385223, 150387225, 150387233, 150387264, 150391937, 150391945, 150391976, 150400589, 150400597, 150400628, 150407523, 150407531, 150407562, 150459220, 150471481, 150471489, 150471520, 150483983, 150484020, 150486061, 150490773, 150525513, 150554875, 150554912, 150556953, 150561665, 150570317, 150583283, 150608369, 150608377, 150608406, 150608408, 150608414, 150608445, 150610447, 150610455, 150610486, 150615159, 150615167, 150615198, 150694703, 150694711, 150694742, 150735769, 150793539, 150806661, 150826613, 150826650, 150826687, 150828691, 150828728, 150830769, 150833403, 150833440, 150835481, 150840193, 150864431, 150912947, 150912984, 150915025, 150917925, 150917933, 150917964, 150919737, 150928389, 151046813, 151046821, 151046852, 151054801, 151054838, 151056879, 151061591, 151117705, 151117713, 151117744, 151136169, 151136206, 151138247, 151142959, 151188597, 151188605, 151188636, 151222503, 151306587, 151364357, 151374001, 151374009, 151374038, 151374040, 151374046, 151374075, 151374077, 151374083, 151374114, 151376079, 151376087, 151376116, 151376118, 151376124, 151376155, 151377479, 151378157, 151378165, 151378196, 151380791, 151380799, 151380828, 151380830, 151380836, 151380867, 151382869, 151382877, 151382908, 151387581, 151387589, 151387620, 151389443, 151389451, 151389480, 151389482, 151389488, 151389519, 151391521, 151391529, 151391560, 151396233, 151396241, 151396272, 151397431, 151397468, 151397505, 151399509, 151399546, 151401587, 151404221, 151404258, 151406299, 151411011, 151445725, 151460335, 151460343, 151460372, 151460374, 151460380, 151460411, 151462413, 151462421, 151462452, 151467125, 151467133, 151467164, 151475777, 151475785, 151475816, 151546669, 151546677, 151546708, 151574613, 151645505, 151683557, 151683565, 151683594, 151683596, 151683602, 151683633, 151685635, 151685643, 151685674, 151690347, 151690355, 151690386, 151698999, 151699007, 151699038, 151706987, 151707024, 151709065, 151713777, 151769891, 151769899, 151769930, 151833849, 151833857, 151833888, 151901801, 151901838, 151901875, 151903879, 151903916, 151905957, 151908591, 151908628, 151910669, 151915381, 151917243, 151917280, 151919321, 151924033, 151988135, 151988172, 151990213, 151993113, 151993121, 151993152, 151994925, 152003577, 152016543, 152145431, 152169029, 152211357, 152211394, 152213435, 152218147, 152226799, 152297691, 152361649, 152464631, 152464639, 152464668, 152464670, 152464676, 152464707, 152466709, 152466717, 152466748, 152469141, 152469149, 152469178, 152469180, 152469186, 152469215, 152469217, 152469223, 152469252, 152469254, 152469260, 152469289, 152469291, 152469297, 152469328, 152471219, 152471227, 152471256, 152471258, 152471264, 152471293, 152471295, 152471301, 152471330, 152471332, 152471338, 152471369, 152471421, 152471429, 152471460, 152472619, 152472656, 152472693, 152473297, 152473305, 152473334, 152473336, 152473342, 152473371, 152473373, 152473379, 152473410, 152474697, 152474734, 152475375, 152475383, 152475412, 152475414, 152475420, 152475451, 152475931, 152475939, 152475968, 152475970, 152475976, 152476005, 152476007, 152476013, 152476042, 152476044, 152476050, 152476081, 152476775, 152477453, 152477461, 152477492, 152478009, 152478017, 152478046, 152478048, 152478054, 152478083, 152478085, 152478091, 152478122, 152479409, 152479446, 152480073, 152480081, 152480087, 152480095, 152480112, 152480124, 152480126, 152480132, 152480163, 152481487, 152482165, 152482173, 152482204, 152482721, 152482729, 152482758, 152482760, 152482766, 152482795, 152482797, 152482803, 152482834, 152484799, 152484807, 152484836, 152484838, 152484844, 152484875, 152486199, 152486877, 152486885, 152486916, 152488061, 152488098, 152489511, 152489519, 152489548, 152489550, 152489556, 152489587, 152490139, 152491589, 152491597, 152491628, 152494851, 152496301, 152496309, 152496340, 152520913, 152535523, 152535531, 152535560, 152535562, 152535568, 152535599, 152537601, 152537609, 152537640, 152542313, 152542321, 152542352, 152550965, 152550973, 152551004, 152621857, 152621865, 152621896, 152739847, 152774187, 152774195, 152774226, 152778697, 152778705, 152778734, 152778736, 152778742, 152778771, 152778773, 152778779, 152778808, 152778810, 152778816, 152778847, 152780775, 152780783, 152780812, 152780814, 152780820, 152780849, 152780851, 152780857, 152780888, 152782175, 152782212, 152782853, 152782861, 152782890, 152782892, 152782898, 152782929, 152784253, 152784931, 152784939, 152784970, 152785487, 152785495, 152785524, 152785526, 152785532, 152785561, 152785563, 152785569, 152785600, 152787565, 152787573, 152787602, 152787604, 152787610, 152787641, 152788965, 152789643, 152789651, 152789682, 152792277, 152792285, 152792314, 152792316, 152792322, 152792353, 152794355, 152794363, 152794394, 152797617, 152799067, 152799075, 152799106, 152822703, 152822711, 152822740, 152822742, 152822748, 152822779, 152824781, 152824789, 152824820, 152829493, 152829501, 152829532, 152845079, 152845087, 152845118, 152896776, 152909037, 152909045, 152909076, 152992431, 152992468, 152994509, 152999221, 153007873, 153063323, 153063360, 153065401, 153070113, 153078765, 153088253, 153088261, 153088290, 153088292, 153088298, 153088327, 153088329, 153088335, 153088366, 153090331, 153090339, 153090368, 153090370, 153090376, 153090407, 153091731, 153092409, 153092417, 153092448, 153095043, 153095051, 153095080, 153095082, 153095088, 153095119, 153097121, 153097129, 153097160, 153101833, 153101841, 153101872, 153132259, 153132267, 153132298, 153244217, 153301987, 153350503, 153350540, 153352581, 153357293, 153372879, 153397809, 153397817, 153397846, 153397848, 153397854, 153397885, 153399887, 153399895, 153399926, 153404599, 153404607, 153404638, 153436837, 153555261, 153555269, 153555300, 153559771, 153559779, 153559808, 153559810, 153559816, 153559845, 153559847, 153559853, 153559882, 153559884, 153559890, 153559921, 153561849, 153561857, 153561886, 153561888, 153561894, 153561923, 153561925, 153561931, 153561962, 153563249, 153563286, 153563927, 153563935, 153563964, 153563966, 153563972, 153564003, 153565327, 153566005, 153566013, 153566044, 153566561, 153566569, 153566598, 153566600, 153566606, 153566635, 153566637, 153566643, 153566674, 153568639, 153568647, 153568676, 153568678, 153568684, 153568715, 153570039, 153570717, 153570725, 153570756, 153573351, 153573359, 153573388, 153573390, 153573396, 153573427, 153575429, 153575437, 153575468, 153578691, 153580141, 153580149, 153580180, 153626153, 153626161, 153626192, 153660059, 153697045, 153697053, 153697084, 153707365, 153707373, 153707404, 153811557, 153811565, 153811594, 153811596, 153811602, 153811631, 153811633, 153811639, 153811670, 153813635, 153813643, 153813672, 153813674, 153813680, 153813711, 153815035, 153815713, 153815721, 153815752, 153818347, 153818355, 153818384, 153818386, 153818392, 153818423, 153820425, 153820433, 153820464, 153825137, 153825145, 153825176, 153869327, 153869335, 153869364, 153869366, 153869372, 153869401, 153869403, 153869409, 153869440, 153871405, 153871413, 153871442, 153871444, 153871450, 153871481, 153872805, 153873483, 153873491, 153873522, 153876117, 153876125, 153876154, 153876156, 153876162, 153876193, 153878195, 153878203, 153878234, 153882907, 153882915, 153882946, 153897891, 153897899, 153897928, 153897930, 153897936, 153897967, 153899969, 153899977, 153900008, 153904681, 153904689, 153904720, 153913333, 153913341, 153913372, 153921321, 153921358, 153923399, 153928111, 153984225, 153984233, 153984264, 154083061, 154121113, 154121121, 154121150, 154121152, 154121158, 154121189, 154123191, 154123199, 154123230, 154127903, 154127911, 154127942, 154153953, 154178883, 154178891, 154178920, 154178922, 154178928, 154178959, 154180961, 154180969, 154181000, 154185673, 154185681, 154185712, 154207447, 154207455, 154207486, 154230877, 154339357, 154339394, 154339431, 154341435, 154341472, 154343513, 154346147, 154346184, 154348225, 154352937, 154425691, 154425728, 154427769, 154430669, 154430677, 154430708, 154432481, 154441133, 154488439, 154488447, 154488478, 154512025, 154648913, 154648950, 154650401, 154650409, 154650438, 154650440, 154650446, 154650475, 154650477, 154650483, 154650514, 154650991, 154652479, 154652487, 154652516, 154652518, 154652524, 154652555, 154653879, 154654557, 154654565, 154654596, 154655703, 154657191, 154657199, 154657228, 154657230, 154657236, 154657267, 154659269, 154659277, 154659308, 154663981, 154663989, 154664020, 154735247, 154902187, 154902195, 154902224, 154902226, 154902232, 154902263, 154904265, 154904273, 154904304, 154908977, 154908985, 154909016, 154910175, 154910212, 154910249, 154912253, 154912290, 154914331, 154916965, 154917002, 154919043, 154923755, 154958469, 154959957, 154959965, 154959994, 154959996, 154960002, 154960033, 154962035, 154962043, 154962074, 154966747, 154966755, 154966786, 154973079, 154973087, 154973116, 154973118, 154973124, 154973155, 154975157, 154975165, 154975196, 154979869, 154979877, 154979908, 154988521, 154988529, 154988560, 154993031, 154993039, 154993068, 154993070, 154993076, 154993105, 154993107, 154993113, 154993142, 154993144, 154993150, 154993181, 154995109, 154995117, 154995146, 154995148, 154995154, 154995183, 154995185, 154995191, 154995222, 154996509, 154996546, 154997187, 154997195, 154997224, 154997226, 154997232, 154997263, 154998587, 154999265, 154999273, 154999304, 154999821, 154999829, 154999858, 154999860, 154999866, 154999895, 154999897, 154999903, 154999934, 155001899, 155001907, 155001936, 155001938, 155001944, 155001975, 155003299, 155003977, 155003985, 155004016, 155006611, 155006619, 155006648, 155006650, 155006656, 155006687, 155008689, 155008697, 155008728, 155011951, 155013401, 155013409, 155013440, 155059413, 155059421, 155059452, 155211743, 155211751, 155211782, 155219731, 155219768, 155221809, 155226521, 155269513, 155269521, 155269552, 155282635, 155282643, 155282674, 155302587, 155302595, 155302624, 155302626, 155302632, 155302661, 155302663, 155302669, 155302700, 155304665, 155304673, 155304702, 155304704, 155304710, 155304741, 155306065, 155306743, 155306751, 155306782, 155309377, 155309385, 155309414, 155309416, 155309422, 155309453, 155311455, 155311463, 155311494, 155316167, 155316175, 155316206, 155346593, 155346601, 155346632, 155429987, 155430024, 155432065, 155436777, 155500879, 155500916, 155502957, 155507669, 155516321, 155529287, 155587213, 155612143, 155612151, 155612180, 155612182, 155612188, 155612219, 155614221, 155614229, 155614260, 155618933, 155618941, 155618972, 155681773, 155739543, 155741031, 155741039, 155741068, 155741070, 155741076, 155741107, 155743109, 155743117, 155743148, 155747821, 155747829, 155747860, 155810435, 155874393, 155921699, 155921707, 155921738, 155992817, 155992825, 155992856, 156000805, 156000842, 156002883, 156007595, 156050587, 156050595, 156050626, 156063709, 156063717, 156063748, 156068219, 156068227, 156068256, 156068258, 156068264, 156068293, 156068295, 156068301, 156068330, 156068332, 156068338, 156068369, 156070297, 156070305, 156070334, 156070336, 156070342, 156070371, 156070373, 156070379, 156070410, 156071697, 156071734, 156072375, 156072383, 156072412, 156072414, 156072420, 156072451, 156073775, 156074453, 156074461, 156074492, 156075009, 156075017, 156075046, 156075048, 156075054, 156075083, 156075085, 156075091, 156075122, 156077087, 156077095, 156077124, 156077126, 156077132, 156077163, 156078487, 156079165, 156079173, 156079204, 156081799, 156081807, 156081836, 156081838, 156081844, 156081875, 156083661, 156083669, 156083698, 156083700, 156083706, 156083735, 156083737, 156083743, 156083774, 156083877, 156083885, 156083916, 156085739, 156085747, 156085776, 156085778, 156085784, 156085815, 156087139, 156087817, 156087825, 156087856, 156088589, 156088597, 156088628, 156090451, 156090459, 156090488, 156090490, 156090496, 156090527, 156092529, 156092537, 156092568, 156097241, 156097249, 156097280, 156134601, 156134609, 156134640, 156252591, 156310361, 156335447, 156335455, 156335484, 156335486, 156335492, 156335523, 156337525, 156337533, 156337564, 156342237, 156342245, 156342276, 156377775, 156377783, 156377812, 156377814, 156377820, 156377849, 156377851, 156377857, 156377888, 156379853, 156379861, 156379890, 156379892, 156379898, 156379929, 156381253, 156381931, 156381939, 156381970, 156384565, 156384573, 156384602, 156384604, 156384610, 156384641, 156386643, 156386651, 156386682, 156391355, 156391363, 156391394, 156393217, 156393225, 156393254, 156393256, 156393262, 156393293, 156395295, 156395303, 156395334, 156400007, 156400015, 156400046, 156421781, 156421789, 156421820, 156445211, 156520617, 156591509, 156645003, 156645011, 156645042, 156662401, 156687331, 156687339, 156687368, 156687370, 156687376, 156687407, 156689409, 156689417, 156689448, 156694121, 156694129, 156694160, 156702773, 156702781, 156702812, 156831661, 156831669, 156831700, 156863247, 156863284, 156865325, 156870037, 156949581, 156996887, 156996895, 156996926, 157091435, 157158849, 157158857, 157158886, 157158888, 157158894, 157158923, 157158925, 157158931, 157158962, 157160927, 157160935, 157160964, 157160966, 157160972, 157161003, 157162327, 157163005, 157163013, 157163044, 157165639, 157165647, 157165676, 157165678, 157165684, 157165715, 157167717, 157167725, 157167756, 157172429, 157172437, 157172468, 157172803, 157174291, 157174299, 157174328, 157174330, 157174336, 157174367, 157176369, 157176377, 157176408, 157181081, 157181089, 157181120, 157410635, 157410643, 157410672, 157410674, 157410680, 157410711, 157412713, 157412721, 157412752, 157417425, 157417433, 157417464, 157426077, 157426085, 157426116, 157434065, 157434102, 157436143, 157440855, 157468405, 157468413, 157468442, 157468444, 157468450, 157468481, 157470483, 157470491, 157470522, 157475195, 157475203, 157475234, 157483847, 157483855, 157483886, 157496969, 157496977, 157497008, 157516921, 157516929, 157516958, 157516960, 157516966, 157516995, 157516997, 157517003, 157517034, 157518999, 157519007, 157519036, 157519038, 157519044, 157519075, 157520399, 157521077, 157521085, 157521116, 157523711, 157523719, 157523748, 157523750, 157523756, 157523787, 157525789, 157525797, 157525828, 157530501, 157530509, 157530540, 157720191, 157720199, 157720230, 157743621, 157777961, 157777969, 157778000, 157826477, 157826485, 157826514, 157826516, 157826522, 157826553, 157828555, 157828563, 157828594, 157833267, 157833275, 157833306, 157938435, 157938472, 157940513, 157945225, 157953877, 158024769, 158136033, 158136041, 158136072, 158247991, 158249479, 158249487, 158249516, 158249518, 158249524, 158249555, 158251557, 158251565, 158251596, 158256269, 158256277, 158256308, 158264921, 158264929, 158264960, 158501265, 158501273, 158501304, 158505775, 158505783, 158505812, 158505814, 158505820, 158505849, 158505851, 158505857, 158505886, 158505888, 158505894, 158505925, 158507853, 158507861, 158507890, 158507892, 158507898, 158507927, 158507929, 158507935, 158507966, 158509253, 158509290, 158509931, 158509939, 158509968, 158509970, 158509976, 158510007, 158511331, 158512009, 158512017, 158512048, 158512565, 158512573, 158512602, 158512604, 158512610, 158512639, 158512641, 158512647, 158512678, 158514643, 158514651, 158514680, 158514682, 158514688, 158514719, 158516043, 158516721, 158516729, 158516760, 158519355, 158519363, 158519392, 158519394, 158519400, 158519431, 158521433, 158521441, 158521472, 158524695, 158526145, 158526153, 158526184, 158559035, 158559043, 158559074, 158572157, 158572165, 158572196, 158592109, 158592117, 158592146, 158592148, 158592154, 158592183, 158592185, 158592191, 158592222, 158594187, 158594195, 158594224, 158594226, 158594232, 158594263, 158595587, 158596265, 158596273, 158596304, 158598899, 158598907, 158598936, 158598938, 158598944, 158598975, 158600977, 158600985, 158601016, 158605689, 158605697, 158605728, 158607551, 158607559, 158607588, 158607590, 158607596, 158607627, 158609629, 158609637, 158609668, 158614341, 158614349, 158614380, 158815331, 158815339, 158815368, 158815370, 158815376, 158815405, 158815407, 158815413, 158815444, 158817409, 158817417, 158817446, 158817448, 158817454, 158817485, 158818809, 158819487, 158819495, 158819526, 158822121, 158822129, 158822158, 158822160, 158822166, 158822197, 158824199, 158824207, 158824238, 158828911, 158828919, 158828950, 158859337, 158859345, 158859376, 158901665, 158901673, 158901702, 158901704, 158901710, 158901741, 158903743, 158903751, 158903782, 158908455, 158908463, 158908494, 158917107, 158917115, 158917146, 159029065, 159033575, 159033612, 159033649, 159033686, 159035653, 159035690, 159035727, 159037731, 159037768, 159039809, 159040365, 159040402, 159040439, 159042443, 159042480, 159044521, 159047155, 159047192, 159049233, 159053945, 159099957, 159124887, 159124895, 159124924, 159124926, 159124932, 159124963, 159126965, 159126973, 159127004, 159131677, 159131685, 159131716, 159211221, 159211229, 159211260, 159340109, 159340117, 159340148, 159343131, 159343168, 159343205, 159345209, 159345246, 159347287, 159349921, 159349958, 159351999, 159356711, 159387137, 159434443, 159434451, 159434482, 159580390, 159580427, 159580464, 159580501, 159580538, 159582468, 159582505, 159582542, 159582579, 159584546, 159584583, 159584620, 159586624, 159586661, 159587180, 159587217, 159587254, 159587291, 159588702, 159589258, 159589295, 159589332, 159591336, 159591373, 159593414, 159593970, 159594007, 159594044, 159596048, 159596085, 159596405, 159596413, 159596442, 159596444, 159596450, 159596479, 159596481, 159596487, 159596518, 159598126, 159598483, 159598491, 159598520, 159598522, 159598528, 159598559, 159599883, 159600561, 159600569, 159600600, 159600760, 159600797, 159602838, 159603195, 159603203, 159603232, 159603234, 159603240, 159603271, 159605273, 159605281, 159605312, 159607550, 159609985, 159609993, 159610024, 159652687, 159652724, 159654765, 159659477, 159667297, 159667305, 159667334, 159667336, 159667342, 159667371, 159667373, 159667379, 159667410, 159669375, 159669383, 159669412, 159669414, 159669420, 159669451, 159670775, 159671453, 159671461, 159671492, 159674087, 159674095, 159674124, 159674126, 159674132, 159674163, 159676165, 159676173, 159676204, 159680877, 159680885, 159680916, 159682739, 159682747, 159682776, 159682778, 159682784, 159682815, 159684817, 159684825, 159684856, 159689529, 159689537, 159689568, 159698181, 159698189, 159698220, 159848191, 159848199, 159848228, 159848230, 159848236, 159848267, 159850269, 159850277, 159850308, 159854981, 159854989, 159855020, 159889946, 159889983, 159890020, 159890057, 159892024, 159892061, 159892098, 159894102, 159894139, 159896180, 159896736, 159896773, 159896810, 159898814, 159898851, 159900892, 159903526, 159903563, 159905604, 159905961, 159905969, 159905998, 159906000, 159906006, 159906037, 159908039, 159908047, 159908078, 159910316, 159912751, 159912759, 159912790, 159934525, 159934533, 159934564, 159957955, 159962243, 159976853, 159976861, 159976890, 159976892, 159976898, 159976929, 159978931, 159978939, 159978970, 159983643, 159983651, 159983682, 159992295, 159992303, 159992334, 160040811, 160040819, 160040848, 160040850, 160040856, 160040887, 160042889, 160042897, 160042928, 160047601, 160047609, 160047640, 160124205, 160124242, 160124279, 160126283, 160126320, 160128361, 160130995, 160131032, 160133073, 160137785, 160157747, 160157755, 160157786, 160199502, 160199539, 160199576, 160201580, 160201617, 160203658, 160206292, 160206329, 160208370, 160213082, 160215517, 160215525, 160215556, 160286409, 160286417, 160286448, 160350367, 160350375, 160350406, 160375991, 160376028, 160378069, 160382781, 160433761, 160433798, 160435839, 160440551, 160462325, 160509058, 160509095, 160511136, 160515848, 160671020, 160671057, 160671094, 160671131, 160673098, 160673135, 160673172, 160675176, 160675213, 160677254, 160677810, 160677847, 160677884, 160679888, 160679925, 160681966, 160684600, 160684637, 160685547, 160686678, 160687035, 160687043, 160687072, 160687074, 160687080, 160687111, 160689113, 160689121, 160689152, 160691390, 160693825, 160693833, 160693864, 160743317, 160757927, 160757935, 160757964, 160757966, 160757972, 160758003, 160760005, 160760013, 160760044, 160764717, 160764725, 160764756, 160773369, 160773377, 160773408, 160818614, 160938821, 160938829, 160938860, 160946809, 160946846, 160948887, 160953599, 160980576, 160980613, 160980650, 160982654, 160982691, 160984732, 160987366, 160987403, 160989444, 160994156, 160996591, 160996599, 160996630, 161009713, 161009721, 161009752, 161029665, 161029673, 161029702, 161029704, 161029710, 161029739, 161029741, 161029747, 161029778, 161031743, 161031751, 161031780, 161031782, 161031788, 161031819, 161033143, 161033821, 161033829, 161033860, 161036455, 161036463, 161036492, 161036494, 161036500, 161036531, 161038533, 161038541, 161038572, 161043245, 161043253, 161043284, 161067483, 161067491, 161067522, 161115999, 161116007, 161116036, 161116038, 161116044, 161116075, 161118077, 161118085, 161118116, 161122789, 161122797, 161122828, 161131441, 161131449, 161131480, 161214835, 161214872, 161216913, 161221625, 161256365, 161290132, 161290169, 161292210, 161296922, 161339221, 161339229, 161339258, 161339260, 161339266, 161339297, 161341299, 161341307, 161341338, 161346011, 161346019, 161346050, 161425555, 161425563, 161425594, 161466621, 161524391, 161537513, 161557465, 161557502, 161557539, 161559543, 161559580, 161561621, 161564255, 161564292, 161566333, 161571045, 161599688, 161648777, 161648785, 161648816, 161761650, 161761687, 161761724, 161763728, 161763765, 161765806, 161768440, 161768477, 161770518, 161775230, 161777665, 161777673, 161777704, 161848557, 161848565, 161848596, 161867021, 161867058, 161869099, 161873811, 162037439, 162071206, 162071243, 162073284, 162077996, 162104280, 162104317, 162104354, 162104391, 162104853, 162104861, 162104890, 162104892, 162104898, 162104927, 162104929, 162104935, 162104966, 162106358, 162106395, 162106432, 162106931, 162106939, 162106968, 162106970, 162106976, 162107007, 162108331, 162108436, 162108473, 162109009, 162109017, 162109048, 162110514, 162111070, 162111107, 162111144, 162111643, 162111651, 162111680, 162111682, 162111688, 162111719, 162113148, 162113185, 162113721, 162113729, 162113760, 162115226, 162117860, 162117897, 162118433, 162118441, 162118472, 162119938, 162120295, 162120303, 162120332, 162120334, 162120340, 162120371, 162122373, 162122381, 162122412, 162124650, 162127085, 162127093, 162127124, 162176577, 162191187, 162191195, 162191224, 162191226, 162191232, 162191263, 162193265, 162193273, 162193304, 162197977, 162197985, 162198016, 162206629, 162206637, 162206668, 162305465, 162372081, 162372089, 162372120, 162380762, 162413836, 162413873, 162413910, 162414409, 162414417, 162414446, 162414448, 162414454, 162414485, 162415914, 162415951, 162416487, 162416495, 162416526, 162417992, 162420626, 162420663, 162421199, 162421207, 162421238, 162422704, 162427416, 162429851, 162429859, 162429890, 162500743, 162500751, 162500782, 162564701, 162564709, 162564740, 162632653, 162632690, 162632727, 162634731, 162634768, 162636809, 162639443, 162639480, 162641521, 162646233, 162648095, 162648132, 162650173, 162654885, 162723392, 162723429, 162723965, 162723973, 162724004, 162725470, 162730182, 162852280, 162852317, 162854358, 162859070, 162899881, 162942209, 162942246, 162944287, 162948999, 162957651, 163032948, 163161836, 163179468, 163179505, 163179542, 163179579, 163181546, 163181583, 163181620, 163183624, 163183661, 163185702, 163186258, 163186295, 163186332, 163188336, 163188373, 163190414, 163193048, 163193085, 163194910, 163194947, 163194984, 163195126, 163195483, 163195491, 163195520, 163195522, 163195528, 163195559, 163196988, 163197025, 163197561, 163197569, 163197600, 163199066, 163199838, 163201700, 163201737, 163202273, 163202281, 163202312, 163203778, 163208490, 163210925, 163210933, 163210964, 163251765, 163266375, 163266383, 163266412, 163266414, 163266420, 163266451, 163268453, 163268461, 163268492, 163273165, 163273173, 163273204, 163281817, 163281825, 163281856, 163447269, 163447277, 163447308, 163470699, 163489024, 163489061, 163489098, 163491102, 163491139, 163493180, 163495814, 163495851, 163497892, 163502604, 163504466, 163504503, 163505039, 163505047, 163505078, 163506544, 163511256, 163553555, 163553563, 163553592, 163553594, 163553600, 163553631, 163555633, 163555641, 163555672, 163560345, 163560353, 163560384, 163575931, 163575939, 163575970, 163627628, 163639889, 163639897, 163639928, 163723283, 163723320, 163725361, 163730073, 163738725, 163798580, 163798617, 163800658, 163805370, 163814022, 163863111, 163863119, 163863150, 163942910, 163975069, 164032839, 164081355, 164081392, 164083433, 164088145, 164108136, 164270098, 164270135, 164270172, 164272176, 164272213, 164274254, 164276888, 164276925, 164278966, 164283678, 164285540, 164285577, 164286113, 164286121, 164286152, 164287618, 164292330, 164357005, 164357013, 164357044, 164390911, 164542409, 164542417, 164542446, 164542448, 164542454, 164542483, 164542485, 164542491, 164542522, 164544487, 164544495, 164544524, 164544526, 164544532, 164544563, 164545887, 164546565, 164546573, 164546604, 164549199, 164549207, 164549236, 164549238, 164549244, 164549275, 164551277, 164551285, 164551316, 164555989, 164555997, 164556028, 164579654, 164579691, 164581732, 164586444, 164595096, 164628170, 164628207, 164628244, 164628743, 164628751, 164628780, 164628782, 164628788, 164628819, 164630248, 164630285, 164630821, 164630829, 164630860, 164632326, 164634960, 164634997, 164635533, 164635541, 164635572, 164637038, 164641750, 164644185, 164644193, 164644224, 164715077, 164715085, 164715116, 164813913, 164851965, 164851973, 164852002, 164852004, 164852010, 164852041, 164854043, 164854051, 164854082, 164858755, 164858763, 164858794, 164889210, 164937726, 164937763, 164938299, 164938307, 164938338, 164939804, 164944516, 165070209, 165070246, 165070283, 165072287, 165072324, 165074365, 165076999, 165077036, 165079077, 165083789, 165156543, 165156580, 165158621, 165161521, 165161529, 165161560, 165163333, 165171985, 165247282, 165360728, 165360765, 165362806, 165367518, 165376170, 165379765, 165379802, 165381843, 165386555, 165466099, 165617024, 165617061, 165617098, 165617135, 165619102, 165619139, 165619176, 165621180, 165621217, 165623258, 165623814, 165623851, 165623888, 165625892, 165625929, 165627970, 165630604, 165630641, 165632682, 165633039, 165633047, 165633076, 165633078, 165633084, 165633115, 165635117, 165635125, 165635156, 165637394, 165639829, 165639837, 165639868, 165641027, 165641064, 165641101, 165643105, 165643142, 165645183, 165647817, 165647854, 165649895, 165654607, 165670284, 165689321, 165703358, 165703395, 165703432, 165703931, 165703939, 165703968, 165703970, 165703976, 165704007, 165705436, 165705473, 165706009, 165706017, 165706048, 165707514, 165710148, 165710185, 165710721, 165710729, 165710760, 165712226, 165716938, 165718800, 165718837, 165719373, 165719381, 165719412, 165720878, 165725590, 165790265, 165790273, 165790304, 165884825, 165884833, 165884864, 165926580, 165926617, 165926654, 165928658, 165928695, 165930736, 165933370, 165933407, 165935448, 165940160, 165942595, 165942603, 165942634, 165950583, 165950620, 165952661, 165957373, 166012914, 166012951, 166013487, 166013495, 166013526, 166014992, 166019704, 166028356, 166077445, 166077453, 166077484, 166160839, 166160876, 166162917, 166167629, 166231731, 166231768, 166233809, 166236136, 166236173, 166238214, 166238521, 166242926, 166247173, 166260139, 166322470, 166412625, 166451358, 166470395, 166541287, 166545692, 166605245, 166707654, 166707691, 166707728, 166709732, 166709769, 166711810, 166714444, 166714481, 166716522, 166721234, 166723669, 166723677, 166723708, 166731657, 166731694, 166733735, 166738447, 166778546, 166778583, 166778620, 166780624, 166780661, 166782702, 166785336, 166785373, 166787414, 166792126, 166793988, 166794025, 166794561, 166794569, 166794600, 166796066, 166800778, 166809430, 166865453, 166865461, 166865492, 166983443, 167017210, 167017247, 167019288, 167024000, 167041213, 167066299, 167066307, 167066336, 167066338, 167066344, 167066375, 167068377, 167068385, 167068416, 167073089, 167073097, 167073128, 167088102, 167088139, 167090180, 167094892, 167103544, 167152060, 167152097, 167152633, 167152641, 167152672, 167154138, 167158850, 167251469, 167322361, 167326766, 167375855, 167375863, 167375894, 167397658, 167461616, 167594099, 167594136, 167596177, 167600889, 167680433, 167798284, 167798321, 167800362, 167805074, 167822287, 167869176, 167869213, 167871254, 167875966, 167884618, 167903655, 168107840, 168140914, 168140951, 168140988, 168141487, 168141495, 168141524, 168141526, 168141532, 168141563, 168142992, 168143029, 168143565, 168143573, 168143604, 168145070, 168147704, 168147741, 168148277, 168148285, 168148316, 168149782, 168154494, 168156929, 168156937, 168156968, 168164917, 168164954, 168166995, 168171707, 168178732, 168227248, 168227285, 168227821, 168227829, 168227860, 168229326, 168234038, 168242690, 168450470, 168450507, 168451043, 168451051, 168451082, 168452548, 168457260, 168474473, 168536804, 168669287, 168669324, 168671365, 168676077, 168684729, 168755621, 168760026, 168888914, 168959806, 168978843, 169216102, 169216139, 169216176, 169218180, 169218217, 169220258, 169222892, 169222929, 169224970, 169229682, 169231544, 169231581, 169232117, 169232125, 169232156, 169233622, 169236627, 169236635, 169236664, 169236666, 169236672, 169236701, 169236703, 169236709, 169236738, 169236740, 169236746, 169236777, 169238334, 169238705, 169238713, 169238742, 169238744, 169238750, 169238779, 169238781, 169238787, 169238818, 169240105, 169240142, 169240783, 169240791, 169240820, 169240822, 169240828, 169240859, 169242183, 169242861, 169242869, 169242900, 169243417, 169243425, 169243454, 169243456, 169243462, 169243491, 169243493, 169243499, 169243530, 169245495, 169245503, 169245532, 169245534, 169245540, 169245571, 169246895, 169247573, 169247581, 169247612, 169250207, 169250215, 169250244, 169250246, 169250252, 169250283, 169252285, 169252293, 169252324, 169255547, 169256997, 169257005, 169257036, 169302436, 169302473, 169303009, 169303017, 169303048, 169304514, 169309226, 169317878, 169525658, 169525695, 169527736, 169532448, 169541100, 169546183, 169546191, 169546220, 169546222, 169546228, 169546257, 169546259, 169546265, 169546296, 169548261, 169548269, 169548298, 169548300, 169548306, 169548337, 169549661, 169550339, 169550347, 169550378, 169552973, 169552981, 169553010, 169553012, 169553018, 169553049, 169555051, 169555059, 169555090, 169559763, 169559771, 169559802, 169590189, 169590197, 169590228, 169611992, 169675950, 169759917, 169830809, 169835214, 169855739, 169855747, 169855776, 169855778, 169855784, 169855815, 169857817, 169857825, 169857856, 169862529, 169862537, 169862568, 170117989, 170165295, 170165303, 170165334, 170306732, 170306769, 170308810, 170313522, 170322174, 170327257, 170327265, 170327294, 170327296, 170327302, 170327331, 170327333, 170327339, 170327370, 170329335, 170329343, 170329372, 170329374, 170329380, 170329411, 170330735, 170331413, 170331421, 170331452, 170334047, 170334055, 170334084, 170334086, 170334092, 170334123, 170336125, 170336133, 170336164, 170340837, 170340845, 170340876, 170377624, 170377661, 170379702, 170384414, 170393066, 170579043, 170579051, 170579080, 170579082, 170579088, 170579119, 170581121, 170581129, 170581160, 170585833, 170585841, 170585872, 170616288, 170636813, 170636821, 170636850, 170636852, 170636858, 170636889, 170638891, 170638899, 170638930, 170643603, 170643611, 170643642, 170664804, 170664841, 170665377, 170665385, 170665416, 170666882, 170671594, 170687180, 170688807, 170751138, 170888599, 170888607, 170888638, 170946369, 170946377, 170946408, 170974360, 171106843, 171106880, 171108921, 171113633, 171193177, 171397362, 171416399, 171417887, 171417895, 171417924, 171417926, 171417932, 171417963, 171419965, 171419973, 171420004, 171424677, 171424685, 171424716, 171468254, 171653658, 171653695, 171653732, 171655736, 171655773, 171657814, 171660448, 171660485, 171662526, 171667238, 171669673, 171669681, 171669712, 171677661, 171677698, 171679739, 171684451, 171727443, 171727451, 171727482, 171739992, 171740029, 171740565, 171740573, 171740604, 171742070, 171746782, 171755434, 171760517, 171760525, 171760554, 171760556, 171760562, 171760591, 171760593, 171760599, 171760630, 171762595, 171762603, 171762632, 171762634, 171762640, 171762671, 171763995, 171764673, 171764681, 171764712, 171767307, 171767315, 171767344, 171767346, 171767352, 171767383, 171769385, 171769393, 171769424, 171774097, 171774105, 171774136, 171826326, 171963214, 171963251, 171965292, 171970004, 171987217, 172049548, 172070073, 172070081, 172070110, 172070112, 172070118, 172070149, 172072151, 172072159, 172072190, 172076863, 172076871, 172076902, 172197473, 172268365, 172272770, 172379629, 172379637, 172379668, 172508517, 172508525, 172508556, 172744288, 172744325, 172746366, 172751078, 172768291, 172815180, 172815217, 172817258, 172821970, 172830622, 172835705, 172835713, 172835742, 172835744, 172835750, 172835779, 172835781, 172835787, 172835818, 172837783, 172837791, 172837820, 172837822, 172837828, 172837859, 172839183, 172839861, 172839869, 172839900, 172842495, 172842503, 172842532, 172842534, 172842540, 172842571, 172844573, 172844581, 172844612, 172849285, 172849293, 172849324, 172851147, 172851155, 172851184, 172851186, 172851192, 172851223, 172853225, 172853233, 172853264, 172857937, 172857945, 172857976, 172901514, 173053844, 173102933, 173102941, 173102972, 173124736, 173145261, 173145269, 173145298, 173145300, 173145306, 173145337, 173147339, 173147347, 173147378, 173152051, 173152059, 173152090, 173160703, 173160711, 173160742, 173188694, 173454817, 173454825, 173454856, 173630733, 173834918, 173905810, 173926335, 173926343, 173926372, 173926374, 173926380, 173926411, 173928413, 173928421, 173928452, 173933125, 173933133, 173933164, 173941777, 173941785, 173941816, 173976702, 174177548, 174177585, 174178121, 174178129, 174178160, 174179626, 174184338, 174201551, 174235891, 174235899, 174235930, 174263882, 174284407, 174284415, 174284444, 174284446, 174284452, 174284483, 174286485, 174286493, 174286524, 174291197, 174291205, 174291236, 174487104, 174593963, 174593971, 174594002, 174705921, 175016965, 175016973, 175017004, 175252736, 175252773, 175254814, 175259526, 175268178, 175273261, 175273269, 175273298, 175273300, 175273306, 175273335, 175273337, 175273343, 175273374, 175275339, 175275347, 175275376, 175275378, 175275384, 175275415, 175276739, 175277417, 175277425, 175277456, 175280051, 175280059, 175280088, 175280090, 175280096, 175280127, 175282129, 175282137, 175282168, 175286841, 175286849, 175286880, 175339070, 175359595, 175359603, 175359632, 175359634, 175359640, 175359671, 175361673, 175361681, 175361712, 175366385, 175366393, 175366424, 175375037, 175375045, 175375076, 175562292, 175582817, 175582825, 175582854, 175582856, 175582862, 175582893, 175584895, 175584903, 175584934, 175589607, 175589615, 175589646, 175669151, 175669159, 175669190, 175801061, 175801098, 175801135, 175803139, 175803176, 175805217, 175807851, 175807888, 175809929, 175814641, 175892373, 175892381, 175892412, 176110617, 176110654, 176112695, 176117407, 176343366, 176347876, 176347913, 176347950, 176347987, 176349954, 176349991, 176350028, 176352032, 176352069, 176354110, 176354666, 176354703, 176354740, 176356744, 176356781, 176358822, 176361456, 176361493, 176363534, 176363891, 176363899, 176363928, 176363930, 176363936, 176363967, 176365969, 176365977, 176366008, 176368246, 176370681, 176370689, 176370720, 176414258, 176420173, 176434783, 176434791, 176434820, 176434822, 176434828, 176434859, 176436861, 176436869, 176436900, 176441573, 176441581, 176441612, 176450225, 176450233, 176450264, 176615677, 176615685, 176615716, 176657432, 176657469, 176657506, 176659510, 176659547, 176661588, 176664222, 176664259, 176666300, 176671012, 176673447, 176673455, 176673486, 176701438, 176744339, 176744347, 176744378, 176808297, 176808305, 176808336, 176891691, 176891728, 176893769, 176898481, 176966988, 176967025, 176969066, 176973778, 177143477, 177201247, 177276544, 177438506, 177438543, 177438580, 177440584, 177440621, 177442662, 177445296, 177445333, 177447374, 177452086, 177454521, 177454529, 177454560, 177525413, 177525421, 177525452, 177690292, 177690329, 177692370, 177697082, 177714295, 177748062, 177748099, 177750140, 177754852, 177776626, 177797151, 177797159, 177797188, 177797190, 177797196, 177797227, 177799229, 177799237, 177799268, 177803941, 177803949, 177803980, 177883485, 177883493, 177883524, 177982321, 177999848, 178057618, 178106707, 178106715, 178106746, 178324951, 178324988, 178327029, 178331741, 178529136, 178529173, 178531214, 178535926, 178634507, 178780922, 178838692, 178851814, 178871766, 178871803, 178871840, 178872339, 178872347, 178872376, 178872378, 178872384, 178872415, 178873844, 178873881, 178874417, 178874425, 178874456, 178875922, 178878556, 178878593, 178879129, 178879137, 178879168, 178880634, 178885346, 178887781, 178887789, 178887820, 178958673, 178958681, 178958712, 179181322, 179181359, 179181895, 179181903, 179181934, 179183400, 179188112, 179400139, 179400176, 179402217, 179406929, 179415581, 179490878, 179619766, 179709695, 179946954, 179946991, 179947028, 179949032, 179949069, 179951110, 179953744, 179953781, 179955822, 179960534, 179962396, 179962433, 179962969, 179962977, 179963008, 179964474, 179969186, 180033861, 180033869, 180033900, 180214182, 180256510, 180256547, 180258588, 180263300, 180271952, 180321041, 180321049, 180321080, 180490769, 180566066, 180848841, 181037584, 181037621, 181039662, 181044374, 181053026, 181289370, 181309895, 181309903, 181309932, 181309934, 181309940, 181309971, 181311973, 181311981, 181312012, 181316685, 181316693, 181316724, 181347140, 181395656, 181395693, 181396229, 181396237, 181396268, 181397734, 181402446, 181619451, 181619459, 181619490, 181705212, 181837695, 181837732, 181839773, 181844485, 181924029, 182128214, 182147251, 182384510, 182384547, 182384584, 182386588, 182386625, 182388666, 182391300, 182391337, 182393378, 182398090, 182400525, 182400533, 182400564, 182408513, 182408550, 182410591, 182415303, 182470844, 182470881, 182471417, 182471425, 182471456, 182472922, 182477634, 182486286, 182694066, 182694103, 182696144, 182700856, 182718069, 182780400, 182928325, 182999217, 183003622, 183475140, 183475177, 183477218, 183481930, 183499143, 183546032, 183546069, 183548110, 183552822, 183561474, 183726926, 183784696, 183833785, 183833793, 183833824, 183855588, 183919546, 184361585, 184565770, 184636662, 184908400, 184908437, 184908973, 184908981, 184909012, 184910478, 184915190, 184932403, 184994734, 185217956, 185436773, 185983588, 185983625, 185985666, 185990378, 185999030, 186004113, 186004121, 186004150, 186004152, 186004158, 186004187, 186004189, 186004195, 186004226, 186006191, 186006199, 186006228, 186006230, 186006236, 186006267, 186007591, 186008269, 186008277, 186008308, 186010903, 186010911, 186010940, 186010942, 186010948, 186010979, 186012981, 186012989, 186013020, 186017693, 186017701, 186017732, 186069922, 186293144, 186313669, 186313677, 186313706, 186313708, 186313714, 186313745, 186315747, 186315755, 186315786, 186320459, 186320467, 186320498, 186623225, 186623233, 186623264, 187074218, 187094743, 187094751, 187094780, 187094782, 187094788, 187094819, 187096821, 187096829, 187096860, 187101533, 187101541, 187101572, 187145110, 187346529, 187346537, 187346568, 187404299, 187404307, 187404338, 187432290, 187874329, 188185373, 188185381, 188185412, 188421144, 188421181, 188423222, 188427934, 188445147, 188507478, 188528003, 188528011, 188528040, 188528042, 188528048, 188528079, 188530081, 188530089, 188530120, 188534793, 188534801, 188534832, 188730700, 188837559, 188837567, 188837598, 189511774, 189582666, 189603191, 189603199, 189603228, 189603230, 189603236, 189603267, 189605269, 189605277, 189605308, 189609981, 189609989, 189610020, 189618633, 189618641, 189618672, 189912747, 189912755, 189912786, 190693821, 190693829, 190693860, 190945034, 191051893, 191051901, 191051932, 192020222, 192040747, 192040755, 192040784, 192040786, 192040792, 192040823, 192042825, 192042833, 192042864, 192047537, 192047545, 192047576, 192127081, 192127089, 192127120, 192350303, 192350311, 192350342, 192568547, 192568584, 192570625, 192575337, 192878103, 193115362, 193115399, 193115436, 193117440, 193117477, 193119518, 193122152, 193122189, 193124230, 193128942, 193131377, 193131385, 193131416, 193202269, 193202277, 193202308, 193424918, 193424955, 193426996, 193431708, 193659177, 193734474, 194205992, 194206029, 194208070, 194212782, 194457778, 194515548, 194564637, 194564645, 194564676, 195092437, 195128761, 195128798, 195128835, 195128872, 195128909, 195130839, 195130876, 195130913, 195130950, 195132917, 195132954, 195132991, 195134995, 195135032, 195135551, 195135588, 195135625, 195135662, 195137073, 195137629, 195137666, 195137703, 195139707, 195139744, 195141785, 195142341, 195142378, 195142415, 195144419, 195144456, 195146497, 195149131, 195149168, 195151209, 195155921, 195296622, 195438317, 195438354, 195438391, 195438428, 195440395, 195440432, 195440469, 195442473, 195442510, 195444551, 195445107, 195445144, 195445181, 195447185, 195447222, 195449263, 195451897, 195451934, 195453975, 195458687, 195639252, 195639289, 195639825, 195639833, 195639864, 195641330, 195646042, 195747873, 195747910, 195747947, 195749951, 195749988, 195752029, 195754663, 195754700, 195756741, 195761453, 195948808, 196057429, 196057466, 196059507, 196064219, 196167625, 196219391, 196219428, 196219465, 196219502, 196221469, 196221506, 196221543, 196223547, 196223584, 196225625, 196226181, 196226218, 196226255, 196228259, 196228296, 196230337, 196232971, 196233008, 196235049, 196239761, 196366985, 196528947, 196528984, 196529021, 196531025, 196531062, 196533103, 196535737, 196535774, 196537815, 196542527, 196714440, 196714477, 196716518, 196721230, 196729882, 196838503, 196838540, 196840581, 196845293, 197023996, 197148059, 197310021, 197310058, 197310095, 197312099, 197312136, 197314177, 197316811, 197316848, 197318889, 197323601, 197619577, 197619614, 197621655, 197626367, 197652651, 197652688, 197652725, 197652762, 197654729, 197654766, 197654803, 197656807, 197656844, 197658885, 197659441, 197659478, 197659515, 197661519, 197661556, 197663597, 197666231, 197666268, 197668309, 197673021, 197805070, 197929133, 197962207, 197962244, 197962281, 197964285, 197964322, 197966363, 197968997, 197969034, 197971075, 197975787, 198077381, 198077389, 198077420, 198163142, 198271763, 198271800, 198273841, 198278553, 198400651, 198400688, 198402729, 198407441, 198581319, 198605181, 198710207, 198727839, 198727876, 198727913, 198727950, 198729917, 198729954, 198729991, 198731995, 198732032, 198734073, 198734629, 198734666, 198734703, 198736707, 198736744, 198738785, 198741419, 198741456, 198743281, 198743318, 198743355, 198743497, 198745359, 198745396, 198747437, 198748209, 198750071, 198750108, 198752149, 198756861, 199037395, 199037432, 199037469, 199039473, 199039510, 199041551, 199044185, 199044222, 199046263, 199050975, 199052837, 199052874, 199054915, 199059627, 199151996, 199152033, 199154074, 199158786, 199175999, 199238330, 199346951, 199346988, 199349029, 199353741, 199362393, 199461552, 199491281, 199656507, 199818469, 199818506, 199818543, 199820547, 199820584, 199822625, 199825259, 199825296, 199827337, 199832049, 199833911, 199833948, 199835989, 199840701, 200128025, 200128062, 200130103, 200134815, 200143467, 200176541, 200176578, 200176615, 200178619, 200178656, 200180697, 200183331, 200183368, 200185409, 200190121, 200242626, 200313518, 200437581, 200486097, 200486134, 200488175, 200492887, 200795653, 200909099, 200909136, 200911177, 200915889, 200924541, 201165395, 201165432, 201165469, 201165506, 201167473, 201167510, 201167547, 201169551, 201169588, 201171629, 201172185, 201172222, 201172259, 201174263, 201174300, 201176341, 201178975, 201179012, 201181053, 201185765, 201218655, 201251729, 201251766, 201251803, 201253807, 201253844, 201255885, 201258519, 201258556, 201260597, 201265309, 201267171, 201267208, 201269249, 201273961, 201474951, 201474988, 201475025, 201477029, 201477066, 201479107, 201481741, 201481778, 201483819, 201488531, 201561285, 201561322, 201563363, 201568075, 201576727, 201675886, 201784507, 201784544, 201786585, 201791297, 201870841, 201999729, 202094063, 202256025, 202256062, 202256099, 202258103, 202258140, 202260181, 202262815, 202262852, 202264893, 202269605, 202326917, 202326954, 202326991, 202328995, 202329032, 202331073, 202333707, 202333744, 202335785, 202340497, 202342359, 202342396, 202344437, 202349149, 202357801, 202565581, 202565618, 202567659, 202572371, 202636473, 202636510, 202638551, 202643263, 202651915, 202700431, 202700468, 202702509, 202707221, 202751074, 202771599, 202771607, 202771636, 202771638, 202771644, 202771675, 202773677, 202773685, 202773716, 202778389, 202778397, 202778428, 202875137, 202946029, 203009987, 203081155, 203081163, 203081194, 203346655, 203346692, 203348733, 203353445, 203417547, 203417584, 203419625, 203424337, 203432989, 203656211, 203689285, 203689322, 203689359, 203691363, 203691400, 203693441, 203696075, 203696112, 203698153, 203702865, 203727103, 203775619, 203775656, 203777697, 203782409, 203791061, 203862229, 203862237, 203862268, 203998841, 203998878, 204000919, 204005631, 204085175, 204308397, 204437285, 204508177, 204764473, 204764510, 204764547, 204766551, 204766588, 204768629, 204771263, 204771300, 204773341, 204778053, 204779915, 204779952, 204781993, 204786705, 204850807, 204850844, 204852885, 204857597, 204866249, 205074029, 205074066, 205076107, 205080819, 205089471, 205160363, 205188630, 205224321, 205288795, 205288832, 205288869, 205288906, 205288943, 205290873, 205290910, 205290947, 205290984, 205292951, 205292988, 205293025, 205295029, 205295066, 205295489, 205295497, 205295528, 205295585, 205295622, 205295659, 205295696, 205297107, 205297663, 205297700, 205297737, 205299741, 205299778, 205301819, 205302375, 205302412, 205302449, 205304453, 205304490, 205306531, 205309165, 205309202, 205311243, 205315955, 205383585, 205598351, 205598388, 205598425, 205598462, 205600429, 205600466, 205600503, 205602507, 205602544, 205604585, 205605141, 205605178, 205605215, 205607219, 205607256, 205609297, 205611931, 205611968, 205614009, 205618721, 205855103, 205855140, 205857181, 205861893, 205870545, 205907907, 205907944, 205907981, 205909985, 205910022, 205912063, 205914697, 205914734, 205916775, 205921487, 205925995, 205926032, 205928073, 205932785, 205941437, 206164659, 206213175, 206213212, 206215253, 206217463, 206217500, 206219541, 206219965, 206224253, 206235551, 206299509, 206370677, 206370685, 206370716, 206379425, 206379462, 206379499, 206379536, 206381503, 206381540, 206381577, 206383581, 206383618, 206385659, 206386215, 206386252, 206386289, 206388293, 206388330, 206390371, 206393005, 206393042, 206395083, 206399795, 206522731, 206527019, 206688981, 206689018, 206689055, 206691059, 206691096, 206693137, 206695771, 206695808, 206697849, 206702561, 206945733, 206998537, 206998574, 207000615, 207005327, 207016625, 207202029, 207202066, 207202103, 207204107, 207204144, 207206185, 207208819, 207208856, 207210897, 207215609, 207288363, 207288400, 207290441, 207295153, 207303805, 207308093, 207374697, 207470055, 207470092, 207470129, 207472133, 207472170, 207474211, 207476845, 207476882, 207478923, 207483635, 207511585, 207511622, 207513663, 207518375, 207597919, 207779611, 207779648, 207781689, 207786401, 207812685, 207812722, 207812759, 207812796, 207814763, 207814800, 207814837, 207816841, 207816878, 207818919, 207819475, 207819512, 207819549, 207821141, 207821553, 207821590, 207823631, 207826265, 207826302, 207828343, 207833055, 208089167, 208122241, 208122278, 208122315, 208124319, 208124356, 208126397, 208129031, 208129068, 208131109, 208135821, 208292659, 208292696, 208294737, 208299449, 208363551, 208363588, 208365629, 208370341, 208378993, 208431797, 208431834, 208433875, 208438587, 208449885, 208560685, 208560722, 208562763, 208567475, 208602215, 208673107, 208737065, 208741353, 208808233, 208808241, 208808272, 208870241, 208887873, 208887910, 208887947, 208887984, 208889951, 208889988, 208890025, 208892029, 208892066, 208894107, 208894663, 208894700, 208894737, 208896741, 208896778, 208898819, 208901453, 208901490, 208903315, 208903352, 208903389, 208903531, 208905393, 208905430, 208907471, 208908243, 208910105, 208910142, 208912183, 208916895, 209197429, 209197466, 209197503, 209199507, 209199544, 209201585, 209204219, 209204256, 209206297, 209211009, 209212871, 209212908, 209214949, 209219661, 209336033, 209383289, 209454181, 209506985, 209507022, 209509063, 209513775, 209522427, 209525073, 209651315, 209725919, 209725956, 209727997, 209732709, 209812253, 209816541, 209882848, 209882885, 209884926, 209889638, 209978503, 209978540, 209978577, 209980581, 209980618, 209982659, 209985293, 209985330, 209987371, 209992083, 209993945, 209993982, 209996023, 210000735, 210035475, 210192404, 210288059, 210288096, 210290137, 210294849, 210303501, 210336575, 210336612, 210336649, 210338653, 210338690, 210340731, 210343365, 210343402, 210345443, 210350155, 210597615, 210646131, 210646168, 210648209, 210652921, 210801107, 210801144, 210803185, 210807897, 210816549, 210887441, 210955687, 210973478, 211069133, 211069170, 211071211, 211075923, 211084575, 211110663, 211325429, 211325466, 211325503, 211325540, 211327507, 211327544, 211327581, 211329585, 211329622, 211331663, 211332219, 211332256, 211332293, 211334297, 211334334, 211336375, 211339009, 211339046, 211341087, 211345799, 211378689, 211411763, 211411800, 211411837, 211413841, 211413878, 211415919, 211418553, 211418590, 211420631, 211425343, 211427205, 211427242, 211429283, 211433995, 211634985, 211635022, 211635059, 211637063, 211637100, 211639141, 211641775, 211641812, 211643853, 211648565, 211721319, 211721356, 211723397, 211728109, 211736761, 211891737, 211896247, 211896284, 211896321, 211896358, 211898325, 211898362, 211898399, 211900403, 211900440, 211902481, 211903037, 211903074, 211903111, 211905115, 211905152, 211907193, 211909827, 211909864, 211911905, 211916617, 211944541, 211944578, 211946619, 211951331, 211962629, 212030875, 212159763, 212205803, 212205840, 212205877, 212207881, 212207918, 212209959, 212212593, 212212630, 212214671, 212219383, 212249809, 212254097, 212406738, 212416059, 212416096, 212416133, 212418137, 212418174, 212420215, 212422849, 212422886, 212424927, 212429639, 212486951, 212486988, 212487025, 212489029, 212489066, 212491107, 212493741, 212493778, 212495819, 212500531, 212502393, 212502430, 212504471, 212509183, 212515359, 212515396, 212517437, 212517835, 212522149, 212725615, 212725652, 212727693, 212732405, 212796507, 212796544, 212798585, 212803297, 212811949, 212824915, 212860465, 212860502, 212862543, 212867255, 212986877, 212986914, 212986951, 212988955, 212988992, 212991033, 212993667, 212993704, 212995745, 213000457, 213035171, 213106063, 213170021, 213238663, 213238700, 213240741, 213245453, 213296433, 213296470, 213298511, 213303223, 213324997, 213481926, 213506689, 213506726, 213508767, 213513479, 213548219, 213577581, 213577618, 213579659, 213584371, 213593023, 213605989, 213816245, 213849319, 213849356, 213849393, 213851397, 213851434, 213853475, 213856109, 213856146, 213858187, 213862899, 213887137, 213935653, 213935690, 213937731, 213942443, 213951095, 214077507, 214077544, 214079585, 214084297, 214158875, 214158912, 214160953, 214165665, 214245209, 214329293, 214387063, 214400185, 214420137, 214420174, 214420211, 214422215, 214422252, 214424293, 214426927, 214426964, 214429005, 214433717, 214468431, 214597319, 214668211, 214729693, 214729730, 214731771, 214736483, 214924507, 214924544, 214924581, 214926585, 214926622, 214928663, 214931297, 214931334, 214933375, 214938087, 214939949, 214939986, 214942027, 214946739, 215010841, 215010878, 215012919, 215017631, 215026283, 215039249, 215168137, 215234063, 215234100, 215236141, 215240853, 215249505, 215320397, 215384355, 215491847, 215491855, 215491884, 215491886, 215491892, 215491921, 215491923, 215491929, 215491958, 215491960, 215491966, 215491995, 215491997, 215492003, 215492034, 215493925, 215493933, 215493962, 215493964, 215493970, 215493999, 215494001, 215494007, 215494036, 215494038, 215494044, 215494075, 215495325, 215495362, 215495399, 215496003, 215496011, 215496040, 215496042, 215496048, 215496077, 215496079, 215496085, 215496116, 215497403, 215497440, 215498081, 215498089, 215498118, 215498120, 215498126, 215498157, 215498637, 215498645, 215498674, 215498676, 215498682, 215498711, 215498713, 215498719, 215498748, 215498750, 215498756, 215498787, 215499481, 215500159, 215500167, 215500198, 215500715, 215500723, 215500752, 215500754, 215500760, 215500789, 215500791, 215500797, 215500828, 215502115, 215502152, 215502793, 215502801, 215502830, 215502832, 215502838, 215502869, 215504193, 215504871, 215504879, 215504910, 215505427, 215505435, 215505464, 215505466, 215505472, 215505501, 215505503, 215505509, 215505540, 215507505, 215507513, 215507542, 215507544, 215507550, 215507581, 215508905, 215509583, 215509591, 215509622, 215510767, 215510804, 215512217, 215512225, 215512254, 215512256, 215512262, 215512293, 215512845, 215514295, 215514303, 215514334, 215517557, 215519007, 215519015, 215519046, 215543619, 215762553, 215801403, 215801411, 215801440, 215801442, 215801448, 215801477, 215801479, 215801485, 215801514, 215801516, 215801522, 215801553, 215803481, 215803489, 215803518, 215803520, 215803526, 215803555, 215803557, 215803563, 215803594, 215804881, 215804918, 215805559, 215805567, 215805596, 215805598, 215805604, 215805635, 215806959, 215807637, 215807645, 215807676, 215808193, 215808201, 215808230, 215808232, 215808238, 215808267, 215808269, 215808275, 215808306, 215810271, 215810279, 215810308, 215810310, 215810316, 215810347, 215811671, 215812349, 215812357, 215812388, 215814983, 215814991, 215815020, 215815022, 215815028, 215815059, 215817061, 215817069, 215817100, 215820323, 215821773, 215821781, 215821812, 215919482, 216015137, 216015174, 216017215, 216021927, 216030579, 216086029, 216086066, 216088107, 216092819, 216101471, 216110959, 216110967, 216110996, 216110998, 216111004, 216111033, 216111035, 216111041, 216111072, 216113037, 216113045, 216113074, 216113076, 216113082, 216113113, 216114437, 216115115, 216115123, 216115154, 216117749, 216117757, 216117786, 216117788, 216117794, 216117825, 216119827, 216119835, 216119866, 216124539, 216124547, 216124578, 216324693, 216373209, 216373246, 216375287, 216379999, 216395585, 216420515, 216420523, 216420552, 216420554, 216420560, 216420591, 216422593, 216422601, 216422632, 216427305, 216427313, 216427344, 216459543, 216582477, 216582485, 216582514, 216582516, 216582522, 216582551, 216582553, 216582559, 216582588, 216582590, 216582596, 216582627, 216584555, 216584563, 216584592, 216584594, 216584600, 216584629, 216584631, 216584637, 216584668, 216585955, 216585992, 216586633, 216586641, 216586670, 216586672, 216586678, 216586709, 216588033, 216588711, 216588719, 216588750, 216589267, 216589275, 216589304, 216589306, 216589312, 216589341, 216589343, 216589349, 216589380, 216591345, 216591353, 216591382, 216591384, 216591390, 216591421, 216592745, 216593423, 216593431, 216593462, 216596057, 216596065, 216596094, 216596096, 216596102, 216596133, 216598135, 216598143, 216598174, 216601397, 216602847, 216602855, 216602886, 216682765, 216730071, 216730079, 216730110, 216837741, 216892033, 216892041, 216892070, 216892072, 216892078, 216892107, 216892109, 216892115, 216892146, 216894111, 216894119, 216894148, 216894150, 216894156, 216894187, 216895511, 216896189, 216896197, 216896228, 216898823, 216898831, 216898860, 216898862, 216898868, 216898899, 216900901, 216900909, 216900940, 216905613, 216905621, 216905652, 216944027, 216944064, 216946105, 216950817, 217105767, 217176659, 217201589, 217201597, 217201626, 217201628, 217201634, 217201665, 217203667, 217203675, 217203706, 217208379, 217208387, 217208418, 217253583, 217362063, 217362100, 217362137, 217364141, 217364178, 217366219, 217368853, 217368890, 217370931, 217375643, 217448397, 217448434, 217450475, 217455187, 217463839, 217511145, 217511153, 217511184, 217534731, 217671619, 217671656, 217673107, 217673115, 217673144, 217673146, 217673152, 217673181, 217673183, 217673189, 217673220, 217673697, 217675185, 217675193, 217675222, 217675224, 217675230, 217675261, 217676585, 217677263, 217677271, 217677302, 217678409, 217679897, 217679905, 217679934, 217679936, 217679942, 217679973, 217681975, 217681983, 217682014, 217686687, 217686695, 217686726, 217757953, 217932881, 217932918, 217932955, 217934959, 217934996, 217937037, 217939671, 217939708, 217941749, 217946461, 217981175, 217982663, 217982671, 217982700, 217982702, 217982708, 217982739, 217984741, 217984749, 217984780, 217989453, 217989461, 217989492, 218015737, 218015745, 218015774, 218015776, 218015782, 218015811, 218015813, 218015819, 218015848, 218015850, 218015856, 218015887, 218017815, 218017823, 218017852, 218017854, 218017860, 218017889, 218017891, 218017897, 218017928, 218019215, 218019252, 218019893, 218019901, 218019930, 218019932, 218019938, 218019969, 218021293, 218021971, 218021979, 218022010, 218022527, 218022535, 218022564, 218022566, 218022572, 218022601, 218022603, 218022609, 218022640, 218024605, 218024613, 218024642, 218024644, 218024650, 218024681, 218026005, 218026683, 218026691, 218026722, 218029317, 218029325, 218029354, 218029356, 218029362, 218029393, 218031395, 218031403, 218031434, 218034657, 218036107, 218036115, 218036146, 218242437, 218242474, 218244515, 218249227, 218292219, 218292227, 218292258, 218325293, 218325301, 218325330, 218325332, 218325338, 218325367, 218325369, 218325375, 218325406, 218327371, 218327379, 218327408, 218327410, 218327416, 218327447, 218328771, 218329449, 218329457, 218329488, 218332083, 218332091, 218332120, 218332122, 218332128, 218332159, 218334161, 218334169, 218334200, 218338873, 218338881, 218338912, 218452693, 218452730, 218454771, 218459483, 218523585, 218523622, 218525663, 218530375, 218539027, 218551993, 218609919, 218634849, 218634857, 218634886, 218634888, 218634894, 218634925, 218636927, 218636935, 218636966, 218641639, 218641647, 218641678, 218762249, 218763737, 218763745, 218763774, 218763776, 218763782, 218763813, 218765815, 218765823, 218765854, 218770527, 218770535, 218770566, 218833141, 218897099, 218944405, 218944413, 218944444, 219023511, 219023548, 219025589, 219030301, 219073293, 219073301, 219073332, 219090925, 219090933, 219090962, 219090964, 219090970, 219090999, 219091001, 219091007, 219091036, 219091038, 219091044, 219091075, 219093003, 219093011, 219093040, 219093042, 219093048, 219093077, 219093079, 219093085, 219093116, 219094403, 219094440, 219095081, 219095089, 219095118, 219095120, 219095126, 219095157, 219096481, 219097159, 219097167, 219097198, 219097715, 219097723, 219097752, 219097754, 219097760, 219097789, 219097791, 219097797, 219097828, 219099793, 219099801, 219099830, 219099832, 219099838, 219099869, 219101193, 219101871, 219101879, 219101910, 219104505, 219104513, 219104542, 219104544, 219104550, 219104581, 219106367, 219106375, 219106404, 219106406, 219106412, 219106441, 219106443, 219106449, 219106480, 219106583, 219106591, 219106622, 219108445, 219108453, 219108482, 219108484, 219108490, 219108521, 219109845, 219110523, 219110531, 219110562, 219111295, 219111303, 219111334, 219113157, 219113165, 219113194, 219113196, 219113202, 219113233, 219115235, 219115243, 219115274, 219119947, 219119955, 219119986, 219275297, 219333067, 219400481, 219400489, 219400518, 219400520, 219400526, 219400555, 219400557, 219400563, 219400594, 219402559, 219402567, 219402596, 219402598, 219402604, 219402635, 219403959, 219404637, 219404645, 219404676, 219407271, 219407279, 219407308, 219407310, 219407316, 219407347, 219409349, 219409357, 219409388, 219414061, 219414069, 219414100, 219415923, 219415931, 219415960, 219415962, 219415968, 219415999, 219418001, 219418009, 219418040, 219422713, 219422721, 219422752, 219467917, 219539085, 219539093, 219539124, 219543323, 219614215, 219685107, 219710037, 219710045, 219710074, 219710076, 219710082, 219710113, 219712115, 219712123, 219712154, 219716827, 219716835, 219716866, 219725479, 219725487, 219725518, 219854367, 219854375, 219854406, 219885953, 219885990, 219888031, 219892743, 219972287, 220019593, 220019601, 220019632, 220114141, 220181555, 220181563, 220181592, 220181594, 220181600, 220181629, 220181631, 220181637, 220181668, 220183633, 220183641, 220183670, 220183672, 220183678, 220183709, 220185033, 220185711, 220185719, 220185750, 220188345, 220188353, 220188382, 220188384, 220188390, 220188421, 220190423, 220190431, 220190462, 220195135, 220195143, 220195174, 220195509, 220196997, 220197005, 220197034, 220197036, 220197042, 220197073, 220199075, 220199083, 220199114, 220203787, 220203795, 220203826, 220456771, 220456808, 220458849, 220463561, 220491111, 220491119, 220491148, 220491150, 220491156, 220491187, 220493189, 220493197, 220493228, 220497901, 220497909, 220497940, 220506553, 220506561, 220506592, 220539627, 220539635, 220539664, 220539666, 220539672, 220539701, 220539703, 220539709, 220539740, 220541705, 220541713, 220541742, 220541744, 220541750, 220541781, 220543105, 220543783, 220543791, 220543822, 220546417, 220546425, 220546454, 220546456, 220546462, 220546493, 220548495, 220548503, 220548534, 220553207, 220553215, 220553246, 220766327, 220800667, 220800675, 220800706, 220849183, 220849191, 220849220, 220849222, 220849228, 220849259, 220851261, 220851269, 220851300, 220855973, 220855981, 220856012, 220961141, 220961178, 220963219, 220967931, 220976583, 221047475, 221158739, 221158747, 221158778, 221270697, 221272185, 221272193, 221272222, 221272224, 221272230, 221272261, 221274263, 221274271, 221274302, 221278975, 221278983, 221279014, 221287627, 221287635, 221287666, 221528481, 221528489, 221528518, 221528520, 221528526, 221528555, 221528557, 221528563, 221528592, 221528594, 221528600, 221528631, 221530559, 221530567, 221530596, 221530598, 221530604, 221530633, 221530635, 221530641, 221530672, 221531959, 221531996, 221532637, 221532645, 221532674, 221532676, 221532682, 221532713, 221534037, 221534715, 221534723, 221534754, 221535271, 221535279, 221535308, 221535310, 221535316, 221535345, 221535347, 221535353, 221535384, 221537349, 221537357, 221537386, 221537388, 221537394, 221537425, 221538749, 221539427, 221539435, 221539466, 221542061, 221542069, 221542098, 221542100, 221542106, 221542137, 221544139, 221544147, 221544178, 221547401, 221548851, 221548859, 221548890, 221581741, 221581749, 221581780, 221614815, 221614823, 221614852, 221614854, 221614860, 221614889, 221614891, 221614897, 221614928, 221616893, 221616901, 221616930, 221616932, 221616938, 221616969, 221618293, 221618971, 221618979, 221619010, 221621605, 221621613, 221621642, 221621644, 221621650, 221621681, 221623683, 221623691, 221623722, 221628395, 221628403, 221628434, 221630257, 221630265, 221630294, 221630296, 221630302, 221630333, 221632335, 221632343, 221632374, 221637047, 221637055, 221637086, 221838037, 221838045, 221838074, 221838076, 221838082, 221838111, 221838113, 221838119, 221838150, 221840115, 221840123, 221840152, 221840154, 221840160, 221840191, 221841515, 221842193, 221842201, 221842232, 221844827, 221844835, 221844864, 221844866, 221844872, 221844903, 221846905, 221846913, 221846944, 221851617, 221851625, 221851656, 221924371, 221924379, 221924408, 221924410, 221924416, 221924447, 221926449, 221926457, 221926488, 221931161, 221931169, 221931200, 221939813, 221939821, 221939852, 222051771, 222056281, 222056318, 222056355, 222056392, 222058359, 222058396, 222058433, 222060437, 222060474, 222062515, 222063071, 222063108, 222063145, 222065149, 222065186, 222067227, 222069861, 222069898, 222071939, 222076651, 222122663, 222147593, 222147601, 222147630, 222147632, 222147638, 222147669, 222149671, 222149679, 222149710, 222154383, 222154391, 222154422, 222233927, 222233935, 222233966, 222362815, 222362823, 222362854, 222365837, 222365874, 222365911, 222367915, 222367952, 222369993, 222372627, 222372664, 222374705, 222379417, 222409843, 222457149, 222457157, 222457188, 222619111, 222619119, 222619148, 222619150, 222619156, 222619185, 222619187, 222619193, 222619224, 222621189, 222621197, 222621226, 222621228, 222621234, 222621265, 222622589, 222623267, 222623275, 222623306, 222625901, 222625909, 222625938, 222625940, 222625946, 222625977, 222627979, 222627987, 222628018, 222632691, 222632699, 222632730, 222675393, 222675430, 222677471, 222682183, 222690003, 222690011, 222690040, 222690042, 222690048, 222690077, 222690079, 222690085, 222690116, 222692081, 222692089, 222692118, 222692120, 222692126, 222692157, 222693481, 222694159, 222694167, 222694198, 222696793, 222696801, 222696830, 222696832, 222696838, 222696869, 222698871, 222698879, 222698910, 222703583, 222703591, 222703622, 222705445, 222705453, 222705482, 222705484, 222705490, 222705521, 222707523, 222707531, 222707562, 222712235, 222712243, 222712274, 222720887, 222720895, 222720926, 222928667, 222928675, 222928704, 222928706, 222928712, 222928743, 222930745, 222930753, 222930784, 222935457, 222935465, 222935496, 222980661, 222984949, 222999559, 222999567, 222999596, 222999598, 222999604, 222999635, 223001637, 223001645, 223001676, 223006349, 223006357, 223006388, 223015001, 223015009, 223015040, 223063517, 223063525, 223063554, 223063556, 223063562, 223063593, 223065595, 223065603, 223065634, 223070307, 223070315, 223070346, 223146911, 223146948, 223146985, 223148989, 223149026, 223151067, 223153701, 223153738, 223155779, 223160491, 223238223, 223238231, 223238262, 223309115, 223309123, 223309154, 223373073, 223373081, 223373112, 223398697, 223398734, 223400775, 223405487, 223456467, 223456504, 223458545, 223463257, 223485031, 223708253, 223709741, 223709749, 223709778, 223709780, 223709786, 223709817, 223711819, 223711827, 223711858, 223716531, 223716539, 223716570, 223766023, 223780633, 223780641, 223780670, 223780672, 223780678, 223780709, 223782711, 223782719, 223782750, 223787423, 223787431, 223787462, 223796075, 223796083, 223796114, 223969515, 223969552, 223971593, 223976305, 224019297, 224019305, 224019336, 224052371, 224052379, 224052408, 224052410, 224052416, 224052445, 224052447, 224052453, 224052484, 224054449, 224054457, 224054486, 224054488, 224054494, 224054525, 224055849, 224056527, 224056535, 224056566, 224059161, 224059169, 224059198, 224059200, 224059206, 224059237, 224061239, 224061247, 224061278, 224065951, 224065959, 224065990, 224090189, 224090197, 224090228, 224138705, 224138713, 224138742, 224138744, 224138750, 224138781, 224140783, 224140791, 224140822, 224145495, 224145503, 224145534, 224154147, 224154155, 224154186, 224237541, 224237578, 224239619, 224244331, 224279071, 224361927, 224361935, 224361964, 224361966, 224361972, 224362003, 224364005, 224364013, 224364044, 224368717, 224368725, 224368756, 224448261, 224448269, 224448300, 224489327, 224547097, 224560219, 224580171, 224580208, 224580245, 224582249, 224582286, 224584327, 224586961, 224586998, 224589039, 224593751, 224671483, 224671491, 224671522, 224800371, 224800379, 224800410, 224871263, 224871271, 224871302, 224889727, 224889764, 224891805, 224896517, 225060145, 225127559, 225127567, 225127596, 225127598, 225127604, 225127633, 225127635, 225127641, 225127672, 225129637, 225129645, 225129674, 225129676, 225129682, 225129713, 225131037, 225131715, 225131723, 225131754, 225134349, 225134357, 225134386, 225134388, 225134394, 225134425, 225136427, 225136435, 225136466, 225141139, 225141147, 225141178, 225143001, 225143009, 225143038, 225143040, 225143046, 225143077, 225145079, 225145087, 225145118, 225149791, 225149799, 225149830, 225199283, 225213893, 225213901, 225213930, 225213932, 225213938, 225213969, 225215971, 225215979, 225216010, 225220683, 225220691, 225220722, 225229335, 225229343, 225229374, 225328171, 225437115, 225437123, 225437152, 225437154, 225437160, 225437191, 225439193, 225439201, 225439232, 225443905, 225443913, 225443944, 225452557, 225452565, 225452596, 225523449, 225523457, 225523488, 225587407, 225587415, 225587446, 225655359, 225655396, 225655433, 225657437, 225657474, 225659515, 225662149, 225662186, 225664227, 225668939, 225670801, 225670838, 225672879, 225677591, 225746671, 225746679, 225746710, 225922587, 225964915, 225964952, 225966993, 225971705, 225980357, 226218189, 226218197, 226218226, 226218228, 226218234, 226218265, 226220267, 226220275, 226220306, 226224979, 226224987, 226225018, 226233631, 226233639, 226233670, 226274471, 226289081, 226289089, 226289118, 226289120, 226289126, 226289157, 226291159, 226291167, 226291198, 226295871, 226295879, 226295910, 226304523, 226304531, 226304562, 226493405, 226527745, 226527753, 226527784, 226576261, 226576269, 226576298, 226576300, 226576306, 226576337, 226578339, 226578347, 226578378, 226583051, 226583059, 226583090, 226598637, 226598645, 226598676, 226650334, 226662595, 226662603, 226662634, 226745989, 226746026, 226748067, 226752779, 226761431, 226885817, 226885825, 226885856, 226997775, 227055545, 227104061, 227104098, 227106139, 227110851, 227308819, 227308827, 227308858, 227379711, 227379719, 227379750, 227413617, 227565115, 227565123, 227565152, 227565154, 227565160, 227565189, 227565191, 227565197, 227565228, 227567193, 227567201, 227567230, 227567232, 227567238, 227567269, 227568593, 227569271, 227569279, 227569310, 227571905, 227571913, 227571942, 227571944, 227571950, 227571981, 227573983, 227573991, 227574022, 227578695, 227578703, 227578734, 227651449, 227651457, 227651486, 227651488, 227651494, 227651525, 227653527, 227653535, 227653566, 227658239, 227658247, 227658278, 227666891, 227666899, 227666930, 227737783, 227737791, 227737822, 227836619, 227874671, 227874679, 227874708, 227874710, 227874716, 227874747, 227876749, 227876757, 227876788, 227881461, 227881469, 227881500, 227961005, 227961013, 227961044, 228092915, 228092952, 228092989, 228094993, 228095030, 228097071, 228099705, 228099742, 228101783, 228106495, 228179249, 228179286, 228181327, 228184227, 228184235, 228184266, 228186039, 228194691, 228402471, 228402508, 228404549, 228409261, 228488805, 228655745, 228655753, 228655782, 228655784, 228655790, 228655821, 228657823, 228657831, 228657862, 228662535, 228662543, 228662574, 228663733, 228663770, 228663807, 228665811, 228665848, 228667889, 228670523, 228670560, 228672601, 228677313, 228712027, 228726637, 228726645, 228726674, 228726676, 228726682, 228726713, 228728715, 228728723, 228728754, 228733427, 228733435, 228733466, 228742079, 228742087, 228742118, 228812971, 228812979, 228813010, 228965301, 228965309, 228965340, 228973289, 228973326, 228975367, 228980079, 229036193, 229036201, 229036232, 229100151, 229100159, 229100190, 229183545, 229183582, 229185623, 229190335, 229254437, 229254474, 229256515, 229261227, 229269879, 229282845, 229435331, 229493101, 229563993, 229627951, 229746375, 229746383, 229746414, 229754363, 229754400, 229756441, 229761153, 229817267, 229817275, 229817306, 229888159, 229888167, 229888198, 230006149, 230063919, 230089005, 230089013, 230089042, 230089044, 230089050, 230089081, 230091083, 230091091, 230091122, 230095795, 230095803, 230095834, 230175339, 230175347, 230175378, 230274175, 230345067, 230398561, 230398569, 230398600, 230616805, 230616842, 230618883, 230623595, 230677132, 230677169, 230677206, 230677243, 230677280, 230679210, 230679247, 230679284, 230679321, 230681288, 230681325, 230681362, 230683366, 230683403, 230683922, 230683959, 230683996, 230684033, 230685444, 230686000, 230686037, 230686074, 230688078, 230688115, 230690156, 230690712, 230690749, 230690786, 230692790, 230692827, 230694868, 230697502, 230697539, 230699580, 230703139, 230704292, 230844993, 230926361, 230986688, 230986725, 230986762, 230986799, 230988766, 230988803, 230988840, 230990844, 230990881, 230992922, 230993478, 230993515, 230993552, 230995556, 230995593, 230997634, 231000268, 231000305, 231002346, 231007058, 231164193, 231164201, 231164230, 231164232, 231164238, 231164269, 231166271, 231166279, 231166310, 231170983, 231170991, 231171022, 231179635, 231179643, 231179674, 231187623, 231187660, 231189701, 231194413, 231250527, 231250535, 231250566, 231296244, 231296281, 231296318, 231298322, 231298359, 231300400, 231303034, 231303071, 231305112, 231309824, 231473749, 231473757, 231473788, 231497179, 231605800, 231605837, 231607878, 231612590, 231691993, 231692030, 231694071, 231698783, 231707435, 231767762, 231767799, 231767836, 231767873, 231769840, 231769877, 231769914, 231771918, 231771955, 231773996, 231774552, 231774589, 231774626, 231776630, 231776667, 231778327, 231778708, 231781342, 231781379, 231783420, 231788132, 231915356, 232001549, 232077318, 232077355, 232077392, 232079396, 232079433, 232081474, 232084108, 232084145, 232086186, 232090898, 232254823, 232254831, 232254862, 232259333, 232259341, 232259370, 232259372, 232259378, 232259407, 232259409, 232259415, 232259444, 232259446, 232259452, 232259483, 232261411, 232261419, 232261448, 232261450, 232261456, 232261485, 232261487, 232261493, 232261524, 232262811, 232262848, 232263489, 232263497, 232263526, 232263528, 232263534, 232263565, 232264889, 232265567, 232265575, 232265606, 232266123, 232266131, 232266160, 232266162, 232266168, 232266197, 232266199, 232266205, 232266236, 232268201, 232268209, 232268238, 232268240, 232268246, 232268277, 232269601, 232270279, 232270287, 232270318, 232272913, 232272921, 232272950, 232272952, 232272958, 232272989, 232274991, 232274999, 232275030, 232278253, 232279703, 232279711, 232279742, 232325715, 232325723, 232325754, 232386874, 232386911, 232388952, 232393664, 232568889, 232568897, 232568926, 232568928, 232568934, 232568963, 232568965, 232568971, 232569002, 232570967, 232570975, 232571004, 232571006, 232571012, 232571043, 232572367, 232573045, 232573053, 232573084, 232575679, 232575687, 232575716, 232575718, 232575724, 232575755, 232577757, 232577765, 232577796, 232582469, 232582477, 232582508, 232612895, 232612903, 232612934, 232696430, 232782623, 232853515, 232858392, 232858429, 232858466, 232860470, 232860507, 232862548, 232865182, 232865219, 232867260, 232871972, 232878445, 232878453, 232878482, 232878484, 232878490, 232878521, 232880523, 232880531, 232880562, 232885235, 232885243, 232885274, 233140695, 233167948, 233167985, 233170026, 233174738, 233188001, 233188009, 233188040, 233201022, 233201059, 233201096, 233201133, 233203100, 233203137, 233203174, 233205178, 233205215, 233207256, 233207812, 233207849, 233207886, 233209890, 233209927, 233211968, 233214602, 233214639, 233216680, 233221392, 233349963, 233349971, 233350000, 233350002, 233350008, 233350037, 233350039, 233350045, 233350076, 233352041, 233352049, 233352078, 233352080, 233352086, 233352117, 233353441, 233354119, 233354127, 233354158, 233356753, 233356761, 233356790, 233356792, 233356798, 233356829, 233358831, 233358839, 233358870, 233363543, 233363551, 233363582, 233477504, 233510578, 233510615, 233510652, 233512656, 233512693, 233514734, 233517368, 233517405, 233519446, 233524158, 233601749, 233601757, 233601786, 233601788, 233601794, 233601825, 233603827, 233603835, 233603866, 233608539, 233608547, 233608578, 233659519, 233659527, 233659556, 233659558, 233659564, 233659595, 233661597, 233661605, 233661636, 233666309, 233666317, 233666348, 233688083, 233688091, 233688122, 233711513, 233820134, 233820171, 233822212, 233826924, 233911305, 233911313, 233911344, 233949022, 233949059, 233951100, 233955812, 233969075, 233969083, 233969114, 234129549, 234129586, 234129690, 234131627, 234136339, 234215883, 234258578, 234276210, 234276247, 234276284, 234276321, 234278288, 234278325, 234278362, 234280366, 234280403, 234282444, 234283000, 234283037, 234283074, 234285078, 234285115, 234287156, 234289790, 234289827, 234291652, 234291689, 234291726, 234291868, 234293730, 234293767, 234295808, 234296580, 234298442, 234298479, 234300520, 234305232, 234439105, 234440593, 234440601, 234440630, 234440632, 234440638, 234440669, 234442671, 234442679, 234442710, 234447383, 234447391, 234447422, 234585766, 234585803, 234585840, 234587844, 234587881, 234589922, 234592556, 234592593, 234594634, 234599346, 234601208, 234601245, 234603286, 234607998, 234692379, 234692387, 234692418, 234700367, 234700404, 234702445, 234707157, 234750149, 234750157, 234750188, 234763271, 234763279, 234763310, 234783223, 234783231, 234783260, 234783262, 234783268, 234783297, 234783299, 234783305, 234783336, 234785301, 234785309, 234785338, 234785340, 234785346, 234785377, 234786701, 234787379, 234787387, 234787418, 234790013, 234790021, 234790050, 234790052, 234790058, 234790089, 234792091, 234792099, 234792130, 234796803, 234796811, 234796842, 234895322, 234895359, 234897400, 234902112, 234910764, 235009923, 235039652, 235092779, 235092787, 235092816, 235092818, 235092824, 235092855, 235094857, 235094865, 235094896, 235099569, 235099577, 235099608, 235204878, 235220179, 235291071, 235366840, 235366877, 235366914, 235368918, 235368955, 235370996, 235373630, 235373667, 235375708, 235380420, 235382282, 235382319, 235384360, 235389072, 235402335, 235402343, 235402374, 235531223, 235531231, 235531262, 235676396, 235676433, 235678474, 235683186, 235691838, 235724912, 235724949, 235724986, 235726990, 235727027, 235729068, 235731702, 235731739, 235733780, 235738492, 235790997, 235858411, 235858419, 235858448, 235858450, 235858456, 235858485, 235858487, 235858493, 235858524, 235860489, 235860497, 235860526, 235860528, 235860534, 235860565, 235861889, 235862567, 235862575, 235862606, 235865201, 235865209, 235865238, 235865240, 235865246, 235865277, 235867279, 235867287, 235867318, 235871991, 235871999, 235872030, 235873853, 235873861, 235873890, 235873892, 235873898, 235873929, 235875931, 235875939, 235875970, 235880643, 235880651, 235880682, 235985952, 236034468, 236034505, 236036546, 236041258, 236125639, 236125647, 236125678, 236167967, 236167975, 236168004, 236168006, 236168012, 236168043, 236170045, 236170053, 236170084, 236174757, 236174765, 236174796, 236183409, 236183417, 236183448, 236344024, 236457470, 236457507, 236459548, 236464260, 236472912, 236477523, 236477531, 236477562, 236653439, 236713766, 236713803, 236713840, 236713877, 236715844, 236715881, 236715918, 236717922, 236717959, 236720000, 236720556, 236720593, 236720630, 236722634, 236722671, 236724712, 236727346, 236727383, 236729424, 236734136, 236767026, 236800100, 236800137, 236800174, 236802178, 236802215, 236804256, 236806890, 236806927, 236808968, 236813680, 236815542, 236815579, 236817620, 236822332, 236949041, 236949049, 236949078, 236949080, 236949086, 236949117, 236951119, 236951127, 236951158, 236955831, 236955839, 236955870, 236964483, 236964491, 236964522, 237023322, 237023359, 237023396, 237025400, 237025437, 237027478, 237030112, 237030149, 237032190, 237036902, 237109656, 237109693, 237111734, 237116446, 237125098, 237200827, 237200835, 237200866, 237224257, 237258597, 237258605, 237258636, 237307113, 237307121, 237307150, 237307152, 237307158, 237307189, 237309191, 237309199, 237309230, 237313903, 237313911, 237313942, 237332878, 237332915, 237334956, 237339668, 237419212, 237548100, 237616669, 237616677, 237616708, 237642434, 237728627, 237804396, 237804433, 237804470, 237806474, 237806511, 237808552, 237811186, 237811223, 237813264, 237817976, 237875288, 237875325, 237875362, 237877366, 237877403, 237879444, 237882078, 237882115, 237884156, 237888868, 237890730, 237890767, 237892808, 237897520, 237906172, 238039671, 238039679, 238039710, 238113952, 238113989, 238116030, 238120742, 238184844, 238184881, 238186922, 238191634, 238200286, 238248802, 238248839, 238250880, 238255592, 238295967, 238295975, 238296004, 238296006, 238296012, 238296041, 238296043, 238296049, 238296080, 238298045, 238298053, 238298082, 238298084, 238298090, 238298121, 238299445, 238300123, 238300131, 238300162, 238302757, 238302765, 238302794, 238302796, 238302802, 238302833, 238304835, 238304843, 238304874, 238309547, 238309555, 238309586, 238382301, 238382309, 238382338, 238382340, 238382346, 238382377, 238384379, 238384387, 238384418, 238389091, 238389099, 238389130, 238397743, 238397751, 238397782, 238423508, 238494400, 238558358, 238605523, 238605531, 238605560, 238605562, 238605568, 238605599, 238607601, 238607609, 238607640, 238612313, 238612321, 238612352, 238691857, 238691865, 238691896, 238823767, 238823804, 238823841, 238825845, 238825882, 238827923, 238830557, 238830594, 238832635, 238837347, 238895026, 238895063, 238897104, 238901816, 238915079, 238915087, 238915118, 238965918, 238965955, 238967996, 238972708, 238981360, 239133323, 239133360, 239135401, 239140113, 239204582, 239237656, 239237693, 239237730, 239239734, 239239771, 239241812, 239244446, 239244483, 239246524, 239251236, 239275474, 239323990, 239324027, 239326068, 239330780, 239339432, 239370582, 239370619, 239370656, 239370693, 239372660, 239372697, 239372734, 239374738, 239374775, 239376816, 239377372, 239377409, 239377446, 239379450, 239379487, 239381528, 239384162, 239384199, 239386240, 239386597, 239386605, 239386634, 239386636, 239386642, 239386673, 239388675, 239388683, 239388714, 239390952, 239393387, 239393395, 239393426, 239442879, 239457489, 239457497, 239457526, 239457528, 239457534, 239457565, 239459567, 239459575, 239459606, 239464279, 239464287, 239464318, 239472931, 239472939, 239472970, 239547212, 239547249, 239549290, 239554002, 239633546, 239638383, 239638391, 239638422, 239680138, 239680175, 239680212, 239682216, 239682253, 239684294, 239686928, 239686965, 239689006, 239693718, 239696153, 239696161, 239696192, 239767045, 239767053, 239767084, 239831003, 239831011, 239831042, 239856768, 239914397, 239914434, 239916475, 239921187, 239985656, 239989694, 239989731, 239991772, 239996484, 240056548, 240166183, 240223953, 240299250, 240312844, 240312881, 240312918, 240314922, 240314959, 240317000, 240319634, 240319671, 240321712, 240326424, 240328286, 240328323, 240330364, 240335076, 240399178, 240399215, 240401256, 240405968, 240414620, 240461212, 240461249, 240461286, 240463290, 240463327, 240465368, 240468002, 240468039, 240470080, 240474792, 240477227, 240477235, 240477266, 240548119, 240548127, 240548158, 240622400, 240622437, 240624478, 240629190, 240637842, 240708734, 240737001, 240770768, 240770805, 240772692, 240772846, 240777558, 240819857, 240819865, 240819894, 240819896, 240819902, 240819933, 240821935, 240821943, 240821974, 240826647, 240826655, 240826686, 240837166, 240837203, 240837240, 240837277, 240837314, 240839244, 240839281, 240839318, 240839355, 240841322, 240841359, 240841396, 240843400, 240843437, 240843956, 240843993, 240844030, 240844067, 240845478, 240846034, 240846071, 240846108, 240848112, 240848149, 240850190, 240850746, 240850783, 240850820, 240852824, 240852861, 240854902, 240857536, 240857573, 240859614, 240864326, 240906191, 240906199, 240906230, 240931956, 241005027, 241080324, 241129413, 241129421, 241129452, 241146722, 241146759, 241146796, 241146833, 241148800, 241148837, 241148874, 241150878, 241150915, 241152956, 241153512, 241153549, 241153586, 241155590, 241155627, 241157668, 241160302, 241160339, 241162380, 241167092, 241347657, 241347694, 241349735, 241354447, 241403474, 241403511, 241405552, 241410264, 241418916, 241456278, 241456315, 241456352, 241458356, 241458393, 241460434, 241463068, 241463105, 241465146, 241469858, 241474366, 241474403, 241476444, 241481156, 241489808, 241551842, 241551879, 241553920, 241558632, 241657213, 241713030, 241761546, 241761583, 241763624, 241765834, 241765871, 241767912, 241768336, 241772624, 241783922, 241847880, 241861398, 241894472, 241894509, 241894546, 241895045, 241895053, 241895082, 241895084, 241895090, 241895121, 241896550, 241896587, 241897123, 241897131, 241897162, 241898628, 241901262, 241901299, 241901835, 241901843, 241901874, 241903340, 241908052, 241910487, 241910495, 241910526, 241927796, 241927833, 241927870, 241927907, 241929874, 241929911, 241929948, 241931952, 241931989, 241934030, 241934586, 241934623, 241934660, 241936664, 241936701, 241938742, 241941376, 241941413, 241943454, 241948166, 241981379, 241981387, 241981418, 242071102, 242075390, 242204028, 242204065, 242204601, 242204609, 242204640, 242206106, 242210818, 242237352, 242237389, 242237426, 242239430, 242239467, 242241508, 242244142, 242244179, 242246220, 242250932, 242422845, 242422882, 242424923, 242429635, 242438287, 242494104, 242513584, 242546908, 242546945, 242548986, 242553698, 242564996, 242642472, 242732401, 242750400, 242750437, 242750474, 242752478, 242752515, 242754556, 242757190, 242757227, 242759268, 242763980, 242836734, 242836771, 242838812, 242843524, 242852176, 242856464, 242923068, 242969660, 242969697, 242969734, 242971738, 242971775, 242973816, 242976450, 242976487, 242978528, 242983240, 242985102, 242985139, 242985675, 242985683, 242985714, 242987180, 242991892, 243018426, 243018463, 243018500, 243020504, 243020541, 243022582, 243025216, 243025253, 243027294, 243032006, 243056567, 243056575, 243056606, 243059956, 243059993, 243062034, 243066746, 243146290, 243279216, 243279253, 243281294, 243286006, 243294658, 243327982, 243328019, 243330060, 243334772, 243343747, 243343755, 243343786, 243361056, 243361093, 243361130, 243361167, 243363134, 243363171, 243363208, 243365212, 243365249, 243367290, 243367846, 243367883, 243367920, 243369512, 243369924, 243369961, 243372002, 243374636, 243374673, 243376714, 243381426, 243513475, 243588772, 243637538, 243670612, 243670649, 243670686, 243672690, 243672727, 243674768, 243677402, 243677439, 243679480, 243684192, 243841030, 243841067, 243843108, 243847820, 243871547, 243911922, 243911959, 243914000, 243918712, 243927364, 243980168, 243980205, 243982246, 243986958, 243998256, 244060290, 244060327, 244062368, 244067080, 244075732, 244109056, 244109093, 244111134, 244115846, 244150586, 244221478, 244285436, 244289724, 244332601, 244332609, 244332638, 244332640, 244332646, 244332677, 244334679, 244334687, 244334718, 244339391, 244339399, 244339430, 244369846, 244418362, 244418399, 244418612, 244418935, 244418943, 244418974, 244420440, 244425152, 244436244, 244436281, 244436318, 244436355, 244438322, 244438359, 244438396, 244440400, 244440437, 244442478, 244443034, 244443071, 244443108, 244445112, 244445149, 244447190, 244449824, 244449861, 244451686, 244451723, 244451760, 244451902, 244453764, 244453801, 244455842, 244456614, 244458476, 244458513, 244460554, 244465266, 244642157, 244642165, 244642196, 244727918, 244745800, 244745837, 244745874, 244747878, 244747915, 244749956, 244752590, 244752627, 244754668, 244759380, 244761242, 244761279, 244763320, 244768032, 244860401, 244860438, 244862479, 244867191, 244931660, 244946735, 245002552, 245055356, 245055393, 245057434, 245062146, 245070798, 245073444, 245150920, 245169957, 245199686, 245274290, 245274327, 245276368, 245281080, 245360624, 245364912, 245407216, 245407253, 245407290, 245409294, 245409331, 245411372, 245414006, 245414043, 245416084, 245420796, 245423231, 245423239, 245423270, 245431219, 245431256, 245433297, 245438009, 245493550, 245493587, 245494123, 245494131, 245494162, 245495628, 245500340, 245508992, 245526874, 245526911, 245526948, 245528952, 245528989, 245531030, 245533664, 245533701, 245535742, 245540454, 245542316, 245542353, 245544394, 245549106, 245583846, 245716772, 245716809, 245718850, 245723562, 245740775, 245803106, 245836430, 245836467, 245838508, 245843220, 245851872, 245884946, 245884983, 245885020, 245887024, 245887061, 245889102, 245891736, 245891773, 245893814, 245898526, 245951031, 246021923, 246026328, 246145986, 246194502, 246194539, 246196580, 246201292, 246349478, 246349515, 246351556, 246356268, 246364920, 246435812, 246497846, 246497883, 246499924, 246504058, 246504636, 246521849, 246568738, 246568775, 246570816, 246575528, 246584180, 246617504, 246617541, 246619582, 246624294, 246632946, 246659034, 246807402, 246856491, 246856499, 246856530, 246873800, 246873837, 246873874, 246873911, 246875878, 246875915, 246875952, 246877956, 246877993, 246878294, 246880034, 246880590, 246880627, 246880664, 246882668, 246882705, 246884746, 246887380, 246887417, 246889458, 246894170, 246927060, 246942252, 246960134, 246960171, 246960208, 246962212, 246962249, 246964290, 246966924, 246966961, 246969002, 246973714, 246975576, 246975613, 246977654, 246982366, 247183356, 247183393, 247183430, 247185434, 247185471, 247187512, 247190146, 247190183, 247192224, 247196936, 247269690, 247269727, 247271768, 247276480, 247285132, 247384291, 247440108, 247444618, 247444655, 247444692, 247444729, 247446696, 247446733, 247446770, 247448774, 247448811, 247450852, 247451408, 247451445, 247451482, 247453486, 247453523, 247455564, 247458198, 247458235, 247460276, 247464988, 247492912, 247492949, 247494990, 247499702, 247511000, 247579246, 247588476, 247659368, 247708134, 247754174, 247754211, 247754248, 247756252, 247756289, 247758330, 247760964, 247761001, 247763042, 247767754, 247798180, 247802468, 247931106, 247931143, 247931679, 247931687, 247931718, 247933184, 247937896, 247955109, 247964430, 247964467, 247964504, 247966508, 247966545, 247968586, 247971220, 247971257, 247973298, 247978010, 248017440, 248035322, 248035359, 248035396, 248037400, 248037437, 248039478, 248042112, 248042149, 248044190, 248048902, 248050764, 248050801, 248052842, 248057554, 248063730, 248063767, 248065808, 248066206, 248070520, 248240662, 248273986, 248274023, 248276064, 248280776, 248344878, 248344915, 248346956, 248351668, 248360320, 248373286, 248408836, 248408873, 248410914, 248415626, 248459479, 248535248, 248535285, 248535322, 248537326, 248537363, 248539404, 248542038, 248542075, 248544116, 248548828, 248583542, 248654434, 248718392, 248787034, 248787071, 248789112, 248793824, 248844804, 248844841, 248846882, 248851594, 248873368, 249006294, 249006331, 249008372, 249013084, 249021736, 249026819, 249026827, 249026856, 249026858, 249026864, 249026893, 249026895, 249026901, 249026932, 249028897, 249028905, 249028934, 249028936, 249028942, 249028973, 249030297, 249030975, 249030983, 249031014, 249033609, 249033617, 249033646, 249033648, 249033654, 249033685, 249035687, 249035695, 249035726, 249040399, 249040407, 249040438, 249055060, 249055097, 249057138, 249061850, 249092628, 249096590, 249125952, 249125989, 249128030, 249132742, 249141394, 249154360, 249315850, 249336375, 249336383, 249336412, 249336414, 249336420, 249336451, 249338453, 249338461, 249338492, 249343165, 249343173, 249343204, 249364616, 249397690, 249397727, 249397764, 249399768, 249399805, 249401846, 249404480, 249404517, 249406558, 249411270, 249435508, 249484024, 249484061, 249486102, 249490814, 249499466, 249625878, 249625915, 249627956, 249632668, 249645931, 249645939, 249645970, 249707246, 249707283, 249709324, 249714036, 249793580, 249877664, 249935434, 249948556, 249968508, 249968545, 249968582, 249970586, 249970623, 249972664, 249975298, 249975335, 249977376, 249982088, 250016802, 250096924, 250117449, 250117457, 250117486, 250117488, 250117494, 250117525, 250119527, 250119535, 250119566, 250124239, 250124247, 250124278, 250145690, 250167816, 250216582, 250278064, 250278101, 250280142, 250284854, 250369235, 250369243, 250369274, 250427005, 250427013, 250427044, 250454996, 250472878, 250472915, 250472952, 250474956, 250474993, 250477034, 250479668, 250479705, 250481746, 250486458, 250488320, 250488357, 250490398, 250495110, 250559212, 250559249, 250561290, 250566002, 250574654, 250587620, 250716508, 250782434, 250782471, 250784512, 250789224, 250797876, 250868768, 250897035, 250932726, 250997200, 250997237, 250997274, 250997311, 250997348, 250999278, 250999315, 250999352, 250999389, 251001356, 251001393, 251001430, 251003434, 251003471, 251003990, 251004027, 251004064, 251004101, 251005512, 251006068, 251006105, 251006142, 251008146, 251008183, 251010224, 251010780, 251010817, 251010854, 251012858, 251012895, 251014936, 251017570, 251017607, 251019648, 251024360, 251040218, 251040226, 251040255, 251040257, 251040263, 251040292, 251040294, 251040300, 251040329, 251040331, 251040337, 251040366, 251040368, 251040374, 251040405, 251042296, 251042304, 251042333, 251042335, 251042341, 251042370, 251042372, 251042378, 251042407, 251042409, 251042415, 251042446, 251043696, 251043733, 251043770, 251044374, 251044382, 251044411, 251044413, 251044419, 251044448, 251044450, 251044456, 251044487, 251045774, 251045811, 251046452, 251046460, 251046489, 251046491, 251046497, 251046528, 251047008, 251047016, 251047045, 251047047, 251047053, 251047082, 251047084, 251047090, 251047119, 251047121, 251047127, 251047158, 251047852, 251048530, 251048538, 251048569, 251049086, 251049094, 251049123, 251049125, 251049131, 251049160, 251049162, 251049168, 251049199, 251050486, 251050523, 251051164, 251051172, 251051201, 251051203, 251051209, 251051240, 251052564, 251053242, 251053250, 251053281, 251053798, 251053806, 251053835, 251053837, 251053843, 251053872, 251053874, 251053880, 251053911, 251055876, 251055884, 251055913, 251055915, 251055921, 251055952, 251057276, 251057954, 251057962, 251057993, 251059138, 251059175, 251060588, 251060596, 251060625, 251060627, 251060633, 251060664, 251061216, 251062666, 251062674, 251062705, 251065928, 251067378, 251067386, 251067417, 251091990, 251208079, 251208087, 251208118, 251306756, 251306793, 251306830, 251306867, 251308834, 251308871, 251308908, 251310912, 251310924, 251310949, 251312990, 251313546, 251313583, 251313620, 251315624, 251315661, 251317702, 251320336, 251320373, 251322414, 251327126, 251349774, 251349782, 251349811, 251349813, 251349819, 251349848, 251349850, 251349856, 251349885, 251349887, 251349893, 251349924, 251351852, 251351860, 251351889, 251351891, 251351897, 251351926, 251351928, 251351934, 251351965, 251353252, 251353289, 251353930, 251353938, 251353967, 251353969, 251353975, 251354006, 251355330, 251356008, 251356016, 251356047, 251356564, 251356572, 251356601, 251356603, 251356609, 251356638, 251356640, 251356646, 251356677, 251358642, 251358650, 251358679, 251358681, 251358687, 251358718, 251360042, 251360720, 251360728, 251360759, 251363354, 251363362, 251363391, 251363393, 251363399, 251363430, 251365432, 251365440, 251365471, 251368694, 251370144, 251370152, 251370183, 251443850, 251443887, 251445928, 251450640, 251467853, 251530184, 251550709, 251550717, 251550746, 251550748, 251550754, 251550785, 251552787, 251552795, 251552826, 251557499, 251557507, 251557538, 251563508, 251563545, 251565586, 251570298, 251578950, 251616312, 251616349, 251616386, 251618390, 251618427, 251620468, 251623102, 251623139, 251625180, 251629892, 251634400, 251634437, 251636478, 251641190, 251649842, 251659330, 251659338, 251659367, 251659369, 251659375, 251659404, 251659406, 251659412, 251659443, 251661408, 251661416, 251661445, 251661447, 251661453, 251661484, 251662808, 251663486, 251663494, 251663525, 251666120, 251666128, 251666157, 251666159, 251666165, 251666196, 251668198, 251668206, 251668237, 251672910, 251672918, 251672949, 251753406, 251860265, 251860273, 251860304, 251873064, 251921580, 251921617, 251923658, 251925868, 251925905, 251927946, 251928370, 251932658, 251943956, 251968886, 251968894, 251968923, 251968925, 251968931, 251968962, 251970964, 251970972, 251971003, 251975676, 251975684, 251975715, 252007914, 252087830, 252087867, 252087904, 252087941, 252089908, 252089945, 252089982, 252091986, 252092023, 252094064, 252094620, 252094657, 252094694, 252096698, 252096735, 252098776, 252101410, 252101447, 252103488, 252108200, 252130848, 252130856, 252130885, 252130887, 252130893, 252130922, 252130924, 252130930, 252130959, 252130961, 252130967, 252130998, 252132926, 252132934, 252132963, 252132965, 252132971, 252133000, 252133002, 252133008, 252133039, 252134326, 252134363, 252135004, 252135012, 252135041, 252135043, 252135049, 252135080, 252136404, 252137082, 252137090, 252137121, 252137638, 252137646, 252137675, 252137677, 252137683, 252137712, 252137714, 252137720, 252137751, 252139716, 252139724, 252139753, 252139755, 252139761, 252139792, 252141116, 252141794, 252141802, 252141833, 252144428, 252144436, 252144465, 252144467, 252144473, 252144504, 252146506, 252146514, 252146545, 252149768, 252151218, 252151226, 252151257, 252231136, 252235424, 252278442, 252278450, 252278481, 252386112, 252397386, 252397423, 252397460, 252399464, 252399501, 252401542, 252404176, 252404213, 252406254, 252410966, 252440404, 252440412, 252440441, 252440443, 252440449, 252440478, 252440480, 252440486, 252440517, 252442482, 252442490, 252442519, 252442521, 252442527, 252442558, 252443882, 252444560, 252444568, 252444599, 252447194, 252447202, 252447231, 252447233, 252447239, 252447270, 252449272, 252449280, 252449311, 252453984, 252453992, 252454023, 252492398, 252492435, 252494476, 252499188, 252534480, 252605372, 252625897, 252625905, 252625934, 252625936, 252625942, 252625973, 252627975, 252627983, 252628014, 252632687, 252632695, 252632726, 252641339, 252641347, 252641378, 252654138, 252706942, 252706979, 252709020, 252713732, 252725030, 252749960, 252749968, 252749997, 252749999, 252750005, 252750036, 252752038, 252752046, 252752077, 252756750, 252756758, 252756789, 252801954, 252910434, 252910471, 252910508, 252912512, 252912549, 252914590, 252917224, 252917261, 252919302, 252924014, 252935453, 252935461, 252935492, 252996768, 252996805, 252998846, 253003558, 253012210, 253016498, 253059516, 253059524, 253059555, 253083102, 253178460, 253178497, 253178534, 253180538, 253180575, 253182616, 253185250, 253185287, 253187328, 253192040, 253219990, 253220027, 253221478, 253221486, 253221515, 253221517, 253221523, 253221552, 253221554, 253221560, 253221591, 253222068, 253223556, 253223564, 253223593, 253223595, 253223601, 253223632, 253224956, 253225634, 253225642, 253225673, 253226780, 253228268, 253228276, 253228305, 253228307, 253228313, 253228344, 253230346, 253230354, 253230385, 253235058, 253235066, 253235097, 253306324, 253481252, 253481289, 253481326, 253483330, 253483367, 253485408, 253488016, 253488042, 253488053, 253488079, 253490094, 253490120, 253494806, 253494832, 253521090, 253521127, 253521164, 253521201, 253523168, 253523205, 253523242, 253525246, 253525283, 253527324, 253527880, 253527917, 253527954, 253529546, 253529958, 253529995, 253531034, 253531042, 253531071, 253531073, 253531079, 253531110, 253532036, 253533112, 253533120, 253533151, 253534670, 253534707, 253536748, 253537824, 253537832, 253537863, 253541460, 253564108, 253564116, 253564145, 253564147, 253564153, 253564182, 253564184, 253564190, 253564219, 253564221, 253564227, 253564258, 253566186, 253566194, 253566223, 253566225, 253566231, 253566260, 253566262, 253566268, 253566299, 253567586, 253567623, 253568264, 253568272, 253568301, 253568303, 253568309, 253568340, 253569664, 253570342, 253570350, 253570381, 253570898, 253570906, 253570935, 253570937, 253570943, 253570972, 253570974, 253570980, 253571011, 253572976, 253572984, 253573013, 253573015, 253573021, 253573052, 253574376, 253575054, 253575062, 253575093, 253577688, 253577696, 253577725, 253577727, 253577733, 253577764, 253579766, 253579774, 253579805, 253583028, 253584478, 253584486, 253584517, 253716527, 253716535, 253716566, 253790808, 253790845, 253792886, 253797572, 253797598, 253830646, 253830683, 253830720, 253832724, 253832761, 253834802, 253837436, 253837473, 253839514, 253840590, 253840598, 253840629, 253844226, 253873664, 253873672, 253873701, 253873703, 253873709, 253873738, 253873740, 253873746, 253873777, 253875742, 253875750, 253875779, 253875781, 253875787, 253875818, 253877142, 253877820, 253877828, 253877859, 253880454, 253880462, 253880491, 253880493, 253880499, 253880530, 253882532, 253882540, 253882571, 253887244, 253887252, 253887283, 253967740, 254001064, 254001101, 254003142, 254007854, 254071956, 254071993, 254074034, 254074599, 254074607, 254074638, 254078746, 254087398, 254100364, 254140202, 254140239, 254142280, 254146992, 254158290, 254183220, 254183228, 254183257, 254183259, 254183265, 254183296, 254185298, 254185306, 254185337, 254190010, 254190018, 254190049, 254269090, 254269127, 254271168, 254275880, 254310620, 254312108, 254312116, 254312145, 254312147, 254312153, 254312184, 254314186, 254314194, 254314225, 254318898, 254318906, 254318937, 254381512, 254445470, 254449758, 254492776, 254492784, 254492815, 254571882, 254571919, 254573960, 254578646, 254578672, 254596278, 254596315, 254596352, 254596389, 254598356, 254598393, 254598430, 254600434, 254600471, 254602512, 254603068, 254603105, 254603142, 254605146, 254605183, 254607224, 254609858, 254609895, 254611720, 254611757, 254611794, 254611936, 254613798, 254613835, 254615876, 254616648, 254618510, 254618547, 254620588, 254621664, 254621672, 254621703, 254625300, 254639296, 254639304, 254639333, 254639335, 254639341, 254639370, 254639372, 254639378, 254639407, 254639409, 254639415, 254639446, 254641374, 254641382, 254641411, 254641413, 254641419, 254641448, 254641450, 254641456, 254641487, 254642774, 254642811, 254643452, 254643460, 254643489, 254643491, 254643497, 254643528, 254644852, 254645530, 254645538, 254645569, 254646086, 254646094, 254646123, 254646125, 254646131, 254646160, 254646162, 254646168, 254646199, 254648164, 254648172, 254648201, 254648203, 254648209, 254648240, 254649564, 254650242, 254650250, 254650281, 254652876, 254652884, 254652913, 254652915, 254652921, 254652952, 254654738, 254654746, 254654775, 254654777, 254654783, 254654812, 254654814, 254654820, 254654851, 254654954, 254654962, 254654993, 254656816, 254656824, 254656853, 254656855, 254656861, 254656892, 254658216, 254658894, 254658902, 254658933, 254659666, 254659674, 254659705, 254661528, 254661536, 254661565, 254661567, 254661573, 254661604, 254663606, 254663614, 254663645, 254668318, 254668326, 254668357, 254823668, 254881438, 254905834, 254905871, 254905908, 254907912, 254907949, 254909990, 254912624, 254912661, 254914702, 254919414, 254921276, 254921313, 254923354, 254928066, 254948852, 254948860, 254948889, 254948891, 254948897, 254948926, 254948928, 254948934, 254948965, 254950930, 254950938, 254950967, 254950969, 254950975, 254951006, 254952330, 254953008, 254953016, 254953047, 254955642, 254955650, 254955679, 254955681, 254955687, 254955718, 254957720, 254957728, 254957759, 254962432, 254962440, 254962471, 254964294, 254964302, 254964331, 254964333, 254964339, 254964370, 254966372, 254966380, 254966411, 254971084, 254971092, 254971123, 255016288, 255042928, 255063453, 255063461, 255063490, 255063492, 255063498, 255063529, 255065531, 255065539, 255065570, 255070243, 255070251, 255070282, 255091694, 255149787, 255149795, 255149826, 255162586, 255215390, 255215427, 255217468, 255222180, 255230832, 255233478, 255258408, 255258416, 255258445, 255258447, 255258453, 255258484, 255260486, 255260494, 255260525, 255265198, 255265206, 255265237, 255273850, 255273858, 255273889, 255359720, 255373009, 255373017, 255373048, 255402738, 255402746, 255402777, 255434324, 255434361, 255436402, 255441114, 255520658, 255524946, 255567964, 255567972, 255568003, 255591253, 255591290, 255593331, 255598043, 255662512, 255686908, 255686945, 255686982, 255688986, 255689023, 255691064, 255693698, 255693735, 255695776, 255700488, 255702350, 255702387, 255704428, 255709140, 255729926, 255729934, 255729963, 255729965, 255729971, 255730000, 255730002, 255730008, 255730039, 255732004, 255732012, 255732041, 255732043, 255732049, 255732080, 255733404, 255734082, 255734090, 255734121, 255736716, 255736724, 255736753, 255736755, 255736761, 255736792, 255738794, 255738802, 255738833, 255743506, 255743514, 255743545, 255743880, 255745368, 255745376, 255745405, 255745407, 255745413, 255745444, 255747446, 255747454, 255747485, 255752158, 255752166, 255752197, 255900809, 255996464, 255996501, 255998542, 256003254, 256005142, 256005179, 256007220, 256011906, 256011932, 256039482, 256039490, 256039519, 256039521, 256039527, 256039558, 256041560, 256041568, 256041599, 256044980, 256045017, 256045054, 256046272, 256046280, 256046311, 256047058, 256047095, 256049136, 256051770, 256051807, 256053848, 256054924, 256054932, 256054963, 256058560, 256087998, 256088006, 256088035, 256088037, 256088043, 256088072, 256088074, 256088080, 256088111, 256090076, 256090084, 256090113, 256090115, 256090121, 256090152, 256091476, 256092154, 256092162, 256092193, 256094788, 256094796, 256094825, 256094827, 256094833, 256094864, 256096866, 256096874, 256096905, 256101578, 256101586, 256101617, 256138068, 256138105, 256138142, 256140146, 256140183, 256142224, 256144858, 256144895, 256146936, 256151648, 256154083, 256154091, 256154122, 256224975, 256224983, 256225014, 256306020, 256314698, 256349038, 256349046, 256349077, 256354536, 256354573, 256356614, 256361326, 256397554, 256397562, 256397591, 256397593, 256397599, 256397630, 256399632, 256399640, 256399671, 256404344, 256404352, 256404383, 256447624, 256447661, 256449702, 256454414, 256509512, 256509549, 256511590, 256516302, 256524954, 256595846, 256664092, 256681883, 256707110, 256707118, 256707149, 256757180, 256777538, 256777575, 256779616, 256784328, 256792980, 256819068, 256820556, 256820564, 256820593, 256820595, 256820601, 256820632, 256822634, 256822642, 256822673, 256827346, 256827354, 256827385, 256835998, 256836006, 256836037, 257033834, 257033871, 257033908, 257033945, 257035912, 257035949, 257035986, 257037990, 257038027, 257040068, 257040624, 257040661, 257040698, 257042702, 257042739, 257044780, 257047414, 257047451, 257049492, 257054204, 257076852, 257076860, 257076889, 257076891, 257076897, 257076926, 257076928, 257076934, 257076963, 257076965, 257076971, 257077002, 257078930, 257078938, 257078967, 257078969, 257078975, 257079004, 257079006, 257079012, 257079043, 257080330, 257080367, 257081008, 257081016, 257081045, 257081047, 257081053, 257081084, 257082408, 257083086, 257083094, 257083125, 257083642, 257083650, 257083679, 257083681, 257083687, 257083716, 257083718, 257083724, 257083755, 257085720, 257085728, 257085757, 257085759, 257085765, 257085796, 257087094, 257087120, 257087798, 257087806, 257087837, 257090432, 257090440, 257090469, 257090471, 257090477, 257090508, 257092510, 257092518, 257092549, 257095772, 257097222, 257097230, 257097261, 257120168, 257120205, 257120242, 257122246, 257122283, 257124324, 257126958, 257126995, 257129036, 257130112, 257130120, 257130151, 257133748, 257135610, 257135647, 257137688, 257142400, 257163186, 257163194, 257163223, 257163225, 257163231, 257163260, 257163262, 257163268, 257163299, 257165264, 257165272, 257165301, 257165303, 257165309, 257165340, 257166664, 257167342, 257167350, 257167381, 257169976, 257169984, 257170013, 257170015, 257170021, 257170052, 257172054, 257172062, 257172093, 257176766, 257176774, 257176805, 257178628, 257178636, 257178665, 257178667, 257178673, 257178704, 257180706, 257180714, 257180745, 257185418, 257185426, 257185457, 257228698, 257228735, 257230776, 257235488, 257343390, 257343427, 257343464, 257345468, 257345505, 257347546, 257350180, 257350217, 257352258, 257356970, 257386408, 257386416, 257386445, 257386447, 257386453, 257386482, 257386484, 257386490, 257386521, 257388486, 257388494, 257388523, 257388525, 257388531, 257388562, 257389886, 257390564, 257390572, 257390603, 257393198, 257393206, 257393235, 257393237, 257393243, 257393274, 257395276, 257395284, 257395315, 257399988, 257399996, 257400027, 257429724, 257429761, 257431802, 257436514, 257445166, 257472742, 257472750, 257472779, 257472781, 257472787, 257472818, 257474820, 257474828, 257474859, 257479532, 257479540, 257479571, 257480484, 257488184, 257488192, 257488223, 257538254, 257587343, 257587351, 257587382, 257600142, 257604652, 257604689, 257604726, 257604763, 257606730, 257606767, 257606804, 257608808, 257608845, 257610886, 257611442, 257611479, 257611516, 257613520, 257613557, 257615598, 257618232, 257618269, 257620310, 257625022, 257652946, 257652983, 257655024, 257659736, 257671034, 257695964, 257695972, 257696001, 257696003, 257696009, 257696040, 257698042, 257698050, 257698081, 257702754, 257702762, 257702793, 257739280, 257782298, 257782306, 257782337, 257868168, 257911186, 257911194, 257911225, 257914208, 257914245, 257914282, 257916286, 257916323, 257918364, 257920998, 257921035, 257923076, 257927788, 257958214, 257962502, 258005520, 258005528, 258005559, 258115143, 258124464, 258124501, 258124538, 258126542, 258126579, 258128620, 258131254, 258131291, 258133332, 258138044, 258167482, 258167490, 258167519, 258167521, 258167527, 258167556, 258167558, 258167564, 258167595, 258169560, 258169568, 258169597, 258169599, 258169605, 258169636, 258170960, 258171638, 258171646, 258171677, 258174272, 258174280, 258174309, 258174311, 258174317, 258174348, 258176350, 258176358, 258176389, 258181062, 258181070, 258181101, 258195356, 258195393, 258195430, 258197434, 258197471, 258199512, 258202146, 258202183, 258204224, 258208936, 258210798, 258210835, 258212876, 258217588, 258223764, 258223801, 258225842, 258226240, 258230554, 258238374, 258238382, 258238411, 258238413, 258238419, 258238448, 258238450, 258238456, 258238487, 258240452, 258240460, 258240489, 258240491, 258240497, 258240528, 258241852, 258242530, 258242538, 258242569, 258245164, 258245172, 258245201, 258245203, 258245209, 258245240, 258247242, 258247250, 258247281, 258251954, 258251962, 258251993, 258253816, 258253824, 258253853, 258253855, 258253861, 258253892, 258255894, 258255902, 258255933, 258260606, 258260614, 258260645, 258269258, 258269266, 258269297, 258319328, 258434020, 258434057, 258436098, 258440810, 258477038, 258477046, 258477075, 258477077, 258477083, 258477114, 258479116, 258479124, 258479155, 258483828, 258483836, 258483867, 258504912, 258504949, 258506990, 258511702, 258520354, 258529032, 258533320, 258547930, 258547938, 258547967, 258547969, 258547975, 258548006, 258550008, 258550016, 258550047, 258554720, 258554728, 258554759, 258563372, 258563380, 258563411, 258568870, 258568907, 258570948, 258575660, 258611888, 258611896, 258611925, 258611927, 258611933, 258611964, 258613966, 258613974, 258614005, 258618678, 258618686, 258618717, 258661958, 258661995, 258662531, 258662539, 258662570, 258664036, 258668748, 258695282, 258695319, 258695356, 258697360, 258697397, 258699438, 258702072, 258702109, 258704150, 258708862, 258743576, 258786594, 258786602, 258786633, 258814468, 258857486, 258857494, 258857525, 258878426, 258921444, 258921452, 258921483, 258947068, 258947105, 258949146, 258953858, 258971514, 259004838, 259004875, 259006916, 259011628, 259033402, 259190331, 259215094, 259215131, 259217172, 259221884, 259256624, 259258112, 259258120, 259258149, 259258151, 259258157, 259258188, 259260190, 259260198, 259260229, 259264902, 259264910, 259264941, 259285986, 259286023, 259288064, 259292776, 259301428, 259314394, 259329004, 259329012, 259329041, 259329043, 259329049, 259329080, 259331082, 259331090, 259331121, 259335794, 259335802, 259335833, 259344446, 259344454, 259344485, 259517886, 259517923, 259519964, 259524650, 259524676, 259557724, 259557761, 259557798, 259559802, 259559839, 259561880, 259564514, 259564551, 259566592, 259567668, 259567676, 259567707, 259571304, 259595542, 259600742, 259600750, 259600779, 259600781, 259600787, 259600816, 259600818, 259600824, 259600855, 259602820, 259602828, 259602857, 259602859, 259602865, 259602896, 259604220, 259604898, 259604906, 259604937, 259607532, 259607540, 259607569, 259607571, 259607577, 259607608, 259609610, 259609618, 259609649, 259614322, 259614330, 259614361, 259638560, 259638568, 259638599, 259644058, 259644095, 259646136, 259650848, 259659500, 259687076, 259687084, 259687113, 259687115, 259687121, 259687152, 259689154, 259689162, 259689193, 259693866, 259693874, 259693905, 259702518, 259702526, 259702557, 259737146, 259737183, 259739224, 259743936, 259752588, 259785912, 259785949, 259787990, 259792702, 259827442, 259867280, 259867317, 259869358, 259874070, 259910298, 259910306, 259910335, 259910337, 259910343, 259910374, 259912376, 259912384, 259912415, 259917088, 259917096, 259917127, 259953614, 259996632, 259996640, 259996671, 260037698, 260046702, 260095468, 260108590, 260128542, 260128579, 260128616, 260130620, 260130657, 260132698, 260135332, 260135369, 260137410, 260142122, 260176836, 260219854, 260219862, 260219893, 260305724, 260348742, 260348750, 260348781, 260376616, 260419634, 260419642, 260419673, 260438098, 260438135, 260440176, 260444888, 260608516, 260632912, 260632949, 260632986, 260634990, 260635027, 260637068, 260639702, 260639739, 260641780, 260646492, 260648354, 260648391, 260650432, 260655144, 260675930, 260675938, 260675967, 260675969, 260675975, 260676004, 260676006, 260676012, 260676043, 260678008, 260678016, 260678045, 260678047, 260678053, 260678084, 260679408, 260680086, 260680094, 260680125, 260682720, 260682728, 260682757, 260682759, 260682765, 260682796, 260684798, 260684806, 260684837, 260689510, 260689518, 260689549, 260691372, 260691380, 260691409, 260691411, 260691417, 260691448, 260693450, 260693458, 260693489, 260698162, 260698170, 260698201, 260719246, 260719283, 260721324, 260726036, 260734688, 260747654, 260762264, 260762272, 260762301, 260762303, 260762309, 260762340, 260764342, 260764350, 260764381, 260769054, 260769062, 260769093, 260777706, 260777714, 260777745, 260827776, 260876542, 260942468, 260942505, 260944546, 260949258, 260957910, 260985486, 260985494, 260985523, 260985525, 260985531, 260985562, 260987564, 260987572, 260987603, 260992276, 260992284, 260992315, 261000928, 261000936, 261000967, 261028802, 261071820, 261071828, 261071859, 261092760, 261100087, 261100095, 261100126, 261135778, 261135786, 261135817, 261185848, 261200252, 261200260, 261200289, 261200291, 261200297, 261200326, 261200328, 261200334, 261200363, 261200365, 261200371, 261200400, 261200402, 261200408, 261200439, 261202330, 261202338, 261202367, 261202369, 261202375, 261202404, 261202406, 261202412, 261202441, 261202443, 261202449, 261202480, 261203730, 261203767, 261203804, 261204408, 261204416, 261204445, 261204447, 261204453, 261204482, 261204484, 261204490, 261204521, 261205808, 261205845, 261206486, 261206494, 261206523, 261206525, 261206531, 261206562, 261207042, 261207050, 261207079, 261207081, 261207087, 261207116, 261207118, 261207124, 261207153, 261207155, 261207161, 261207192, 261207886, 261208564, 261208572, 261208603, 261209120, 261209128, 261209157, 261209159, 261209165, 261209194, 261209196, 261209202, 261209233, 261210520, 261210557, 261211198, 261211206, 261211235, 261211237, 261211243, 261211274, 261212598, 261213276, 261213284, 261213315, 261213832, 261213840, 261213869, 261213871, 261213877, 261213906, 261213908, 261213914, 261213945, 261215910, 261215918, 261215947, 261215949, 261215955, 261215986, 261217310, 261217988, 261217996, 261218027, 261219172, 261219209, 261220622, 261220630, 261220659, 261220661, 261220667, 261220698, 261221250, 261222700, 261222708, 261222739, 261225962, 261227412, 261227420, 261227451, 261252024, 261295042, 261295050, 261295081, 261470958, 261509808, 261509816, 261509845, 261509847, 261509853, 261509882, 261509884, 261509890, 261509919, 261509921, 261509927, 261509958, 261511886, 261511894, 261511923, 261511925, 261511931, 261511960, 261511962, 261511968, 261511999, 261513286, 261513323, 261513964, 261513972, 261514001, 261514003, 261514009, 261514040, 261515364, 261516042, 261516050, 261516081, 261516598, 261516606, 261516635, 261516637, 261516643, 261516672, 261516674, 261516680, 261516711, 261518676, 261518684, 261518713, 261518715, 261518721, 261518752, 261520076, 261520754, 261520762, 261520793, 261523388, 261523396, 261523425, 261523427, 261523433, 261523464, 261525466, 261525474, 261525505, 261528728, 261530178, 261530186, 261530217, 261627887, 261723542, 261723579, 261725620, 261730332, 261738984, 261766560, 261766568, 261766597, 261766599, 261766605, 261766636, 261768638, 261768646, 261768677, 261773350, 261773358, 261773389, 261782002, 261782010, 261782041, 261794434, 261794471, 261796512, 261801224, 261809876, 261819364, 261819372, 261819401, 261819403, 261819409, 261819438, 261819440, 261819446, 261819477, 261821442, 261821450, 261821479, 261821481, 261821487, 261821518, 261822842, 261823520, 261823528, 261823559, 261826154, 261826162, 261826191, 261826193, 261826199, 261826230, 261828232, 261828240, 261828271, 261832944, 261832952, 261832983, 261837452, 261837460, 261837489, 261837491, 261837497, 261837528, 261839530, 261839538, 261839569, 261844242, 261844250, 261844281, 261852894, 261852902, 261852933, 262033098, 262041776, 262076116, 262076124, 262076155, 262081614, 262081651, 262083692, 262088404, 262103990, 262124632, 262124640, 262124669, 262124671, 262124677, 262124708, 262126710, 262126718, 262126749, 262128920, 262128928, 262128957, 262128959, 262128965, 262128996, 262130998, 262131006, 262131037, 262131422, 262131430, 262131461, 262135710, 262135718, 262135749, 262147008, 262147016, 262147047, 262167948, 262174702, 262174739, 262176780, 262181492, 262198705, 262210966, 262210974, 262211005, 262261036, 262290882, 262290890, 262290919, 262290921, 262290927, 262290956, 262290958, 262290964, 262290993, 262290995, 262291001, 262291032, 262292960, 262292968, 262292997, 262292999, 262293005, 262293034, 262293036, 262293042, 262293073, 262294360, 262294397, 262295038, 262295046, 262295075, 262295077, 262295083, 262295114, 262296438, 262297116, 262297124, 262297155, 262297672, 262297680, 262297709, 262297711, 262297717, 262297746, 262297748, 262297754, 262297785, 262299750, 262299758, 262299787, 262299789, 262299795, 262299826, 262301150, 262301828, 262301836, 262301867, 262304462, 262304470, 262304499, 262304501, 262304507, 262304538, 262306540, 262306548, 262306579, 262309802, 262311252, 262311260, 262311291, 262391170, 262434188, 262434196, 262434227, 262438476, 262438484, 262438515, 262484258, 262546146, 262600438, 262600446, 262600475, 262600477, 262600483, 262600512, 262600514, 262600520, 262600551, 262602516, 262602524, 262602553, 262602555, 262602561, 262602592, 262603916, 262604594, 262604602, 262604633, 262607228, 262607236, 262607265, 262607267, 262607273, 262607304, 262609306, 262609314, 262609345, 262614018, 262614026, 262614057, 262652432, 262652469, 262654510, 262659222, 262814172, 262857190, 262857198, 262857229, 262885064, 262909994, 262910002, 262910031, 262910033, 262910039, 262910070, 262912072, 262912080, 262912111, 262916784, 262916792, 262916823, 262928082, 262928090, 262928121, 262961988, 263070468, 263070505, 263070542, 263072546, 263072583, 263074624, 263077258, 263077295, 263079336, 263084048, 263113486, 263113494, 263113523, 263113525, 263113531, 263113560, 263113562, 263113568, 263113599, 263115564, 263115572, 263115601, 263115603, 263115609, 263115640, 263116964, 263117642, 263117650, 263117681, 263120276, 263120284, 263120313, 263120315, 263120321, 263120352, 263122354, 263122362, 263122393, 263127066, 263127074, 263127105, 263156802, 263156839, 263158880, 263163592, 263172244, 263199820, 263199828, 263199857, 263199859, 263199865, 263199896, 263201898, 263201906, 263201937, 263206610, 263206618, 263206649, 263215262, 263215270, 263215301, 263219550, 263219558, 263219589, 263243136, 263265332, 263286154, 263286162, 263286193, 263336224, 263380024, 263380061, 263381512, 263381520, 263381549, 263381551, 263381557, 263381586, 263381588, 263381594, 263381625, 263382102, 263383590, 263383598, 263383627, 263383629, 263383635, 263383666, 263384990, 263385668, 263385676, 263385707, 263386814, 263388302, 263388310, 263388339, 263388341, 263388347, 263388378, 263390380, 263390388, 263390419, 263395092, 263395100, 263395131, 263423042, 263423050, 263423079, 263423081, 263423087, 263423118, 263425120, 263425128, 263425159, 263429832, 263429840, 263429871, 263466358, 263509376, 263509384, 263509415, 263641286, 263641323, 263641360, 263643364, 263643401, 263645442, 263648076, 263648113, 263650154, 263654866, 263689580, 263691068, 263691076, 263691105, 263691107, 263691113, 263691144, 263693146, 263693154, 263693185, 263697858, 263697866, 263697897, 263724142, 263724150, 263724179, 263724181, 263724187, 263724216, 263724218, 263724224, 263724253, 263724255, 263724261, 263724292, 263726220, 263726228, 263726257, 263726259, 263726265, 263726294, 263726296, 263726302, 263726333, 263727620, 263727657, 263728298, 263728306, 263728335, 263728337, 263728343, 263728374, 263729698, 263730376, 263730384, 263730415, 263730932, 263730940, 263730969, 263730971, 263730977, 263731006, 263731008, 263731014, 263731045, 263732598, 263732606, 263732637, 263733010, 263733018, 263733047, 263733049, 263733055, 263733086, 263734410, 263735088, 263735096, 263735127, 263737722, 263737730, 263737759, 263737761, 263737767, 263737798, 263739800, 263739808, 263739839, 263743062, 263744512, 263744520, 263744551, 263950842, 263950879, 263952920, 263957632, 264000624, 264000632, 264000663, 264033698, 264033706, 264033735, 264033737, 264033743, 264033772, 264033774, 264033780, 264033811, 264035776, 264035784, 264035813, 264035815, 264035821, 264035852, 264037176, 264037854, 264037862, 264037893, 264040488, 264040496, 264040525, 264040527, 264040533, 264040564, 264042566, 264042574, 264042605, 264047278, 264047286, 264047317, 264161098, 264161135, 264163176, 264167888, 264204116, 264204124, 264204153, 264204155, 264204161, 264204192, 264206194, 264206202, 264206233, 264210906, 264210914, 264210945, 264212104, 264212141, 264212178, 264214182, 264214219, 264216260, 264218894, 264218931, 264220972, 264225684, 264231990, 264232027, 264234068, 264238780, 264247432, 264260398, 264275008, 264275016, 264275045, 264275047, 264275053, 264275084, 264277086, 264277094, 264277125, 264281798, 264281806, 264281837, 264290450, 264290458, 264290489, 264318324, 264343254, 264343262, 264343291, 264343293, 264343299, 264343330, 264345332, 264345340, 264345371, 264350044, 264350052, 264350083, 264361342, 264361350, 264361381, 264470654, 264472142, 264472150, 264472179, 264472181, 264472187, 264472218, 264474220, 264474228, 264474259, 264478932, 264478940, 264478971, 264513672, 264513680, 264513711, 264521660, 264521697, 264523738, 264528450, 264541546, 264584564, 264584572, 264584603, 264605504, 264648522, 264648530, 264648561, 264652810, 264652818, 264652849, 264698592, 264731916, 264731953, 264733994, 264738706, 264781698, 264781706, 264781737, 264799330, 264799338, 264799367, 264799369, 264799375, 264799404, 264799406, 264799412, 264799441, 264799443, 264799449, 264799480, 264801408, 264801416, 264801445, 264801447, 264801453, 264801482, 264801484, 264801490, 264801521, 264802808, 264802845, 264803486, 264803494, 264803523, 264803525, 264803531, 264803562, 264804886, 264805564, 264805572, 264805603, 264806120, 264806128, 264806157, 264806159, 264806165, 264806194, 264806196, 264806202, 264806233, 264808198, 264808206, 264808235, 264808237, 264808243, 264808274, 264809598, 264810276, 264810284, 264810315, 264812910, 264812918, 264812947, 264812949, 264812955, 264812986, 264814772, 264814780, 264814809, 264814811, 264814817, 264814846, 264814848, 264814854, 264814885, 264814988, 264814996, 264815027, 264816850, 264816858, 264816887, 264816889, 264816895, 264816926, 264818250, 264818928, 264818936, 264818967, 264819700, 264819708, 264819739, 264821562, 264821570, 264821599, 264821601, 264821607, 264821638, 264823640, 264823648, 264823679, 264828352, 264828360, 264828391, 264831216, 264983702, 265041472, 265108886, 265108894, 265108923, 265108925, 265108931, 265108960, 265108962, 265108968, 265108999, 265110964, 265110972, 265111001, 265111003, 265111009, 265111040, 265112364, 265113042, 265113050, 265113081, 265115676, 265115684, 265115713, 265115715, 265115721, 265115752, 265117754, 265117762, 265117793, 265122466, 265122474, 265122505, 265124328, 265124336, 265124365, 265124367, 265124373, 265124404, 265126406, 265126414, 265126445, 265131118, 265131126, 265131157, 265176322, 265251728, 265294746, 265294754, 265294785, 265302734, 265302771, 265304812, 265309524, 265322620, 265365638, 265365646, 265365677, 265393512, 265418442, 265418450, 265418479, 265418481, 265418487, 265418518, 265420520, 265420528, 265420559, 265425232, 265425240, 265425271, 265433884, 265433892, 265433923, 265436530, 265436538, 265436569, 265554520, 265562772, 265562780, 265562811, 265594358, 265594395, 265596436, 265601148, 265612290, 265637376, 265637384, 265637413, 265637415, 265637421, 265637452, 265639454, 265639462, 265639493, 265644166, 265644174, 265644205, 265680692, 265723710, 265723718, 265723749, 265727998, 265728006, 265728037, 265773780, 265794305, 265794313, 265794342, 265794344, 265794350, 265794381, 265796383, 265796391, 265796422, 265801095, 265801103, 265801134, 265822546, 265889960, 265889968, 265889997, 265889999, 265890005, 265890034, 265890036, 265890042, 265890073, 265892038, 265892046, 265892075, 265892077, 265892083, 265892114, 265893438, 265894116, 265894124, 265894155, 265896750, 265896758, 265896787, 265896789, 265896795, 265896826, 265898828, 265898836, 265898867, 265903540, 265903548, 265903579, 265903914, 265905402, 265905410, 265905439, 265905441, 265905447, 265905478, 265907480, 265907488, 265907519, 265912192, 265912200, 265912231, 265946932, 265946940, 265946971, 266103861, 266103869, 266103900, 266165176, 266165213, 266167254, 266171966, 266199516, 266199524, 266199553, 266199555, 266199561, 266199592, 266201594, 266201602, 266201633, 266206306, 266206314, 266206345, 266214958, 266214966, 266214997, 266248032, 266248040, 266248069, 266248071, 266248077, 266248106, 266248108, 266248114, 266248145, 266250110, 266250118, 266250147, 266250149, 266250155, 266250186, 266251510, 266252188, 266252196, 266252227, 266254822, 266254830, 266254859, 266254861, 266254867, 266254898, 266256900, 266256908, 266256939, 266261612, 266261620, 266261651, 266393364, 266474732, 266509072, 266509080, 266509111, 266557588, 266557596, 266557625, 266557627, 266557633, 266557664, 266559666, 266559674, 266559705, 266564378, 266564386, 266564417, 266669546, 266669583, 266671624, 266676336, 266684988, 266712564, 266712572, 266712601, 266712603, 266712609, 266712640, 266714642, 266714650, 266714681, 266719354, 266719362, 266719393, 266728006, 266728014, 266728045, 266735994, 266736031, 266738072, 266742784, 266755880, 266798898, 266798906, 266798937, 266867144, 266867152, 266867183, 266884935, 266884943, 266884974, 266979102, 266980590, 266980598, 266980627, 266980629, 266980635, 266980666, 266982668, 266982676, 266982707, 266987380, 266987388, 266987419, 266996032, 266996040, 266996071, 267022120, 267022128, 267022159, 267045550, 267236886, 267236894, 267236923, 267236925, 267236931, 267236960, 267236962, 267236968, 267236997, 267236999, 267237005, 267237036, 267238964, 267238972, 267239001, 267239003, 267239009, 267239038, 267239040, 267239046, 267239077, 267240364, 267240401, 267241042, 267241050, 267241079, 267241081, 267241087, 267241118, 267242442, 267243120, 267243128, 267243159, 267243676, 267243684, 267243713, 267243715, 267243721, 267243750, 267243752, 267243758, 267243789, 267245754, 267245762, 267245791, 267245793, 267245799, 267245830, 267247154, 267247832, 267247840, 267247871, 267250466, 267250474, 267250503, 267250505, 267250511, 267250542, 267252544, 267252552, 267252583, 267255806, 267257256, 267257264, 267257295, 267290146, 267290154, 267290185, 267323220, 267323228, 267323257, 267323259, 267323265, 267323294, 267323296, 267323302, 267323333, 267325298, 267325306, 267325335, 267325337, 267325343, 267325374, 267326698, 267327376, 267327384, 267327415, 267330010, 267330018, 267330047, 267330049, 267330055, 267330086, 267332088, 267332096, 267332127, 267336800, 267336808, 267336839, 267338662, 267338670, 267338699, 267338701, 267338707, 267338738, 267340740, 267340748, 267340779, 267345452, 267345460, 267345491, 267546442, 267546450, 267546479, 267546481, 267546487, 267546516, 267546518, 267546524, 267546555, 267548520, 267548528, 267548557, 267548559, 267548565, 267548596, 267549920, 267550598, 267550606, 267550637, 267553232, 267553240, 267553269, 267553271, 267553277, 267553308, 267555310, 267555318, 267555349, 267560022, 267560030, 267560061, 267632776, 267632784, 267632813, 267632815, 267632821, 267632852, 267634854, 267634862, 267634893, 267639566, 267639574, 267639605, 267648218, 267648226, 267648257, 267760176, 267764686, 267764723, 267764760, 267764797, 267766764, 267766801, 267766838, 267768842, 267768879, 267770920, 267771476, 267771513, 267771550, 267773554, 267773591, 267775632, 267778266, 267778303, 267780344, 267785056, 267803194, 267803202, 267803233, 267807704, 267807712, 267807741, 267807743, 267807749, 267807778, 267807780, 267807786, 267807815, 267807817, 267807823, 267807854, 267809782, 267809790, 267809819, 267809821, 267809827, 267809856, 267809858, 267809864, 267809895, 267811182, 267811219, 267811860, 267811868, 267811897, 267811899, 267811905, 267811936, 267813260, 267813938, 267813946, 267813977, 267814494, 267814502, 267814531, 267814533, 267814539, 267814568, 267814570, 267814576, 267814607, 267816572, 267816580, 267816609, 267816611, 267816617, 267816648, 267817972, 267818650, 267818658, 267818689, 267821284, 267821292, 267821321, 267821323, 267821329, 267821360, 267823362, 267823370, 267823401, 267826624, 267828074, 267828082, 267828113, 267831068, 267855998, 267856006, 267856035, 267856037, 267856043, 267856074, 267858076, 267858084, 267858115, 267862788, 267862796, 267862827, 267874086, 267874094, 267874125, 267942332, 267942340, 267942371, 268071220, 268071228, 268071259, 268074242, 268074279, 268074316, 268076320, 268076357, 268078398, 268081032, 268081069, 268083110, 268087822, 268117260, 268117268, 268117297, 268117299, 268117305, 268117334, 268117336, 268117342, 268117373, 268118248, 268119338, 268119346, 268119375, 268119377, 268119383, 268119414, 268120738, 268121416, 268121424, 268121455, 268124050, 268124058, 268124087, 268124089, 268124095, 268124126, 268126128, 268126136, 268126167, 268130840, 268130848, 268130879, 268161266, 268161274, 268161305, 268165554, 268165562, 268165593, 268211336, 268318195, 268318203, 268318234, 268327516, 268327524, 268327553, 268327555, 268327561, 268327590, 268327592, 268327598, 268327629, 268329594, 268329602, 268329631, 268329633, 268329639, 268329670, 268330994, 268331672, 268331680, 268331711, 268334306, 268334314, 268334343, 268334345, 268334351, 268334382, 268336384, 268336392, 268336423, 268341096, 268341104, 268341135, 268383798, 268383835, 268385876, 268390588, 268398408, 268398416, 268398445, 268398447, 268398453, 268398482, 268398484, 268398490, 268398521, 268400486, 268400494, 268400523, 268400525, 268400531, 268400562, 268401886, 268402564, 268402572, 268402603, 268405198, 268405206, 268405235, 268405237, 268405243, 268405274, 268407276, 268407284, 268407315, 268411988, 268411996, 268412027, 268413850, 268413858, 268413887, 268413889, 268413895, 268413926, 268415928, 268415936, 268415967, 268420640, 268420648, 268420679, 268426816, 268426824, 268426853, 268426855, 268426861, 268426892, 268428894, 268428902, 268428933, 268429292, 268429300, 268429331, 268433606, 268433614, 268433645, 268637072, 268637080, 268637109, 268637111, 268637117, 268637148, 268639150, 268639158, 268639189, 268643862, 268643870, 268643901, 268689066, 268693354, 268707964, 268707972, 268708001, 268708003, 268708009, 268708040, 268710042, 268710050, 268710081, 268714754, 268714762, 268714793, 268723406, 268723414, 268723445, 268736372, 268736380, 268736411, 268771922, 268771930, 268771959, 268771961, 268771967, 268771998, 268774000, 268774008, 268774039, 268778712, 268778720, 268778751, 268855316, 268855353, 268855390, 268857394, 268857431, 268859472, 268862106, 268862143, 268864184, 268868896, 268898334, 268898342, 268898371, 268898373, 268898379, 268898408, 268898410, 268898416, 268898447, 268900412, 268900420, 268900449, 268900451, 268900457, 268900488, 268901812, 268902490, 268902498, 268902529, 268905124, 268905132, 268905161, 268905163, 268905169, 268905200, 268907202, 268907210, 268907241, 268911914, 268911922, 268911953, 268946628, 268946636, 268946667, 269017520, 269017528, 269017559, 269081478, 269081486, 269081517, 269107102, 269107139, 269109180, 269113892, 269150120, 269150128, 269150157, 269150159, 269150165, 269150196, 269152198, 269152206, 269152237, 269156910, 269156918, 269156949, 269164872, 269164909, 269166950, 269171662, 269193436, 269207890, 269207898, 269207927, 269207929, 269207935, 269207966, 269209968, 269209976, 269210007, 269214680, 269214688, 269214719, 269236454, 269236462, 269236493, 269259884, 269393383, 269393391, 269393422, 269416658, 269418146, 269418154, 269418183, 269418185, 269418191, 269418222, 269420224, 269420232, 269420263, 269424936, 269424944, 269424975, 269459676, 269459684, 269459715, 269474428, 269489038, 269489046, 269489075, 269489077, 269489083, 269489114, 269491116, 269491124, 269491155, 269495828, 269495836, 269495867, 269504480, 269504488, 269504519, 269517446, 269517454, 269517485, 269677920, 269677957, 269679998, 269684710, 269727702, 269727710, 269727741, 269760776, 269760784, 269760813, 269760815, 269760821, 269760850, 269760852, 269760858, 269760889, 269762854, 269762862, 269762891, 269762893, 269762899, 269762930, 269764254, 269764932, 269764940, 269764971, 269767566, 269767574, 269767603, 269767605, 269767611, 269767642, 269769644, 269769652, 269769683, 269774356, 269774364, 269774395, 269798594, 269798602, 269798633, 269847110, 269847118, 269847147, 269847149, 269847155, 269847186, 269849188, 269849196, 269849227, 269853900, 269853908, 269853939, 269862552, 269862560, 269862591, 269945946, 269945983, 269948024, 269952736, 269987476, 269988964, 269988972, 269989001, 269989003, 269989009, 269989040, 269991042, 269991050, 269991081, 269995754, 269995762, 269995793, 270070332, 270070340, 270070369, 270070371, 270070377, 270070408, 270072410, 270072418, 270072449, 270077122, 270077130, 270077161, 270156666, 270156674, 270156705, 270197732, 270240750, 270240758, 270240789, 270248738, 270248775, 270250816, 270255502, 270255528, 270268624, 270288576, 270288613, 270288650, 270290654, 270290691, 270292732, 270295366, 270295403, 270297444, 270298520, 270298528, 270298559, 270302156, 270311642, 270311650, 270311681, 270331594, 270331602, 270331631, 270331633, 270331639, 270331668, 270331670, 270331676, 270331707, 270333672, 270333680, 270333709, 270333711, 270333717, 270333748, 270335072, 270335750, 270335758, 270335789, 270338384, 270338392, 270338421, 270338423, 270338429, 270338460, 270340462, 270340470, 270340501, 270345174, 270345182, 270345213, 270379888, 270379896, 270379927, 270508776, 270508784, 270508815, 270558294, 270579668, 270579676, 270579707, 270598132, 270598169, 270600210, 270604922, 270641150, 270641158, 270641187, 270641189, 270641195, 270641226, 270643228, 270643236, 270643267, 270647940, 270647948, 270647979, 270768550, 270835964, 270835972, 270836001, 270836003, 270836009, 270836038, 270836040, 270836046, 270836077, 270838042, 270838050, 270838079, 270838081, 270838087, 270838118, 270839442, 270840120, 270840128, 270840159, 270842754, 270842762, 270842791, 270842793, 270842799, 270842830, 270844832, 270844840, 270844871, 270849544, 270849552, 270849583, 270851406, 270851414, 270851443, 270851445, 270851451, 270851482, 270853484, 270853492, 270853523, 270858196, 270858204, 270858235, 270907688, 270922298, 270922306, 270922335, 270922337, 270922343, 270922374, 270924376, 270924384, 270924415, 270929088, 270929096, 270929127, 270937740, 270937748, 270937779, 270950706, 270950714, 270950745, 271036576, 271079594, 271079602, 271079633, 271145520, 271145528, 271145557, 271145559, 271145565, 271145596, 271147598, 271147606, 271147637, 271152310, 271152318, 271152349, 271160962, 271160970, 271161001, 271231854, 271231862, 271231893, 271295812, 271295820, 271295851, 271339368, 271363764, 271363801, 271363838, 271365842, 271365879, 271367920, 271370554, 271370591, 271372632, 271377344, 271379206, 271379243, 271381284, 271385996, 271403304, 271403312, 271403320, 271403341, 271403343, 271403349, 271403351, 271403357, 271403378, 271403380, 271403382, 271403386, 271403388, 271403394, 271403415, 271403417, 271403419, 271403423, 271403425, 271403431, 271403452, 271403454, 271403456, 271403460, 271403462, 271403468, 271403491, 271403493, 271403499, 271403530, 271405382, 271405390, 271405398, 271405419, 271405421, 271405427, 271405429, 271405435, 271405456, 271405458, 271405460, 271405464, 271405466, 271405472, 271405493, 271405495, 271405497, 271405501, 271405503, 271405509, 271405532, 271405534, 271405540, 271405571, 271406782, 271406790, 271406819, 271406821, 271406827, 271406856, 271406858, 271406864, 271406895, 271407460, 271407468, 271407476, 271407497, 271407499, 271407505, 271407507, 271407513, 271407534, 271407536, 271407538, 271407542, 271407544, 271407550, 271407573, 271407575, 271407581, 271407612, 271408860, 271408868, 271408897, 271408899, 271408905, 271408936, 271409538, 271409546, 271409554, 271409575, 271409577, 271409583, 271409585, 271409591, 271409614, 271409616, 271409622, 271409653, 271410094, 271410102, 271410110, 271410131, 271410133, 271410139, 271410141, 271410147, 271410168, 271410170, 271410172, 271410176, 271410178, 271410184, 271410205, 271410207, 271410209, 271410213, 271410215, 271410221, 271410244, 271410246, 271410252, 271410260, 271410283, 271410938, 271410946, 271410977, 271411616, 271411624, 271411632, 271411655, 271411663, 271411694, 271412172, 271412180, 271412188, 271412209, 271412211, 271412217, 271412219, 271412225, 271412246, 271412248, 271412250, 271412254, 271412256, 271412262, 271412285, 271412287, 271412293, 271412324, 271413572, 271413580, 271413609, 271413611, 271413617, 271413648, 271414250, 271414258, 271414266, 271414287, 271414289, 271414295, 271414297, 271414303, 271414326, 271414328, 271414334, 271414365, 271415650, 271415658, 271415689, 271416328, 271416336, 271416344, 271416367, 271416375, 271416406, 271416884, 271416892, 271416900, 271416921, 271416923, 271416929, 271416931, 271416937, 271416958, 271416960, 271416962, 271416966, 271416968, 271416974, 271416997, 271416999, 271417005, 271417036, 271418962, 271418970, 271418978, 271418999, 271419001, 271419007, 271419009, 271419015, 271419038, 271419040, 271419046, 271419077, 271420362, 271420370, 271420401, 271421040, 271421048, 271421056, 271421079, 271421087, 271421118, 271422224, 271422232, 271422261, 271422263, 271422269, 271422300, 271423674, 271423682, 271423690, 271423711, 271423713, 271423719, 271423721, 271423727, 271423750, 271423752, 271423758, 271423789, 271424302, 271424310, 271424341, 271425752, 271425760, 271425768, 271425791, 271425799, 271425830, 271429014, 271429022, 271429053, 271430464, 271430472, 271430480, 271430503, 271430511, 271430542, 271455076, 271455084, 271455115, 271630992, 271673320, 271673357, 271674010, 271674018, 271674049, 271675398, 271680110, 271688762, 271712860, 271712868, 271712876, 271712897, 271712899, 271712905, 271712907, 271712913, 271712934, 271712936, 271712938, 271712942, 271712944, 271712950, 271712971, 271712973, 271712975, 271712979, 271712981, 271712987, 271713010, 271713012, 271713018, 271713049, 271714938, 271714946, 271714954, 271714975, 271714977, 271714983, 271714985, 271714991, 271715012, 271715014, 271715016, 271715020, 271715022, 271715028, 271715051, 271715053, 271715059, 271715090, 271716338, 271716346, 271716375, 271716377, 271716383, 271716414, 271717016, 271717024, 271717032, 271717053, 271717055, 271717061, 271717063, 271717069, 271717092, 271717094, 271717100, 271717131, 271718416, 271718424, 271718455, 271719094, 271719102, 271719110, 271719133, 271719141, 271719172, 271719650, 271719658, 271719666, 271719687, 271719689, 271719695, 271719697, 271719703, 271719724, 271719726, 271719728, 271719732, 271719734, 271719740, 271719763, 271719765, 271719771, 271719802, 271721728, 271721736, 271721744, 271721765, 271721767, 271721773, 271721775, 271721781, 271721804, 271721806, 271721812, 271721843, 271723128, 271723136, 271723167, 271723806, 271723814, 271723822, 271723845, 271723853, 271723884, 271726440, 271726448, 271726456, 271726477, 271726479, 271726485, 271726487, 271726493, 271726516, 271726518, 271726524, 271726555, 271728518, 271728526, 271728534, 271728557, 271728565, 271728596, 271731780, 271731788, 271731819, 271733230, 271733238, 271733246, 271733269, 271733277, 271733308, 271830939, 271830947, 271830978, 271926594, 271926602, 271926631, 271926633, 271926639, 271926670, 271928672, 271928680, 271928711, 271933384, 271933392, 271933423, 271942036, 271942044, 271942075, 271982876, 271997486, 271997494, 271997523, 271997525, 271997531, 271997562, 271999564, 271999572, 271999603, 272004276, 272004284, 272004315, 272012928, 272012936, 272012967, 272022416, 272022424, 272022432, 272022453, 272022455, 272022461, 272022463, 272022469, 272022490, 272022492, 272022494, 272022498, 272022500, 272022506, 272022529, 272022531, 272022537, 272022568, 272024494, 272024502, 272024510, 272024531, 272024533, 272024539, 272024541, 272024547, 272024570, 272024572, 272024578, 272024609, 272025894, 272025902, 272025933, 272026572, 272026580, 272026588, 272026611, 272026619, 272026650, 272029206, 272029214, 272029222, 272029243, 272029245, 272029251, 272029253, 272029259, 272029282, 272029284, 272029290, 272029321, 272031284, 272031292, 272031300, 272031323, 272031331, 272031362, 272035996, 272036004, 272036012, 272036035, 272036043, 272036074, 272201810, 272236150, 272236158, 272236189, 272284666, 272284674, 272284703, 272284705, 272284711, 272284742, 272286744, 272286752, 272286783, 272291456, 272291464, 272291495, 272307042, 272307050, 272307081, 272331972, 272331980, 272331988, 272332009, 272332011, 272332017, 272332019, 272332025, 272332048, 272332050, 272332056, 272332087, 272334050, 272334058, 272334066, 272334089, 272334097, 272334128, 272338762, 272338770, 272338778, 272338801, 272338809, 272338840, 272358739, 272371000, 272371008, 272371039, 272454394, 272454431, 272456472, 272461184, 272469836, 272493934, 272493942, 272493950, 272493971, 272493973, 272493979, 272493981, 272493987, 272494008, 272494010, 272494012, 272494016, 272494018, 272494024, 272494045, 272494047, 272494049, 272494053, 272494055, 272494061, 272494084, 272494086, 272494092, 272494123, 272496012, 272496020, 272496028, 272496049, 272496051, 272496057, 272496059, 272496065, 272496086, 272496088, 272496090, 272496094, 272496096, 272496102, 272496125, 272496127, 272496133, 272496164, 272497412, 272497420, 272497449, 272497451, 272497457, 272497488, 272498090, 272498098, 272498106, 272498127, 272498129, 272498135, 272498137, 272498143, 272498166, 272498168, 272498174, 272498205, 272499490, 272499498, 272499529, 272500168, 272500176, 272500184, 272500207, 272500215, 272500246, 272500724, 272500732, 272500740, 272500761, 272500763, 272500769, 272500771, 272500777, 272500798, 272500800, 272500802, 272500806, 272500808, 272500814, 272500837, 272500839, 272500845, 272500876, 272502802, 272502810, 272502818, 272502839, 272502841, 272502847, 272502849, 272502855, 272502878, 272502880, 272502886, 272502917, 272504202, 272504210, 272504241, 272504880, 272504888, 272504896, 272504919, 272504927, 272504958, 272507514, 272507522, 272507530, 272507551, 272507553, 272507559, 272507561, 272507567, 272507590, 272507592, 272507598, 272507629, 272509592, 272509600, 272509608, 272509631, 272509639, 272509670, 272512854, 272512862, 272512893, 272514304, 272514312, 272514320, 272514343, 272514351, 272514382, 272594222, 272594230, 272594261, 272641528, 272641536, 272641544, 272641567, 272641575, 272641606, 272706180, 272749198, 272749206, 272749237, 272763950, 272772628, 272803490, 272803498, 272803506, 272803527, 272803529, 272803535, 272803537, 272803543, 272803564, 272803566, 272803568, 272803572, 272803574, 272803580, 272803603, 272803605, 272803611, 272803642, 272805568, 272805576, 272805584, 272805605, 272805607, 272805613, 272805615, 272805621, 272805644, 272805646, 272805652, 272805683, 272806968, 272806976, 272807007, 272807646, 272807654, 272807662, 272807685, 272807693, 272807724, 272810280, 272810288, 272810296, 272810317, 272810319, 272810325, 272810327, 272810333, 272810356, 272810358, 272810364, 272810395, 272812358, 272812366, 272812374, 272812397, 272812405, 272812436, 272812466, 272812503, 272814544, 272817070, 272817078, 272817086, 272817109, 272817117, 272817148, 272819256, 272855484, 272855492, 272855521, 272855523, 272855529, 272855560, 272857562, 272857570, 272857601, 272862274, 272862282, 272862313, 272905554, 272905591, 272907632, 272912344, 273017224, 273017232, 273017263, 273088116, 273088124, 273088155, 273113046, 273113054, 273113062, 273113083, 273113085, 273113091, 273113093, 273113099, 273113122, 273113124, 273113130, 273113161, 273115124, 273115132, 273115140, 273115163, 273115171, 273115202, 273119836, 273119844, 273119852, 273119875, 273119883, 273119914, 273122022, 273165040, 273165048, 273165079, 273215110, 273273520, 273273528, 273273557, 273273559, 273273565, 273273594, 273273596, 273273602, 273273633, 273275598, 273275606, 273275635, 273275637, 273275643, 273275674, 273276998, 273277676, 273277684, 273277715, 273280310, 273280318, 273280347, 273280349, 273280355, 273280386, 273282388, 273282396, 273282427, 273287100, 273287108, 273287139, 273359854, 273359862, 273359891, 273359893, 273359899, 273359930, 273361932, 273361940, 273361971, 273366644, 273366652, 273366683, 273375296, 273375304, 273375335, 273422602, 273422610, 273422618, 273422641, 273422649, 273422680, 273446188, 273446196, 273446227, 273545024, 273583076, 273583084, 273583113, 273583115, 273583121, 273583152, 273584564, 273584572, 273584580, 273584601, 273584603, 273584609, 273584611, 273584617, 273584638, 273584640, 273584642, 273584646, 273584648, 273584654, 273584677, 273584679, 273584685, 273584716, 273585154, 273585162, 273585193, 273586642, 273586650, 273586658, 273586679, 273586681, 273586687, 273586689, 273586695, 273586718, 273586720, 273586726, 273586757, 273588042, 273588050, 273588081, 273588720, 273588728, 273588736, 273588759, 273588767, 273588798, 273589866, 273589874, 273589905, 273591354, 273591362, 273591370, 273591391, 273591393, 273591399, 273591401, 273591407, 273591430, 273591432, 273591438, 273591469, 273593432, 273593440, 273593448, 273593471, 273593479, 273593510, 273598144, 273598152, 273598160, 273598183, 273598191, 273598222, 273669410, 273669418, 273669449, 273801320, 273801357, 273801394, 273803398, 273803435, 273805476, 273808110, 273808147, 273810188, 273814900, 273844338, 273844346, 273844375, 273844377, 273844383, 273844412, 273844414, 273844420, 273844451, 273846416, 273846424, 273846453, 273846455, 273846461, 273846492, 273847816, 273848494, 273848502, 273848533, 273851128, 273851136, 273851165, 273851167, 273851173, 273851204, 273853206, 273853214, 273853245, 273857918, 273857926, 273857957, 273887654, 273887691, 273889732, 273892632, 273892640, 273892671, 273894120, 273894128, 273894136, 273894157, 273894159, 273894165, 273894167, 273894173, 273894196, 273894198, 273894204, 273894235, 273894444, 273896198, 273896206, 273896214, 273896237, 273896245, 273896276, 273900910, 273900918, 273900926, 273900949, 273900957, 273900988, 273903096, 273927194, 273927202, 273927210, 273927231, 273927233, 273927239, 273927241, 273927247, 273927268, 273927270, 273927272, 273927276, 273927278, 273927284, 273927305, 273927307, 273927309, 273927313, 273927315, 273927321, 273927344, 273927346, 273927352, 273927383, 273929272, 273929280, 273929288, 273929309, 273929311, 273929317, 273929319, 273929325, 273929346, 273929348, 273929350, 273929354, 273929356, 273929362, 273929385, 273929387, 273929393, 273929424, 273930672, 273930680, 273930709, 273930711, 273930717, 273930748, 273931350, 273931358, 273931366, 273931387, 273931389, 273931395, 273931397, 273931403, 273931426, 273931428, 273931434, 273931465, 273932750, 273932758, 273932789, 273933428, 273933436, 273933444, 273933467, 273933475, 273933506, 273933984, 273933992, 273934000, 273934021, 273934023, 273934029, 273934031, 273934037, 273934058, 273934060, 273934062, 273934066, 273934068, 273934074, 273934097, 273934099, 273934105, 273934136, 273936062, 273936070, 273936078, 273936099, 273936101, 273936107, 273936109, 273936115, 273936138, 273936140, 273936146, 273936177, 273937462, 273937470, 273937501, 273938140, 273938148, 273938156, 273938179, 273938187, 273938218, 273940774, 273940782, 273940790, 273940811, 273940813, 273940819, 273940821, 273940827, 273940850, 273940852, 273940858, 273940889, 273942852, 273942860, 273942868, 273942891, 273942899, 273942930, 273946114, 273946122, 273946153, 273947564, 273947572, 273947580, 273947603, 273947611, 273947642, 273996184, 274110876, 274110913, 274112954, 274117666, 274153894, 274153902, 274153931, 274153933, 274153939, 274153970, 274155972, 274155980, 274156011, 274160684, 274160692, 274160723, 274197210, 274203676, 274203684, 274203692, 274203715, 274203723, 274203754, 274236750, 274236758, 274236766, 274236787, 274236789, 274236795, 274236797, 274236803, 274236824, 274236826, 274236828, 274236832, 274236834, 274236840, 274236863, 274236865, 274236871, 274236902, 274238828, 274238836, 274238844, 274238865, 274238867, 274238873, 274238875, 274238881, 274238904, 274238906, 274238912, 274238943, 274240228, 274240236, 274240267, 274240906, 274240914, 274240922, 274240945, 274240953, 274240984, 274243540, 274243548, 274243556, 274243577, 274243579, 274243585, 274243587, 274243593, 274243616, 274243618, 274243624, 274243655, 274245618, 274245626, 274245634, 274245657, 274245665, 274245696, 274250330, 274250338, 274250346, 274250369, 274250377, 274250408, 274364150, 274364158, 274364187, 274364189, 274364195, 274364226, 274366228, 274366236, 274366267, 274370940, 274370948, 274370979, 274372138, 274372175, 274372212, 274374216, 274374253, 274376294, 274378928, 274378965, 274381006, 274385718, 274420432, 274435042, 274435050, 274435079, 274435081, 274435087, 274435118, 274437120, 274437128, 274437159, 274441832, 274441840, 274441871, 274450484, 274450492, 274450523, 274463450, 274463458, 274463489, 274521376, 274521384, 274521415, 274546306, 274546314, 274546322, 274546343, 274546345, 274546351, 274546353, 274546359, 274546382, 274546384, 274546390, 274546421, 274548384, 274548392, 274548400, 274548423, 274548431, 274548462, 274553096, 274553104, 274553112, 274553135, 274553143, 274553174, 274673706, 274673714, 274673745, 274675194, 274675202, 274675210, 274675231, 274675233, 274675239, 274675241, 274675247, 274675270, 274675272, 274675278, 274675309, 274677272, 274677280, 274677288, 274677311, 274677319, 274677350, 274681694, 274681731, 274681984, 274681992, 274682000, 274682023, 274682031, 274682062, 274683772, 274688484, 274744598, 274744606, 274744637, 274808556, 274808564, 274808595, 274855862, 274855870, 274855878, 274855901, 274855909, 274855940, 274891950, 274891987, 274894028, 274898740, 274918953, 274918990, 274919027, 274919064, 274921031, 274921068, 274921105, 274923109, 274923146, 274925187, 274925743, 274925780, 274925817, 274927821, 274927858, 274929899, 274932533, 274932570, 274934611, 274934968, 274934976, 274935005, 274935007, 274935013, 274935044, 274937046, 274937054, 274937085, 274939323, 274941758, 274941766, 274941797, 274962842, 274962879, 274964920, 274969632, 274978284, 274984750, 274984758, 274984766, 274984789, 274984797, 274984828, 274991250, 275002382, 275002390, 275002398, 275002419, 275002421, 275002427, 275002429, 275002435, 275002456, 275002458, 275002460, 275002464, 275002466, 275002472, 275002493, 275002495, 275002497, 275002501, 275002503, 275002509, 275002532, 275002534, 275002540, 275002571, 275004460, 275004468, 275004476, 275004497, 275004499, 275004505, 275004507, 275004513, 275004534, 275004536, 275004538, 275004542, 275004544, 275004550, 275004573, 275004575, 275004581, 275004612, 275005860, 275005868, 275005897, 275005899, 275005905, 275005936, 275006538, 275006546, 275006554, 275006575, 275006577, 275006583, 275006585, 275006591, 275006614, 275006616, 275006622, 275006653, 275007938, 275007946, 275007977, 275008616, 275008624, 275008632, 275008655, 275008663, 275008694, 275009172, 275009180, 275009188, 275009209, 275009211, 275009217, 275009219, 275009225, 275009246, 275009248, 275009250, 275009254, 275009256, 275009262, 275009285, 275009287, 275009293, 275009324, 275011250, 275011258, 275011266, 275011287, 275011289, 275011295, 275011297, 275011303, 275011326, 275011328, 275011334, 275011365, 275012650, 275012658, 275012689, 275013328, 275013336, 275013344, 275013367, 275013375, 275013406, 275015962, 275015970, 275015978, 275015999, 275016001, 275016007, 275016009, 275016015, 275016038, 275016040, 275016046, 275016077, 275017824, 275017832, 275017840, 275017861, 275017863, 275017869, 275017871, 275017877, 275017898, 275017900, 275017902, 275017906, 275017908, 275017914, 275017937, 275017939, 275017945, 275017976, 275018040, 275018048, 275018056, 275018079, 275018087, 275018118, 275019902, 275019910, 275019918, 275019939, 275019941, 275019947, 275019949, 275019955, 275019978, 275019980, 275019986, 275020017, 275021302, 275021310, 275021341, 275021980, 275021988, 275021996, 275022019, 275022027, 275022058, 275022752, 275022760, 275022768, 275022791, 275022799, 275022830, 275024614, 275024622, 275024630, 275024651, 275024653, 275024659, 275024661, 275024667, 275024690, 275024692, 275024698, 275024729, 275026692, 275026700, 275026708, 275026731, 275026739, 275026770, 275031404, 275031412, 275031420, 275031443, 275031451, 275031482, 275143736, 275186754, 275186762, 275186793, 275201506, 275228509, 275228546, 275228583, 275230587, 275230624, 275232665, 275235299, 275235336, 275237377, 275242089, 275244524, 275244532, 275244563, 275272398, 275311938, 275311946, 275311954, 275311975, 275311977, 275311983, 275311985, 275311991, 275312012, 275312014, 275312016, 275312020, 275312022, 275312028, 275312051, 275312053, 275312059, 275312090, 275314016, 275314024, 275314032, 275314053, 275314055, 275314061, 275314063, 275314069, 275314092, 275314094, 275314100, 275314131, 275315416, 275315424, 275315455, 275316094, 275316102, 275316110, 275316133, 275316141, 275316172, 275318728, 275318736, 275318744, 275318765, 275318767, 275318773, 275318775, 275318781, 275318804, 275318806, 275318812, 275318843, 275320806, 275320814, 275320822, 275320845, 275320853, 275320884, 275325518, 275325526, 275325534, 275325557, 275325565, 275325596, 275327380, 275327388, 275327396, 275327417, 275327419, 275327425, 275327427, 275327433, 275327456, 275327458, 275327464, 275327495, 275329458, 275329466, 275329474, 275329497, 275329505, 275329536, 275334170, 275334178, 275334186, 275334209, 275334217, 275334248, 275336356, 275379374, 275379382, 275379413, 275429444, 275454780, 275454788, 275454819, 275462768, 275462805, 275464846, 275469558, 275525672, 275525680, 275525711, 275538065, 275538102, 275540143, 275544855, 275596564, 275596572, 275596603, 275621494, 275621502, 275621510, 275621531, 275621533, 275621539, 275621541, 275621547, 275621570, 275621572, 275621578, 275621609, 275623572, 275623580, 275623588, 275623611, 275623619, 275623650, 275628284, 275628292, 275628300, 275628323, 275628331, 275628362, 275636936, 275636944, 275636952, 275636975, 275636983, 275637014, 275714554, 275765824, 275765832, 275765840, 275765863, 275765871, 275765902, 275772324, 275797410, 275797418, 275797447, 275797449, 275797455, 275797486, 275799488, 275799496, 275799527, 275804200, 275804208, 275804239, 275847621, 275883744, 275883752, 275883783, 275931050, 275931058, 275931066, 275931089, 275931097, 275931128, 275982580, 276009583, 276009620, 276009657, 276011661, 276011698, 276013739, 276016373, 276016410, 276018451, 276023163, 276025598, 276025606, 276025637, 276053472, 276093012, 276093020, 276093028, 276093049, 276093051, 276093057, 276093059, 276093065, 276093086, 276093088, 276093090, 276093094, 276093096, 276093102, 276093125, 276093127, 276093133, 276093164, 276095090, 276095098, 276095106, 276095127, 276095129, 276095135, 276095137, 276095143, 276095166, 276095168, 276095174, 276095205, 276096490, 276096498, 276096529, 276097168, 276097176, 276097184, 276097207, 276097215, 276097246, 276099802, 276099810, 276099818, 276099839, 276099841, 276099847, 276099849, 276099855, 276099878, 276099880, 276099886, 276099917, 276101880, 276101888, 276101896, 276101919, 276101927, 276101958, 276106592, 276106600, 276106608, 276106631, 276106639, 276106670, 276106966, 276106974, 276107005, 276108454, 276108462, 276108470, 276108491, 276108493, 276108499, 276108501, 276108507, 276108530, 276108532, 276108538, 276108569, 276110532, 276110540, 276110548, 276110571, 276110579, 276110610, 276115244, 276115252, 276115260, 276115283, 276115291, 276115322, 276285372, 276319139, 276319176, 276321217, 276325210, 276325247, 276325929, 276327288, 276332000, 276368228, 276368236, 276368265, 276368267, 276368273, 276368304, 276370306, 276370314, 276370345, 276375018, 276375026, 276375057, 276402568, 276402576, 276402584, 276402605, 276402607, 276402613, 276402615, 276402621, 276402644, 276402646, 276402652, 276402683, 276404646, 276404654, 276404662, 276404685, 276404693, 276404724, 276409358, 276409366, 276409374, 276409397, 276409405, 276409436, 276411544, 276418010, 276418018, 276418026, 276418049, 276418057, 276418088, 276451084, 276451092, 276451100, 276451121, 276451123, 276451129, 276451131, 276451137, 276451158, 276451160, 276451162, 276451166, 276451168, 276451174, 276451197, 276451199, 276451205, 276451236, 276453162, 276453170, 276453178, 276453199, 276453201, 276453207, 276453209, 276453215, 276453238, 276453240, 276453246, 276453277, 276454562, 276454570, 276454601, 276455240, 276455248, 276455256, 276455279, 276455287, 276455318, 276457874, 276457882, 276457890, 276457911, 276457913, 276457919, 276457921, 276457927, 276457950, 276457952, 276457958, 276457989, 276459952, 276459960, 276459968, 276459991, 276459999, 276460030, 276464664, 276464672, 276464680, 276464703, 276464711, 276464742, 276504632, 276553398, 276628695, 276634766, 276677784, 276677792, 276677823, 276712124, 276712132, 276712140, 276712163, 276712171, 276712202, 276760640, 276760648, 276760656, 276760677, 276760679, 276760685, 276760687, 276760693, 276760716, 276760718, 276760724, 276760755, 276762718, 276762726, 276762734, 276762757, 276762765, 276762796, 276767430, 276767438, 276767446, 276767469, 276767477, 276767508, 276872598, 276872606, 276872635, 276872637, 276872643, 276872674, 276874676, 276874684, 276874715, 276879388, 276879396, 276879427, 276888040, 276888048, 276888079, 276896028, 276896065, 276898106, 276902818, 276958932, 276958940, 276958971, 277070196, 277070204, 277070212, 277070235, 277070243, 277070274, 277100213, 277100250, 277102291, 277107003, 277182154, 277182162, 277182193, 277183642, 277183650, 277183658, 277183679, 277183681, 277183687, 277183689, 277183695, 277183718, 277183720, 277183726, 277183757, 277185720, 277185728, 277185736, 277185759, 277185767, 277185798, 277190432, 277190440, 277190448, 277190471, 277190479, 277190510, 277199084, 277199092, 277199100, 277199123, 277199131, 277199162, 277205584, 277400398, 277400435, 277402476, 277407188, 277409769, 277415840, 277439938, 277439946, 277439954, 277439975, 277439977, 277439983, 277439985, 277439991, 277440012, 277440014, 277440016, 277440020, 277440022, 277440028, 277440049, 277440051, 277440053, 277440057, 277440059, 277440065, 277440088, 277440090, 277440096, 277440127, 277442016, 277442024, 277442032, 277442053, 277442055, 277442061, 277442063, 277442069, 277442090, 277442092, 277442094, 277442098, 277442100, 277442106, 277442129, 277442131, 277442137, 277442168, 277442843, 277442880, 277442917, 277443416, 277443424, 277443453, 277443455, 277443461, 277443492, 277444094, 277444102, 277444110, 277444131, 277444133, 277444139, 277444141, 277444147, 277444170, 277444172, 277444178, 277444209, 277444921, 277444958, 277445494, 277445502, 277445533, 277446172, 277446180, 277446188, 277446211, 277446219, 277446250, 277446728, 277446736, 277446744, 277446765, 277446767, 277446773, 277446775, 277446781, 277446802, 277446804, 277446806, 277446810, 277446812, 277446818, 277446841, 277446843, 277446849, 277446880, 277446999, 277448806, 277448814, 277448822, 277448843, 277448845, 277448851, 277448853, 277448859, 277448882, 277448884, 277448890, 277448921, 277449633, 277449670, 277450206, 277450214, 277450245, 277450884, 277450892, 277450900, 277450923, 277450931, 277450962, 277451711, 277453518, 277453526, 277453534, 277453555, 277453557, 277453563, 277453565, 277453571, 277453594, 277453596, 277453602, 277453633, 277455596, 277455604, 277455612, 277455635, 277455643, 277455674, 277456423, 277458858, 277458866, 277458897, 277460308, 277460316, 277460324, 277460347, 277460355, 277460386, 277486732, 277493198, 277493206, 277493214, 277493237, 277493245, 277493276, 277526272, 277526280, 277526288, 277526309, 277526311, 277526317, 277526319, 277526325, 277526346, 277526348, 277526350, 277526354, 277526356, 277526362, 277526385, 277526387, 277526393, 277526424, 277528350, 277528358, 277528366, 277528387, 277528389, 277528395, 277528397, 277528403, 277528426, 277528428, 277528434, 277528465, 277529750, 277529758, 277529789, 277530428, 277530436, 277530444, 277530467, 277530475, 277530506, 277533062, 277533070, 277533078, 277533099, 277533101, 277533107, 277533109, 277533115, 277533138, 277533140, 277533146, 277533177, 277535140, 277535148, 277535156, 277535179, 277535187, 277535218, 277539852, 277539860, 277539868, 277539891, 277539899, 277539930, 277541714, 277541722, 277541730, 277541751, 277541753, 277541759, 277541761, 277541767, 277541790, 277541792, 277541798, 277541829, 277543792, 277543800, 277543808, 277543831, 277543839, 277543870, 277548504, 277548512, 277548520, 277548543, 277548551, 277548582, 277709954, 277749494, 277749502, 277749510, 277749531, 277749533, 277749539, 277749541, 277749547, 277749568, 277749570, 277749572, 277749576, 277749578, 277749584, 277749607, 277749609, 277749615, 277749646, 277751572, 277751580, 277751588, 277751609, 277751611, 277751617, 277751619, 277751625, 277751648, 277751650, 277751656, 277751687, 277752399, 277752436, 277752972, 277752980, 277753011, 277753650, 277753658, 277753666, 277753689, 277753697, 277753728, 277754477, 277756284, 277756292, 277756300, 277756321, 277756323, 277756329, 277756331, 277756337, 277756360, 277756362, 277756368, 277756399, 277758362, 277758370, 277758378, 277758401, 277758409, 277758440, 277759189, 277763074, 277763082, 277763090, 277763113, 277763121, 277763152, 277835828, 277835836, 277835844, 277835865, 277835867, 277835873, 277835875, 277835881, 277835904, 277835906, 277835912, 277835943, 277837906, 277837914, 277837922, 277837945, 277837953, 277837984, 277842618, 277842626, 277842634, 277842657, 277842665, 277842696, 277851270, 277851278, 277851286, 277851309, 277851317, 277851348, 277963228, 277963236, 277963267, 277967738, 277967746, 277967775, 277967777, 277967783, 277967812, 277967814, 277967820, 277967849, 277967851, 277967857, 277967888, 277969816, 277969824, 277969853, 277969855, 277969861, 277969890, 277969892, 277969898, 277969929, 277971216, 277971253, 277971894, 277971902, 277971931, 277971933, 277971939, 277971970, 277973294, 277973972, 277973980, 277974011, 277974528, 277974536, 277974565, 277974567, 277974573, 277974602, 277974604, 277974610, 277974641, 277976606, 277976614, 277976643, 277976645, 277976651, 277976682, 277978006, 277978684, 277978692, 277978723, 277981318, 277981326, 277981355, 277981357, 277981363, 277981394, 277983396, 277983404, 277983435, 277986658, 277988108, 277988116, 277988147, 278034120, 278034128, 278034159, 278059050, 278059058, 278059066, 278059087, 278059089, 278059095, 278059097, 278059103, 278059126, 278059128, 278059134, 278059165, 278061128, 278061136, 278061144, 278061167, 278061175, 278061206, 278061955, 278065840, 278065848, 278065856, 278065879, 278065887, 278065918, 278145384, 278145392, 278145400, 278145423, 278145431, 278145462, 278190843, 278274272, 278274280, 278274288, 278274311, 278274319, 278274350, 278277294, 278277302, 278277331, 278277333, 278277339, 278277368, 278277370, 278277376, 278277407, 278279372, 278279380, 278279409, 278279411, 278279417, 278279448, 278280772, 278281450, 278281458, 278281489, 278284084, 278284092, 278284121, 278284123, 278284129, 278284160, 278286162, 278286170, 278286201, 278290874, 278290882, 278290913, 278321300, 278321308, 278321339, 278368606, 278368614, 278368622, 278368645, 278368653, 278368684, 278491028, 278518031, 278518068, 278518105, 278520109, 278520146, 278522187, 278524821, 278524858, 278526899, 278530568, 278530576, 278530584, 278530605, 278530607, 278530613, 278530615, 278530621, 278530642, 278530644, 278530646, 278530650, 278530652, 278530658, 278530681, 278530683, 278530689, 278530720, 278531611, 278532646, 278532654, 278532662, 278532683, 278532685, 278532691, 278532693, 278532699, 278532722, 278532724, 278532730, 278532761, 278533473, 278533510, 278534046, 278534054, 278534085, 278534724, 278534732, 278534740, 278534763, 278534771, 278534802, 278535551, 278537358, 278537366, 278537374, 278537395, 278537397, 278537403, 278537405, 278537411, 278537434, 278537436, 278537442, 278537473, 278539436, 278539444, 278539452, 278539475, 278539483, 278539514, 278540263, 278544148, 278544156, 278544164, 278544187, 278544195, 278544226, 278561920, 278586850, 278586858, 278586887, 278586889, 278586895, 278586926, 278588928, 278588936, 278588967, 278593640, 278593648, 278593679, 278601460, 278601468, 278601476, 278601497, 278601499, 278601505, 278601507, 278601513, 278601534, 278601536, 278601538, 278601542, 278601544, 278601550, 278601573, 278601575, 278601581, 278601612, 278603538, 278603546, 278603554, 278603575, 278603577, 278603583, 278603585, 278603591, 278603614, 278603616, 278603622, 278603653, 278604938, 278604946, 278604977, 278605616, 278605624, 278605632, 278605655, 278605663, 278605694, 278608250, 278608258, 278608266, 278608287, 278608289, 278608295, 278608297, 278608303, 278608326, 278608328, 278608334, 278608365, 278610328, 278610336, 278610344, 278610367, 278610375, 278610406, 278615040, 278615048, 278615056, 278615079, 278615087, 278615118, 278616902, 278616910, 278616918, 278616939, 278616941, 278616947, 278616949, 278616955, 278616978, 278616980, 278616986, 278617017, 278618980, 278618988, 278618996, 278619019, 278619027, 278619058, 278623692, 278623700, 278623708, 278623731, 278623739, 278623770, 278632344, 278632352, 278632360, 278632383, 278632391, 278632422, 278827587, 278827624, 278829665, 278834377, 278840124, 278840132, 278840140, 278840161, 278840163, 278840169, 278840171, 278840177, 278840200, 278840202, 278840208, 278840239, 278842202, 278842210, 278842218, 278842241, 278842249, 278842280, 278843029, 278846914, 278846922, 278846930, 278846953, 278846961, 278846992, 278849100, 278892118, 278892126, 278892157, 278896406, 278896414, 278896445, 278911016, 278911024, 278911032, 278911053, 278911055, 278911061, 278911063, 278911069, 278911092, 278911094, 278911100, 278911131, 278913094, 278913102, 278913110, 278913133, 278913141, 278913172, 278917806, 278917814, 278917822, 278917845, 278917853, 278917884, 278926458, 278926466, 278926474, 278926497, 278926505, 278926536, 278942188, 278974974, 278974982, 278974990, 278975011, 278975013, 278975019, 278975021, 278975027, 278975050, 278975052, 278975058, 278975089, 278977052, 278977060, 278977068, 278977091, 278977099, 278977130, 278981764, 278981772, 278981780, 278981803, 278981811, 278981842, 279058368, 279058376, 279058405, 279058407, 279058413, 279058442, 279058444, 279058450, 279058481, 279060446, 279060454, 279060483, 279060485, 279060491, 279060522, 279061846, 279062524, 279062532, 279062563, 279065158, 279065166, 279065195, 279065197, 279065203, 279065234, 279067236, 279067244, 279067275, 279071948, 279071956, 279071987, 279137143, 279149680, 279149688, 279149696, 279149719, 279149727, 279149758, 279220572, 279220580, 279220588, 279220611, 279220619, 279220650, 279284530, 279284538, 279284546, 279284569, 279284577, 279284608, 279310154, 279310162, 279310191, 279310193, 279310199, 279310230, 279312232, 279312240, 279312271, 279316944, 279316952, 279316983, 279367924, 279367932, 279367961, 279367963, 279367969, 279368000, 279370002, 279370010, 279370041, 279374714, 279374722, 279374753, 279396488, 279396496, 279396527, 279419918, 279608661, 279608698, 279610739, 279615451, 279619710, 279619718, 279619749, 279621198, 279621206, 279621214, 279621235, 279621237, 279621243, 279621245, 279621251, 279621274, 279621276, 279621282, 279621313, 279623276, 279623284, 279623292, 279623315, 279623323, 279623354, 279624103, 279627988, 279627996, 279628004, 279628027, 279628035, 279628066, 279677480, 279677488, 279677519, 279692090, 279692098, 279692106, 279692127, 279692129, 279692135, 279692137, 279692143, 279692166, 279692168, 279692174, 279692205, 279694168, 279694176, 279694184, 279694207, 279694215, 279694246, 279698880, 279698888, 279698896, 279698919, 279698927, 279698958, 279707532, 279707540, 279707548, 279707571, 279707579, 279707610, 279837954, 279837991, 279840032, 279844744, 279880972, 279880980, 279881009, 279881011, 279881017, 279881048, 279883050, 279883058, 279883089, 279887762, 279887770, 279887801, 279918217, 279924288, 279930754, 279930762, 279930770, 279930793, 279930801, 279930832, 279963828, 279963836, 279963844, 279963865, 279963867, 279963873, 279963875, 279963881, 279963902, 279963904, 279963906, 279963910, 279963912, 279963918, 279963941, 279963943, 279963949, 279963980, 279965906, 279965914, 279965922, 279965943, 279965945, 279965951, 279965953, 279965959, 279965982, 279965984, 279965990, 279966021, 279966733, 279966770, 279967306, 279967314, 279967345, 279967984, 279967992, 279968000, 279968023, 279968031, 279968062, 279968811, 279970618, 279970626, 279970634, 279970655, 279970657, 279970663, 279970665, 279970671, 279970694, 279970696, 279970702, 279970733, 279972696, 279972704, 279972712, 279972735, 279972743, 279972774, 279973523, 279977408, 279977416, 279977424, 279977447, 279977455, 279977486, 280001646, 280001654, 280001662, 280001685, 280001693, 280001724, 280050162, 280050170, 280050178, 280050199, 280050201, 280050207, 280050209, 280050215, 280050238, 280050240, 280050246, 280050277, 280052240, 280052248, 280052256, 280052279, 280052287, 280052318, 280056952, 280056960, 280056968, 280056991, 280056999, 280057030, 280065604, 280065612, 280065620, 280065643, 280065651, 280065682, 280147510, 280148998, 280149006, 280149035, 280149037, 280149043, 280149074, 280151076, 280151084, 280151115, 280155788, 280155796, 280155827, 280190528, 280190536, 280190567, 280273384, 280273392, 280273400, 280273421, 280273423, 280273429, 280273431, 280273437, 280273460, 280273462, 280273468, 280273499, 280275462, 280275470, 280275478, 280275501, 280275509, 280275540, 280276289, 280280174, 280280182, 280280190, 280280213, 280280221, 280280252, 280359718, 280359726, 280359734, 280359757, 280359765, 280359796, 280400784, 280400792, 280400823, 280408772, 280408809, 280410850, 280415562, 280458554, 280458562, 280458593, 280471676, 280471684, 280471715, 280491628, 280491636, 280491665, 280491667, 280491673, 280491702, 280491704, 280491710, 280491741, 280493706, 280493714, 280493743, 280493745, 280493751, 280493782, 280495106, 280495784, 280495792, 280495823, 280498418, 280498426, 280498455, 280498457, 280498463, 280498494, 280500496, 280500504, 280500535, 280505208, 280505216, 280505247, 280582940, 280582948, 280582956, 280582979, 280582987, 280583018, 280699291, 280711828, 280711836, 280711844, 280711867, 280711875, 280711906, 280718328, 280782720, 280782728, 280782736, 280782759, 280782767, 280782798, 280801184, 280801192, 280801221, 280801223, 280801229, 280801260, 280803262, 280803270, 280803301, 280807974, 280807982, 280808013, 280928584, 280955587, 280955624, 280955661, 280957665, 280957702, 280959743, 280962377, 280962414, 280964455, 280969167, 280971602, 280971610, 280971641, 280979590, 280979627, 280981668, 280986380, 280999476, 281039016, 281039024, 281039032, 281039053, 281039055, 281039061, 281039063, 281039069, 281039090, 281039092, 281039094, 281039098, 281039100, 281039106, 281039129, 281039131, 281039137, 281039168, 281041094, 281041102, 281041110, 281041131, 281041133, 281041139, 281041141, 281041147, 281041170, 281041172, 281041178, 281041209, 281041921, 281041958, 281042494, 281042502, 281042533, 281043172, 281043180, 281043188, 281043211, 281043219, 281043250, 281043999, 281045806, 281045814, 281045822, 281045843, 281045845, 281045851, 281045853, 281045859, 281045882, 281045884, 281045890, 281045921, 281047884, 281047892, 281047900, 281047923, 281047931, 281047962, 281048711, 281052596, 281052604, 281052612, 281052635, 281052643, 281052674, 281054458, 281054466, 281054474, 281054495, 281054497, 281054503, 281054505, 281054511, 281054534, 281054536, 281054542, 281054573, 281056536, 281056544, 281056552, 281056575, 281056583, 281056614, 281057363, 281061248, 281061256, 281061264, 281061287, 281061295, 281061326, 281110740, 281110748, 281110779, 281125350, 281125358, 281125366, 281125387, 281125389, 281125395, 281125397, 281125403, 281125426, 281125428, 281125434, 281125465, 281127428, 281127436, 281127444, 281127467, 281127475, 281127506, 281132140, 281132148, 281132156, 281132179, 281132187, 281132218, 281140792, 281140800, 281140808, 281140831, 281140839, 281140870, 281239628, 281239636, 281239667, 281265143, 281265180, 281267221, 281271933, 281289146, 281348572, 281348580, 281348588, 281348609, 281348611, 281348617, 281348619, 281348625, 281348648, 281348650, 281348656, 281348687, 281350650, 281350658, 281350666, 281350689, 281350697, 281350728, 281351477, 281355362, 281355370, 281355378, 281355401, 281355409, 281355440, 281364014, 281364022, 281364030, 281364053, 281364061, 281364092, 281434906, 281434914, 281434922, 281434945, 281434953, 281434984, 281498864, 281498872, 281498880, 281498903, 281498911, 281498942, 281499402, 281566816, 281566824, 281566853, 281566855, 281566861, 281566890, 281566892, 281566898, 281566929, 281568894, 281568902, 281568931, 281568933, 281568939, 281568970, 281570294, 281570972, 281570980, 281571011, 281573606, 281573614, 281573643, 281573645, 281573651, 281573682, 281574699, 281575684, 281575692, 281575723, 281580396, 281580404, 281580435, 281582258, 281582266, 281582295, 281582297, 281582303, 281582334, 281584336, 281584344, 281584375, 281589048, 281589056, 281589087, 281658128, 281658136, 281658144, 281658167, 281658175, 281658206, 281834044, 281834052, 281834083, 281876372, 281876380, 281876409, 281876411, 281876417, 281876448, 281878450, 281878458, 281878489, 281883162, 281883170, 281883201, 281891814, 281891822, 281891853, 282046217, 282046254, 282048295, 282053007, 282070220, 282117109, 282117146, 282119187, 282123899, 282129646, 282129654, 282129662, 282129683, 282129685, 282129691, 282129693, 282129699, 282129722, 282129724, 282129730, 282129761, 282131724, 282131732, 282131740, 282131763, 282131771, 282131802, 282132551, 282136436, 282136444, 282136452, 282136475, 282136483, 282136514, 282145088, 282145096, 282145104, 282145127, 282145135, 282145166, 282185928, 282185936, 282185967, 282200538, 282200546, 282200554, 282200575, 282200577, 282200583, 282200585, 282200591, 282200614, 282200616, 282200622, 282200653, 282202616, 282202624, 282202632, 282202655, 282202663, 282202694, 282207328, 282207336, 282207344, 282207367, 282207375, 282207406, 282215980, 282215988, 282215996, 282216019, 282216027, 282216058, 282355773, 282361844, 282404862, 282404870, 282404901, 282426665, 282439202, 282439210, 282439218, 282439241, 282439249, 282439280, 282487718, 282487726, 282487734, 282487755, 282487757, 282487763, 282487765, 282487771, 282487794, 282487796, 282487802, 282487833, 282489796, 282489804, 282489812, 282489835, 282489843, 282489874, 282490623, 282494508, 282494516, 282494524, 282494547, 282494555, 282494586, 282510094, 282510102, 282510110, 282510133, 282510141, 282510172, 282561791, 282561799, 282561830, 282574052, 282574060, 282574068, 282574091, 282574099, 282574130, 282657446, 282657454, 282657483, 282657485, 282657491, 282657522, 282659524, 282659532, 282659563, 282664236, 282664244, 282664275, 282672888, 282672896, 282672927, 282797274, 282797282, 282797290, 282797313, 282797321, 282797352, 282909232, 282909240, 282909271, 282932662, 282967002, 282967010, 282967041, 283015518, 283015526, 283015555, 283015557, 283015563, 283015594, 283017596, 283017604, 283017635, 283022308, 283022316, 283022347, 283136847, 283207739, 283220276, 283220284, 283220292, 283220315, 283220323, 283220354, 283291168, 283291176, 283291184, 283291207, 283291215, 283291246, 283325074, 283325082, 283325113, 283437032, 283476572, 283476580, 283476588, 283476609, 283476611, 283476617, 283476619, 283476625, 283476646, 283476648, 283476650, 283476654, 283476656, 283476662, 283476685, 283476687, 283476693, 283476724, 283478650, 283478658, 283478666, 283478687, 283478689, 283478695, 283478697, 283478703, 283478726, 283478728, 283478734, 283478765, 283479477, 283479514, 283480050, 283480058, 283480089, 283480728, 283480736, 283480744, 283480767, 283480775, 283480806, 283481555, 283483362, 283483370, 283483378, 283483399, 283483401, 283483407, 283483409, 283483415, 283483438, 283483440, 283483446, 283483477, 283485440, 283485448, 283485456, 283485479, 283485487, 283485518, 283486267, 283490152, 283490160, 283490168, 283490191, 283490199, 283490230, 283503480, 283562906, 283562914, 283562922, 283562943, 283562945, 283562951, 283562953, 283562959, 283562982, 283562984, 283562990, 283563021, 283564984, 283564992, 283565000, 283565023, 283565031, 283565062, 283565811, 283569696, 283569704, 283569712, 283569735, 283569743, 283569774, 283578348, 283578356, 283578364, 283578387, 283578395, 283578426, 283649240, 283649248, 283649256, 283649279, 283649287, 283649318, 283748076, 283748084, 283748115, 283786128, 283786136, 283786144, 283786165, 283786167, 283786173, 283786175, 283786181, 283786204, 283786206, 283786212, 283786243, 283788206, 283788214, 283788222, 283788245, 283788253, 283788284, 283789033, 283792918, 283792926, 283792934, 283792957, 283792965, 283792996, 283872462, 283872470, 283872478, 283872501, 283872509, 283872540, 284004372, 284004380, 284004409, 284004411, 284004417, 284004446, 284004448, 284004454, 284004485, 284006450, 284006458, 284006487, 284006489, 284006495, 284006526, 284007850, 284008528, 284008536, 284008567, 284011162, 284011170, 284011199, 284011201, 284011207, 284011238, 284013240, 284013248, 284013279, 284017952, 284017960, 284017991, 284090706, 284090714, 284090743, 284090745, 284090751, 284090782, 284092784, 284092792, 284092823, 284095684, 284095692, 284095700, 284095723, 284095731, 284095762, 284097496, 284097504, 284097535, 284106148, 284106156, 284106187, 284313928, 284313936, 284313965, 284313967, 284313973, 284314004, 284316006, 284316014, 284316045, 284320718, 284320726, 284320757, 284400262, 284400270, 284400301, 284532172, 284532209, 284532246, 284534250, 284534287, 284536328, 284538962, 284538999, 284541040, 284545752, 284554665, 284554702, 284556743, 284561455, 284567202, 284567210, 284567218, 284567239, 284567241, 284567247, 284567249, 284567255, 284567278, 284567280, 284567286, 284567317, 284569280, 284569288, 284569296, 284569319, 284569327, 284569358, 284570107, 284573992, 284574000, 284574008, 284574031, 284574039, 284574070, 284575190, 284575198, 284575227, 284575229, 284575235, 284575264, 284575266, 284575272, 284575303, 284577268, 284577276, 284577305, 284577307, 284577313, 284577344, 284578668, 284579346, 284579354, 284579385, 284581980, 284581988, 284582017, 284582019, 284582025, 284582056, 284584058, 284584066, 284584097, 284588770, 284588778, 284588809, 284623484, 284623492, 284623523, 284638094, 284638102, 284638110, 284638131, 284638133, 284638139, 284638141, 284638147, 284638170, 284638172, 284638178, 284638209, 284640172, 284640180, 284640188, 284640211, 284640219, 284640250, 284640999, 284644884, 284644892, 284644900, 284644923, 284644931, 284644962, 284653536, 284653544, 284653552, 284653575, 284653583, 284653614, 284724428, 284724436, 284724444, 284724467, 284724475, 284724506, 284841728, 284841765, 284843806, 284848518, 284864221, 284876758, 284876766, 284876774, 284876797, 284876805, 284876836, 284884746, 284884754, 284884783, 284884785, 284884791, 284884822, 284886824, 284886832, 284886863, 284891536, 284891544, 284891575, 284947650, 284947658, 284947666, 284947689, 284947697, 284947728, 285011608, 285011616, 285011624, 285011647, 285011655, 285011686, 285078987, 285079024, 285079061, 285079098, 285081065, 285081102, 285081139, 285083143, 285083180, 285085221, 285085777, 285085814, 285085851, 285087855, 285087892, 285089933, 285092567, 285092604, 285094645, 285095002, 285095010, 285095039, 285095041, 285095047, 285095078, 285097080, 285097088, 285097119, 285099357, 285101792, 285101800, 285101831, 285151284, 285165894, 285165902, 285165931, 285165933, 285165939, 285165970, 285167972, 285167980, 285168011, 285172684, 285172692, 285172723, 285181336, 285181344, 285181375, 285194302, 285194310, 285194341, 285346788, 285346796, 285346827, 285388543, 285388580, 285388617, 285390621, 285390658, 285392699, 285395333, 285395370, 285397411, 285402123, 285404558, 285404566, 285404597, 285475450, 285475458, 285475489, 285539408, 285539416, 285539447, 285622802, 285622839, 285624880, 285629592, 285645295, 285657832, 285657840, 285657848, 285657871, 285657879, 285657910, 285665820, 285665828, 285665857, 285665859, 285665865, 285665896, 285667898, 285667906, 285667937, 285672610, 285672618, 285672649, 285698099, 285698136, 285700177, 285704889, 285716187, 285728724, 285728732, 285728740, 285728763, 285728771, 285728802, 285799616, 285799624, 285799632, 285799655, 285799663, 285799694, 285874588, 285917606, 285917614, 285917645, 285932358, 285975376, 285975384, 285975415, 286000462, 286000470, 286000478, 286000499, 286000501, 286000507, 286000509, 286000515, 286000538, 286000540, 286000546, 286000577, 286002540, 286002548, 286002556, 286002579, 286002587, 286002618, 286003367, 286007252, 286007260, 286007268, 286007291, 286007299, 286007330, 286007655, 286086796, 286086804, 286086812, 286086835, 286086843, 286086874, 286169617, 286169654, 286169691, 286171695, 286171732, 286173773, 286176407, 286176444, 286178485, 286183197, 286185632, 286185640, 286185671, 286256524, 286256532, 286256563, 286310018, 286310026, 286310034, 286310057, 286310065, 286310096, 286445406, 286479173, 286479210, 286481251, 286485963, 286528262, 286528270, 286528299, 286528301, 286528307, 286528338, 286530340, 286530348, 286530379, 286535052, 286535060, 286535091, 286614596, 286614604, 286614635, 286713432, 286756450, 286756458, 286756489, 286788729, 286837818, 286837826, 286837857, 286992221, 286992258, 286994299, 286999011, 287016224, 287056062, 287056099, 287058140, 287062852, 287075650, 287075658, 287075666, 287075687, 287075689, 287075695, 287075697, 287075703, 287075726, 287075728, 287075734, 287075765, 287077728, 287077736, 287077744, 287077767, 287077775, 287077806, 287078555, 287082440, 287082448, 287082456, 287082479, 287082487, 287082518, 287091092, 287091100, 287091108, 287091131, 287091139, 287091170, 287099080, 287099088, 287099117, 287099119, 287099125, 287099156, 287101158, 287101166, 287101197, 287105870, 287105878, 287105909, 287161984, 287161992, 287162000, 287162023, 287162031, 287162062, 287260247, 287260284, 287262325, 287267037, 287301777, 287365618, 287385206, 287385214, 287385222, 287385245, 287385253, 287385284, 287408636, 287408644, 287408675, 287569803, 287602877, 287602914, 287602951, 287603450, 287603458, 287603487, 287603489, 287603495, 287603526, 287604955, 287604992, 287605528, 287605536, 287605567, 287607033, 287609667, 287609704, 287610240, 287610248, 287610279, 287611745, 287616457, 287618892, 287618900, 287618931, 287689784, 287689792, 287689823, 287912433, 287912470, 287913006, 287913014, 287913045, 287914511, 287919223, 288082851, 288131250, 288131287, 288133328, 288138040, 288146692, 288153743, 288166280, 288166288, 288166296, 288166319, 288166327, 288166358, 288170790, 288170798, 288170806, 288170827, 288170829, 288170835, 288170837, 288170843, 288170864, 288170866, 288170868, 288170872, 288170874, 288170880, 288170901, 288170903, 288170905, 288170909, 288170911, 288170917, 288170940, 288170942, 288170948, 288170979, 288172868, 288172876, 288172884, 288172905, 288172907, 288172913, 288172915, 288172921, 288172942, 288172944, 288172946, 288172950, 288172952, 288172958, 288172981, 288172983, 288172989, 288173020, 288174268, 288174276, 288174305, 288174307, 288174313, 288174344, 288174946, 288174954, 288174962, 288174983, 288174985, 288174991, 288174993, 288174999, 288175022, 288175024, 288175030, 288175061, 288176346, 288176354, 288176385, 288177024, 288177032, 288177040, 288177063, 288177071, 288177102, 288177580, 288177588, 288177596, 288177617, 288177619, 288177625, 288177627, 288177633, 288177654, 288177656, 288177658, 288177662, 288177664, 288177670, 288177693, 288177695, 288177701, 288177732, 288179658, 288179666, 288179674, 288179695, 288179697, 288179703, 288179705, 288179711, 288179734, 288179736, 288179742, 288179773, 288181058, 288181066, 288181097, 288181736, 288181744, 288181752, 288181775, 288181783, 288181814, 288184370, 288184378, 288184386, 288184407, 288184409, 288184415, 288184417, 288184423, 288184446, 288184448, 288184454, 288184485, 288186448, 288186456, 288186464, 288186487, 288186495, 288186526, 288189710, 288189718, 288189749, 288191160, 288191168, 288191176, 288191199, 288191207, 288191238, 288221989, 288237172, 288237180, 288237188, 288237211, 288237219, 288237250, 288350877, 288440806, 288480346, 288480354, 288480362, 288480383, 288480385, 288480391, 288480393, 288480399, 288480420, 288480422, 288480424, 288480428, 288480430, 288480436, 288480459, 288480461, 288480467, 288480498, 288482424, 288482432, 288482440, 288482461, 288482463, 288482469, 288482471, 288482477, 288482500, 288482502, 288482508, 288482539, 288483824, 288483832, 288483863, 288484502, 288484510, 288484518, 288484541, 288484549, 288484580, 288487136, 288487144, 288487152, 288487173, 288487175, 288487181, 288487183, 288487189, 288487212, 288487214, 288487220, 288487251, 288489214, 288489222, 288489230, 288489253, 288489261, 288489292, 288493926, 288493934, 288493942, 288493965, 288493973, 288494004, 288524352, 288524360, 288524368, 288524391, 288524399, 288524430, 288678065, 288678102, 288678139, 288680143, 288680180, 288682221, 288684855, 288684892, 288686933, 288691645, 288693507, 288693544, 288694080, 288694088, 288694119, 288695585, 288700297, 288764972, 288764980, 288765011, 288789902, 288789910, 288789918, 288789939, 288789941, 288789947, 288789949, 288789955, 288789978, 288789980, 288789986, 288790017, 288791980, 288791988, 288791996, 288792019, 288792027, 288792058, 288796692, 288796700, 288796708, 288796731, 288796739, 288796770, 288987621, 288987658, 288989699, 288994411, 289003063, 289052152, 289052160, 289052191, 289099458, 289099466, 289099474, 289099497, 289099505, 289099536, 289221880, 289261420, 289261428, 289261436, 289261457, 289261459, 289261465, 289261467, 289261473, 289261494, 289261496, 289261498, 289261502, 289261504, 289261510, 289261533, 289261535, 289261541, 289261572, 289263498, 289263506, 289263514, 289263535, 289263537, 289263543, 289263545, 289263551, 289263574, 289263576, 289263582, 289263613, 289264898, 289264906, 289264937, 289265576, 289265584, 289265592, 289265615, 289265623, 289265654, 289268210, 289268218, 289268226, 289268247, 289268249, 289268255, 289268257, 289268263, 289268286, 289268288, 289268294, 289268325, 289270288, 289270296, 289270304, 289270327, 289270335, 289270366, 289275000, 289275008, 289275016, 289275039, 289275047, 289275078, 289297177, 289513206, 289513214, 289513222, 289513243, 289513245, 289513251, 289513253, 289513259, 289513282, 289513284, 289513290, 289513321, 289515284, 289515292, 289515300, 289515323, 289515331, 289515362, 289516111, 289519996, 289520004, 289520012, 289520035, 289520043, 289520074, 289570976, 289570984, 289570992, 289571013, 289571015, 289571021, 289571023, 289571029, 289571052, 289571054, 289571060, 289571091, 289573054, 289573062, 289573070, 289573093, 289573101, 289573132, 289577766, 289577774, 289577782, 289577805, 289577813, 289577844, 289579952, 289599540, 289599548, 289599556, 289599579, 289599587, 289599618, 289622970, 289622978, 289623009, 289673040, 289768695, 289768732, 289770773, 289775485, 289784137, 289822762, 289822770, 289822778, 289822801, 289822809, 289822840, 289880532, 289880540, 289880548, 289880571, 289880579, 289880610, 290041006, 290041014, 290041043, 290041045, 290041051, 290041082, 290043084, 290043092, 290043123, 290047796, 290047804, 290047835, 290078251, 290126767, 290126804, 290127340, 290127348, 290127379, 290128845, 290133557, 290350562, 290350570, 290350601, 290352050, 290352058, 290352066, 290352087, 290352089, 290352095, 290352097, 290352103, 290352126, 290352128, 290352134, 290352165, 290354128, 290354136, 290354144, 290354167, 290354175, 290354206, 290358840, 290358848, 290358856, 290358879, 290358887, 290358918, 290436323, 290568806, 290568843, 290570884, 290575596, 290591299, 290603836, 290603844, 290603852, 290603875, 290603883, 290603914, 290611824, 290611832, 290611861, 290611863, 290611869, 290611900, 290613902, 290613910, 290613941, 290618614, 290618622, 290618653, 290655140, 290661606, 290661614, 290661622, 290661645, 290661653, 290661684, 290674728, 290674736, 290674744, 290674767, 290674775, 290674806, 290694680, 290694688, 290694696, 290694717, 290694719, 290694725, 290694727, 290694733, 290694754, 290694756, 290694758, 290694762, 290694764, 290694770, 290694793, 290694795, 290694801, 290694832, 290696758, 290696766, 290696774, 290696795, 290696797, 290696803, 290696805, 290696811, 290696834, 290696836, 290696842, 290696873, 290698158, 290698166, 290698197, 290698836, 290698844, 290698852, 290698875, 290698883, 290698914, 290701470, 290701478, 290701486, 290701507, 290701509, 290701515, 290701517, 290701523, 290701546, 290701548, 290701554, 290701585, 290703548, 290703556, 290703564, 290703587, 290703595, 290703626, 290708260, 290708268, 290708276, 290708299, 290708307, 290708338, 290859325, 290878362, 290921380, 290921388, 290921419, 291004236, 291004244, 291004252, 291004273, 291004275, 291004281, 291004283, 291004289, 291004312, 291004314, 291004320, 291004351, 291006314, 291006322, 291006330, 291006353, 291006361, 291006392, 291011026, 291011034, 291011042, 291011065, 291011073, 291011104, 291115621, 291115658, 291115695, 291117699, 291117736, 291119777, 291122411, 291122448, 291124489, 291129201, 291131636, 291131644, 291131675, 291139624, 291139661, 291141702, 291146414, 291201955, 291201992, 291202528, 291202536, 291202567, 291204033, 291208745, 291217397, 291313792, 291313800, 291313808, 291313831, 291313839, 291313870, 291425177, 291425214, 291427255, 291431967, 291442680, 291442688, 291442696, 291442719, 291442727, 291442758, 291449180, 291511511, 291659436, 291686439, 291686476, 291686513, 291688517, 291688554, 291690595, 291693229, 291693266, 291695307, 291700019, 291702454, 291702462, 291702493, 291730328, 291734733, 291769868, 291769876, 291769884, 291769905, 291769907, 291769913, 291769915, 291769921, 291769942, 291769944, 291769946, 291769950, 291769952, 291769958, 291769981, 291769983, 291769989, 291770020, 291771946, 291771954, 291771962, 291771983, 291771985, 291771991, 291771993, 291771999, 291772022, 291772024, 291772030, 291772061, 291773346, 291773354, 291773385, 291774024, 291774032, 291774040, 291774063, 291774071, 291774102, 291776658, 291776666, 291776674, 291776695, 291776697, 291776703, 291776705, 291776711, 291776734, 291776736, 291776742, 291776773, 291778736, 291778744, 291778752, 291778775, 291778783, 291778814, 291783448, 291783456, 291783464, 291783487, 291783495, 291783526, 291785310, 291785318, 291785326, 291785347, 291785349, 291785355, 291785357, 291785363, 291785386, 291785388, 291785394, 291785425, 291787388, 291787396, 291787404, 291787427, 291787435, 291787466, 291792100, 291792108, 291792116, 291792139, 291792147, 291792178, 291995995, 291996032, 291998073, 292002785, 292037096, 292037104, 292037112, 292037135, 292037143, 292037174, 292079424, 292079432, 292079440, 292079461, 292079463, 292079469, 292079471, 292079477, 292079500, 292079502, 292079508, 292079539, 292081502, 292081510, 292081518, 292081541, 292081549, 292081580, 292086214, 292086222, 292086230, 292086253, 292086261, 292086292, 292094866, 292094874, 292094882, 292094905, 292094913, 292094944, 292206251, 292206288, 292208329, 292213041, 292230254, 292277143, 292277180, 292279221, 292283933, 292292585, 292305551, 292388980, 292388988, 292388996, 292389019, 292389027, 292389058, 292515807, 292564896, 292564904, 292564935, 292586699, 292650657, 292777069, 292777106, 292779147, 292783859, 292860498, 292860506, 292860514, 292860535, 292860537, 292860543, 292860545, 292860551, 292860574, 292860576, 292860582, 292860613, 292862576, 292862584, 292862592, 292862615, 292862623, 292862654, 292867288, 292867296, 292867304, 292867327, 292867335, 292867366, 292875940, 292875948, 292875956, 292875979, 292875987, 292876018, 293028855, 293086625, 293092696, 293112284, 293112292, 293112300, 293112323, 293112331, 293112362, 293135714, 293135722, 293135753, 293170054, 293170062, 293170070, 293170093, 293170101, 293170132, 293218570, 293218578, 293218586, 293218607, 293218609, 293218615, 293218617, 293218623, 293218646, 293218648, 293218654, 293218685, 293220648, 293220656, 293220664, 293220687, 293220695, 293220726, 293225360, 293225368, 293225376, 293225399, 293225407, 293225438, 293296881, 293367773, 293528126, 293528134, 293528142, 293528165, 293528173, 293528204, 293639511, 293639548, 293640084, 293640092, 293640123, 293641589, 293646301, 293663514, 293725845, 293867699, 293949067, 293951128, 293951136, 293951144, 293951167, 293951175, 293951206, 294167884, 294207424, 294207432, 294207440, 294207461, 294207463, 294207469, 294207471, 294207477, 294207498, 294207500, 294207502, 294207506, 294207508, 294207514, 294207537, 294207539, 294207545, 294207576, 294209502, 294209510, 294209518, 294209539, 294209541, 294209547, 294209549, 294209555, 294209578, 294209580, 294209586, 294209617, 294210329, 294210366, 294210902, 294210910, 294210941, 294211580, 294211588, 294211596, 294211619, 294211627, 294211658, 294212407, 294214214, 294214222, 294214230, 294214251, 294214253, 294214259, 294214261, 294214267, 294214290, 294214292, 294214298, 294214329, 294216292, 294216300, 294216308, 294216331, 294216339, 294216370, 294217119, 294221004, 294221012, 294221020, 294221043, 294221051, 294221082, 294293758, 294293766, 294293774, 294293795, 294293797, 294293803, 294293805, 294293811, 294293834, 294293836, 294293842, 294293873, 294295836, 294295844, 294295852, 294295875, 294295883, 294295914, 294300548, 294300556, 294300564, 294300587, 294300595, 294300626, 294309200, 294309208, 294309216, 294309239, 294309247, 294309278, 294516980, 294516988, 294516996, 294517017, 294517019, 294517025, 294517027, 294517033, 294517056, 294517058, 294517064, 294517095, 294519058, 294519066, 294519074, 294519097, 294519105, 294519136, 294519885, 294523770, 294523778, 294523786, 294523809, 294523817, 294523848, 294603314, 294603322, 294603330, 294603353, 294603361, 294603392, 294714699, 294714736, 294716777, 294721489, 294730141, 294735224, 294735232, 294735261, 294735263, 294735269, 294735298, 294735300, 294735306, 294735337, 294737302, 294737310, 294737339, 294737341, 294737347, 294737378, 294738702, 294739380, 294739388, 294739419, 294742014, 294742022, 294742051, 294742053, 294742059, 294742090, 294744092, 294744100, 294744131, 294748804, 294748812, 294748843, 294801033, 294826536, 294826544, 294826552, 294826575, 294826583, 294826614, 295024255, 295044780, 295044788, 295044817, 295044819, 295044825, 295044856, 295046858, 295046866, 295046897, 295051570, 295051578, 295051609, 295282039, 295282047, 295282076, 295282078, 295282084, 295282113, 295282115, 295282121, 295282150, 295282152, 295282158, 295282189, 295284117, 295284125, 295284154, 295284156, 295284162, 295284191, 295284193, 295284199, 295284230, 295285517, 295285554, 295286195, 295286203, 295286232, 295286234, 295286240, 295286271, 295287595, 295288273, 295288281, 295288312, 295288829, 295288837, 295288866, 295288868, 295288874, 295288903, 295288905, 295288911, 295288942, 295290907, 295290915, 295290944, 295290946, 295290952, 295290983, 295292307, 295292985, 295292993, 295293024, 295295619, 295295627, 295295656, 295295658, 295295664, 295295695, 295297697, 295297705, 295297736, 295298054, 295298062, 295298070, 295298091, 295298093, 295298099, 295298101, 295298107, 295298130, 295298132, 295298138, 295298169, 295300132, 295300140, 295300148, 295300171, 295300179, 295300210, 295300959, 295302409, 295302417, 295302448, 295304844, 295304852, 295304860, 295304883, 295304891, 295304922, 295354336, 295354344, 295354375, 295368946, 295368954, 295368962, 295368983, 295368985, 295368991, 295368993, 295368999, 295369022, 295369024, 295369030, 295369061, 295371024, 295371032, 295371040, 295371063, 295371071, 295371102, 295375736, 295375744, 295375752, 295375775, 295375783, 295375814, 295384388, 295384396, 295384404, 295384427, 295384435, 295384466, 295549840, 295549848, 295549856, 295549879, 295549887, 295549918, 295591595, 295591603, 295591632, 295591634, 295591640, 295591669, 295591671, 295591677, 295591708, 295593673, 295593681, 295593710, 295593712, 295593718, 295593749, 295595073, 295595751, 295595759, 295595790, 295598385, 295598393, 295598422, 295598424, 295598430, 295598461, 295600463, 295600471, 295600502, 295605175, 295605183, 295605214, 295607610, 295607618, 295607626, 295607649, 295607657, 295607688, 295678502, 295678510, 295678518, 295678541, 295678549, 295678580, 295742460, 295742468, 295742476, 295742499, 295742507, 295742538, 295805329, 295825854, 295825862, 295825891, 295825893, 295825899, 295825930, 295827932, 295827940, 295827971, 295832644, 295832652, 295832683, 295876221, 295901151, 295901159, 295901188, 295901190, 295901196, 295901227, 295903229, 295903237, 295903268, 295907941, 295907949, 295907980, 296077640, 296077648, 296077679, 296135410, 296135418, 296135449, 296163401, 296210707, 296210715, 296210746, 296372669, 296372677, 296372706, 296372708, 296372714, 296372743, 296372745, 296372751, 296372782, 296374747, 296374755, 296374784, 296374786, 296374792, 296374823, 296376147, 296376825, 296376833, 296376864, 296379459, 296379467, 296379496, 296379498, 296379504, 296379535, 296381537, 296381545, 296381576, 296386249, 296386257, 296386288, 296388684, 296388692, 296388700, 296388723, 296388731, 296388762, 296459576, 296459584, 296459592, 296459615, 296459623, 296459654, 296605440, 296648458, 296648466, 296648497, 296682225, 296682233, 296682262, 296682264, 296682270, 296682301, 296684303, 296684311, 296684342, 296689015, 296689023, 296689054, 296731314, 296731322, 296731330, 296731351, 296731353, 296731359, 296731361, 296731367, 296731390, 296731392, 296731398, 296731429, 296733392, 296733400, 296733408, 296733431, 296733439, 296733470, 296734219, 296738104, 296738112, 296738120, 296738143, 296738151, 296738182, 296817648, 296817656, 296817664, 296817687, 296817695, 296817726, 296916484, 296916492, 296916523, 296991781, 296991789, 296991820, 297040870, 297040878, 297040886, 297040909, 297040917, 297040948, 297152255, 297152292, 297154333, 297159045, 297176258, 297238589, 297259114, 297259122, 297259151, 297259153, 297259159, 297259190, 297261192, 297261200, 297261231, 297265904, 297265912, 297265943, 297461811, 297463299, 297463307, 297463336, 297463338, 297463344, 297463375, 297465377, 297465385, 297465416, 297470089, 297470097, 297470128, 297568670, 297568678, 297568709, 297723073, 297723110, 297725151, 297729863, 297747076, 297772855, 297772863, 297772894, 297805929, 297805937, 297805966, 297805968, 297805974, 297806003, 297806005, 297806011, 297806042, 297806502, 297806510, 297806518, 297806539, 297806541, 297806547, 297806549, 297806555, 297806578, 297806580, 297806586, 297806617, 297808007, 297808015, 297808044, 297808046, 297808052, 297808083, 297808580, 297808588, 297808596, 297808619, 297808627, 297808658, 297809407, 297810085, 297810093, 297810124, 297812719, 297812727, 297812756, 297812758, 297812764, 297812795, 297813292, 297813300, 297813308, 297813331, 297813339, 297813370, 297814797, 297814805, 297814836, 297819509, 297819517, 297819548, 297821944, 297821952, 297821960, 297821983, 297821991, 297822022, 297892836, 297892844, 297892852, 297892875, 297892883, 297892914, 298032629, 298115485, 298115493, 298115522, 298115524, 298115530, 298115561, 298116058, 298116066, 298116074, 298116097, 298116105, 298116136, 298117563, 298117571, 298117602, 298122275, 298122283, 298122314, 298242885, 298313777, 298334302, 298334310, 298334339, 298334341, 298334347, 298334378, 298336380, 298336388, 298336419, 298341092, 298341100, 298341131, 298349744, 298349752, 298349783, 298425041, 298425049, 298425080, 298553929, 298553937, 298553968, 298643858, 298643866, 298643897, 298813703, 298881117, 298881125, 298881154, 298881156, 298881162, 298881191, 298881193, 298881199, 298881230, 298883195, 298883203, 298883232, 298883234, 298883240, 298883271, 298884595, 298885273, 298885281, 298885312, 298887907, 298887915, 298887944, 298887946, 298887952, 298887983, 298889985, 298889993, 298890024, 298894697, 298894705, 298894736, 298896559, 298896567, 298896596, 298896598, 298896604, 298896635, 298897132, 298897140, 298897148, 298897171, 298897179, 298897210, 298898637, 298898645, 298898676, 298903349, 298903357, 298903388, 298968024, 298968032, 298968040, 298968063, 298968071, 298968102, 299190673, 299190681, 299190710, 299190712, 299190718, 299190749, 299192751, 299192759, 299192790, 299197463, 299197471, 299197502, 299206115, 299206123, 299206154, 299255204, 299255212, 299255220, 299255243, 299255251, 299255282, 299424932, 299424940, 299424971, 299500229, 299500237, 299500268, 299676145, 299783004, 299783012, 299783043, 299971747, 299971755, 299971784, 299971786, 299971792, 299971823, 299973825, 299973833, 299973864, 299978537, 299978545, 299978576, 299987189, 299987197, 299987228, 300244058, 300244066, 300244074, 300244095, 300244097, 300244103, 300244105, 300244111, 300244134, 300244136, 300244142, 300244173, 300246136, 300246144, 300246152, 300246175, 300246183, 300246214, 300246963, 300250848, 300250856, 300250864, 300250887, 300250895, 300250926, 300281303, 300281311, 300281342, 300329819, 300329827, 300329856, 300329858, 300329864, 300329895, 300330392, 300330400, 300330408, 300330431, 300330439, 300330470, 300331897, 300331905, 300331936, 300336609, 300336617, 300336648, 300553614, 300553622, 300553630, 300553653, 300553661, 300553692, 300639375, 300639383, 300639414, 300751333, 300771858, 300771866, 300771895, 300771897, 300771903, 300771934, 300773936, 300773944, 300773975, 300778648, 300778656, 300778687, 300858192, 300858200, 300858231, 301062377, 301062385, 301062416, 301081414, 301081422, 301081453, 301299658, 301299695, 301301736, 301306448, 301318673, 301318681, 301318710, 301318712, 301318718, 301318747, 301318749, 301318755, 301318786, 301320751, 301320759, 301320788, 301320790, 301320796, 301320827, 301322151, 301322829, 301322837, 301322868, 301325463, 301325471, 301325500, 301325502, 301325508, 301325539, 301327541, 301327549, 301327580, 301332253, 301332261, 301332292, 301334688, 301334696, 301334704, 301334727, 301334735, 301334766, 301342676, 301342684, 301342713, 301342715, 301342721, 301342752, 301344754, 301344762, 301344793, 301349466, 301349474, 301349505, 301405007, 301405015, 301405044, 301405046, 301405052, 301405083, 301405580, 301405588, 301405596, 301405619, 301405627, 301405658, 301407085, 301407093, 301407124, 301411797, 301411805, 301411836, 301420449, 301420457, 301420488, 301609214, 301628229, 301628237, 301628266, 301628268, 301628274, 301628305, 301630307, 301630315, 301630346, 301635019, 301635027, 301635058, 301652232, 301652240, 301652271, 301714563, 301714571, 301714602, 301846473, 301846510, 301846547, 301848551, 301848588, 301850629, 301853263, 301853300, 301855341, 301860053, 301862488, 301862496, 301862527, 301933380, 301933388, 301933419, 301937785, 301937793, 301937824, 302156029, 302156066, 302158107, 302162819, 302390288, 302409303, 302409311, 302409340, 302409342, 302409348, 302409379, 302411381, 302411389, 302411420, 302416093, 302416101, 302416132, 302433306, 302433314, 302433345, 302465585, 302480195, 302480203, 302480232, 302480234, 302480240, 302480271, 302482273, 302482281, 302482312, 302486985, 302486993, 302487024, 302495637, 302495645, 302495676, 302718859, 302718867, 302718898, 302767948, 302767956, 302767964, 302767987, 302767995, 302768026, 302789751, 302789759, 302789790, 302853709, 302853717, 302853748, 302937103, 302937140, 302939181, 302943893, 303188889, 303246659, 303295748, 303295756, 303295787, 303499933, 303499941, 303499972, 303570825, 303570833, 303570864, 303759707, 303823548, 303842563, 303842571, 303842600, 303842602, 303842608, 303842639, 303843136, 303843144, 303843152, 303843175, 303843183, 303843214, 303844641, 303844649, 303844680, 303849353, 303849361, 303849392, 303866566, 303866574, 303866605, 303928897, 303928905, 303928936, 304027733, 304152119, 304152127, 304152158, 304370363, 304370400, 304370936, 304370944, 304370975, 304372441, 304377153, 304679919, 304898736, 304917751, 304917759, 304917788, 304917790, 304917796, 304917827, 304919829, 304919837, 304919868, 304924541, 304924549, 304924580, 304933193, 304933201, 304933232, 304938276, 304938284, 304938292, 304938313, 304938315, 304938321, 304938323, 304938329, 304938350, 304938352, 304938354, 304938358, 304938360, 304938366, 304938389, 304938391, 304938397, 304938428, 304940354, 304940362, 304940370, 304940391, 304940393, 304940399, 304940401, 304940407, 304940430, 304940432, 304940438, 304940469, 304941754, 304941762, 304941793, 304942432, 304942440, 304942448, 304942471, 304942479, 304942510, 304945066, 304945074, 304945082, 304945103, 304945105, 304945111, 304945113, 304945119, 304945142, 304945144, 304945150, 304945181, 304947144, 304947152, 304947160, 304947183, 304947191, 304947222, 304951856, 304951864, 304951872, 304951895, 304951903, 304951934, 305004085, 305004093, 305004124, 305227307, 305227315, 305227346, 305247832, 305247840, 305247848, 305247869, 305247871, 305247877, 305247879, 305247885, 305247908, 305247910, 305247916, 305247947, 305249910, 305249918, 305249926, 305249949, 305249957, 305249988, 305254622, 305254630, 305254638, 305254661, 305254669, 305254700, 305445551, 305445588, 305447629, 305452341, 305460993, 305557388, 305557396, 305557404, 305557427, 305557435, 305557466, 305755107, 306008381, 306008389, 306008420, 306028906, 306028914, 306028922, 306028943, 306028945, 306028951, 306028953, 306028959, 306028982, 306028984, 306028990, 306029021, 306030984, 306030992, 306031000, 306031023, 306031031, 306031062, 306035696, 306035704, 306035712, 306035735, 306035743, 306035774, 306079273, 306079281, 306079312, 306280692, 306280700, 306280708, 306280731, 306280739, 306280770, 306338462, 306338470, 306338478, 306338501, 306338509, 306338540, 306366453, 306366461, 306366492, 306536181, 306808492, 306808500, 306808531, 306894253, 307119536, 307119544, 307119552, 307119575, 307119583, 307119614, 307336292, 307355307, 307355315, 307355344, 307355346, 307355352, 307355383, 307357385, 307357393, 307357424, 307362097, 307362105, 307362136, 307379310, 307379318, 307379349, 307441641, 307441649, 307441680, 307462166, 307462174, 307462182, 307462203, 307462205, 307462211, 307462213, 307462219, 307462242, 307462244, 307462250, 307462281, 307464244, 307464252, 307464260, 307464283, 307464291, 307464322, 307468956, 307468964, 307468972, 307468995, 307469003, 307469034, 307664863, 307664871, 307664902, 307771722, 307771730, 307771738, 307771761, 307771769, 307771800, 307883107, 307883144, 307885185, 307889897, 307907110, 307969441, 308192663, 308445937, 308445945, 308445976, 308453925, 308453962, 308456003, 308460715, 308516829, 308516837, 308516868, 308537354, 308537362, 308537370, 308537391, 308537393, 308537399, 308537401, 308537407, 308537430, 308537432, 308537438, 308537469, 308539432, 308539440, 308539448, 308539471, 308539479, 308539510, 308544144, 308544152, 308544160, 308544183, 308544191, 308544222, 308552796, 308552804, 308552812, 308552835, 308552843, 308552874, 308763481, 308846910, 308846918, 308846926, 308846949, 308846957, 308846988, 308973737, 309044629, 309544555, 309627984, 309627992, 309628000, 309628023, 309628031, 309628062, 309879197, 309879205, 309879236, 309986056, 309986064, 309986072, 309986095, 309986103, 309986134, 310406997, 310467324, 310467361, 310467398, 310467435, 310469402, 310469439, 310469476, 310471480, 310471517, 310473558, 310474114, 310474151, 310474188, 310476192, 310476229, 310478270, 310480904, 310480941, 310482982, 310487694, 310776880, 310776917, 310776954, 310778958, 310778995, 310781036, 310783670, 310783707, 310785748, 310790460, 310954385, 310954393, 310954424, 310974910, 310974918, 310974926, 310974947, 310974949, 310974955, 310974957, 310974963, 310974986, 310974988, 310974994, 310975025, 310976988, 310976996, 310977004, 310977027, 310977035, 310977066, 310977815, 310981700, 310981708, 310981716, 310981739, 310981747, 310981778, 311061244, 311061252, 311061260, 311061283, 311061291, 311061322, 311086436, 311086473, 311088514, 311093226, 311284466, 311284474, 311284482, 311284505, 311284513, 311284544, 311395992, 311482185, 311502710, 311502718, 311502747, 311502749, 311502755, 311502786, 311504788, 311504796, 311504827, 311509500, 311509508, 311509539, 311557954, 311557991, 311558028, 311560032, 311560069, 311562110, 311564744, 311564781, 311566822, 311571534, 311812266, 311812274, 311812305, 311867510, 311867547, 311869588, 311874300, 312049525, 312049533, 312049562, 312049564, 312049570, 312049599, 312049601, 312049607, 312049638, 312051603, 312051611, 312051640, 312051642, 312051648, 312051679, 312053003, 312053681, 312053689, 312053720, 312056315, 312056323, 312056352, 312056354, 312056360, 312056391, 312058393, 312058401, 312058432, 312063105, 312063113, 312063144, 312065540, 312065548, 312065556, 312065579, 312065587, 312065618, 312136432, 312136440, 312136448, 312136471, 312136479, 312136510, 312177066, 312359081, 312359089, 312359118, 312359120, 312359126, 312359157, 312361159, 312361167, 312361198, 312365871, 312365879, 312365910, 312593340, 312593348, 312593379, 312648584, 312648621, 312650662, 312655374, 312668637, 312668645, 312668676, 312958140, 312991214, 312991251, 312991288, 312993292, 312993329, 312995370, 312998004, 312998041, 313000082, 313004794, 313140155, 313140163, 313140192, 313140194, 313140200, 313140231, 313142233, 313142241, 313142272, 313146945, 313146953, 313146984, 313300770, 313300807, 313302848, 313307560, 313391941, 313391949, 313391980, 313449711, 313449719, 313449750, 313498800, 313498808, 313498816, 313498839, 313498847, 313498878, 313610326, 313739214, 313919741, 314026600, 314026608, 314026639, 314066402, 314066439, 314066476, 314068480, 314068517, 314070558, 314073192, 314073229, 314075270, 314079982, 314081844, 314081881, 314083922, 314088634, 314230785, 314230793, 314230824, 314375958, 314375995, 314378036, 314382748, 314391400, 314490559, 314573415, 314573423, 314573452, 314573454, 314573460, 314573491, 314573988, 314573996, 314574004, 314574027, 314574035, 314574066, 314575493, 314575501, 314575532, 314580205, 314580213, 314580244, 314685514, 314882971, 314882979, 314883010, 315101788, 315101796, 315101827, 315157032, 315157069, 315159110, 315163822, 315172474, 315466588, 315515104, 315515141, 315517182, 315521894, 315648603, 315648611, 315648640, 315648642, 315648648, 315648679, 315650681, 315650689, 315650720, 315655393, 315655401, 315655432, 315664045, 315664053, 315664084, 315824660, 315958159, 315958167, 315958198, 316247662, 316503958, 316503995, 316504032, 316506036, 316506073, 316508114, 316510748, 316510785, 316512826, 316517538, 316590292, 316590329, 316592370, 316597082, 316605734, 316739233, 316739241, 316739272, 316813514, 316813551, 316815592, 316820304, 316899848, 317011544, 317011552, 317011560, 317011583, 317011591, 317011622, 317097305, 317097313, 317097344, 317123070, 317539344, 317539352, 317539383, 317594588, 317594625, 317596666, 317601378, 317665480, 317665517, 317667558, 317672270, 317680922, 317904144, 317975036, 318038994, 318067144, 318086159, 318086167, 318086196, 318086198, 318086204, 318086235, 318088237, 318088245, 318088276, 318092949, 318092957, 318092988, 318110162, 318110170, 318110201, 318172493, 318172501, 318172532, 318395715, 318395723, 318395754, 318613959, 318613996, 318616037, 318620749, 318685218, 318756110, 318923515, 319027848, 319027885, 319029926, 319034638, 319114182, 319160774, 319160811, 319160848, 319162852, 319162889, 319164930, 319167564, 319167601, 319169642, 319174354, 319176789, 319176797, 319176828, 319247681, 319247689, 319247720, 319337404, 319470330, 319470367, 319472408, 319477120, 319704589, 319779886, 320103036, 320103073, 320105114, 320109826, 320118478, 320189370, 320251404, 320251441, 320253482, 320258194, 320412592, 320560960, 320610049, 320610057, 320610088, 320627358, 320627395, 320627432, 320627469, 320629436, 320629473, 320629510, 320631514, 320631551, 320633592, 320634148, 320634185, 320634222, 320636226, 320636263, 320638304, 320640938, 320640975, 320643016, 320647728, 320936914, 320936951, 320936988, 320938992, 320939029, 320941070, 320943704, 320943741, 320945782, 320950494, 321137849, 321193666, 321246470, 321246507, 321248548, 321253260, 321264558, 321342034, 321551738, 321556026, 321684664, 321684701, 321685237, 321685245, 321685276, 321686742, 321691454, 321705762, 321705770, 321705778, 321705799, 321705801, 321705807, 321705809, 321705815, 321705838, 321705840, 321705846, 321705877, 321707840, 321707848, 321707856, 321707879, 321707887, 321707918, 321712552, 321712560, 321712568, 321712591, 321712599, 321712630, 321717988, 321718025, 321718062, 321720066, 321720103, 321722144, 321724778, 321724815, 321726856, 321731568, 321994220, 322015318, 322015326, 322015334, 322015357, 322015365, 322015396, 322027544, 322027581, 322029622, 322034334, 322213037, 322337100, 322540592, 322540629, 322542670, 322547382, 322626926, 322759852, 322759889, 322761930, 322766642, 322775294, 322796392, 322796400, 322796408, 322796431, 322796439, 322796470, 322808618, 322808655, 322810696, 322815408, 322850148, 323069408, 323118174, 323151248, 323151285, 323151322, 323153326, 323153363, 323155404, 323158038, 323158075, 323160116, 323164828, 323460804, 323460841, 323462882, 323467594, 323631222, 323702114, 323770360, 323850482, 323899248, 324122793, 324122801, 324122832, 324208554, 324226436, 324226473, 324226510, 324228514, 324228551, 324229652, 324229660, 324229668, 324229691, 324229699, 324229730, 324230592, 324233226, 324233263, 324235304, 324240016, 324241878, 324241915, 324243956, 324248668, 324535992, 324536029, 324538070, 324542782, 324551434, 324650593, 324845548, 325064482, 325197408, 325197445, 325199486, 325204198, 325221411, 325283742, 325304840, 325304848, 325304856, 325304879, 325304887, 325304918, 325317066, 325317103, 325319144, 325323856, 325332508, 325506964, 325626622, 325675138, 325675175, 325677216, 325681928, 325984694, 326139670, 326288038, 326358930, 326407696, 326663992, 326664029, 326664066, 326666070, 326666107, 326668148, 326670782, 326670819, 326672860, 326677572, 326750326, 326750363, 326752404, 326757116, 326765768, 326973548, 326973585, 326975626, 326980338, 327059882, 327234810, 327234847, 327234884, 327236888, 327236925, 327238966, 327241600, 327241637, 327243678, 327248390, 327283104, 327544366, 327544403, 327546444, 327551156, 327721298, 327742396, 327742404, 327742412, 327742435, 327742443, 327742474, 327754622, 327754659, 327756700, 327761412, 327825514, 327825551, 327827592, 327832304, 327840956, 327853922, 328064178, 328135070, 328199028, 328270196, 328270204, 328270235, 328325440, 328325477, 328327518, 328332230, 328577226, 328634996, 328796486, 328817011, 328817019, 328817048, 328817050, 328817056, 328817087, 328819089, 328819097, 328819128, 328823801, 328823809, 328823840, 328845252, 328916144, 329126567, 329126575, 329126606, 329187882, 329187919, 329189960, 329194672, 329274216, 329416070, 329497438, 329758700, 329758737, 329760778, 329765490, 329907641, 329907649, 329907680, 330068256, 330263070, 330263107, 330265148, 330269860, 330278512, 330349404, 330572626, 330787392, 330787429, 330787466, 330787503, 330789470, 330789507, 330789544, 330791548, 330791585, 330793626, 330794182, 330794219, 330794256, 330796260, 330796297, 330798338, 330800972, 330801009, 330803050, 330807762, 330830410, 330830418, 330830447, 330830449, 330830455, 330830484, 330830486, 330830492, 330830521, 330830523, 330830529, 330830560, 330832488, 330832496, 330832525, 330832527, 330832533, 330832562, 330832564, 330832570, 330832601, 330833888, 330833925, 330834566, 330834574, 330834603, 330834605, 330834611, 330834642, 330835966, 330836644, 330836652, 330836683, 330837200, 330837208, 330837237, 330837239, 330837245, 330837274, 330837276, 330837282, 330837313, 330839278, 330839286, 330839315, 330839317, 330839323, 330839354, 330840678, 330841356, 330841364, 330841395, 330843990, 330843998, 330844027, 330844029, 330844035, 330844066, 330846068, 330846076, 330846107, 330849330, 330850780, 330850788, 330850819, 331096948, 331096985, 331097022, 331099026, 331099063, 331101104, 331103738, 331103775, 331105816, 331110528, 331139966, 331139974, 331140003, 331140005, 331140011, 331140040, 331140042, 331140048, 331140079, 331142044, 331142052, 331142081, 331142083, 331142089, 331142120, 331143444, 331144122, 331144130, 331144161, 331146756, 331146764, 331146793, 331146795, 331146801, 331146832, 331148834, 331148842, 331148873, 331153546, 331153554, 331153585, 331234042, 331340901, 331340909, 331340940, 331353700, 331406504, 331406541, 331408582, 331413294, 331424592, 331449522, 331449530, 331449559, 331449561, 331449567, 331449598, 331451600, 331451608, 331451639, 331456312, 331456320, 331456351, 331711772, 331716060, 331759078, 331759086, 331759117, 331878022, 331878059, 331878096, 331880100, 331880137, 331882178, 331884812, 331884849, 331886890, 331891602, 331921040, 331921048, 331921077, 331921079, 331921085, 331921114, 331921116, 331921122, 331921153, 331923118, 331923126, 331923155, 331923157, 331923163, 331923194, 331924518, 331925196, 331925204, 331925235, 331927830, 331927838, 331927867, 331927869, 331927875, 331927906, 331929908, 331929916, 331929947, 331934620, 331934628, 331934659, 332187578, 332187615, 332189656, 332194368, 332230596, 332230604, 332230633, 332230635, 332230641, 332230672, 332232674, 332232682, 332232713, 332237386, 332237394, 332237425, 332282590, 332416089, 332416097, 332416128, 332497134, 332540152, 332540160, 332540191, 332700626, 332700663, 332702704, 332707416, 332786960, 332968652, 332968689, 332970730, 332975442, 333010182, 333011670, 333011678, 333011707, 333011709, 333011715, 333011746, 333013748, 333013756, 333013787, 333018460, 333018468, 333018499, 333271444, 333271481, 333273522, 333278208, 333278234, 333311282, 333311319, 333311356, 333313360, 333313397, 333315438, 333318072, 333318109, 333320150, 333321226, 333321234, 333321265, 333324862, 333354300, 333354308, 333354337, 333354339, 333354345, 333354374, 333354376, 333354382, 333354413, 333356378, 333356386, 333356415, 333356417, 333356423, 333356454, 333357778, 333358456, 333358464, 333358495, 333361090, 333361098, 333361127, 333361129, 333361135, 333361166, 333363168, 333363176, 333363207, 333367880, 333367888, 333367919, 333581000, 333620838, 333620875, 333622916, 333627628, 333663856, 333663864, 333663893, 333663895, 333663901, 333663932, 333665934, 333665942, 333665973, 333670646, 333670654, 333670685, 333791256, 333862148, 333930394, 333973412, 333973420, 333973451, 334059282, 334102300, 334102308, 334102339, 334362074, 334386470, 334386507, 334386544, 334388548, 334388585, 334390626, 334393260, 334393297, 334395338, 334400050, 334401912, 334401949, 334403990, 334408702, 334429488, 334429496, 334429525, 334429527, 334429533, 334429562, 334429564, 334429570, 334429601, 334431566, 334431574, 334431603, 334431605, 334431611, 334431642, 334432966, 334433644, 334433652, 334433683, 334436278, 334436286, 334436315, 334436317, 334436323, 334436354, 334438356, 334438364, 334438395, 334443068, 334443076, 334443107, 334444930, 334444938, 334444967, 334444969, 334444975, 334445006, 334447008, 334447016, 334447047, 334451720, 334451728, 334451759, 334696026, 334696063, 334698104, 334702816, 334711468, 334739044, 334739052, 334739081, 334739083, 334739089, 334739120, 334741122, 334741130, 334741161, 334745834, 334745842, 334745873, 334754486, 334754494, 334754525, 334853645, 334853653, 334853684, 335005582, 335048600, 335048608, 335048639, 335224516, 335381445, 335477100, 335477137, 335479178, 335483890, 335492542, 335520118, 335520126, 335520155, 335520157, 335520163, 335520194, 335522196, 335522204, 335522235, 335526908, 335526916, 335526947, 335535560, 335535568, 335535599, 335786656, 335795334, 335829674, 335829682, 335829713, 335835172, 335835209, 335837250, 335841962, 335878190, 335878198, 335878227, 335878229, 335878235, 335878266, 335880268, 335880276, 335880307, 335884980, 335884988, 335885019, 335928260, 335928297, 335930338, 335935050, 336144728, 336187746, 336187754, 336187785, 336237816, 336299704, 336567730, 336610748, 336610756, 336610787, 336824026, 336824063, 336824100, 336826104, 336826141, 336828182, 336830816, 336830853, 336832894, 336837606, 336867044, 336867052, 336867081, 336867083, 336867089, 336867118, 336867120, 336867126, 336867157, 336869122, 336869130, 336869159, 336869161, 336869167, 336869198, 336870522, 336871200, 336871208, 336871239, 336873834, 336873842, 336873871, 336873873, 336873879, 336873910, 336875912, 336875920, 336875951, 336880624, 336880632, 336880663, 336910360, 336910397, 336912438, 336917150, 336925802, 336953378, 336953386, 336953415, 336953417, 336953423, 336953454, 336955456, 336955464, 336955495, 336960168, 336960176, 336960207, 336968820, 336968828, 336968859, 337018890, 337133582, 337133619, 337135660, 337140372, 337176600, 337176608, 337176637, 337176639, 337176645, 337176676, 337178678, 337178686, 337178717, 337183390, 337183398, 337183429, 337219916, 337262934, 337262942, 337262973, 337394844, 337394881, 337394918, 337396922, 337396959, 337399000, 337401634, 337401671, 337403712, 337408424, 337443138, 337486156, 337486164, 337486195, 337704400, 337704437, 337706478, 337711190, 337914656, 337914693, 337916734, 337921446, 337957674, 337957682, 337957711, 337957713, 337957719, 337957750, 337959752, 337959760, 337959791, 337964464, 337964472, 337964503, 337985548, 337985585, 337987626, 337992338, 338000990, 338013956, 338028566, 338028574, 338028603, 338028605, 338028611, 338028642, 338030644, 338030652, 338030683, 338035356, 338035364, 338035395, 338044008, 338044016, 338044047, 338224212, 338267230, 338267238, 338267269, 338295104, 338338122, 338338130, 338338161, 338359062, 338402080, 338402088, 338402119, 338452150, 338473248, 338473256, 338473264, 338473287, 338473295, 338473326, 338485474, 338485511, 338487552, 338492264, 338737260, 338795030, 339005286, 339048304, 339048312, 339048343, 339076178, 339119196, 339119204, 339119235, 339308078, 339347916, 339347953, 339349994, 339354706, 339390934, 339390942, 339390971, 339390973, 339390979, 339391010, 339393012, 339393020, 339393051, 339397724, 339397732, 339397763, 339434250, 339477268, 339477276, 339477307, 339527338, 339576104, 339657472, 339700490, 339700498, 339700529, 339918734, 339918771, 339920812, 339925524, 340228290, 340423104, 340423141, 340425182, 340429894, 340438546, 340466122, 340466130, 340466159, 340466161, 340466167, 340466198, 340468200, 340468208, 340468239, 340472912, 340472920, 340472951, 340481564, 340481572, 340481603, 340509438, 340552456, 340552464, 340552495, 340732660, 340775678, 340775686, 340775717, 340990444, 340990452, 340990481, 340990483, 340990489, 340990518, 340990520, 340990526, 340990555, 340990557, 340990563, 340990594, 340992522, 340992530, 340992559, 340992561, 340992567, 340992596, 340992598, 340992604, 340992635, 340993922, 340993959, 340994600, 340994608, 340994637, 340994639, 340994645, 340994676, 340996000, 340996678, 340996686, 340996717, 340997234, 340997242, 340997271, 340997273, 340997279, 340997308, 340997310, 340997316, 340997347, 340999312, 340999320, 340999349, 340999351, 340999357, 340999388, 341000712, 341001390, 341001398, 341001429, 341004024, 341004032, 341004061, 341004063, 341004069, 341004100, 341006102, 341006110, 341006141, 341009364, 341010814, 341010822, 341010853, 341300000, 341300008, 341300037, 341300039, 341300045, 341300074, 341300076, 341300082, 341300113, 341302078, 341302086, 341302115, 341302117, 341302123, 341302154, 341303478, 341304156, 341304164, 341304195, 341306790, 341306798, 341306827, 341306829, 341306835, 341306866, 341308868, 341308876, 341308907, 341313580, 341313588, 341313619, 341513734, 341556752, 341556760, 341556791, 341584626, 341609556, 341609564, 341609593, 341609595, 341609601, 341609632, 341611634, 341611642, 341611673, 341616346, 341616354, 341616385, 341627644, 341627652, 341627683, 341871806, 341914824, 341914832, 341914863, 341919112, 341919120, 341919151, 341964894, 342081074, 342081082, 342081111, 342081113, 342081119, 342081148, 342081150, 342081156, 342081187, 342083152, 342083160, 342083189, 342083191, 342083197, 342083228, 342084552, 342085230, 342085238, 342085269, 342087864, 342087872, 342087901, 342087903, 342087909, 342087940, 342089942, 342089950, 342089981, 342094654, 342094662, 342094693, 342390630, 342390638, 342390667, 342390669, 342390675, 342390706, 342392708, 342392716, 342392747, 342397420, 342397428, 342397459, 342442624, 342700186, 342700194, 342700225, 342860660, 342860697, 342862738, 342867450, 342903678, 342903686, 342903715, 342903717, 342903723, 342903754, 342905756, 342905764, 342905795, 342910468, 342910476, 342910507, 342946994, 342990012, 342990020, 342990051, 343170216, 343171704, 343171712, 343171741, 343171743, 343171749, 343171780, 343173782, 343173790, 343173821, 343178494, 343178502, 343178533, 343213234, 343213242, 343213273, 343431478, 343431515, 343433556, 343438268, 343481260, 343481268, 343481299, 343514334, 343514342, 343514371, 343514373, 343514379, 343514408, 343514410, 343514416, 343514447, 343516412, 343516420, 343516449, 343516451, 343516457, 343516488, 343517812, 343518490, 343518498, 343518529, 343521124, 343521132, 343521161, 343521163, 343521169, 343521200, 343523202, 343523210, 343523241, 343527914, 343527922, 343527953, 343741034, 343823890, 343823898, 343823927, 343823929, 343823935, 343823966, 343825968, 343825976, 343826007, 343830680, 343830688, 343830719, 343951290, 343994308, 343994316, 343994347, 344002296, 344002333, 344004374, 344009086, 344022182, 344065200, 344065208, 344065239, 344133446, 344133454, 344133485, 344262334, 344262342, 344262373, 344311852, 344522108, 344589522, 344589530, 344589559, 344589561, 344589567, 344589596, 344589598, 344589604, 344589635, 344591600, 344591608, 344591637, 344591639, 344591645, 344591676, 344593000, 344593678, 344593686, 344593717, 344596312, 344596320, 344596349, 344596351, 344596357, 344596388, 344598390, 344598398, 344598429, 344603102, 344603110, 344603141, 344604964, 344604972, 344605001, 344605003, 344605009, 344605040, 344607042, 344607050, 344607081, 344611754, 344611762, 344611793, 344899078, 344899086, 344899115, 344899117, 344899123, 344899154, 344901156, 344901164, 344901195, 344905868, 344905876, 344905907, 344914520, 344914528, 344914559, 345092926, 345208634, 345208642, 345208673, 345384550, 345427568, 345427576, 345427607, 345584497, 345584505, 345584536, 345680152, 345680160, 345680189, 345680191, 345680197, 345680228, 345682230, 345682238, 345682269, 345686942, 345686950, 345686981, 345695594, 345695602, 345695633, 345955368, 345989708, 345989716, 345989747, 346015695, 346015732, 346015769, 346015806, 346017773, 346017810, 346017847, 346019851, 346019888, 346021929, 346022485, 346022522, 346022559, 346024563, 346024600, 346026641, 346029275, 346029312, 346031353, 346036065, 346038224, 346038232, 346038261, 346038263, 346038269, 346038300, 346040302, 346040310, 346040341, 346045014, 346045022, 346045053, 346325251, 346325288, 346325325, 346327329, 346327366, 346329407, 346332041, 346332078, 346334119, 346338831, 346347780, 346347788, 346347819, 346459738, 346502756, 346502764, 346502795, 346526186, 346634807, 346634844, 346636885, 346641597, 346770782, 346770790, 346770821, 346944363, 347027078, 347027086, 347027115, 347027117, 347027123, 347027152, 347027154, 347027160, 347027191, 347029156, 347029164, 347029193, 347029195, 347029201, 347029232, 347030556, 347031234, 347031242, 347031273, 347033868, 347033876, 347033905, 347033907, 347033913, 347033944, 347035946, 347035954, 347035985, 347040658, 347040666, 347040697, 347106325, 347106362, 347106399, 347108403, 347108440, 347110481, 347113115, 347113152, 347113412, 347113420, 347113449, 347113451, 347113457, 347113488, 347115193, 347115490, 347115498, 347115529, 347119905, 347120202, 347120210, 347120241, 347128854, 347128862, 347128893, 347336634, 347336642, 347336671, 347336673, 347336679, 347336710, 347338712, 347338720, 347338751, 347343424, 347343432, 347343463, 347415881, 347415918, 347417959, 347422671, 347422968, 347422976, 347423007, 347554878, 347554915, 347554952, 347556956, 347556993, 347559034, 347561668, 347561705, 347563746, 347568458, 347597896, 347597904, 347597933, 347597935, 347597941, 347597970, 347597972, 347597978, 347598009, 347599974, 347599982, 347600011, 347600013, 347600019, 347600050, 347601374, 347602052, 347602060, 347602091, 347604686, 347604694, 347604723, 347604725, 347604731, 347604762, 347606764, 347606772, 347606803, 347611476, 347611484, 347611515, 347646190, 347646198, 347646229, 347725437, 347864434, 347864471, 347866512, 347871224, 347907452, 347907460, 347907489, 347907491, 347907497, 347907528, 347909530, 347909538, 347909569, 347914242, 347914250, 347914281, 348117708, 348117716, 348117745, 348117747, 348117753, 348117784, 348119786, 348119794, 348119825, 348124498, 348124506, 348124537, 348173990, 348188600, 348188608, 348188637, 348188639, 348188645, 348188676, 348190678, 348190686, 348190717, 348195390, 348195398, 348195429, 348196955, 348196992, 348199033, 348203745, 348204042, 348204050, 348204081, 348217008, 348217016, 348217047, 348427264, 348427272, 348427303, 348498156, 348498164, 348498195, 348506511, 348539585, 348539622, 348539659, 348541663, 348541700, 348543741, 348546375, 348546412, 348548453, 348553165, 348562114, 348562122, 348562153, 348645508, 348645545, 348647586, 348652298, 348688526, 348688534, 348688563, 348688565, 348688571, 348688602, 348690604, 348690612, 348690643, 348695316, 348695324, 348695355, 348849141, 348849178, 348851219, 348855931, 348897294, 348940312, 348940320, 348940351, 348955064, 348998082, 348998090, 348998121, 349158697, 349208338, 349208346, 349208377, 349279230, 349279238, 349279269, 349287585, 349468112, 349550968, 349550976, 349551005, 349551007, 349551013, 349551044, 349553046, 349553054, 349553085, 349557758, 349557766, 349557797, 349614773, 349614810, 349614847, 349616851, 349616888, 349618929, 349621563, 349621600, 349623641, 349628353, 349630215, 349630252, 349632293, 349637005, 349637302, 349637310, 349637341, 349736138, 349779156, 349779164, 349779195, 349860524, 349860532, 349860563, 349924329, 349924366, 349926407, 349931119, 349939771, 350038930, 350078768, 350078805, 350080846, 350085558, 350121786, 350121794, 350121823, 350121825, 350121831, 350121862, 350123864, 350123872, 350123903, 350128576, 350128584, 350128615, 350233885, 350388324, 350431342, 350431350, 350431381, 350626156, 350626164, 350626193, 350626195, 350626201, 350626232, 350628234, 350628242, 350628273, 350632946, 350632954, 350632985, 350641598, 350641606, 350641637, 350705403, 350705440, 350707481, 350712193, 350712490, 350712498, 350712529, 350720845, 350935712, 350935720, 350935751, 351014959, 351063475, 351063512, 351065553, 351070265, 351153956, 351153993, 351156034, 351160746, 351169398, 351193496, 351193504, 351193512, 351193533, 351193535, 351193541, 351193543, 351193549, 351193570, 351193572, 351193574, 351193578, 351193580, 351193586, 351193607, 351193609, 351193611, 351193615, 351193617, 351193623, 351193646, 351193648, 351193654, 351193685, 351195574, 351195582, 351195590, 351195611, 351195613, 351195619, 351195621, 351195627, 351195648, 351195650, 351195652, 351195656, 351195658, 351195664, 351195687, 351195689, 351195695, 351195726, 351196974, 351196982, 351197011, 351197013, 351197019, 351197050, 351197652, 351197660, 351197668, 351197689, 351197691, 351197697, 351197699, 351197705, 351197728, 351197730, 351197736, 351197767, 351199052, 351199060, 351199091, 351199730, 351199738, 351199746, 351199769, 351199777, 351199808, 351200286, 351200294, 351200302, 351200323, 351200325, 351200331, 351200333, 351200339, 351200360, 351200362, 351200364, 351200368, 351200370, 351200376, 351200399, 351200401, 351200407, 351200438, 351202364, 351202372, 351202380, 351202401, 351202403, 351202409, 351202411, 351202417, 351202440, 351202442, 351202448, 351202479, 351203764, 351203772, 351203803, 351204442, 351204450, 351204458, 351204481, 351204489, 351204520, 351207076, 351207084, 351207092, 351207113, 351207115, 351207121, 351207123, 351207129, 351207152, 351207154, 351207160, 351207191, 351209154, 351209162, 351209170, 351209193, 351209201, 351209232, 351212416, 351212424, 351212455, 351213866, 351213874, 351213882, 351213905, 351213913, 351213944, 351373031, 351463512, 351503052, 351503060, 351503068, 351503089, 351503091, 351503097, 351503099, 351503105, 351503126, 351503128, 351503130, 351503134, 351503136, 351503142, 351503165, 351503167, 351503173, 351503204, 351505130, 351505138, 351505146, 351505167, 351505169, 351505175, 351505177, 351505183, 351505206, 351505208, 351505214, 351505245, 351506530, 351506538, 351506569, 351507208, 351507216, 351507224, 351507247, 351507255, 351507286, 351509842, 351509850, 351509858, 351509879, 351509881, 351509887, 351509889, 351509895, 351509918, 351509920, 351509926, 351509957, 351511920, 351511928, 351511936, 351511959, 351511967, 351511998, 351516632, 351516640, 351516648, 351516671, 351516679, 351516710, 351716786, 351716794, 351716825, 351787678, 351787686, 351787717, 351796033, 351812608, 351812616, 351812624, 351812645, 351812647, 351812653, 351812655, 351812661, 351812684, 351812686, 351812692, 351812723, 351814686, 351814694, 351814702, 351814725, 351814733, 351814764, 351819398, 351819406, 351819414, 351819437, 351819445, 351819476, 352052329, 352052366, 352052403, 352054407, 352054444, 352056485, 352059119, 352059156, 352061197, 352065909, 352074858, 352074866, 352074897, 352122164, 352122172, 352122180, 352122203, 352122211, 352122242, 352138663, 352138700, 352140741, 352145453, 352154105, 352244586, 352284126, 352284134, 352284142, 352284163, 352284165, 352284171, 352284173, 352284179, 352284200, 352284202, 352284204, 352284208, 352284210, 352284216, 352284239, 352284241, 352284247, 352284278, 352286204, 352286212, 352286220, 352286241, 352286243, 352286249, 352286251, 352286257, 352286280, 352286282, 352286288, 352286319, 352287604, 352287612, 352287643, 352288282, 352288290, 352288298, 352288321, 352288329, 352288360, 352290916, 352290924, 352290932, 352290953, 352290955, 352290961, 352290963, 352290969, 352290992, 352290994, 352291000, 352291031, 352292994, 352293002, 352293010, 352293033, 352293041, 352293072, 352297706, 352297714, 352297722, 352297745, 352297753, 352297784, 352361885, 352361922, 352363963, 352368675, 352448219, 352593682, 352593690, 352593698, 352593719, 352593721, 352593727, 352593729, 352593735, 352593758, 352593760, 352593766, 352593797, 352595760, 352595768, 352595776, 352595799, 352595807, 352595838, 352600472, 352600480, 352600488, 352600511, 352600519, 352600550, 352602658, 352645676, 352645684, 352645715, 352671441, 352695746, 352903238, 352903246, 352903254, 352903277, 352903285, 352903316, 353063712, 353063720, 353063749, 353063751, 353063757, 353063788, 353065790, 353065798, 353065829, 353070502, 353070510, 353070541, 353142959, 353142996, 353145037, 353149749, 353150046, 353150054, 353150085, 353213851, 353213888, 353215929, 353220641, 353229293, 353373268, 353373276, 353373307, 353374756, 353374764, 353374772, 353374793, 353374795, 353374801, 353374803, 353374809, 353374832, 353374834, 353374840, 353374871, 353376834, 353376842, 353376850, 353376873, 353376881, 353376912, 353381546, 353381554, 353381562, 353381585, 353381593, 353381624, 353452515, 353523407, 353587365, 353591512, 353591549, 353593590, 353598302, 353634530, 353634538, 353634567, 353634569, 353634575, 353634606, 353636608, 353636616, 353636647, 353641320, 353641328, 353641359, 353677846, 353684312, 353684320, 353684328, 353684351, 353684359, 353684390, 353717386, 353717394, 353717402, 353717423, 353717425, 353717431, 353717433, 353717439, 353717460, 353717462, 353717464, 353717468, 353717470, 353717476, 353717499, 353717501, 353717507, 353717538, 353719464, 353719472, 353719480, 353719501, 353719503, 353719509, 353719511, 353719517, 353719540, 353719542, 353719548, 353719579, 353720864, 353720872, 353720903, 353721542, 353721550, 353721558, 353721581, 353721589, 353721620, 353724176, 353724184, 353724192, 353724213, 353724215, 353724221, 353724223, 353724229, 353724252, 353724254, 353724260, 353724291, 353726254, 353726262, 353726270, 353726293, 353726301, 353726332, 353730966, 353730974, 353730982, 353731005, 353731013, 353731044, 353901068, 353944086, 353944094, 353944125, 354026942, 354026950, 354026958, 354026979, 354026981, 354026987, 354026989, 354026995, 354027018, 354027020, 354027026, 354027057, 354029020, 354029028, 354029036, 354029059, 354029067, 354029098, 354033732, 354033740, 354033748, 354033771, 354033779, 354033810, 354154342, 354154350, 354154381, 354162330, 354162367, 354164408, 354169120, 354225234, 354225242, 354225273, 354233589, 354304481, 354336498, 354336506, 354336514, 354336537, 354336545, 354336576, 354465386, 354465394, 354465402, 354465425, 354465433, 354465464, 354471886, 354576219, 354576256, 354578297, 354583009, 354662553, 354682142, 354709145, 354709182, 354709219, 354711223, 354711260, 354713301, 354715935, 354715972, 354718013, 354722725, 354725160, 354725168, 354725199, 354753034, 354792574, 354792582, 354792590, 354792611, 354792613, 354792619, 354792621, 354792627, 354792648, 354792650, 354792652, 354792656, 354792658, 354792664, 354792687, 354792689, 354792695, 354792726, 354794652, 354794660, 354794668, 354794689, 354794691, 354794697, 354794699, 354794705, 354794728, 354794730, 354794736, 354794767, 354796052, 354796060, 354796091, 354796730, 354796738, 354796746, 354796769, 354796777, 354796808, 354799364, 354799372, 354799380, 354799401, 354799403, 354799409, 354799411, 354799417, 354799440, 354799442, 354799448, 354799479, 354801442, 354801450, 354801458, 354801481, 354801489, 354801520, 354806154, 354806162, 354806170, 354806193, 354806201, 354806232, 354808016, 354808024, 354808032, 354808053, 354808055, 354808061, 354808063, 354808069, 354808092, 354808094, 354808100, 354808131, 354810094, 354810102, 354810110, 354810133, 354810141, 354810172, 354814806, 354814814, 354814822, 354814845, 354814853, 354814884, 354885775, 355018701, 355018738, 355020779, 355025491, 355102130, 355102138, 355102146, 355102167, 355102169, 355102175, 355102177, 355102183, 355102206, 355102208, 355102214, 355102245, 355104208, 355104216, 355104224, 355104247, 355104255, 355104286, 355108920, 355108928, 355108936, 355108959, 355108967, 355108998, 355117572, 355117580, 355117588, 355117611, 355117619, 355117650, 355252960, 355328257, 355411686, 355411694, 355411702, 355411725, 355411733, 355411764, 355587602, 355587610, 355587641, 355651407, 355651444, 355653485, 355658197, 355666849, 355737741, 355799775, 355799812, 355801853, 355806565, 355883204, 355883212, 355883220, 355883241, 355883243, 355883249, 355883251, 355883257, 355883280, 355883282, 355883288, 355883319, 355885282, 355885290, 355885298, 355885321, 355885329, 355885360, 355889994, 355890002, 355890010, 355890033, 355890041, 355890072, 355898646, 355898654, 355898662, 355898685, 355898693, 355898724, 355960963, 356109331, 356115402, 356158420, 356158428, 356158459, 356175729, 356175766, 356175803, 356175840, 356177807, 356177844, 356177881, 356179885, 356179922, 356181963, 356182519, 356182556, 356182593, 356184597, 356184634, 356186675, 356189309, 356189346, 356191387, 356192760, 356192768, 356192776, 356192799, 356192807, 356192838, 356196099, 356241276, 356241284, 356241292, 356241313, 356241315, 356241321, 356241323, 356241329, 356241352, 356241354, 356241360, 356241391, 356243354, 356243362, 356243370, 356243393, 356243401, 356243432, 356248066, 356248074, 356248082, 356248105, 356248113, 356248144, 356485285, 356485322, 356485359, 356487363, 356487400, 356489441, 356492075, 356492112, 356494153, 356498865, 356550832, 356550840, 356550848, 356550871, 356550879, 356550910, 356662790, 356662798, 356662829, 356686220, 356742037, 356794841, 356794878, 356796919, 356801631, 356812929, 356890405, 356973834, 356973842, 356973850, 356973873, 356973881, 356973912, 357100109, 357104397, 357190590, 357230130, 357230138, 357230146, 357230167, 357230169, 357230175, 357230177, 357230183, 357230204, 357230206, 357230208, 357230212, 357230214, 357230220, 357230243, 357230245, 357230251, 357230282, 357232208, 357232216, 357232224, 357232245, 357232247, 357232253, 357232255, 357232261, 357232284, 357232286, 357232292, 357232323, 357233035, 357233072, 357233608, 357233616, 357233647, 357234286, 357234294, 357234302, 357234325, 357234333, 357234364, 357235113, 357236920, 357236928, 357236936, 357236957, 357236959, 357236965, 357236967, 357236973, 357236996, 357236998, 357237004, 357237035, 357238998, 357239006, 357239014, 357239037, 357239045, 357239076, 357239825, 357243710, 357243718, 357243726, 357243749, 357243757, 357243788, 357266359, 357266396, 357266433, 357268437, 357268474, 357270515, 357273149, 357273186, 357275227, 357279939, 357316464, 357316472, 357316480, 357316501, 357316503, 357316509, 357316511, 357316517, 357316540, 357316542, 357316548, 357316579, 357318542, 357318550, 357318558, 357318581, 357318589, 357318620, 357323254, 357323262, 357323270, 357323293, 357323301, 357323332, 357331906, 357331914, 357331922, 357331945, 357331953, 357331984, 357539686, 357539694, 357539702, 357539723, 357539725, 357539731, 357539733, 357539739, 357539762, 357539764, 357539770, 357539801, 357541764, 357541772, 357541780, 357541803, 357541811, 357541842, 357542591, 357546476, 357546484, 357546492, 357546515, 357546523, 357546554, 357575915, 357575952, 357577993, 357582705, 357626020, 357626028, 357626036, 357626059, 357626067, 357626098, 357757930, 357757938, 357757967, 357757969, 357757975, 357758004, 357758006, 357758012, 357758043, 357760008, 357760016, 357760045, 357760047, 357760053, 357760084, 357761408, 357762086, 357762094, 357762125, 357764720, 357764728, 357764757, 357764759, 357764765, 357764796, 357766798, 357766806, 357766837, 357771510, 357771518, 357771549, 357849242, 357849250, 357849258, 357849281, 357849289, 357849320, 357885471, 358067486, 358067494, 358067523, 358067525, 358067531, 358067562, 358069564, 358069572, 358069603, 358074276, 358074284, 358074315, 358088963, 358089000, 358091041, 358095753, 358175297, 358308223, 358308260, 358310301, 358315013, 358320760, 358320768, 358320776, 358320797, 358320799, 358320805, 358320807, 358320813, 358320836, 358320838, 358320844, 358320875, 358322838, 358322846, 358322854, 358322877, 358322885, 358322916, 358323665, 358327550, 358327558, 358327566, 358327589, 358327597, 358327628, 358356989, 358357026, 358359067, 358363779, 358377042, 358377050, 358377081, 358391652, 358391660, 358391668, 358391689, 358391691, 358391697, 358391699, 358391705, 358391728, 358391730, 358391736, 358391767, 358393730, 358393738, 358393746, 358393769, 358393777, 358393808, 358398442, 358398450, 358398458, 358398481, 358398489, 358398519, 358398520, 358407094, 358407102, 358407110, 358407133, 358407141, 358407172, 358617779, 358630316, 358630324, 358630332, 358630355, 358630363, 358630394, 358666545, 358699619, 358699656, 358699693, 358701208, 358701216, 358701224, 358701247, 358701255, 358701286, 358701697, 358701734, 358703775, 358706409, 358706446, 358708487, 358713199, 358765166, 358765174, 358765182, 358765205, 358765213, 358765244, 358848560, 358848568, 358848597, 358848599, 358848605, 358848636, 358850638, 358850646, 358850677, 358855350, 358855358, 358855389, 359009175, 359009212, 359011253, 359015965, 359100346, 359100354, 359100385, 359158116, 359158124, 359158155, 359179593, 359250485, 359318731, 359398853, 359411390, 359411398, 359411406, 359411429, 359411437, 359411468, 359447619, 359482282, 359482290, 359482298, 359482321, 359482329, 359482360, 359628146, 359671164, 359671172, 359671203, 359754020, 359754028, 359754036, 359754057, 359754059, 359754065, 359754067, 359754073, 359754096, 359754098, 359754104, 359754135, 359756098, 359756106, 359756114, 359756137, 359756145, 359756176, 359756925, 359760810, 359760818, 359760826, 359760849, 359760857, 359760888, 359774807, 359774844, 359774881, 359776885, 359776922, 359778963, 359781597, 359781634, 359783675, 359788387, 359790249, 359790286, 359792327, 359797039, 359840354, 359840362, 359840370, 359840393, 359840401, 359840432, 359939190, 359939198, 359939229, 360063576, 360063584, 360063592, 360063615, 360063623, 360063654, 360084363, 360084400, 360086441, 360091153, 360099805, 360198964, 360281820, 360281828, 360281857, 360281859, 360281865, 360281896, 360283898, 360283906, 360283937, 360288610, 360288618, 360288649, 360393919, 360591376, 360591384, 360591415, 360612853, 360745779, 360745816, 360747857, 360752569, 360769782, 360829208, 360829216, 360829224, 360829245, 360829247, 360829253, 360829255, 360829261, 360829284, 360829286, 360829292, 360829323, 360831286, 360831294, 360831302, 360831325, 360831333, 360831364, 360832113, 360835998, 360836006, 360836014, 360836037, 360836045, 360836076, 360844650, 360844658, 360844666, 360844689, 360844697, 360844728, 360865437, 360865474, 360867515, 360872227, 360880879, 360915542, 360915550, 360915558, 360915581, 360915589, 360915620, 361055335, 361138764, 361138772, 361138780, 361138803, 361138811, 361138842, 361174993, 361223509, 361223546, 361225587, 361230299, 361357008, 361357016, 361357045, 361357047, 361357053, 361357084, 361359086, 361359094, 361359125, 361363798, 361363806, 361363837, 361372450, 361372458, 361372489, 361533065, 361666564, 361666572, 361666603, 361688041, 361836409, 361907301, 361919838, 361919846, 361919854, 361919877, 361919885, 361919916, 361956067, 361990730, 361990738, 361990746, 361990769, 361990777, 361990808, 362212363, 362212400, 362212437, 362214441, 362214478, 362216519, 362219153, 362219190, 362221231, 362225943, 362277910, 362277918, 362277926, 362277949, 362277957, 362277988, 362298697, 362298734, 362300775, 362305487, 362314139, 362447638, 362447646, 362447677, 362521919, 362521956, 362523997, 362528709, 362608253, 362783181, 362783218, 362783255, 362785259, 362785296, 362787337, 362789971, 362790008, 362792049, 362796761, 362805710, 362805718, 362805749, 362831475, 363092737, 363092774, 363094815, 363099527, 363266764, 363266772, 363266780, 363266801, 363266803, 363266809, 363266811, 363266817, 363266840, 363266842, 363266848, 363266879, 363268842, 363268850, 363268858, 363268881, 363268889, 363268920, 363269669, 363273554, 363273562, 363273570, 363273593, 363273601, 363273632, 363302993, 363303030, 363305071, 363309783, 363353098, 363353106, 363353114, 363353137, 363353145, 363353176, 363373885, 363373922, 363375963, 363380675, 363389327, 363402293, 363576320, 363576328, 363576336, 363576359, 363576367, 363576398, 363612549, 363683441, 363747399, 363794564, 363794572, 363794601, 363794603, 363794609, 363794640, 363796642, 363796650, 363796681, 363801354, 363801362, 363801393, 363873811, 363873848, 363875889, 363880601, 363880898, 363880906, 363880937, 364104120, 364104128, 364104159, 364125597, 364183367, 364322364, 364322401, 364324442, 364329154, 364344857, 364357394, 364357402, 364357410, 364357433, 364357441, 364357472, 364365382, 364365390, 364365419, 364365421, 364365427, 364365458, 364367460, 364367468, 364367499, 364372172, 364372180, 364372211, 364393623, 364428286, 364428294, 364428302, 364428325, 364428333, 364428364, 364464515, 364631920, 364674938, 364674946, 364674977, 364736253, 364736290, 364738331, 364743043, 364822587, 364869179, 364869216, 364869253, 364871257, 364871294, 364873335, 364875969, 364876006, 364878047, 364882759, 364885194, 364885202, 364885233, 364956086, 364956094, 364956125, 364964441, 365045809, 365178735, 365178772, 365180813, 365185525, 365307071, 365307108, 365309149, 365313861, 365412994, 365456012, 365456020, 365456051, 365488291, 365616627, 365790654, 365790662, 365790670, 365790693, 365790701, 365790732, 365811441, 365811478, 365813519, 365818231, 365826883, 365897775, 365959809, 365959846, 365961887, 365966599, 366120997, 366269365, 366318454, 366318462, 366318493, 366335763, 366335800, 366335837, 366335874, 366337841, 366337878, 366337915, 366339919, 366339956, 366341997, 366342553, 366342590, 366342627, 366344631, 366344668, 366346709, 366349343, 366349380, 366351421, 366356133, 366378781, 366378789, 366378818, 366378820, 366378826, 366378855, 366378857, 366378863, 366378892, 366378894, 366378900, 366378931, 366380859, 366380867, 366380896, 366380898, 366380904, 366380933, 366380935, 366380941, 366380972, 366382259, 366382296, 366382937, 366382945, 366382974, 366382976, 366382982, 366383013, 366384337, 366385015, 366385023, 366385054, 366385571, 366385579, 366385608, 366385610, 366385616, 366385645, 366385647, 366385653, 366385684, 366387649, 366387657, 366387686, 366387688, 366387694, 366387725, 366389049, 366389727, 366389735, 366389766, 366392361, 366392369, 366392398, 366392400, 366392406, 366392437, 366394439, 366394447, 366394478, 366397701, 366399151, 366399159, 366399190, 366645319, 366645356, 366645393, 366647397, 366647434, 366649475, 366652109, 366652146, 366654187, 366658899, 366688337, 366688345, 366688374, 366688376, 366688382, 366688411, 366688413, 366688419, 366688450, 366690415, 366690423, 366690452, 366690454, 366690460, 366690491, 366691815, 366692493, 366692501, 366692532, 366695127, 366695135, 366695164, 366695166, 366695172, 366695203, 366697205, 366697213, 366697244, 366701917, 366701925, 366701956, 366782413, 366846254, 366865842, 366865850, 366865858, 366865881, 366865889, 366865920, 366889272, 366889280, 366889311, 366902071, 366954875, 366954912, 366956953, 366961665, 366972963, 366997893, 366997901, 366997930, 366997932, 366997938, 366997969, 366999971, 366999979, 367000010, 367004683, 367004691, 367004722, 367050439, 367260143, 367264431, 367307449, 367307457, 367307488, 367393069, 367393106, 367393642, 367393650, 367393681, 367395147, 367399859, 367426393, 367426430, 367426467, 367428471, 367428508, 367430549, 367433183, 367433220, 367435261, 367439973, 367469411, 367469419, 367469448, 367469450, 367469456, 367469485, 367469487, 367469493, 367469524, 367471489, 367471497, 367471526, 367471528, 367471534, 367471565, 367472889, 367473567, 367473575, 367473606, 367476201, 367476209, 367476238, 367476240, 367476246, 367476277, 367478279, 367478287, 367478318, 367482991, 367482999, 367483030, 367702625, 367735949, 367735986, 367738027, 367742739, 367778967, 367778975, 367779004, 367779006, 367779012, 367779043, 367781045, 367781053, 367781084, 367785757, 367785765, 367785796, 367830961, 367921442, 367960982, 367960990, 367960998, 367961019, 367961021, 367961027, 367961029, 367961035, 367961056, 367961058, 367961060, 367961064, 367961066, 367961072, 367961095, 367961097, 367961103, 367961134, 367963060, 367963068, 367963076, 367963097, 367963099, 367963105, 367963107, 367963113, 367963136, 367963138, 367963144, 367963175, 367964460, 367964468, 367964499, 367965138, 367965146, 367965154, 367965177, 367965185, 367965216, 367967772, 367967780, 367967788, 367967809, 367967811, 367967817, 367967819, 367967825, 367967848, 367967850, 367967856, 367967887, 367969850, 367969858, 367969866, 367969889, 367969897, 367969928, 367974562, 367974570, 367974578, 367974601, 367974609, 367974640, 368045505, 368088523, 368088531, 368088562, 368248997, 368249034, 368251075, 368255787, 368270538, 368270546, 368270554, 368270575, 368270577, 368270583, 368270585, 368270591, 368270614, 368270616, 368270622, 368270653, 368272616, 368272624, 368272632, 368272655, 368272663, 368272694, 368277328, 368277336, 368277344, 368277367, 368277375, 368277406, 368335331, 368468257, 368468294, 368470335, 368475047, 368483699, 368517023, 368517060, 368519101, 368523813, 368558553, 368560041, 368560049, 368560078, 368560080, 368560086, 368560117, 368562119, 368562127, 368562158, 368566831, 368566839, 368566870, 368580094, 368580102, 368580110, 368580133, 368580141, 368580172, 368777813, 368819815, 368819852, 368821893, 368826579, 368826605, 368859653, 368859690, 368859727, 368861731, 368861768, 368863809, 368866443, 368866480, 368868521, 368869597, 368869605, 368869636, 368873233, 368902671, 368902679, 368902708, 368902710, 368902716, 368902745, 368902747, 368902753, 368902784, 368904749, 368904757, 368904786, 368904788, 368904794, 368904825, 368906149, 368906827, 368906835, 368906866, 368909461, 368909469, 368909498, 368909500, 368909506, 368909537, 368911539, 368911547, 368911578, 368916251, 368916259, 368916290, 369051612, 369051620, 369051628, 369051649, 369051651, 369051657, 369051659, 369051665, 369051688, 369051690, 369051696, 369051727, 369053690, 369053698, 369053706, 369053729, 369053737, 369053768, 369058402, 369058410, 369058418, 369058441, 369058449, 369058480, 369129371, 369169209, 369169246, 369171287, 369175999, 369212227, 369212235, 369212264, 369212266, 369212272, 369212303, 369214305, 369214313, 369214344, 369219017, 369219025, 369219056, 369303398, 369303406, 369303414, 369303437, 369303445, 369303476, 369339627, 369361168, 369361176, 369361184, 369361207, 369361215, 369361246, 369410519, 369478765, 369521783, 369521791, 369521822, 369558887, 369607653, 369650671, 369650679, 369650710, 369831198, 369831206, 369831237, 369910445, 369916959, 369934841, 369934878, 369934915, 369936919, 369936956, 369938997, 369941631, 369941668, 369943709, 369948421, 369950283, 369950320, 369952361, 369957073, 369977859, 369977867, 369977896, 369977898, 369977904, 369977933, 369977935, 369977941, 369977972, 369979937, 369979945, 369979974, 369979976, 369979982, 369980013, 369981337, 369982015, 369982023, 369982054, 369984649, 369984657, 369984686, 369984688, 369984694, 369984725, 369986727, 369986735, 369986766, 369991439, 369991447, 369991478, 369993301, 369993309, 369993338, 369993340, 369993346, 369993377, 369995379, 369995387, 369995418, 370000091, 370000099, 370000130, 370142242, 370142250, 370142258, 370142281, 370142289, 370142320, 370244397, 370244434, 370246475, 370251187, 370259839, 370287415, 370287423, 370287452, 370287454, 370287460, 370287491, 370289493, 370289501, 370289532, 370294205, 370294213, 370294244, 370302857, 370302865, 370302896, 370358998, 370402016, 370402024, 370402055, 370484872, 370484880, 370484888, 370484909, 370484911, 370484917, 370484919, 370484925, 370484948, 370484950, 370484956, 370484987, 370486950, 370486958, 370486966, 370486989, 370486997, 370487028, 370491662, 370491670, 370491678, 370491701, 370491709, 370491740, 370553953, 370596971, 370596979, 370597010, 370772887, 370794428, 370794436, 370794444, 370794467, 370794475, 370794506, 370905813, 370905850, 370907891, 370912603, 370929816, 370992147, 371025471, 371025508, 371027549, 371032261, 371040913, 371068489, 371068497, 371068526, 371068528, 371068534, 371068565, 371070567, 371070575, 371070606, 371075279, 371075287, 371075318, 371083931, 371083939, 371083970, 371215369, 371335027, 371343705, 371378045, 371378053, 371378084, 371383543, 371383580, 371385621, 371390333, 371426561, 371426569, 371426598, 371426600, 371426606, 371426637, 371428639, 371428647, 371428678, 371433351, 371433359, 371433390, 371476631, 371476668, 371478709, 371483421, 371560060, 371560068, 371560076, 371560097, 371560099, 371560105, 371560107, 371560113, 371560136, 371560138, 371560144, 371560175, 371562138, 371562146, 371562154, 371562177, 371562185, 371562216, 371566850, 371566858, 371566866, 371566889, 371566897, 371566928, 371575502, 371575510, 371575518, 371575541, 371575549, 371575580, 371693099, 371736117, 371736125, 371736156, 371786187, 371848075, 371869616, 371869624, 371869632, 371869655, 371869663, 371869694, 371996443, 372067335, 372116101, 372159119, 372159127, 372159158, 372372397, 372372434, 372372471, 372374475, 372374512, 372376553, 372379187, 372379224, 372381265, 372385977, 372415415, 372415423, 372415452, 372415454, 372415460, 372415489, 372415491, 372415497, 372415528, 372417493, 372417501, 372417530, 372417532, 372417538, 372417569, 372418893, 372419571, 372419579, 372419610, 372422205, 372422213, 372422242, 372422244, 372422250, 372422281, 372424283, 372424291, 372424322, 372428995, 372429003, 372429034, 372458731, 372458768, 372460809, 372465521, 372474173, 372501749, 372501757, 372501786, 372501788, 372501794, 372501825, 372503827, 372503835, 372503866, 372508539, 372508547, 372508578, 372517191, 372517199, 372517230, 372567261, 372650690, 372650698, 372650706, 372650729, 372650737, 372650768, 372681953, 372681990, 372684031, 372688743, 372724971, 372724979, 372725008, 372725010, 372725016, 372725047, 372727049, 372727057, 372727088, 372731761, 372731769, 372731800, 372768287, 372811305, 372811313, 372811344, 372943215, 372943252, 372943289, 372945293, 372945330, 372947371, 372950005, 372950042, 372952083, 372956795, 372991509, 373008762, 373008770, 373008778, 373008801, 373008809, 373008840, 373034527, 373034535, 373034566, 373252771, 373252808, 373254849, 373259561, 373429703, 373463027, 373463064, 373465105, 373469817, 373506045, 373506053, 373506082, 373506084, 373506090, 373506121, 373508123, 373508131, 373508162, 373512835, 373512843, 373512874, 373533919, 373533956, 373535997, 373540709, 373549361, 373562327, 373576937, 373576945, 373576974, 373576976, 373576982, 373577013, 373579015, 373579023, 373579054, 373583727, 373583735, 373583766, 373592379, 373592387, 373592418, 373772583, 373815601, 373815609, 373815640, 373843475, 373886493, 373886501, 373886532, 373907433, 373950451, 373950459, 373950490, 373997616, 373997624, 373997632, 373997653, 373997655, 373997661, 373997663, 373997669, 373997692, 373997694, 373997700, 373997731, 373999694, 373999702, 373999710, 373999733, 373999741, 373999772, 374000521, 374004406, 374004414, 374004422, 374004445, 374004453, 374004484, 374033845, 374033882, 374035923, 374040635, 374083950, 374083958, 374083966, 374083989, 374083997, 374084028, 374285631, 374307172, 374307180, 374307188, 374307211, 374307219, 374307250, 374343401, 374504891, 374525416, 374525424, 374525453, 374525455, 374525461, 374525492, 374527494, 374527502, 374527533, 374532206, 374532214, 374532245, 374553657, 374596675, 374596683, 374596714, 374624549, 374667567, 374667575, 374667606, 374834972, 374834980, 374835011, 374856449, 374896287, 374896324, 374898365, 374903077, 374939305, 374939313, 374939342, 374939344, 374939350, 374939381, 374941383, 374941391, 374941422, 374946095, 374946103, 374946134, 374982621, 375025639, 375025647, 375025678, 375072231, 375072239, 375072268, 375072270, 375072276, 375072305, 375072307, 375072313, 375072344, 375074309, 375074317, 375074346, 375074348, 375074354, 375074385, 375075709, 375076387, 375076395, 375076426, 375079021, 375079029, 375079058, 375079060, 375079066, 375079097, 375081099, 375081107, 375081138, 375085811, 375085819, 375085850, 375088246, 375088254, 375088262, 375088285, 375088293, 375088324, 375124475, 375159138, 375159146, 375159154, 375159177, 375159185, 375159216, 375205843, 375248861, 375248869, 375248900, 375381787, 375381795, 375381824, 375381826, 375381832, 375381863, 375383865, 375383873, 375383904, 375388577, 375388585, 375388616, 375467105, 375467142, 375469183, 375473895, 375616046, 375616054, 375616085, 375691343, 375691351, 375691382, 375776661, 375971475, 375971512, 375973553, 375978265, 375986917, 376014493, 376014501, 376014530, 376014532, 376014538, 376014569, 376016571, 376016579, 376016610, 376021283, 376021291, 376021322, 376029935, 376029943, 376029974, 376057809, 376100827, 376100835, 376100866, 376162861, 376162869, 376162898, 376162900, 376162906, 376162937, 376164939, 376164947, 376164978, 376169651, 376169659, 376169690, 376281031, 376324049, 376324057, 376324088, 376472417, 376472425, 376472456, 376495797, 376495834, 376495871, 376495908, 376497875, 376497912, 376497949, 376499953, 376499990, 376502031, 376502587, 376502624, 376502661, 376504665, 376504702, 376506743, 376509377, 376509414, 376511455, 376516167, 376521506, 376521514, 376521522, 376521545, 376521553, 376521584, 376538815, 376538823, 376538852, 376538854, 376538860, 376538889, 376538891, 376538897, 376538926, 376538928, 376538934, 376538965, 376540893, 376540901, 376540930, 376540932, 376540938, 376540967, 376540969, 376540975, 376541006, 376542293, 376542330, 376542971, 376542979, 376543008, 376543010, 376543016, 376543047, 376544371, 376545049, 376545057, 376545088, 376545605, 376545613, 376545642, 376545644, 376545650, 376545679, 376545681, 376545687, 376545718, 376547683, 376547691, 376547720, 376547722, 376547728, 376547759, 376549083, 376549761, 376549769, 376549800, 376552395, 376552403, 376552432, 376552434, 376552440, 376552471, 376554473, 376554481, 376554512, 376557735, 376559185, 376559193, 376559224, 376805353, 376805390, 376805427, 376807431, 376807468, 376809509, 376812143, 376812180, 376814221, 376818933, 376848371, 376848379, 376848408, 376848410, 376848416, 376848445, 376848447, 376848453, 376848484, 376850449, 376850457, 376850486, 376850488, 376850494, 376850525, 376851849, 376852527, 376852535, 376852566, 376855161, 376855169, 376855198, 376855200, 376855206, 376855237, 376857239, 376857247, 376857278, 376861951, 376861959, 376861990, 376942447, 377049306, 377049314, 377049345, 377062105, 377105123, 377105131, 377105162, 377114909, 377114946, 377116987, 377121699, 377132997, 377157927, 377157935, 377157964, 377157966, 377157972, 377158003, 377160005, 377160013, 377160044, 377164717, 377164725, 377164756, 377176015, 377176023, 377176054, 377253491, 377253499, 377253530, 377420177, 377424465, 377463195, 377463203, 377463234, 377467483, 377467491, 377467522, 377513265, 377586427, 377586464, 377586501, 377588505, 377588542, 377590583, 377593217, 377593254, 377595295, 377596121, 377596129, 377596158, 377596160, 377596166, 377596197, 377596694, 377596702, 377596710, 377596733, 377596741, 377596772, 377598199, 377598207, 377598238, 377600007, 377602911, 377602919, 377602950, 377629445, 377629453, 377629482, 377629484, 377629490, 377629519, 377629521, 377629527, 377629558, 377631523, 377631531, 377631560, 377631562, 377631568, 377631599, 377632923, 377633601, 377633609, 377633640, 377636235, 377636243, 377636272, 377636274, 377636280, 377636311, 377638313, 377638321, 377638352, 377643025, 377643033, 377643064, 377895983, 377896020, 377898061, 377902773, 377905677, 377905685, 377905716, 377939001, 377939009, 377939038, 377939040, 377939046, 377939077, 377941079, 377941087, 377941118, 377945791, 377945799, 377945830, 377990995, 378124494, 378124502, 378124533, 378205539, 378248557, 378248565, 378248596, 378409031, 378409068, 378411109, 378415821, 378452049, 378452057, 378452086, 378452088, 378452094, 378452125, 378454127, 378454135, 378454166, 378458839, 378458847, 378458878, 378495365, 378538383, 378538391, 378538422, 378671309, 378671317, 378671346, 378671348, 378671354, 378671385, 378673387, 378673395, 378673426, 378677057, 378677094, 378678099, 378678107, 378678138, 378679135, 378683847, 378686751, 378686759, 378686790, 378718587, 378720075, 378720083, 378720112, 378720114, 378720120, 378720151, 378722153, 378722161, 378722192, 378726865, 378726873, 378726904, 378761605, 378761613, 378761644, 378979849, 378979886, 378980865, 378980873, 378980904, 378981927, 378986613, 378986639, 379019687, 379019724, 379019761, 379021765, 379021802, 379023843, 379026477, 379026514, 379028555, 379029631, 379029639, 379029670, 379033267, 379062705, 379062713, 379062742, 379062744, 379062750, 379062779, 379062781, 379062787, 379062818, 379064783, 379064791, 379064820, 379064822, 379064828, 379064859, 379066183, 379066861, 379066869, 379066900, 379069495, 379069503, 379069532, 379069534, 379069540, 379069571, 379071573, 379071581, 379071612, 379076285, 379076293, 379076324, 379289405, 379329243, 379329280, 379331321, 379336033, 379372261, 379372269, 379372298, 379372300, 379372306, 379372337, 379374339, 379374347, 379374378, 379379051, 379379059, 379379090, 379499661, 379542679, 379542687, 379542718, 379550667, 379550704, 379552745, 379557457, 379570553, 379613571, 379613579, 379613610, 379638799, 379681817, 379681825, 379681856, 379761939, 379761947, 379761978, 379767687, 379810705, 379810713, 379810744, 379860223, 380034250, 380034258, 380034266, 380034289, 380034297, 380034328, 380070479, 380094875, 380094912, 380094949, 380096953, 380096990, 380099031, 380101665, 380101702, 380103743, 380108455, 380110317, 380110354, 380112395, 380117107, 380120011, 380120019, 380120050, 380137893, 380137901, 380137930, 380137932, 380137938, 380137967, 380137969, 380137975, 380138006, 380139971, 380139979, 380140008, 380140010, 380140016, 380140047, 380141371, 380142049, 380142057, 380142088, 380144683, 380144691, 380144720, 380144722, 380144728, 380144759, 380146761, 380146769, 380146800, 380151473, 380151481, 380151512, 380153335, 380153343, 380153372, 380153374, 380153380, 380153411, 380155413, 380155421, 380155452, 380160125, 380160133, 380160164, 380404431, 380404468, 380406509, 380411221, 380419873, 380447449, 380447457, 380447486, 380447488, 380447494, 380447525, 380449527, 380449535, 380449566, 380454239, 380454247, 380454278, 380462891, 380462899, 380462930, 380562050, 380562058, 380562089, 380641297, 380713987, 380757005, 380757013, 380757044, 380932921, 380975939, 380975947, 380975978, 381089850, 381108865, 381108873, 381108902, 381108904, 381108910, 381108941, 381110943, 381110951, 381110982, 381115655, 381115663, 381115694, 381132868, 381132876, 381132907, 381185505, 381185542, 381187583, 381192295, 381195199, 381195207, 381195238, 381200947, 381228523, 381228531, 381228560, 381228562, 381228568, 381228599, 381230601, 381230609, 381230640, 381235313, 381235321, 381235352, 381243965, 381243973, 381244004, 381418421, 381418429, 381418460, 381495061, 381503739, 381538079, 381538087, 381538118, 381543577, 381543614, 381545655, 381550367, 381586595, 381586603, 381586632, 381586634, 381586640, 381586671, 381588673, 381588681, 381588712, 381593385, 381593393, 381593424, 381636665, 381636702, 381638743, 381643455, 381853133, 381896151, 381896159, 381896190, 381946221, 382008109, 382051127, 382051135, 382051166, 382074557, 382199495, 382199503, 382199534, 382270387, 382270395, 382270426, 382276135, 382319153, 382319161, 382319192, 382532431, 382532468, 382532505, 382534509, 382534546, 382536587, 382539221, 382539258, 382541299, 382546011, 382575449, 382575457, 382575486, 382575488, 382575494, 382575523, 382575525, 382575531, 382575562, 382577527, 382577535, 382577564, 382577566, 382577572, 382577603, 382578927, 382579605, 382579613, 382579644, 382582239, 382582247, 382582276, 382582278, 382582284, 382582315, 382584317, 382584325, 382584356, 382589029, 382589037, 382589068, 382618765, 382618802, 382620843, 382625555, 382634207, 382661783, 382661791, 382661820, 382661822, 382661828, 382661859, 382663861, 382663869, 382663900, 382668573, 382668581, 382668612, 382677225, 382677233, 382677264, 382727295, 382841987, 382842024, 382844065, 382848777, 382885005, 382885013, 382885042, 382885044, 382885050, 382885081, 382887083, 382887091, 382887122, 382891795, 382891803, 382891834, 382928321, 382971339, 382971347, 382971378, 383103249, 383103286, 383103323, 383105327, 383105364, 383107405, 383110039, 383110076, 383112117, 383116829, 383146267, 383146275, 383146304, 383146306, 383146312, 383146341, 383146343, 383146349, 383146380, 383148345, 383148353, 383148382, 383148384, 383148390, 383148421, 383149745, 383150423, 383150431, 383150462, 383151543, 383153057, 383153065, 383153094, 383153096, 383153102, 383153133, 383155135, 383155143, 383155174, 383159847, 383159855, 383159886, 383194561, 383194569, 383194600, 383412805, 383412842, 383414883, 383419595, 383455823, 383455831, 383455860, 383455862, 383455868, 383455899, 383457901, 383457909, 383457940, 383462613, 383462621, 383462652, 383623061, 383623098, 383625139, 383629851, 383632755, 383632763, 383632794, 383666079, 383666087, 383666116, 383666118, 383666124, 383666155, 383668157, 383668165, 383668196, 383672869, 383672877, 383672908, 383693953, 383693990, 383696031, 383700743, 383709395, 383722361, 383736971, 383736979, 383737008, 383737010, 383737016, 383737047, 383739049, 383739057, 383739088, 383743761, 383743769, 383743800, 383752413, 383752421, 383752452, 383765379, 383765387, 383765418, 383932617, 383975635, 383975643, 383975674, 384003509, 384046527, 384046535, 384046566, 384067467, 384110485, 384110493, 384110524, 384160555, 384193879, 384193916, 384195957, 384200669, 384236897, 384236905, 384236934, 384236936, 384236942, 384236973, 384238975, 384238983, 384239014, 384243687, 384243695, 384243726, 384445665, 384488683, 384488691, 384488722, 384503435, 384546453, 384546461, 384546492, 384707943, 384707951, 384707982, 384713691, 384728468, 384728476, 384728484, 384728505, 384728507, 384728513, 384728515, 384728521, 384728544, 384728546, 384728552, 384728583, 384730546, 384730554, 384730562, 384730585, 384730593, 384730624, 384735258, 384735266, 384735274, 384735297, 384735305, 384735336, 384756709, 384756717, 384756748, 384784583, 384827601, 384827609, 384827640, 385016483, 385038024, 385038032, 385038040, 385038063, 385038071, 385038102, 385056321, 385056358, 385058399, 385063111, 385099339, 385099347, 385099376, 385099378, 385099384, 385099415, 385101417, 385101425, 385101456, 385106129, 385106137, 385106168, 385142655, 385185673, 385185681, 385185712, 385235743, 385284509, 385327527, 385327535, 385327566, 385365877, 385408895, 385408903, 385408934, 385587301, 385627139, 385627176, 385629217, 385633929, 385670157, 385670165, 385670194, 385670196, 385670202, 385670233, 385672235, 385672243, 385672274, 385676947, 385676955, 385676986, 385819098, 385819106, 385819114, 385819137, 385819145, 385819176, 385936695, 385979713, 385979721, 385979752, 386131509, 386131546, 386133587, 386138299, 386146951, 386174527, 386174535, 386174564, 386174566, 386174572, 386174603, 386176605, 386176613, 386176644, 386181317, 386181325, 386181356, 386189969, 386189977, 386190008, 386217843, 386260861, 386260869, 386260900, 386441065, 386484083, 386484091, 386484122, 386698849, 386698857, 386698886, 386698888, 386698894, 386698923, 386698925, 386698931, 386698960, 386698962, 386698968, 386698999, 386700927, 386700935, 386700964, 386700966, 386700972, 386701001, 386701003, 386701009, 386701040, 386702327, 386702364, 386703005, 386703013, 386703042, 386703044, 386703050, 386703081, 386704405, 386705083, 386705091, 386705122, 386705639, 386705647, 386705676, 386705678, 386705684, 386705713, 386705715, 386705721, 386705752, 386707717, 386707725, 386707754, 386707756, 386707762, 386707793, 386709117, 386709795, 386709803, 386709834, 386712429, 386712437, 386712466, 386712468, 386712474, 386712505, 386714507, 386714515, 386714546, 386717769, 386719219, 386719227, 386719258, 386741867, 386741875, 386741883, 386741904, 386741906, 386741912, 386741914, 386741920, 386741941, 386741943, 386741945, 386741949, 386741951, 386741957, 386741978, 386741980, 386741982, 386741986, 386741988, 386741994, 386742017, 386742019, 386742025, 386742056, 386743945, 386743953, 386743961, 386743982, 386743984, 386743990, 386743992, 386743998, 386744019, 386744021, 386744023, 386744027, 386744029, 386744035, 386744058, 386744060, 386744066, 386744097, 386745345, 386745353, 386745382, 386745384, 386745390, 386745421, 386746023, 386746031, 386746039, 386746060, 386746062, 386746068, 386746070, 386746076, 386746099, 386746101, 386746107, 386746138, 386747423, 386747431, 386747462, 386748101, 386748109, 386748117, 386748140, 386748148, 386748179, 386748657, 386748665, 386748673, 386748694, 386748696, 386748702, 386748704, 386748710, 386748731, 386748733, 386748735, 386748739, 386748741, 386748747, 386748770, 386748772, 386748778, 386748809, 386750735, 386750743, 386750751, 386750772, 386750774, 386750780, 386750782, 386750788, 386750811, 386750813, 386750819, 386750850, 386752135, 386752143, 386752174, 386752813, 386752821, 386752829, 386752852, 386752860, 386752891, 386755447, 386755455, 386755463, 386755484, 386755486, 386755492, 386755494, 386755500, 386755523, 386755525, 386755531, 386755562, 386757525, 386757533, 386757541, 386757564, 386757572, 386757603, 386760787, 386760795, 386760826, 386762237, 386762245, 386762253, 386762276, 386762284, 386762315, 387008405, 387008413, 387008442, 387008444, 387008450, 387008479, 387008481, 387008487, 387008518, 387010483, 387010491, 387010520, 387010522, 387010528, 387010559, 387011883, 387012561, 387012569, 387012600, 387015195, 387015203, 387015232, 387015234, 387015240, 387015271, 387017273, 387017281, 387017312, 387021985, 387021993, 387022024, 387051423, 387051431, 387051439, 387051460, 387051462, 387051468, 387051470, 387051476, 387051497, 387051499, 387051501, 387051505, 387051507, 387051513, 387051536, 387051538, 387051544, 387051575, 387053501, 387053509, 387053517, 387053538, 387053540, 387053546, 387053548, 387053554, 387053577, 387053579, 387053585, 387053616, 387054901, 387054909, 387054940, 387055579, 387055587, 387055595, 387055618, 387055626, 387055657, 387058213, 387058221, 387058229, 387058250, 387058252, 387058258, 387058260, 387058266, 387058289, 387058291, 387058297, 387058328, 387060291, 387060299, 387060307, 387060330, 387060338, 387060369, 387065003, 387065011, 387065019, 387065042, 387065050, 387065081, 387145499, 387145507, 387145538, 387222139, 387252358, 387252366, 387252374, 387252397, 387252405, 387252436, 387265157, 387265165, 387265196, 387293031, 387317961, 387317969, 387317998, 387318000, 387318006, 387318037, 387320039, 387320047, 387320078, 387324751, 387324759, 387324790, 387336049, 387336057, 387336088, 387360979, 387360987, 387360995, 387361016, 387361018, 387361024, 387361026, 387361032, 387361055, 387361057, 387361063, 387361094, 387363057, 387363065, 387363073, 387363096, 387363104, 387363135, 387367769, 387367777, 387367785, 387367808, 387367816, 387367847, 387580211, 387623229, 387623237, 387623268, 387627517, 387627525, 387627556, 387670535, 387670543, 387670551, 387670574, 387670582, 387670613, 387673299, 387789479, 387789487, 387789516, 387789518, 387789524, 387789553, 387789555, 387789561, 387789592, 387791557, 387791565, 387791594, 387791596, 387791602, 387791633, 387792957, 387793635, 387793643, 387793674, 387796269, 387796277, 387796306, 387796308, 387796314, 387796345, 387798347, 387798355, 387798386, 387803059, 387803067, 387803098, 387832497, 387832505, 387832513, 387832534, 387832536, 387832542, 387832544, 387832550, 387832571, 387832573, 387832575, 387832579, 387832581, 387832587, 387832610, 387832612, 387832618, 387832649, 387834575, 387834583, 387834591, 387834612, 387834614, 387834620, 387834622, 387834628, 387834651, 387834653, 387834659, 387834690, 387835975, 387835983, 387836014, 387836653, 387836661, 387836669, 387836692, 387836700, 387836731, 387839287, 387839295, 387839303, 387839324, 387839326, 387839332, 387839334, 387839340, 387839363, 387839365, 387839371, 387839402, 387841365, 387841373, 387841381, 387841404, 387841412, 387841443, 387846077, 387846085, 387846093, 387846116, 387846124, 387846155, 388099035, 388099043, 388099072, 388099074, 388099080, 388099111, 388101113, 388101121, 388101152, 388105825, 388105833, 388105864, 388142053, 388142061, 388142069, 388142090, 388142092, 388142098, 388142100, 388142106, 388142129, 388142131, 388142137, 388142168, 388144131, 388144139, 388144147, 388144170, 388144178, 388144209, 388148843, 388148851, 388148859, 388148882, 388148890, 388148921, 388151029, 388194047, 388194055, 388194086, 388244117, 388327546, 388327554, 388327562, 388327585, 388327593, 388327624, 388408591, 388408599, 388408630, 388451609, 388451617, 388451625, 388451648, 388451656, 388451687, 388569065, 388569102, 388571143, 388575855, 388612083, 388612091, 388612120, 388612122, 388612128, 388612159, 388614161, 388614169, 388614200, 388618873, 388618881, 388618912, 388655399, 388698417, 388698425, 388698456, 388878621, 388880109, 388880117, 388880146, 388880148, 388880154, 388880185, 388882187, 388882195, 388882226, 388886899, 388886907, 388886938, 388921639, 388921647, 388921678, 388923127, 388923135, 388923143, 388923164, 388923166, 388923172, 388923174, 388923180, 388923203, 388923205, 388923211, 388923242, 388925205, 388925213, 388925221, 388925244, 388925252, 388925283, 388929917, 388929925, 388929933, 388929956, 388929964, 388929995, 389139883, 389139920, 389141961, 389146673, 389182901, 389182909, 389182938, 389182940, 389182946, 389182977, 389184979, 389184987, 389185018, 389189665, 389189673, 389189691, 389189699, 389189704, 389189730, 389222739, 389222747, 389222776, 389222778, 389222784, 389222813, 389222815, 389222821, 389222852, 389224817, 389224825, 389224854, 389224856, 389224862, 389224893, 389226217, 389226895, 389226903, 389226934, 389229529, 389229537, 389229566, 389229568, 389229574, 389229605, 389231607, 389231615, 389231646, 389232683, 389232691, 389232699, 389232722, 389232730, 389232761, 389236319, 389236327, 389236358, 389265757, 389265765, 389265773, 389265794, 389265796, 389265802, 389265804, 389265810, 389265831, 389265833, 389265835, 389265839, 389265841, 389265847, 389265870, 389265872, 389265878, 389265909, 389267835, 389267843, 389267851, 389267872, 389267874, 389267880, 389267882, 389267888, 389267911, 389267913, 389267919, 389267950, 389269235, 389269243, 389269274, 389269913, 389269921, 389269929, 389269952, 389269960, 389269991, 389272547, 389272555, 389272563, 389272584, 389272586, 389272592, 389272594, 389272600, 389272623, 389272625, 389272631, 389272662, 389274625, 389274633, 389274641, 389274664, 389274672, 389274703, 389279337, 389279345, 389279353, 389279376, 389279384, 389279415, 389449439, 389492457, 389492465, 389492496, 389532295, 389532303, 389532332, 389532334, 389532340, 389532371, 389534373, 389534381, 389534412, 389539085, 389539093, 389539124, 389575313, 389575321, 389575329, 389575350, 389575352, 389575358, 389575360, 389575366, 389575389, 389575391, 389575397, 389575428, 389577391, 389577399, 389577407, 389577430, 389577438, 389577469, 389582103, 389582111, 389582119, 389582142, 389582150, 389582181, 389659695, 389702713, 389702721, 389702752, 389710701, 389710738, 389712779, 389717491, 389730587, 389773605, 389773613, 389773644, 389841851, 389841859, 389841890, 389884869, 389884877, 389884885, 389884908, 389884916, 389884947, 389970739, 389970747, 389970778, 390013757, 390013765, 390013773, 390013796, 390013804, 390013835, 390020257, 390230513, 390257516, 390257553, 390257590, 390259594, 390259631, 390261672, 390264306, 390264343, 390266384, 390271096, 390273531, 390273539, 390273570, 390297927, 390297935, 390297964, 390297966, 390297972, 390298001, 390298003, 390298009, 390298040, 390300005, 390300013, 390300042, 390300044, 390300050, 390300081, 390301405, 390302083, 390302091, 390302122, 390304717, 390304725, 390304754, 390304756, 390304762, 390304793, 390306795, 390306803, 390306834, 390311507, 390311515, 390311546, 390313369, 390313377, 390313406, 390313408, 390313414, 390313445, 390315447, 390315455, 390315486, 390320159, 390320167, 390320198, 390340945, 390340953, 390340961, 390340982, 390340984, 390340990, 390340992, 390340998, 390341019, 390341021, 390341023, 390341027, 390341029, 390341035, 390341058, 390341060, 390341066, 390341097, 390343023, 390343031, 390343039, 390343060, 390343062, 390343068, 390343070, 390343076, 390343099, 390343101, 390343107, 390343138, 390344423, 390344431, 390344462, 390345101, 390345109, 390345117, 390345140, 390345148, 390345179, 390347735, 390347743, 390347751, 390347772, 390347774, 390347780, 390347782, 390347788, 390347811, 390347813, 390347819, 390347850, 390349813, 390349821, 390349829, 390349852, 390349860, 390349891, 390354525, 390354533, 390354541, 390354564, 390354572, 390354603, 390356387, 390356395, 390356403, 390356424, 390356426, 390356432, 390356434, 390356440, 390356463, 390356465, 390356471, 390356502, 390358465, 390358473, 390358481, 390358504, 390358512, 390358543, 390363177, 390363185, 390363193, 390363216, 390363224, 390363255, 390567072, 390567109, 390569150, 390573862, 390607483, 390607491, 390607520, 390607522, 390607528, 390607559, 390609561, 390609569, 390609600, 390614273, 390614281, 390614312, 390622925, 390622933, 390622964, 390650501, 390650509, 390650517, 390650538, 390650540, 390650546, 390650548, 390650554, 390650577, 390650579, 390650585, 390650616, 390652579, 390652587, 390652595, 390652618, 390652626, 390652657, 390657291, 390657299, 390657307, 390657330, 390657338, 390657369, 390665943, 390665951, 390665959, 390665982, 390665990, 390666021, 390765102, 390765110, 390765118, 390765141, 390765149, 390765180, 390801331, 390876628, 390917039, 390917047, 390917078, 390960057, 390960065, 390960073, 390960096, 390960104, 390960135, 391092955, 391135973, 391135981, 391136012, 391292902, 391292910, 391292941, 391348146, 391348183, 391350224, 391354936, 391388557, 391388565, 391388594, 391388596, 391388602, 391388633, 391390635, 391390643, 391390674, 391395347, 391395355, 391395386, 391403999, 391404007, 391404038, 391431575, 391431583, 391431591, 391431612, 391431614, 391431620, 391431622, 391431628, 391431651, 391431653, 391431659, 391431690, 391433653, 391433661, 391433669, 391433692, 391433700, 391433731, 391438365, 391438373, 391438381, 391438404, 391438412, 391438443, 391447017, 391447025, 391447033, 391447056, 391447064, 391447095, 391657702, 391663773, 391698113, 391698121, 391698152, 391706791, 391706799, 391706830, 391741131, 391741139, 391741147, 391741170, 391741178, 391741209, 391746629, 391746637, 391746666, 391746668, 391746674, 391746705, 391748707, 391748715, 391748746, 391753419, 391753427, 391753458, 391789647, 391789655, 391789663, 391789684, 391789686, 391789692, 391789694, 391789700, 391789723, 391789725, 391789731, 391789762, 391791725, 391791733, 391791741, 391791764, 391791772, 391791803, 391796437, 391796445, 391796453, 391796476, 391796484, 391796515, 391839717, 391839725, 391839754, 391839756, 391839762, 391839793, 391841795, 391841803, 391841834, 391846507, 391846515, 391846546, 392056185, 392056193, 392056224, 392099203, 392099211, 392099219, 392099242, 392099250, 392099281, 392149273, 392149281, 392149312, 392168143, 392211161, 392211169, 392211200, 392234591, 392438776, 392479187, 392479195, 392479226, 392522205, 392522213, 392522221, 392522244, 392522252, 392522283, 392735483, 392735491, 392735520, 392735522, 392735528, 392735557, 392735559, 392735565, 392735596, 392737561, 392737569, 392737598, 392737600, 392737606, 392737637, 392738961, 392739639, 392739647, 392739678, 392742273, 392742281, 392742310, 392742312, 392742318, 392742349, 392744351, 392744359, 392744390, 392749063, 392749071, 392749102, 392778501, 392778509, 392778517, 392778538, 392778540, 392778546, 392778548, 392778554, 392778575, 392778577, 392778579, 392778583, 392778585, 392778591, 392778614, 392778616, 392778622, 392778653, 392780579, 392780587, 392780595, 392780616, 392780618, 392780624, 392780626, 392780632, 392780655, 392780657, 392780663, 392780694, 392781406, 392781443, 392781979, 392781987, 392782018, 392782657, 392782665, 392782673, 392782696, 392782704, 392782735, 392783484, 392785291, 392785299, 392785307, 392785328, 392785330, 392785336, 392785338, 392785344, 392785367, 392785369, 392785375, 392785406, 392787369, 392787377, 392787385, 392787408, 392787416, 392787447, 392788196, 392792081, 392792089, 392792097, 392792120, 392792128, 392792159, 392821817, 392821825, 392821854, 392821856, 392821862, 392821893, 392823895, 392823903, 392823934, 392828607, 392828615, 392828646, 392837259, 392837267, 392837298, 392864835, 392864843, 392864851, 392864872, 392864874, 392864880, 392864882, 392864888, 392864911, 392864913, 392864919, 392864950, 392866913, 392866921, 392866929, 392866952, 392866960, 392866991, 392871625, 392871633, 392871641, 392871664, 392871672, 392871703, 392880277, 392880285, 392880293, 392880316, 392880324, 392880355, 392930347, 392930355, 392930386, 393045039, 393045047, 393045076, 393045078, 393045084, 393045115, 393047117, 393047125, 393047156, 393051829, 393051837, 393051868, 393088057, 393088065, 393088073, 393088094, 393088096, 393088102, 393088104, 393088110, 393088133, 393088135, 393088141, 393088172, 393090135, 393090143, 393090151, 393090174, 393090182, 393090213, 393090962, 393094847, 393094855, 393094863, 393094886, 393094894, 393094925, 393131373, 393131381, 393131412, 393174391, 393174399, 393174407, 393174430, 393174438, 393174469, 393263283, 393263320, 393263357, 393265361, 393265398, 393267439, 393270073, 393270110, 393272151, 393276863, 393306301, 393306309, 393306338, 393306340, 393306346, 393306375, 393306377, 393306383, 393306414, 393308379, 393308387, 393308416, 393308418, 393308424, 393308455, 393309779, 393310457, 393310465, 393310496, 393313091, 393313099, 393313128, 393313130, 393313136, 393313167, 393315169, 393315177, 393315208, 393319881, 393319889, 393319920, 393354595, 393354603, 393354634, 393397613, 393397621, 393397629, 393397652, 393397660, 393397691, 393572839, 393572876, 393574917, 393579629, 393615857, 393615865, 393615894, 393615896, 393615902, 393615933, 393617935, 393617943, 393617974, 393622647, 393622655, 393622686, 393826113, 393826121, 393826150, 393826152, 393826158, 393826189, 393828191, 393828199, 393828230, 393832903, 393832911, 393832942, 393856594, 393856631, 393858672, 393863384, 393869131, 393869139, 393869147, 393869168, 393869170, 393869176, 393869178, 393869184, 393869207, 393869209, 393869215, 393869246, 393871209, 393871217, 393871225, 393871248, 393871256, 393871287, 393872036, 393875921, 393875929, 393875937, 393875960, 393875968, 393875999, 393882395, 393897005, 393897013, 393897042, 393897044, 393897050, 393897081, 393899083, 393899091, 393899122, 393903795, 393903803, 393903834, 393912447, 393912455, 393912486, 393925413, 393925421, 393925452, 393940023, 393940031, 393940039, 393940060, 393940062, 393940068, 393940070, 393940076, 393940099, 393940101, 393940107, 393940138, 393942101, 393942109, 393942117, 393942140, 393942148, 393942179, 393946813, 393946821, 393946829, 393946852, 393946860, 393946891, 393955465, 393955473, 393955481, 393955504, 393955512, 393955543, 394135669, 394135677, 394135708, 394166150, 394178687, 394178695, 394178703, 394178726, 394178734, 394178765, 394206561, 394206569, 394206600, 394249579, 394249587, 394249595, 394249618, 394249626, 394249657, 394270519, 394270527, 394270558, 394313537, 394313545, 394313553, 394313576, 394313584, 394313615, 394353913, 394353950, 394355991, 394360703, 394363607, 394363615, 394363646, 394396931, 394396939, 394396968, 394396970, 394396976, 394397007, 394399009, 394399017, 394399048, 394403721, 394403729, 394403760, 394605699, 394648717, 394648725, 394648756, 394663469, 394706487, 394706495, 394706526, 394916743, 394916751, 394916782, 394947224, 394959761, 394959769, 394959777, 394959800, 394959808, 394959839, 394987635, 394987643, 394987674, 395030653, 395030661, 395030669, 395030692, 395030700, 395030731, 395176517, 395219535, 395219543, 395219574, 395259373, 395259381, 395259410, 395259412, 395259418, 395259449, 395261451, 395261459, 395261490, 395266163, 395266171, 395266202, 395302391, 395302399, 395302407, 395302428, 395302430, 395302436, 395302438, 395302444, 395302467, 395302469, 395302475, 395302506, 395304469, 395304477, 395304485, 395304508, 395304516, 395304547, 395305296, 395309181, 395309189, 395309197, 395309220, 395309228, 395309259, 395345707, 395345715, 395345746, 395388725, 395388733, 395388741, 395388764, 395388772, 395388803, 395438795, 395438803, 395438834, 395444543, 395487561, 395487569, 395487600, 395568929, 395568937, 395568968, 395611947, 395611955, 395611963, 395611986, 395611994, 395612025, 395747335, 395787173, 395787210, 395789251, 395793963, 395830191, 395830199, 395830228, 395830230, 395830236, 395830267, 395832269, 395832277, 395832308, 395836981, 395836989, 395837020, 396096729, 396139747, 396139755, 396139786, 396294150, 396294187, 396296228, 396300940, 396318153, 396334561, 396334569, 396334598, 396334600, 396334606, 396334637, 396336639, 396336647, 396336678, 396341351, 396341359, 396341390, 396350003, 396350011, 396350042, 396377579, 396377587, 396377595, 396377616, 396377618, 396377624, 396377626, 396377632, 396377655, 396377657, 396377663, 396377694, 396379657, 396379665, 396379673, 396379696, 396379704, 396379735, 396380484, 396384369, 396384377, 396384385, 396384408, 396384416, 396384447, 396393021, 396393029, 396393037, 396393060, 396393068, 396393099, 396420895, 396420903, 396420934, 396463913, 396463921, 396463929, 396463952, 396463960, 396463991, 396603706, 396644117, 396644125, 396644156, 396687135, 396687143, 396687151, 396687174, 396687182, 396687213, 396862361, 396862398, 396864439, 396869151, 396877803, 396901901, 396901909, 396901917, 396901938, 396901940, 396901946, 396901948, 396901954, 396901975, 396901977, 396901979, 396901983, 396901985, 396901991, 396902012, 396902014, 396902016, 396902020, 396902022, 396902028, 396902051, 396902053, 396902059, 396902090, 396903979, 396903987, 396903995, 396904016, 396904018, 396904024, 396904026, 396904032, 396904053, 396904055, 396904057, 396904061, 396904063, 396904069, 396904092, 396904094, 396904100, 396904131, 396905379, 396905387, 396905416, 396905418, 396905424, 396905455, 396906057, 396906065, 396906073, 396906094, 396906096, 396906102, 396906104, 396906110, 396906133, 396906135, 396906141, 396906172, 396907457, 396907465, 396907496, 396908135, 396908143, 396908151, 396908174, 396908182, 396908213, 396908691, 396908699, 396908707, 396908728, 396908730, 396908736, 396908738, 396908744, 396908765, 396908767, 396908769, 396908773, 396908775, 396908781, 396908804, 396908806, 396908812, 396908843, 396910769, 396910777, 396910785, 396910806, 396910808, 396910814, 396910816, 396910822, 396910845, 396910847, 396910853, 396910884, 396912169, 396912177, 396912208, 396912847, 396912855, 396912863, 396912886, 396912894, 396912925, 396915481, 396915489, 396915497, 396915518, 396915520, 396915526, 396915528, 396915534, 396915557, 396915559, 396915565, 396915596, 396917559, 396917567, 396917575, 396917598, 396917606, 396917637, 396920821, 396920829, 396920860, 396922271, 396922279, 396922287, 396922310, 396922318, 396922349, 397171917, 397211457, 397211465, 397211473, 397211494, 397211496, 397211502, 397211504, 397211510, 397211531, 397211533, 397211535, 397211539, 397211541, 397211547, 397211570, 397211572, 397211578, 397211609, 397213535, 397213543, 397213551, 397213572, 397213574, 397213580, 397213582, 397213588, 397213611, 397213613, 397213619, 397213650, 397214935, 397214943, 397214974, 397215613, 397215621, 397215629, 397215652, 397215660, 397215691, 397218247, 397218255, 397218263, 397218284, 397218286, 397218292, 397218294, 397218300, 397218323, 397218325, 397218331, 397218362, 397220325, 397220333, 397220341, 397220364, 397220372, 397220403, 397225037, 397225045, 397225053, 397225076, 397225084, 397225115, 397384780, 397425191, 397425199, 397425230, 397455672, 397468209, 397468217, 397468225, 397468248, 397468256, 397468287, 397496083, 397496091, 397496122, 397521013, 397521021, 397521029, 397521050, 397521052, 397521058, 397521060, 397521066, 397521089, 397521091, 397521097, 397521128, 397523091, 397523099, 397523107, 397523130, 397523138, 397523169, 397527803, 397527811, 397527819, 397527842, 397527850, 397527881, 397539101, 397539109, 397539117, 397539140, 397539148, 397539179, 397783263, 397783271, 397783302, 397826281, 397826289, 397826297, 397826320, 397826328, 397826359, 397830569, 397830577, 397830585, 397830608, 397830616, 397830647, 397876351, 397876359, 397876390, 397952991, 397992531, 397992539, 397992547, 397992568, 397992570, 397992576, 397992578, 397992584, 397992605, 397992607, 397992609, 397992613, 397992615, 397992621, 397992644, 397992646, 397992652, 397992683, 397994609, 397994617, 397994625, 397994646, 397994648, 397994654, 397994656, 397994662, 397994685, 397994687, 397994693, 397994724, 397996009, 397996017, 397996048, 397996687, 397996695, 397996703, 397996726, 397996734, 397996765, 397999321, 397999329, 397999337, 397999358, 397999360, 397999366, 397999368, 397999374, 397999397, 397999399, 397999405, 397999436, 398001399, 398001407, 398001415, 398001438, 398001446, 398001477, 398006111, 398006119, 398006127, 398006150, 398006158, 398006189, 398302087, 398302095, 398302103, 398302124, 398302126, 398302132, 398302134, 398302140, 398302163, 398302165, 398302171, 398302202, 398304165, 398304173, 398304181, 398304204, 398304212, 398304243, 398308877, 398308885, 398308893, 398308916, 398308924, 398308955, 398311063, 398354081, 398354089, 398354120, 398404151, 398611643, 398611651, 398611659, 398611682, 398611690, 398611721, 398772117, 398772125, 398772154, 398772156, 398772162, 398772193, 398774195, 398774203, 398774234, 398778907, 398778915, 398778946, 398815135, 398815143, 398815151, 398815172, 398815174, 398815180, 398815182, 398815188, 398815211, 398815213, 398815219, 398815250, 398817213, 398817221, 398817229, 398817252, 398817260, 398817291, 398818040, 398821925, 398821933, 398821941, 398821964, 398821972, 398822003, 398858451, 398858459, 398858490, 398901469, 398901477, 398901485, 398901508, 398901516, 398901547, 398950966, 398951003, 398953044, 398957756, 399081673, 399081681, 399081712, 399083161, 399083169, 399083177, 399083198, 399083200, 399083206, 399083208, 399083214, 399083237, 399083239, 399083245, 399083276, 399085239, 399085247, 399085255, 399085278, 399085286, 399085317, 399089951, 399089959, 399089967, 399089990, 399089998, 399090029, 399124691, 399124699, 399124707, 399124730, 399124738, 399124769, 399260522, 399299917, 399299954, 399301995, 399306707, 399342935, 399342943, 399342972, 399342974, 399342980, 399343011, 399345013, 399345021, 399345052, 399349725, 399349733, 399349764, 399386251, 399392717, 399392725, 399392733, 399392756, 399392764, 399392795, 399425791, 399425799, 399425807, 399425828, 399425830, 399425836, 399425838, 399425844, 399425865, 399425867, 399425869, 399425873, 399425875, 399425881, 399425904, 399425906, 399425912, 399425943, 399427869, 399427877, 399427885, 399427906, 399427908, 399427914, 399427916, 399427922, 399427945, 399427947, 399427953, 399427984, 399429269, 399429277, 399429308, 399429947, 399429955, 399429963, 399429986, 399429994, 399430025, 399432581, 399432589, 399432597, 399432618, 399432620, 399432626, 399432628, 399432634, 399432657, 399432659, 399432665, 399432696, 399434659, 399434667, 399434675, 399434698, 399434706, 399434737, 399439371, 399439379, 399439387, 399439410, 399439418, 399439449, 399609473, 399652491, 399652499, 399652530, 399735347, 399735355, 399735363, 399735384, 399735386, 399735392, 399735394, 399735400, 399735423, 399735425, 399735431, 399735462, 399737425, 399737433, 399737441, 399737464, 399737472, 399737503, 399742137, 399742145, 399742153, 399742176, 399742184, 399742215, 399862747, 399862755, 399862786, 399870735, 399870772, 399872813, 399877525, 399893228, 399905765, 399905773, 399905781, 399905804, 399905812, 399905843, 399913753, 399913761, 399913790, 399913792, 399913798, 399913829, 399915831, 399915839, 399915870, 399920543, 399920551, 399920582, 399933639, 399933647, 399933678, 399976657, 399976665, 399976673, 399976696, 399976704, 399976735, 400041596, 400044903, 400044911, 400044919, 400044942, 400044950, 400044981, 400173791, 400173799, 400173807, 400173830, 400173838, 400173869, 400180291, 400223309, 400223317, 400223348, 400390547, 400417550, 400417587, 400417624, 400419628, 400419665, 400421706, 400424340, 400424377, 400426418, 400431130, 400433565, 400433573, 400433604, 400461439, 400500979, 400500987, 400500995, 400501016, 400501018, 400501024, 400501026, 400501032, 400501053, 400501055, 400501057, 400501061, 400501063, 400501069, 400501092, 400501094, 400501100, 400501131, 400503057, 400503065, 400503073, 400503094, 400503096, 400503102, 400503104, 400503110, 400503133, 400503135, 400503141, 400503172, 400504457, 400504465, 400504496, 400505135, 400505143, 400505151, 400505174, 400505182, 400505213, 400507769, 400507777, 400507785, 400507806, 400507808, 400507814, 400507816, 400507822, 400507845, 400507847, 400507853, 400507884, 400509847, 400509855, 400509863, 400509886, 400509894, 400509925, 400514559, 400514567, 400514575, 400514598, 400514606, 400514637, 400516421, 400516429, 400516437, 400516458, 400516460, 400516466, 400516468, 400516474, 400516497, 400516499, 400516505, 400516536, 400518499, 400518507, 400518515, 400518538, 400518546, 400518577, 400523211, 400523219, 400523227, 400523250, 400523258, 400523289, 400727106, 400727143, 400729184, 400733896, 400810535, 400810543, 400810551, 400810572, 400810574, 400810580, 400810582, 400810588, 400810611, 400810613, 400810619, 400810650, 400812613, 400812621, 400812629, 400812652, 400812660, 400812691, 400817325, 400817333, 400817341, 400817364, 400817372, 400817403, 400825977, 400825985, 400825993, 400826016, 400826024, 400826055, 400961365, 401004383, 401004391, 401004422, 401036662, 401120091, 401120099, 401120107, 401120130, 401120138, 401120169, 401296007, 401296015, 401296046, 401339025, 401339033, 401339041, 401339064, 401339072, 401339103, 401474856, 401495954, 401495962, 401495970, 401495993, 401496001, 401496032, 401508180, 401508217, 401510258, 401514970, 401591609, 401591617, 401591625, 401591646, 401591648, 401591654, 401591656, 401591662, 401591685, 401591687, 401591693, 401591724, 401593687, 401593695, 401593703, 401593726, 401593734, 401593765, 401598399, 401598407, 401598415, 401598438, 401598446, 401598477, 401607051, 401607059, 401607067, 401607090, 401607098, 401607129, 401817736, 401823807, 401866825, 401866833, 401866864, 401901165, 401901173, 401901181, 401901204, 401901212, 401901243, 401949681, 401949689, 401949697, 401949718, 401949720, 401949726, 401949728, 401949734, 401949757, 401949759, 401949765, 401949796, 401951759, 401951767, 401951775, 401951798, 401951806, 401951837, 401956471, 401956479, 401956487, 401956510, 401956518, 401956549, 402259237, 402259245, 402259253, 402259276, 402259284, 402259315, 402330784, 402371195, 402371203, 402371234, 402394625, 402414213, 402414221, 402414229, 402414252, 402414260, 402414291, 402437643, 402437651, 402437682, 402550044, 402598810, 402682239, 402682247, 402682255, 402682278, 402682286, 402682317, 402898995, 402938535, 402938543, 402938551, 402938572, 402938574, 402938580, 402938582, 402938588, 402938609, 402938611, 402938613, 402938617, 402938619, 402938625, 402938648, 402938650, 402938656, 402938687, 402940613, 402940621, 402940629, 402940650, 402940652, 402940658, 402940660, 402940666, 402940689, 402940691, 402940697, 402940728, 402941440, 402941477, 402942013, 402942021, 402942052, 402942691, 402942699, 402942707, 402942730, 402942738, 402942769, 402943518, 402945325, 402945333, 402945341, 402945362, 402945364, 402945370, 402945372, 402945378, 402945401, 402945403, 402945409, 402945440, 402947403, 402947411, 402947419, 402947442, 402947450, 402947481, 402948230, 402952115, 402952123, 402952131, 402952154, 402952162, 402952193, 403024869, 403024877, 403024885, 403024906, 403024908, 403024914, 403024916, 403024922, 403024945, 403024947, 403024953, 403024984, 403026947, 403026955, 403026963, 403026986, 403026994, 403027025, 403031659, 403031667, 403031675, 403031698, 403031706, 403031737, 403040311, 403040319, 403040327, 403040350, 403040358, 403040389, 403248091, 403248099, 403248107, 403248128, 403248130, 403248136, 403248138, 403248144, 403248167, 403248169, 403248175, 403248206, 403250169, 403250177, 403250185, 403250208, 403250216, 403250247, 403250996, 403254881, 403254889, 403254897, 403254920, 403254928, 403254959, 403334425, 403334433, 403334441, 403334464, 403334472, 403334503, 403466335, 403466343, 403466372, 403466374, 403466380, 403466409, 403466411, 403466417, 403466448, 403468413, 403468421, 403468450, 403468452, 403468458, 403468489, 403469813, 403470491, 403470499, 403470530, 403473125, 403473133, 403473162, 403473164, 403473170, 403473201, 403475203, 403475211, 403475242, 403479915, 403479923, 403479954, 403509353, 403509361, 403509369, 403509390, 403509392, 403509398, 403509400, 403509406, 403509427, 403509429, 403509431, 403509435, 403509437, 403509443, 403509466, 403509468, 403509474, 403509505, 403511431, 403511439, 403511447, 403511468, 403511470, 403511476, 403511478, 403511484, 403511507, 403511509, 403511515, 403511546, 403512831, 403512839, 403512870, 403513509, 403513517, 403513525, 403513548, 403513556, 403513587, 403516143, 403516151, 403516159, 403516180, 403516182, 403516188, 403516190, 403516196, 403516219, 403516221, 403516227, 403516258, 403518221, 403518229, 403518237, 403518260, 403518268, 403518299, 403522933, 403522941, 403522949, 403522972, 403522980, 403523011, 403557647, 403557655, 403557663, 403557686, 403557694, 403557725, 403775891, 403775899, 403775928, 403775930, 403775936, 403775967, 403777969, 403777977, 403778008, 403782681, 403782689, 403782720, 403818909, 403818917, 403818925, 403818946, 403818948, 403818954, 403818956, 403818962, 403818985, 403818987, 403818993, 403819024, 403820987, 403820995, 403821003, 403821026, 403821034, 403821065, 403825699, 403825707, 403825715, 403825738, 403825746, 403825777, 404016628, 404016665, 404018706, 404023418, 404029165, 404029173, 404029181, 404029202, 404029204, 404029210, 404029212, 404029218, 404029241, 404029243, 404029249, 404029280, 404031243, 404031251, 404031259, 404031282, 404031290, 404031321, 404032070, 404035955, 404035963, 404035971, 404035994, 404036002, 404036033, 404085447, 404085455, 404085486, 404100057, 404100065, 404100073, 404100094, 404100096, 404100102, 404100104, 404100110, 404100133, 404100135, 404100141, 404100172, 404102135, 404102143, 404102151, 404102174, 404102182, 404102213, 404106847, 404106855, 404106863, 404106886, 404106894, 404106925, 404115499, 404115507, 404115515, 404115538, 404115546, 404115577, 404128465, 404128473, 404128481, 404128504, 404128512, 404128543, 404326184, 404338721, 404338729, 404338737, 404338760, 404338768, 404338799, 404409613, 404409621, 404409629, 404409652, 404409660, 404409691, 404473571, 404473579, 404473587, 404473610, 404473618, 404473649, 404556965, 404556973, 404557002, 404557004, 404557010, 404557041, 404559043, 404559051, 404559082, 404563755, 404563763, 404563794, 404599983, 404599991, 404599999, 404600020, 404600022, 404600028, 404600030, 404600036, 404600059, 404600061, 404600067, 404600098, 404602061, 404602069, 404602077, 404602100, 404602108, 404602139, 404606773, 404606781, 404606789, 404606812, 404606820, 404606851, 404808751, 404808759, 404808790, 404851769, 404851777, 404851785, 404851808, 404851816, 404851847, 404866521, 404866529, 404866560, 404909539, 404909547, 404909555, 404909578, 404909586, 404909617, 404987600, 405107258, 405119795, 405119803, 405119811, 405119834, 405119842, 405119873, 405190687, 405190695, 405190703, 405190726, 405190734, 405190765, 405336551, 405379569, 405379577, 405379608, 405462425, 405462433, 405462441, 405462462, 405462464, 405462470, 405462472, 405462478, 405462501, 405462503, 405462509, 405462540, 405464503, 405464511, 405464519, 405464542, 405464550, 405464581, 405465330, 405469215, 405469223, 405469231, 405469254, 405469262, 405469293, 405548759, 405548767, 405548775, 405548798, 405548806, 405548837, 405647595, 405647603, 405647634, 405690613, 405690621, 405690629, 405690652, 405690660, 405690691, 405771981, 405771989, 405771997, 405772020, 405772028, 405772059, 405907369, 405950387, 405950395, 405950426, 405990225, 405990233, 405990262, 405990264, 405990270, 405990301, 405992303, 405992311, 405992342, 405997015, 405997023, 405997054, 406033243, 406033251, 406033259, 406033280, 406033282, 406033288, 406033290, 406033296, 406033319, 406033321, 406033327, 406033358, 406035321, 406035329, 406035337, 406035360, 406035368, 406035399, 406040033, 406040041, 406040049, 406040072, 406040080, 406040111, 406299781, 406299789, 406299820, 406342799, 406342807, 406342815, 406342838, 406342846, 406342877, 406454184, 406454221, 406456262, 406460974, 406478187, 406537613, 406537621, 406537629, 406537650, 406537652, 406537658, 406537660, 406537666, 406537689, 406537691, 406537697, 406537728, 406539691, 406539699, 406539707, 406539730, 406539738, 406539769, 406540518, 406544403, 406544411, 406544419, 406544442, 406544450, 406544481, 406553055, 406553063, 406553071, 406553094, 406553102, 406553133, 406623947, 406623955, 406623963, 406623986, 406623994, 406624025, 406763740, 406847169, 406847177, 406847185, 406847208, 406847216, 406847247, 407025002, 407025039, 407027080, 407031792, 407065413, 407065421, 407065450, 407065452, 407065458, 407065489, 407067491, 407067499, 407067530, 407072203, 407072211, 407072242, 407080855, 407080863, 407080894, 407104953, 407104961, 407104969, 407104977, 407104990, 407104992, 407104998, 407105000, 407105006, 407105008, 407105014, 407105027, 407105029, 407105031, 407105035, 407105037, 407105039, 407105043, 407105045, 407105051, 407105064, 407105066, 407105068, 407105070, 407105072, 407105074, 407105076, 407105080, 407105082, 407105088, 407105103, 407105105, 407105107, 407105111, 407105113, 407105119, 407105142, 407105144, 407105150, 407105181, 407107031, 407107039, 407107047, 407107055, 407107068, 407107070, 407107076, 407107078, 407107084, 407107086, 407107092, 407107105, 407107107, 407107109, 407107113, 407107115, 407107117, 407107121, 407107123, 407107129, 407107144, 407107146, 407107148, 407107152, 407107154, 407107160, 407107183, 407107185, 407107191, 407107222, 407108431, 407108439, 407108447, 407108468, 407108470, 407108476, 407108478, 407108484, 407108507, 407108509, 407108515, 407108546, 407109109, 407109117, 407109125, 407109133, 407109146, 407109148, 407109154, 407109156, 407109162, 407109164, 407109170, 407109185, 407109187, 407109193, 407109195, 407109201, 407109224, 407109226, 407109232, 407109263, 407110509, 407110517, 407110525, 407110548, 407110556, 407110587, 407111187, 407111195, 407111203, 407111211, 407111226, 407111234, 407111242, 407111265, 407111273, 407111304, 407111743, 407111751, 407111759, 407111767, 407111780, 407111782, 407111788, 407111790, 407111796, 407111798, 407111804, 407111817, 407111819, 407111821, 407111825, 407111827, 407111829, 407111833, 407111835, 407111841, 407111856, 407111858, 407111860, 407111864, 407111866, 407111872, 407111895, 407111897, 407111903, 407111934, 407113821, 407113829, 407113837, 407113845, 407113858, 407113860, 407113866, 407113868, 407113874, 407113876, 407113882, 407113897, 407113899, 407113905, 407113907, 407113913, 407113936, 407113938, 407113944, 407113975, 407115221, 407115229, 407115237, 407115260, 407115268, 407115299, 407115899, 407115907, 407115915, 407115923, 407115938, 407115946, 407115954, 407115977, 407115985, 407116016, 407118533, 407118541, 407118549, 407118557, 407118570, 407118572, 407118578, 407118580, 407118586, 407118588, 407118594, 407118609, 407118611, 407118617, 407118619, 407118625, 407118648, 407118650, 407118656, 407118687, 407120611, 407120619, 407120627, 407120635, 407120650, 407120658, 407120666, 407120689, 407120697, 407120728, 407123873, 407123881, 407123889, 407123912, 407123920, 407123951, 407125323, 407125331, 407125339, 407125347, 407125362, 407125370, 407125378, 407125401, 407125409, 407125440, 407334558, 407374969, 407374977, 407375008, 407414509, 407414517, 407414525, 407414533, 407414546, 407414548, 407414554, 407414556, 407414562, 407414564, 407414570, 407414583, 407414585, 407414587, 407414591, 407414593, 407414595, 407414599, 407414601, 407414607, 407414622, 407414624, 407414626, 407414630, 407414632, 407414638, 407414661, 407414663, 407414669, 407414700, 407416587, 407416595, 407416603, 407416611, 407416624, 407416626, 407416632, 407416634, 407416640, 407416642, 407416648, 407416663, 407416665, 407416671, 407416673, 407416679, 407416702, 407416704, 407416710, 407416741, 407417987, 407417995, 407418003, 407418026, 407418034, 407418065, 407418665, 407418673, 407418681, 407418689, 407418704, 407418712, 407418720, 407418743, 407418751, 407418782, 407421299, 407421307, 407421315, 407421323, 407421336, 407421338, 407421344, 407421346, 407421352, 407421354, 407421360, 407421375, 407421377, 407421383, 407421385, 407421391, 407421414, 407421416, 407421422, 407421453, 407423377, 407423385, 407423393, 407423401, 407423416, 407423424, 407423432, 407423455, 407423463, 407423494, 407428089, 407428097, 407428105, 407428113, 407428128, 407428136, 407428144, 407428167, 407428175, 407428206, 407544814, 407615706, 407628243, 407628251, 407628259, 407628282, 407628290, 407628321, 407699135, 407699143, 407699151, 407699174, 407699182, 407699213, 407724065, 407724073, 407724081, 407724089, 407724102, 407724104, 407724110, 407724112, 407724118, 407724120, 407724126, 407724141, 407724143, 407724149, 407724151, 407724157, 407724180, 407724182, 407724188, 407724219, 407726143, 407726151, 407726159, 407726167, 407726182, 407726190, 407726198, 407726221, 407726229, 407726260, 407730855, 407730863, 407730871, 407730879, 407730894, 407730902, 407730910, 407730933, 407730941, 407730972, 407986315, 407986323, 407986331, 407986354, 407986362, 407986393, 408033621, 408033629, 408033637, 408033645, 408033660, 408033668, 408033676, 408033699, 408033707, 408033738, 408115632, 408156043, 408156051, 408156082, 408195583, 408195591, 408195599, 408195607, 408195620, 408195622, 408195628, 408195630, 408195636, 408195638, 408195644, 408195657, 408195659, 408195661, 408195665, 408195667, 408195669, 408195673, 408195675, 408195681, 408195696, 408195698, 408195700, 408195704, 408195706, 408195712, 408195735, 408195737, 408195743, 408195774, 408197661, 408197669, 408197677, 408197685, 408197698, 408197700, 408197706, 408197708, 408197714, 408197716, 408197722, 408197737, 408197739, 408197745, 408197747, 408197753, 408197776, 408197778, 408197784, 408197815, 408199061, 408199069, 408199077, 408199100, 408199108, 408199139, 408199739, 408199747, 408199755, 408199763, 408199778, 408199786, 408199794, 408199817, 408199825, 408199856, 408202373, 408202381, 408202389, 408202397, 408202410, 408202412, 408202418, 408202420, 408202426, 408202428, 408202434, 408202449, 408202451, 408202457, 408202459, 408202465, 408202488, 408202490, 408202496, 408202527, 408204451, 408204459, 408204467, 408204475, 408204490, 408204498, 408204506, 408204529, 408204537, 408204568, 408209163, 408209171, 408209179, 408209187, 408209202, 408209210, 408209218, 408209241, 408209249, 408209280, 408505139, 408505147, 408505155, 408505163, 408505176, 408505178, 408505184, 408505186, 408505192, 408505194, 408505200, 408505215, 408505217, 408505223, 408505225, 408505231, 408505254, 408505256, 408505262, 408505293, 408507217, 408507225, 408507233, 408507241, 408507256, 408507264, 408507272, 408507295, 408507303, 408507334, 408511929, 408511937, 408511945, 408511953, 408511968, 408511976, 408511984, 408512007, 408512015, 408512046, 408514115, 408514123, 408514154, 408557133, 408557141, 408557149, 408557172, 408557180, 408557211, 408607203, 408607211, 408607242, 408814695, 408814703, 408814711, 408814719, 408814734, 408814742, 408814750, 408814773, 408814781, 408814812, 408975169, 408975177, 408975185, 408975206, 408975208, 408975214, 408975216, 408975222, 408975245, 408975247, 408975253, 408975284, 408977247, 408977255, 408977263, 408977286, 408977294, 408977325, 408978074, 408981959, 408981967, 408981975, 408981998, 408982006, 408982037, 409061503, 409061511, 409061519, 409061542, 409061550, 409061581, 409284725, 409284733, 409284741, 409284764, 409284772, 409284803, 409286213, 409286221, 409286229, 409286237, 409286250, 409286252, 409286258, 409286260, 409286266, 409286268, 409286274, 409286289, 409286291, 409286297, 409286299, 409286305, 409286328, 409286330, 409286336, 409286367, 409288291, 409288299, 409288307, 409288315, 409288330, 409288338, 409288346, 409288369, 409288377, 409288408, 409293003, 409293011, 409293019, 409293027, 409293042, 409293050, 409293058, 409293081, 409293089, 409293120, 409502969, 409502977, 409503006, 409503008, 409503014, 409503045, 409505047, 409505055, 409505086, 409509759, 409509767, 409509798, 409545987, 409545995, 409546003, 409546024, 409546026, 409546032, 409546034, 409546040, 409546063, 409546065, 409546071, 409546102, 409548065, 409548073, 409548081, 409548104, 409548112, 409548143, 409548892, 409552777, 409552785, 409552793, 409552816, 409552824, 409552855, 409589303, 409589311, 409589342, 409595769, 409595777, 409595785, 409595793, 409595808, 409595816, 409595824, 409595847, 409595855, 409595886, 409628843, 409628851, 409628859, 409628867, 409628880, 409628882, 409628888, 409628890, 409628896, 409628898, 409628904, 409628917, 409628919, 409628921, 409628925, 409628927, 409628929, 409628933, 409628935, 409628941, 409628956, 409628958, 409628960, 409628964, 409628966, 409628972, 409628995, 409628997, 409629003, 409629034, 409630921, 409630929, 409630937, 409630945, 409630958, 409630960, 409630966, 409630968, 409630974, 409630976, 409630982, 409630997, 409630999, 409631005, 409631007, 409631013, 409631036, 409631038, 409631044, 409631075, 409632321, 409632329, 409632337, 409632360, 409632368, 409632399, 409632999, 409633007, 409633015, 409633023, 409633038, 409633046, 409633054, 409633077, 409633085, 409633116, 409635633, 409635641, 409635649, 409635657, 409635670, 409635672, 409635678, 409635680, 409635686, 409635688, 409635694, 409635709, 409635711, 409635717, 409635719, 409635725, 409635748, 409635750, 409635756, 409635787, 409637711, 409637719, 409637727, 409637735, 409637750, 409637758, 409637766, 409637789, 409637797, 409637828, 409642423, 409642431, 409642439, 409642447, 409642462, 409642470, 409642478, 409642501, 409642509, 409642540, 409812525, 409812533, 409812564, 409855543, 409855551, 409855559, 409855582, 409855590, 409855621, 409938399, 409938407, 409938415, 409938423, 409938436, 409938438, 409938444, 409938446, 409938452, 409938454, 409938460, 409938475, 409938477, 409938483, 409938485, 409938491, 409938514, 409938516, 409938522, 409938553, 409940477, 409940485, 409940493, 409940501, 409940516, 409940524, 409940532, 409940555, 409940563, 409940594, 409945189, 409945197, 409945205, 409945213, 409945228, 409945236, 409945244, 409945267, 409945275, 409945306, 410030769, 410030806, 410032847, 410037559, 410053262, 410065799, 410065807, 410065815, 410065838, 410065846, 410065877, 410073787, 410073795, 410073824, 410073826, 410073832, 410073863, 410075865, 410075873, 410075904, 410080577, 410080585, 410080616, 410136691, 410136699, 410136707, 410136730, 410136738, 410136769, 410247955, 410247963, 410247971, 410247979, 410247994, 410248002, 410248010, 410248033, 410248041, 410248072, 410340325, 410376843, 410376851, 410376859, 410376867, 410376882, 410376890, 410376898, 410376921, 410376929, 410376960, 410383343, 410383351, 410383382, 410577584, 410577621, 410577658, 410579662, 410579699, 410581740, 410584374, 410584411, 410586452, 410591164, 410593599, 410593607, 410593638, 410620602, 410620610, 410620639, 410620641, 410620647, 410620676, 410620678, 410620684, 410620715, 410622680, 410622688, 410622717, 410622719, 410622725, 410622756, 410624080, 410624758, 410624766, 410624797, 410627392, 410627400, 410627429, 410627431, 410627437, 410627468, 410629470, 410629478, 410629509, 410634182, 410634190, 410634221, 410636617, 410636625, 410636633, 410636656, 410636664, 410636695, 410664491, 410664499, 410664530, 410704031, 410704039, 410704047, 410704055, 410704068, 410704070, 410704076, 410704078, 410704084, 410704086, 410704092, 410704105, 410704107, 410704109, 410704113, 410704115, 410704117, 410704121, 410704123, 410704129, 410704144, 410704146, 410704148, 410704152, 410704154, 410704160, 410704183, 410704185, 410704191, 410704222, 410706109, 410706117, 410706125, 410706133, 410706146, 410706148, 410706154, 410706156, 410706162, 410706164, 410706170, 410706185, 410706187, 410706193, 410706195, 410706201, 410706224, 410706226, 410706232, 410706263, 410707509, 410707517, 410707525, 410707548, 410707556, 410707587, 410708187, 410708195, 410708203, 410708211, 410708226, 410708234, 410708242, 410708265, 410708273, 410708304, 410710821, 410710829, 410710837, 410710845, 410710858, 410710860, 410710866, 410710868, 410710874, 410710876, 410710882, 410710897, 410710899, 410710905, 410710907, 410710913, 410710936, 410710938, 410710944, 410710975, 410712899, 410712907, 410712915, 410712923, 410712938, 410712946, 410712954, 410712977, 410712985, 410713016, 410717611, 410717619, 410717627, 410717635, 410717650, 410717658, 410717666, 410717689, 410717697, 410717728, 410719473, 410719481, 410719489, 410719497, 410719510, 410719512, 410719518, 410719520, 410719526, 410719528, 410719534, 410719549, 410719551, 410719557, 410719559, 410719565, 410719588, 410719590, 410719596, 410719627, 410721551, 410721559, 410721567, 410721575, 410721590, 410721598, 410721606, 410721629, 410721637, 410721668, 410726263, 410726271, 410726279, 410726287, 410726302, 410726310, 410726318, 410726341, 410726349, 410726380, 410887140, 410887177, 410889218, 410893930, 410930158, 410930166, 410930195, 410930197, 410930203, 410930234, 410932236, 410932244, 410932275, 410936948, 410936956, 410936987, 411013587, 411013595, 411013603, 411013611, 411013624, 411013626, 411013632, 411013634, 411013640, 411013642, 411013648, 411013663, 411013665, 411013671, 411013673, 411013679, 411013702, 411013704, 411013710, 411013741, 411015665, 411015673, 411015681, 411015689, 411015704, 411015712, 411015720, 411015743, 411015751, 411015782, 411020377, 411020385, 411020393, 411020401, 411020416, 411020424, 411020432, 411020455, 411020463, 411020494, 411029029, 411029037, 411029045, 411029053, 411029068, 411029076, 411029084, 411029107, 411029115, 411029146, 411121399, 411164417, 411164425, 411164456, 411196696, 411239714, 411239722, 411239753, 411323143, 411323151, 411323159, 411323167, 411323182, 411323190, 411323198, 411323221, 411323229, 411323260, 411499059, 411499067, 411499075, 411499098, 411499106, 411499137, 411668214, 411668251, 411670292, 411675004, 411711232, 411711240, 411711269, 411711271, 411711277, 411711308, 411713310, 411713318, 411713349, 411718022, 411718030, 411718061, 411794661, 411794669, 411794677, 411794685, 411794698, 411794700, 411794706, 411794708, 411794714, 411794716, 411794722, 411794737, 411794739, 411794745, 411794747, 411794753, 411794776, 411794778, 411794784, 411794815, 411796739, 411796747, 411796755, 411796763, 411796778, 411796786, 411796794, 411796817, 411796825, 411796856, 411801451, 411801459, 411801467, 411801475, 411801490, 411801498, 411801506, 411801529, 411801537, 411801568, 411810103, 411810111, 411810119, 411810127, 411810142, 411810150, 411810158, 411810181, 411810189, 411810220, 411977770, 412020788, 412020796, 412020827, 412026859, 412026867, 412026898, 412069877, 412069885, 412069893, 412069916, 412069924, 412069955, 412104217, 412104225, 412104233, 412104241, 412104256, 412104264, 412104272, 412104295, 412104303, 412104334, 412152733, 412152741, 412152749, 412152757, 412152770, 412152772, 412152778, 412152780, 412152786, 412152788, 412152794, 412152809, 412152811, 412152817, 412152819, 412152825, 412152848, 412152850, 412152856, 412152887, 412154811, 412154819, 412154827, 412154835, 412154850, 412154858, 412154866, 412154889, 412154897, 412154928, 412159523, 412159531, 412159539, 412159547, 412159562, 412159570, 412159578, 412159601, 412159609, 412159640, 412462289, 412462297, 412462305, 412462313, 412462328, 412462336, 412462344, 412462367, 412462375, 412462406, 412490818, 412554659, 412574247, 412574255, 412574263, 412574286, 412574294, 412574325, 412597677, 412597685, 412597716, 412758844, 412801862, 412801870, 412801901, 412885291, 412885299, 412885307, 412885315, 412885330, 412885338, 412885346, 412885369, 412885377, 412885408, 413061636, 413101474, 413101511, 413102047, 413102055, 413102086, 413103552, 413108264, 413141587, 413141595, 413141603, 413141611, 413141624, 413141626, 413141632, 413141634, 413141640, 413141642, 413141648, 413141661, 413141663, 413141665, 413141669, 413141671, 413141673, 413141677, 413141679, 413141685, 413141700, 413141702, 413141704, 413141708, 413141710, 413141716, 413141739, 413141741, 413141747, 413141778, 413143665, 413143673, 413143681, 413143689, 413143702, 413143704, 413143710, 413143712, 413143718, 413143720, 413143726, 413143741, 413143743, 413143749, 413143751, 413143757, 413143780, 413143782, 413143788, 413143819, 413144492, 413144500, 413144529, 413144531, 413144537, 413144568, 413145065, 413145073, 413145081, 413145104, 413145112, 413145143, 413145743, 413145751, 413145759, 413145767, 413145782, 413145790, 413145798, 413145821, 413145829, 413145860, 413146570, 413146578, 413146609, 413148377, 413148385, 413148393, 413148401, 413148414, 413148416, 413148422, 413148424, 413148430, 413148432, 413148438, 413148453, 413148455, 413148461, 413148463, 413148469, 413148492, 413148494, 413148500, 413148531, 413150455, 413150463, 413150471, 413150479, 413150494, 413150502, 413150510, 413150533, 413150541, 413150572, 413151282, 413151290, 413151321, 413155167, 413155175, 413155183, 413155191, 413155206, 413155214, 413155222, 413155245, 413155253, 413155284, 413227921, 413227929, 413227937, 413227945, 413227958, 413227960, 413227966, 413227968, 413227974, 413227976, 413227982, 413227997, 413227999, 413228005, 413228007, 413228013, 413228036, 413228038, 413228044, 413228075, 413229999, 413230007, 413230015, 413230023, 413230038, 413230046, 413230054, 413230077, 413230085, 413230116, 413234711, 413234719, 413234727, 413234735, 413234750, 413234758, 413234766, 413234789, 413234797, 413234828, 413243363, 413243371, 413243379, 413243387, 413243402, 413243410, 413243418, 413243441, 413243449, 413243480, 413411030, 413451143, 413451151, 413451159, 413451167, 413451180, 413451182, 413451188, 413451190, 413451196, 413451198, 413451204, 413451219, 413451221, 413451227, 413451229, 413451235, 413451258, 413451260, 413451266, 413451297, 413453221, 413453229, 413453237, 413453245, 413453260, 413453268, 413453276, 413453299, 413453307, 413453338, 413454048, 413454056, 413454087, 413457933, 413457941, 413457949, 413457957, 413457972, 413457980, 413457988, 413458011, 413458019, 413458050, 413537477, 413537485, 413537493, 413537501, 413537516, 413537524, 413537532, 413537555, 413537563, 413537594, 413629847, 413669387, 413669395, 413669403, 413669424, 413669426, 413669432, 413669434, 413669440, 413669461, 413669463, 413669465, 413669469, 413669471, 413669477, 413669500, 413669502, 413669508, 413669539, 413671465, 413671473, 413671481, 413671502, 413671504, 413671510, 413671512, 413671518, 413671541, 413671543, 413671549, 413671580, 413672865, 413672873, 413672904, 413673543, 413673551, 413673559, 413673582, 413673590, 413673621, 413676177, 413676185, 413676193, 413676214, 413676216, 413676222, 413676224, 413676230, 413676253, 413676255, 413676261, 413676292, 413678255, 413678263, 413678271, 413678294, 413678302, 413678333, 413682967, 413682975, 413682983, 413683006, 413683014, 413683045, 413760699, 413760707, 413760715, 413760723, 413760738, 413760746, 413760754, 413760777, 413760785, 413760816, 413978943, 413978951, 413978959, 413978980, 413978982, 413978988, 413978990, 413978996, 413979019, 413979021, 413979027, 413979058, 413981021, 413981029, 413981037, 413981060, 413981068, 413981099, 413985733, 413985741, 413985749, 413985772, 413985780, 413985811, 414176662, 414176699, 414178740, 414183452, 414192104, 414219680, 414219688, 414219717, 414219719, 414219725, 414219756, 414221758, 414221766, 414221797, 414226470, 414226478, 414226509, 414232217, 414232225, 414232233, 414232241, 414232254, 414232256, 414232262, 414232264, 414232270, 414232272, 414232278, 414232293, 414232295, 414232301, 414232303, 414232309, 414232332, 414232334, 414232340, 414232371, 414234295, 414234303, 414234311, 414234319, 414234334, 414234342, 414234350, 414234373, 414234381, 414234412, 414235122, 414235130, 414235161, 414239007, 414239015, 414239023, 414239031, 414239046, 414239054, 414239062, 414239085, 414239093, 414239124, 414288499, 414288507, 414288515, 414288538, 414288546, 414288577, 414303109, 414303117, 414303125, 414303133, 414303146, 414303148, 414303154, 414303156, 414303162, 414303164, 414303170, 414303185, 414303187, 414303193, 414303195, 414303201, 414303224, 414303226, 414303232, 414303263, 414305187, 414305195, 414305203, 414305211, 414305226, 414305234, 414305242, 414305265, 414305273, 414305304, 414309899, 414309907, 414309915, 414309923, 414309938, 414309946, 414309954, 414309977, 414309985, 414310016, 414318551, 414318559, 414318567, 414318575, 414318590, 414318598, 414318606, 414318629, 414318637, 414318668, 414486218, 414529236, 414529244, 414529275, 414541773, 414541781, 414541789, 414541797, 414541812, 414541820, 414541828, 414541851, 414541859, 414541890, 414612665, 414612673, 414612681, 414612689, 414612704, 414612712, 414612720, 414612743, 414612751, 414612782, 414676623, 414676631, 414676639, 414676647, 414676662, 414676670, 414676678, 414676701, 414676709, 414676740, 414760017, 414760025, 414760033, 414760054, 414760056, 414760062, 414760064, 414760070, 414760093, 414760095, 414760101, 414760132, 414762095, 414762103, 414762111, 414762134, 414762142, 414762173, 414766807, 414766815, 414766823, 414766846, 414766854, 414766885, 415011803, 415011811, 415011819, 415011842, 415011850, 415011881, 415069573, 415069581, 415069589, 415069612, 415069620, 415069651, 415267292, 415310310, 415310318, 415310349, 415322847, 415322855, 415322863, 415322871, 415322886, 415322894, 415322902, 415322925, 415322933, 415322964, 415393739, 415393747, 415393755, 415393763, 415393778, 415393786, 415393794, 415393817, 415393825, 415393856, 415539603, 415539611, 415539642, 415582621, 415582629, 415582637, 415582660, 415582668, 415582699, 415625364, 415665477, 415665485, 415665493, 415665501, 415665514, 415665516, 415665522, 415665524, 415665530, 415665532, 415665538, 415665553, 415665555, 415665561, 415665563, 415665569, 415665592, 415665594, 415665600, 415665631, 415667555, 415667563, 415667571, 415667579, 415667594, 415667602, 415667610, 415667633, 415667641, 415667672, 415668382, 415668390, 415668421, 415672267, 415672275, 415672283, 415672291, 415672306, 415672314, 415672322, 415672345, 415672353, 415672384, 415718452, 415751811, 415751819, 415751827, 415751835, 415751850, 415751858, 415751866, 415751889, 415751897, 415751928, 415850647, 415850655, 415850663, 415850686, 415850694, 415850725, 415975033, 415975041, 415975049, 415975057, 415975072, 415975080, 415975088, 415975111, 415975119, 415975150, 416067403, 416110421, 416110429, 416110460, 416193277, 416193285, 416193293, 416193314, 416193316, 416193322, 416193324, 416193330, 416193353, 416193355, 416193361, 416193392, 416195355, 416195363, 416195371, 416195394, 416195402, 416195433, 416200067, 416200075, 416200083, 416200106, 416200114, 416200145, 416502833, 416502841, 416502849, 416502872, 416502880, 416502911, 416614218, 416614255, 416616296, 416621008, 416638221, 416657236, 416657244, 416657273, 416657275, 416657281, 416657312, 416659314, 416659322, 416659353, 416664026, 416664034, 416664065, 416681239, 416681247, 416681278, 416700552, 416740665, 416740673, 416740681, 416740689, 416740702, 416740704, 416740710, 416740712, 416740718, 416740720, 416740726, 416740741, 416740743, 416740749, 416740751, 416740757, 416740780, 416740782, 416740788, 416740819, 416742743, 416742751, 416742759, 416742767, 416742782, 416742790, 416742798, 416742821, 416742829, 416742860, 416743570, 416743578, 416743609, 416747455, 416747463, 416747471, 416747479, 416747494, 416747502, 416747510, 416747533, 416747541, 416747572, 416756107, 416756115, 416756123, 416756131, 416756146, 416756154, 416756162, 416756185, 416756193, 416756224, 416826999, 416827007, 416827015, 416827023, 416827038, 416827046, 416827054, 416827077, 416827085, 416827116, 416923774, 416966792, 416966800, 416966831, 417050221, 417050229, 417050237, 417050245, 417050260, 417050268, 417050276, 417050299, 417050307, 417050338, 417185036, 417185073, 417187114, 417191826, 417268465, 417268473, 417268481, 417268502, 417268504, 417268510, 417268512, 417268518, 417268541, 417268543, 417268549, 417268580, 417270543, 417270551, 417270559, 417270582, 417270590, 417270621, 417275255, 417275263, 417275271, 417275294, 417275302, 417275333, 417283907, 417283915, 417283923, 417283946, 417283954, 417283985, 417494592, 417578021, 417578029, 417578037, 417578060, 417578068, 417578099, 417704848, 417747866, 417747874, 417747905, 417775740, 417818758, 417818766, 417818797, 417831295, 417831303, 417831311, 417831319, 417831334, 417831342, 417831350, 417831373, 417831381, 417831412, 417902187, 417902195, 417902203, 417902211, 417902226, 417902234, 417902242, 417902265, 417902273, 417902304, 418189367, 418189375, 418189383, 418189391, 418189406, 418189414, 418189422, 418189445, 418189453, 418189484, 418275666, 418359095, 418359103, 418359111, 418359134, 418359142, 418359173, 418717167, 418717175, 418717183, 418717206, 418717214, 418717245, 419138108, 419178221, 419178229, 419178237, 419178245, 419178258, 419178260, 419178266, 419178268, 419178274, 419178276, 419178282, 419178297, 419178299, 419178305, 419178307, 419178313, 419178336, 419178338, 419178344, 419178375, 419180299, 419180307, 419180315, 419180323, 419180338, 419180346, 419180354, 419180377, 419180385, 419180416, 419181126, 419181134, 419181165, 419185011, 419185019, 419185027, 419185035, 419185050, 419185058, 419185066, 419185089, 419185097, 419185128, 419264555, 419264563, 419264571, 419264579, 419264594, 419264602, 419264610, 419264633, 419264641, 419264672, 419487777, 419487785, 419487793, 419487801, 419487816, 419487824, 419487832, 419487855, 419487863, 419487894, 419706021, 419706029, 419706037, 419706058, 419706060, 419706066, 419706068, 419706074, 419706097, 419706099, 419706105, 419706136, 419708099, 419708107, 419708115, 419708138, 419708146, 419708177, 419708926, 419712811, 419712819, 419712827, 419712850, 419712858, 419712889, 419792355, 419792363, 419792371, 419792394, 419792402, 419792433, 420015577, 420015585, 420015593, 420015616, 420015624, 420015655, 420213296, 420233821, 420233829, 420233858, 420233860, 420233866, 420233897, 420235899, 420235907, 420235938, 420240611, 420240619, 420240650, 420256314, 420256322, 420256353, 420268851, 420268859, 420268867, 420268875, 420268890, 420268898, 420268906, 420268929, 420268937, 420268968, 420276839, 420276847, 420276855, 420276876, 420276878, 420276884, 420276886, 420276892, 420276915, 420276917, 420276923, 420276954, 420278917, 420278925, 420278933, 420278956, 420278964, 420278995, 420283629, 420283637, 420283645, 420283668, 420283676, 420283707, 420339743, 420339751, 420339759, 420339767, 420339782, 420339790, 420339798, 420339821, 420339829, 420339860, 420543377, 420543385, 420543416, 420586395, 420586403, 420586411, 420586434, 420586442, 420586473, 420780636, 420780644, 420780673, 420780675, 420780681, 420780710, 420780712, 420780718, 420780749, 420782714, 420782722, 420782751, 420782753, 420782759, 420782790, 420784114, 420784792, 420784800, 420784831, 420787426, 420787434, 420787463, 420787465, 420787471, 420787502, 420789504, 420789512, 420789543, 420794216, 420794224, 420794255, 420796651, 420796659, 420796667, 420796690, 420796698, 420796729, 420867543, 420867551, 420867559, 420867582, 420867590, 420867621, 421090192, 421090200, 421090229, 421090231, 421090237, 421090268, 421092270, 421092278, 421092309, 421096982, 421096990, 421097021, 421324451, 421324459, 421324490, 421367469, 421367477, 421367485, 421367508, 421367516, 421367547, 421399748, 421399756, 421399787, 421702111, 421702119, 421702127, 421702135, 421702150, 421702158, 421702166, 421702189, 421702197, 421702228, 421871266, 421871274, 421871303, 421871305, 421871311, 421871342, 421873344, 421873352, 421873383, 421878056, 421878064, 421878095, 422180822, 422180830, 422180861, 422229911, 422229919, 422229927, 422229950, 422229958, 422229989, 422650852, 422693870, 422693878, 422693909, 422757711, 422757719, 422757750, 422777299, 422777307, 422777315, 422777323, 422777338, 422777346, 422777354, 422777377, 422777385, 422777416, 422800729, 422800737, 422800745, 422800768, 422800776, 422800807, 422961896, 422961904, 422961935, 423221670, 423304526, 423304534, 423304563, 423304565, 423304571, 423304602, 423305099, 423305107, 423305115, 423305138, 423305146, 423305177, 423306604, 423306612, 423306643, 423311316, 423311324, 423311355, 423614082, 423614090, 423614121, 423792488, 423832899, 423832907, 423832938, 423872439, 423872447, 423872455, 423872463, 423872476, 423872478, 423872484, 423872486, 423872492, 423872494, 423872500, 423872513, 423872515, 423872517, 423872521, 423872523, 423872525, 423872529, 423872531, 423872537, 423872552, 423872554, 423872556, 423872560, 423872562, 423872568, 423872591, 423872593, 423872599, 423872630, 423874517, 423874525, 423874533, 423874541, 423874554, 423874556, 423874562, 423874564, 423874570, 423874572, 423874578, 423874593, 423874595, 423874601, 423874603, 423874609, 423874632, 423874634, 423874640, 423874671, 423875917, 423875925, 423875933, 423875956, 423875964, 423875995, 423876595, 423876603, 423876611, 423876619, 423876634, 423876642, 423876650, 423876673, 423876681, 423876712, 423879229, 423879237, 423879245, 423879253, 423879266, 423879268, 423879274, 423879276, 423879282, 423879284, 423879290, 423879305, 423879307, 423879313, 423879315, 423879321, 423879344, 423879346, 423879352, 423879383, 423881307, 423881315, 423881323, 423881331, 423881346, 423881354, 423881362, 423881385, 423881393, 423881424, 423886019, 423886027, 423886035, 423886043, 423886058, 423886066, 423886074, 423886097, 423886105, 423886136, 424181995, 424182003, 424182011, 424182019, 424182032, 424182034, 424182040, 424182042, 424182048, 424182050, 424182056, 424182071, 424182073, 424182079, 424182081, 424182087, 424182110, 424182112, 424182118, 424182149, 424184073, 424184081, 424184089, 424184097, 424184112, 424184120, 424184128, 424184151, 424184159, 424184190, 424188785, 424188793, 424188801, 424188809, 424188824, 424188832, 424188840, 424188863, 424188871, 424188902, 424379714, 424379722, 424379751, 424379753, 424379759, 424379790, 424381792, 424381800, 424381831, 424386504, 424386512, 424386543, 424395156, 424395164, 424395195, 424491551, 424491559, 424491567, 424491575, 424491590, 424491598, 424491606, 424491629, 424491637, 424491668, 424689270, 424689278, 424689309, 424963069, 424963077, 424963085, 424963093, 424963106, 424963108, 424963114, 424963116, 424963122, 424963124, 424963130, 424963145, 424963147, 424963153, 424963155, 424963161, 424963184, 424963186, 424963192, 424963223, 424965147, 424965155, 424965163, 424965171, 424965186, 424965194, 424965202, 424965225, 424965233, 424965264, 424969859, 424969867, 424969875, 424969883, 424969898, 424969906, 424969914, 424969937, 424969945, 424969976, 425214855, 425214863, 425214871, 425214879, 425214894, 425214902, 425214910, 425214933, 425214941, 425214972, 425272625, 425272633, 425272641, 425272649, 425272664, 425272672, 425272680, 425272703, 425272711, 425272742, 425470344, 425470352, 425470383, 425742655, 425742663, 425742671, 425742694, 425742702, 425742733, 425805887, 425805924, 425805961, 425807965, 425808002, 425810043, 425812677, 425812714, 425814755, 425819467, 425828416, 425828424, 425828455, 426053699, 426053707, 426053715, 426053723, 426053738, 426053746, 426053754, 426053777, 426053785, 426053816, 426115443, 426115480, 426117521, 426122233, 426270455, 426270463, 426270494, 426313473, 426313481, 426313489, 426313512, 426313520, 426313551, 426396329, 426396337, 426396345, 426396353, 426396366, 426396368, 426396374, 426396376, 426396382, 426396384, 426396390, 426396405, 426396407, 426396413, 426396415, 426396421, 426396444, 426396446, 426396452, 426396483, 426398407, 426398415, 426398423, 426398431, 426398446, 426398454, 426398462, 426398485, 426398493, 426398524, 426403119, 426403127, 426403135, 426403143, 426403158, 426403166, 426403174, 426403197, 426403205, 426403236, 426424999, 426705885, 426705893, 426705901, 426705909, 426705924, 426705932, 426705940, 426705963, 426705971, 426706002, 426798255, 426817270, 426817278, 426817307, 426817309, 426817315, 426817346, 426819348, 426819356, 426819387, 426824060, 426824068, 426824099, 426841273, 426841281, 426841312, 426896517, 426896554, 426898595, 426903307, 426903604, 426903612, 426903643, 427126826, 427126834, 427126865, 427206073, 427345070, 427345107, 427347148, 427351860, 427388088, 427388096, 427388125, 427388127, 427388133, 427388164, 427390166, 427390174, 427390205, 427394878, 427394886, 427394917, 427471517, 427471525, 427471533, 427471541, 427471554, 427471556, 427471562, 427471564, 427471570, 427471572, 427471578, 427471593, 427471595, 427471601, 427471603, 427471609, 427471632, 427471634, 427471640, 427471671, 427473595, 427473603, 427473611, 427473619, 427473634, 427473642, 427473650, 427473673, 427473681, 427473712, 427478307, 427478315, 427478323, 427478331, 427478346, 427478354, 427478362, 427478385, 427478393, 427478424, 427486959, 427486967, 427486975, 427486983, 427486998, 427487006, 427487014, 427487037, 427487045, 427487076, 427654626, 427697644, 427697652, 427697683, 427781073, 427781081, 427781089, 427781097, 427781112, 427781120, 427781128, 427781151, 427781159, 427781190, 427907900, 427907908, 427907939, 427978792, 427978800, 427978831, 427987147, 428329777, 428329814, 428331855, 428336567, 428435700, 428478718, 428478726, 428478757, 428562147, 428562155, 428562163, 428562171, 428562186, 428562194, 428562202, 428562225, 428562233, 428562264, 428639333, 428920219, 428920227, 428920235, 428920243, 428920258, 428920266, 428920274, 428920297, 428920305, 428920336, 429341160, 429341168, 429341199, 429404965, 429405002, 429407043, 429411755, 429420407, 429714521, 429868960, 429909073, 429909081, 429909089, 429909097, 429909110, 429909112, 429909118, 429909120, 429909126, 429909128, 429909134, 429909149, 429909151, 429909157, 429909159, 429909165, 429909188, 429909190, 429909196, 429909227, 429911151, 429911159, 429911167, 429911175, 429911190, 429911198, 429911206, 429911229, 429911237, 429911268, 429911978, 429911986, 429912017, 429915863, 429915871, 429915879, 429915887, 429915902, 429915910, 429915918, 429915941, 429915949, 429915980, 429995407, 429995415, 429995423, 429995431, 429995446, 429995454, 429995462, 429995485, 429995493, 429995524, 430218629, 430218637, 430218645, 430218653, 430218668, 430218676, 430218684, 430218707, 430218715, 430218746, 430416348, 430416356, 430416387, 430436873, 430436881, 430436889, 430436910, 430436912, 430436918, 430436920, 430436926, 430436949, 430436951, 430436957, 430436988, 430438951, 430438959, 430438967, 430438990, 430438998, 430439029, 430443663, 430443671, 430443679, 430443702, 430443710, 430443741, 430495595, 430746429, 430746437, 430746445, 430746468, 430746476, 430746507, 430853667, 430944148, 430983688, 430983696, 430983704, 430983725, 430983727, 430983733, 430983735, 430983741, 430983762, 430983764, 430983766, 430983770, 430983772, 430983778, 430983801, 430983803, 430983809, 430983840, 430985766, 430985774, 430985782, 430985803, 430985805, 430985811, 430985813, 430985819, 430985842, 430985844, 430985850, 430985881, 430987166, 430987174, 430987205, 430987844, 430987852, 430987860, 430987883, 430987891, 430987922, 430990478, 430990486, 430990494, 430990515, 430990517, 430990523, 430990525, 430990531, 430990554, 430990556, 430990562, 430990593, 430992556, 430992564, 430992572, 430992595, 430992603, 430992634, 430997268, 430997276, 430997284, 430997307, 430997315, 430997346, 430999703, 430999711, 430999719, 430999727, 430999742, 430999750, 430999758, 430999781, 430999789, 430999820, 431070595, 431070603, 431070611, 431070619, 431070634, 431070642, 431070650, 431070673, 431070681, 431070712, 431293244, 431293252, 431293260, 431293281, 431293283, 431293289, 431293291, 431293297, 431293320, 431293322, 431293328, 431293359, 431295322, 431295330, 431295338, 431295361, 431295369, 431295400, 431300034, 431300042, 431300050, 431300073, 431300081, 431300112, 431527503, 431527511, 431527519, 431527542, 431527550, 431527581, 431602800, 431602808, 431602816, 431602839, 431602847, 431602878, 431842521, 431842558, 431844599, 431849311, 431928855, 432074318, 432074326, 432074334, 432074355, 432074357, 432074363, 432074365, 432074371, 432074394, 432074396, 432074402, 432074433, 432076396, 432076404, 432076412, 432076435, 432076443, 432076474, 432081108, 432081116, 432081124, 432081147, 432081155, 432081186, 432152077, 432383874, 432383882, 432383890, 432383913, 432383921, 432383952, 432432963, 432432971, 432432979, 432432987, 432433002, 432433010, 432433018, 432433041, 432433049, 432433080, 432853904, 432853912, 432853943, 432933151, 432960763, 432960771, 432960779, 432960802, 432960810, 432960841, 433004043, 433164948, 433164956, 433164964, 433164987, 433164995, 433165026, 433381704, 433424722, 433424730, 433424761, 433507578, 433507586, 433507594, 433507615, 433507617, 433507623, 433507625, 433507631, 433507654, 433507656, 433507662, 433507693, 433508151, 433508159, 433508167, 433508175, 433508190, 433508198, 433508206, 433508229, 433508237, 433508268, 433509656, 433509664, 433509672, 433509695, 433509703, 433509734, 433514368, 433514376, 433514384, 433514407, 433514415, 433514446, 433817134, 433817142, 433817150, 433817173, 433817181, 433817212, 433952522, 434035951, 434035959, 434035967, 434035990, 434035998, 434036029, 434366411, 434499337, 434499374, 434501415, 434506127, 434582766, 434582774, 434582782, 434582803, 434582805, 434582811, 434582813, 434582819, 434582842, 434582844, 434582850, 434582881, 434584844, 434584852, 434584860, 434584883, 434584891, 434584922, 434589556, 434589564, 434589572, 434589595, 434589603, 434589634, 434598208, 434598216, 434598224, 434598247, 434598255, 434598286, 434808893, 434892322, 434892330, 434892338, 434892361, 434892369, 434892400, 435441599, 435589967, 435673396, 435673404, 435673412, 435673435, 435673443, 435673474, 435945707, 435945715, 435945723, 435945731, 435945746, 435945754, 435945762, 435945785, 435945793, 435945824, 435965921, 435965958, 435965995, 435967999, 435968036, 435970077, 435972711, 435972748, 435974789, 435979501, 436031468, 436031476, 436031484, 436031507, 436031515, 436031546, 436275477, 436275514, 436277555, 436282267, 436473507, 436473515, 436473523, 436473546, 436473554, 436473585, 436585033, 437001307, 437001315, 437001346, 437020322, 437020330, 437020338, 437020359, 437020361, 437020367, 437020369, 437020375, 437020398, 437020400, 437020406, 437020437, 437022400, 437022408, 437022416, 437022439, 437022447, 437022478, 437023227, 437027112, 437027120, 437027128, 437027151, 437027159, 437027190, 437044325, 437044333, 437044341, 437044364, 437044372, 437044403, 437056551, 437056588, 437058629, 437063341, 437106656, 437106664, 437106672, 437106695, 437106703, 437106734, 437329878, 437329886, 437329894, 437329917, 437329925, 437329956, 437366107, 437548122, 437548130, 437548159, 437548161, 437548167, 437548198, 437550200, 437550208, 437550239, 437554912, 437554920, 437554951, 437857678, 437857686, 437857717, 437879155, 438098415, 438110952, 438110960, 438110968, 438110991, 438110999, 438111030, 438147181, 438181844, 438181852, 438181860, 438181883, 438181891, 438181922, 438489811, 438489848, 438491889, 438496601, 438638752, 438638760, 438638791, 438799367, 439544212, 439544220, 439544228, 439544251, 439544259, 439544290, 439564999, 439565036, 439567077, 439571789, 439580441, 439874555, 440072012, 440072020, 440072051, 440535971, 440619400, 440619408, 440619416, 440619439, 440619447, 440619478, 440639925, 440639933, 440639941, 440639949, 440639962, 440639964, 440639970, 440639972, 440639978, 440639980, 440639986, 440640001, 440640003, 440640009, 440640011, 440640017, 440640040, 440640042, 440640048, 440640079, 440642003, 440642011, 440642019, 440642027, 440642042, 440642050, 440642058, 440642081, 440642089, 440642120, 440646715, 440646723, 440646731, 440646739, 440646754, 440646762, 440646770, 440646793, 440646801, 440646832, 440655629, 440949481, 440949489, 440949497, 440949505, 440949520, 440949528, 440949536, 440949559, 440949567, 440949598, 441013701, 441147200, 441147208, 441147239, 441730555, 441730563, 441730571, 441730579, 441730594, 441730602, 441730610, 441730633, 441730641, 441730672, 442002555, 442002592, 442004633, 442009345, 442088889, 442312111, 442573373, 442573410, 442575451, 442580163, 442882929, 443056956, 443056964, 443056972, 443056995, 443057003, 443057034, 443093185, 443163815, 443163823, 443163831, 443163839, 443163854, 443163862, 443163870, 443163893, 443163901, 443163932, 443164077, 443584756, 443584764, 443584795, 443664003, 444112556, 444155574, 444155582, 444155613, 444239003, 444239011, 444239019, 444239027, 444239042, 444239050, 444239058, 444239081, 444239089, 444239120, 444526445, 444659371, 444659408, 444661449, 444666161, 444968927, 445097263, 445601633, 445750001, 446125955, 446125992, 446126029, 446128033, 446128070, 446130111, 446132745, 446132782, 446134823, 446139535, 446168973, 446168981, 446169010, 446169012, 446169018, 446169047, 446169049, 446169055, 446169086, 446171051, 446171059, 446171088, 446171090, 446171096, 446171127, 446172451, 446173129, 446173137, 446173168, 446175763, 446175771, 446175800, 446175802, 446175808, 446175839, 446177841, 446177849, 446177880, 446182553, 446182561, 446182592, 446435511, 446435548, 446437589, 446442301, 446478529, 446478537, 446478566, 446478568, 446478574, 446478605, 446480607, 446480615, 446480646, 446485319, 446485327, 446485358, 446676559, 446676567, 446676575, 446676583, 446676598, 446676606, 446676614, 446676637, 446676645, 446676676, 446745067, 446788085, 446788093, 446788124, 447183261, 447204359, 447204367, 447204375, 447204398, 447204406, 447204437, 447216585, 447216622, 447218663, 447223375, 447259603, 447259611, 447259640, 447259642, 447259648, 447259679, 447261681, 447261689, 447261720, 447266393, 447266401, 447266432, 447526141, 447569159, 447569167, 447569198, 447751174, 447751182, 447751190, 447751211, 447751213, 447751219, 447751221, 447751227, 447751250, 447751252, 447751258, 447751289, 447753252, 447753260, 447753268, 447753291, 447753299, 447753330, 447757964, 447757972, 447757980, 447758003, 447758011, 447758042, 448039189, 448060730, 448060738, 448060746, 448060769, 448060777, 448060808, 448258449, 448307215, 448350233, 448350241, 448350272, 448610007, 448649845, 448649882, 448651923, 448656635, 448692863, 448692871, 448692900, 448692902, 448692908, 448692939, 448694941, 448694949, 448694980, 448699653, 448699661, 448699692, 448841804, 448841812, 448841820, 448841843, 448841851, 448841882, 448959401, 449002419, 449002427, 449002458, 449725033, 449725070, 449727111, 449731823, 449740475, 449768051, 449768059, 449768088, 449768090, 449768096, 449768127, 449770129, 449770137, 449770168, 449774841, 449774849, 449774880, 449783493, 449783501, 449783532, 450034589, 450077607, 450077615, 450077646, 450275064, 450275072, 450275080, 450275103, 450275111, 450275142, 450696005, 450815663, 450858681, 450858689, 450858720, 451173735, 451216753, 451216761, 451216792, 451266823, 451350252, 451350260, 451350268, 451350291, 451350299, 451350330, 452162589, 452162626, 452164667, 452169379, 452205607, 452205615, 452205644, 452205646, 452205652, 452205683, 452207685, 452207693, 452207724, 452212397, 452212405, 452212436, 452248923, 452291941, 452291949, 452291980, 452472145, 452515163, 452515171, 452515202, 452733407, 452733444, 452735485, 452740197, 453042963, 453253219, 453296237, 453296245, 453296276, 453324111, 453367129, 453367137, 453367168, 453787808, 453787816, 453787824, 453787847, 453787855, 453787886, 453824037, 454315608, 454315616, 454315647, 454686479, 454729497, 454729505, 454729536, 454862423, 454862431, 454862460, 454862462, 454862468, 454862499, 454864501, 454864509, 454864540, 454869213, 454869221, 454869252, 455171979, 455171987, 455172018, 455257297, 455761667, 455804685, 455804693, 455804724, 455953053, 455953061, 455953092, 456285989, 456286026, 456286063, 456288067, 456288104, 456290145, 456292779, 456292816, 456294857, 456299569, 456329007, 456329015, 456329044, 456329046, 456329052, 456329081, 456329083, 456329089, 456329120, 456331085, 456331093, 456331122, 456331124, 456331130, 456331161, 456332485, 456333163, 456333171, 456333202, 456335797, 456335805, 456335834, 456335836, 456335842, 456335873, 456337875, 456337883, 456337914, 456342587, 456342595, 456342626, 456595545, 456595582, 456597623, 456602335, 456638563, 456638571, 456638600, 456638602, 456638608, 456638639, 456640641, 456640649, 456640680, 456645353, 456645361, 456645392, 456905101, 456948119, 456948127, 456948158, 457376619, 457376656, 457378697, 457383409, 457386313, 457386321, 457386352, 457407411, 457407419, 457407427, 457407435, 457407450, 457407458, 457407466, 457407489, 457407497, 457407528, 457419637, 457419645, 457419674, 457419676, 457419682, 457419713, 457421715, 457421723, 457421754, 457426427, 457426435, 457426466, 457686175, 457729193, 457729201, 457729232, 458199223, 458242241, 458242249, 458242280, 458461501, 458461509, 458461540, 458467249, 458510267, 458510275, 458510306, 458770041, 458809879, 458809916, 458811957, 458816669, 458852897, 458852905, 458852934, 458852936, 458852942, 458852973, 458854975, 458854983, 458855014, 458859687, 458859695, 458859726, 459119435, 459162453, 459162461, 459162492, 459340859, 459885067, 459885104, 459887145, 459891857, 459900509, 459928085, 459928093, 459928122, 459928124, 459928130, 459928161, 459930163, 459930171, 459930202, 459934875, 459934883, 459934914, 459943527, 459943535, 459943566, 460194623, 460237641, 460237649, 460237680, 460899057, 460899065, 460899096, 460975697, 461018715, 461018723, 461018754, 461333769, 461354258, 461354295, 461354332, 461356336, 461356373, 461358414, 461361048, 461361085, 461363126, 461367838, 461376787, 461376795, 461376826, 461426857, 461663814, 461663851, 461665892, 461670604, 461973370, 462322623, 462322660, 462324701, 462329413, 462365641, 462365649, 462365678, 462365680, 462365686, 462365717, 462367719, 462367727, 462367758, 462372431, 462372439, 462372470, 462408957, 462444888, 462444925, 462446966, 462451678, 462451975, 462451983, 462452014, 462632179, 462675197, 462675205, 462675236, 462754444, 462893441, 462893478, 462895519, 462900231, 462936459, 462936467, 462936496, 462936498, 462936504, 462936535, 462938537, 462938545, 462938576, 462943249, 462943257, 462943288, 463202997, 463246015, 463246023, 463246054, 463413253, 463456271, 463456279, 463456310, 463484145, 463527163, 463527171, 463527202, 463535518, 463878148, 463878185, 463880226, 463884938, 463984071, 464027089, 464027097, 464027128, 464187704, 464518660, 464518668, 464518676, 464518699, 464518707, 464518738, 464846513, 464889531, 464889539, 464889570, 464953336, 464953373, 464955414, 464960126, 464968778, 465262892, 465417331, 465460349, 465460357, 465460388, 465921701, 465964719, 465964727, 465964758, 466043966, 466402038, 466489041, 466489049, 466489078, 466489080, 466489086, 466489115, 466489117, 466489123, 466489154, 466491119, 466491127, 466491156, 466491158, 466491164, 466491195, 466492519, 466493197, 466493205, 466493236, 466495831, 466495839, 466495868, 466495870, 466495876, 466495907, 466497909, 466497917, 466497948, 466502621, 466502629, 466502660, 466532059, 466532067, 466532075, 466532096, 466532098, 466532104, 466532106, 466532112, 466532133, 466532135, 466532137, 466532141, 466532143, 466532149, 466532172, 466532174, 466532180, 466532211, 466534137, 466534145, 466534153, 466534174, 466534176, 466534182, 466534184, 466534190, 466534213, 466534215, 466534221, 466534252, 466535537, 466535545, 466535576, 466536215, 466536223, 466536231, 466536254, 466536262, 466536293, 466538849, 466538857, 466538865, 466538886, 466538888, 466538894, 466538896, 466538902, 466538925, 466538927, 466538933, 466538964, 466540927, 466540935, 466540943, 466540966, 466540974, 466541005, 466545639, 466545647, 466545655, 466545678, 466545686, 466545717, 466798597, 466798605, 466798634, 466798636, 466798642, 466798673, 466800675, 466800683, 466800714, 466805387, 466805395, 466805426, 466841615, 466841623, 466841631, 466841652, 466841654, 466841660, 466841662, 466841668, 466841691, 466841693, 466841699, 466841730, 466843693, 466843701, 466843709, 466843732, 466843740, 466843771, 466848405, 466848413, 466848421, 466848444, 466848452, 466848483, 467108153, 467108161, 467108192, 467151171, 467151179, 467151187, 467151210, 467151218, 467151249, 467390892, 467390929, 467392970, 467397682, 467477226, 467579671, 467579679, 467579708, 467579710, 467579716, 467579747, 467581749, 467581757, 467581788, 467586461, 467586469, 467586500, 467622689, 467622697, 467622705, 467622726, 467622728, 467622734, 467622736, 467622742, 467622765, 467622767, 467622773, 467622804, 467624767, 467624775, 467624783, 467624806, 467624814, 467624845, 467629479, 467629487, 467629495, 467629518, 467629526, 467629557, 467700448, 467889227, 467889235, 467889266, 467932245, 467932253, 467932261, 467932284, 467932292, 467932323, 468359257, 468402275, 468402283, 468402314, 468481522, 468552414, 468670301, 468670309, 468670340, 468713319, 468713327, 468713335, 468713358, 468713366, 468713397, 468930075, 468973093, 468973101, 468973132, 469012931, 469012939, 469012968, 469012970, 469012976, 469013007, 469015009, 469015017, 469015048, 469019721, 469019729, 469019760, 469055949, 469055957, 469055965, 469055986, 469055988, 469055994, 469055996, 469056002, 469056025, 469056027, 469056033, 469056064, 469058027, 469058035, 469058043, 469058066, 469058074, 469058105, 469062739, 469062747, 469062755, 469062778, 469062786, 469062817, 469322487, 469322495, 469322526, 469365505, 469365513, 469365521, 469365544, 469365552, 469365583, 469500893, 469914782, 470047708, 470047745, 470049786, 470054498, 470088119, 470088127, 470088156, 470088158, 470088164, 470088195, 470090197, 470090205, 470090236, 470094909, 470094917, 470094948, 470103561, 470103569, 470103600, 470131137, 470131145, 470131153, 470131174, 470131176, 470131182, 470131184, 470131190, 470131213, 470131215, 470131221, 470131252, 470133215, 470133223, 470133231, 470133254, 470133262, 470133293, 470137927, 470137935, 470137943, 470137966, 470137974, 470138005, 470146579, 470146587, 470146595, 470146618, 470146626, 470146657, 470357264, 470397675, 470397683, 470397714, 470440693, 470440701, 470440709, 470440732, 470440740, 470440771, 470989970, 471138338, 471178749, 471178757, 471178788, 471221767, 471221775, 471221783, 471221806, 471221814, 471221845, 471514292, 471514329, 471514366, 471516370, 471516407, 471518448, 471521082, 471521119, 471523160, 471527872, 471536821, 471536829, 471536860, 471579839, 471579847, 471579855, 471579878, 471579886, 471579917, 471629909, 471629917, 471629948, 471823848, 471823885, 471825926, 471830638, 472133404, 472525675, 472525683, 472525712, 472525714, 472525720, 472525751, 472527753, 472527761, 472527792, 472532465, 472532473, 472532504, 472568693, 472568701, 472568709, 472568730, 472568732, 472568738, 472568740, 472568746, 472568769, 472568771, 472568777, 472568808, 472570771, 472570779, 472570787, 472570810, 472570818, 472570849, 472571598, 472575483, 472575491, 472575499, 472575522, 472575530, 472575561, 472604922, 472604959, 472607000, 472611712, 472612009, 472612017, 472612048, 472655027, 472655035, 472655043, 472655066, 472655074, 472655105, 472835231, 472835239, 472835270, 472878249, 472878257, 472878265, 472878288, 472878296, 472878327, 472914478, 473053475, 473053512, 473055553, 473060265, 473096493, 473096501, 473096530, 473096532, 473096538, 473096569, 473098571, 473098579, 473098610, 473103283, 473103291, 473103322, 473363031, 473406049, 473406057, 473406088, 473427526, 473616305, 473616313, 473616344, 473646786, 473659323, 473659331, 473659339, 473659362, 473659370, 473659401, 473687197, 473687205, 473687236, 473695552, 473730215, 473730223, 473730231, 473730254, 473730262, 473730293, 474038182, 474038219, 474040260, 474044972, 474144105, 474187123, 474187131, 474187162, 474347738, 475049565, 475049573, 475049604, 475092583, 475092591, 475092599, 475092622, 475092630, 475092661, 475113370, 475113407, 475115448, 475120160, 475128812, 475422926, 475577365, 475620383, 475620391, 475620422, 476084342, 476124753, 476124761, 476124792, 476167771, 476167779, 476167787, 476167810, 476167818, 476167849, 476204000, 476562072, 476652553, 476692093, 476692101, 476692109, 476692130, 476692132, 476692138, 476692140, 476692146, 476692167, 476692169, 476692171, 476692175, 476692177, 476692183, 476692206, 476692208, 476692214, 476692245, 476694171, 476694179, 476694187, 476694208, 476694210, 476694216, 476694218, 476694224, 476694247, 476694249, 476694255, 476694286, 476695571, 476695579, 476695610, 476696249, 476696257, 476696265, 476696288, 476696296, 476696327, 476698883, 476698891, 476698899, 476698920, 476698922, 476698928, 476698930, 476698936, 476698959, 476698961, 476698967, 476698998, 476700961, 476700969, 476700977, 476701000, 476701008, 476701039, 476705673, 476705681, 476705689, 476705712, 476705720, 476705751, 477001649, 477001657, 477001665, 477001686, 477001688, 477001694, 477001696, 477001702, 477001725, 477001727, 477001733, 477001764, 477003727, 477003735, 477003743, 477003766, 477003774, 477003805, 477008439, 477008447, 477008455, 477008478, 477008486, 477008517, 477311205, 477311213, 477311221, 477311244, 477311252, 477311283, 477550926, 477550963, 477553004, 477557716, 477637260, 477782723, 477782731, 477782739, 477782760, 477782762, 477782768, 477782770, 477782776, 477782799, 477782801, 477782807, 477782838, 477784801, 477784809, 477784817, 477784840, 477784848, 477784879, 477789513, 477789521, 477789529, 477789552, 477789560, 477789591, 477860482, 478092279, 478092287, 478092295, 478092318, 478092326, 478092357, 478121744, 478121781, 478123822, 478128534, 478431300, 478562309, 478562317, 478562348, 478605327, 478605335, 478605343, 478605366, 478605374, 478605405, 478641556, 478712448, 478741158, 478873353, 478873361, 478873369, 478873392, 478873400, 478873431, 479090109, 479133127, 479133135, 479133166, 479212374, 479215983, 479215991, 479215999, 479216020, 479216022, 479216028, 479216030, 479216036, 479216059, 479216061, 479216067, 479216098, 479218061, 479218069, 479218077, 479218100, 479218108, 479218139, 479222773, 479222781, 479222789, 479222812, 479222820, 479222851, 479525539, 479525547, 479525555, 479525578, 479525586, 479525617, 479660927, 479703945, 479703953, 479703984, 480074816, 480207742, 480207779, 480209820, 480214532, 480291171, 480291179, 480291187, 480291208, 480291210, 480291216, 480291218, 480291224, 480291247, 480291249, 480291255, 480291286, 480293249, 480293257, 480293265, 480293288, 480293296, 480293327, 480297961, 480297969, 480297977, 480298000, 480298008, 480298039, 480306613, 480306621, 480306629, 480306652, 480306660, 480306691, 480517298, 480600727, 480600735, 480600743, 480600766, 480600774, 480600805, 480645634, 481150004, 481298372, 481381801, 481381809, 481381817, 481381840, 481381848, 481381879, 481674326, 481674363, 481674400, 481676404, 481676441, 481678482, 481681116, 481681153, 481683194, 481687906, 481717344, 481717352, 481717381, 481717383, 481717389, 481717418, 481717420, 481717426, 481717457, 481719422, 481719430, 481719459, 481719461, 481719467, 481719498, 481720822, 481721500, 481721508, 481721539, 481724134, 481724142, 481724171, 481724173, 481724179, 481724210, 481726212, 481726220, 481726251, 481730924, 481730932, 481730963, 481739873, 481739881, 481739889, 481739912, 481739920, 481739951, 481983882, 481983919, 481985960, 481990672, 482026900, 482026908, 482026937, 482026939, 482026945, 482026976, 482028978, 482028986, 482029017, 482033690, 482033698, 482033729, 482293438, 482336456, 482336464, 482336495, 482728727, 482728735, 482728743, 482728764, 482728766, 482728772, 482728774, 482728780, 482728803, 482728805, 482728811, 482728842, 482730805, 482730813, 482730821, 482730844, 482730852, 482730883, 482731632, 482735517, 482735525, 482735533, 482735556, 482735564, 482735595, 482764956, 482764993, 482767034, 482771746, 482807974, 482807982, 482808011, 482808013, 482808019, 482808050, 482810052, 482810060, 482810091, 482814764, 482814772, 482814803, 482815061, 482815069, 482815077, 482815100, 482815108, 482815139, 483038283, 483038291, 483038299, 483038322, 483038330, 483038361, 483074512, 483117530, 483117538, 483117569, 483256527, 483256535, 483256564, 483256566, 483256572, 483256603, 483258605, 483258613, 483258644, 483263317, 483263325, 483263356, 483299545, 483299553, 483299561, 483299582, 483299584, 483299590, 483299592, 483299598, 483299621, 483299623, 483299629, 483299660, 483301623, 483301631, 483301639, 483301662, 483301670, 483301701, 483306335, 483306343, 483306351, 483306374, 483306382, 483306413, 483566083, 483566091, 483566122, 483587560, 483609101, 483609109, 483609117, 483609140, 483609148, 483609179, 483806820, 483819357, 483819365, 483819373, 483819396, 483819404, 483819435, 483855586, 483890249, 483890257, 483890265, 483890288, 483890296, 483890327, 483898604, 483898612, 483898643, 484158378, 484198216, 484198253, 484200294, 484205006, 484241234, 484241242, 484241271, 484241273, 484241279, 484241310, 484243312, 484243320, 484243351, 484248024, 484248032, 484248063, 484347157, 484347165, 484347196, 484390175, 484390183, 484390191, 484390214, 484390222, 484390253, 484507772, 484550790, 484550798, 484550829, 485252617, 485252625, 485252633, 485252656, 485252664, 485252695, 485273404, 485273441, 485275482, 485280194, 485288846, 485316422, 485316430, 485316459, 485316461, 485316467, 485316498, 485318500, 485318508, 485318539, 485323212, 485323220, 485323251, 485331864, 485331872, 485331903, 485582960, 485625978, 485625986, 485626017, 485780417, 485780425, 485780456, 485823435, 485823443, 485823451, 485823474, 485823482, 485823513, 486244376, 486327805, 486327813, 486327821, 486327844, 486327852, 486327883, 486364034, 486407052, 486407060, 486407091, 486722106, 486765124, 486765132, 486765163, 486815194, 486855605, 486855613, 486855644, 486895145, 486895153, 486895161, 486895169, 486895182, 486895184, 486895190, 486895192, 486895198, 486895200, 486895206, 486895219, 486895221, 486895223, 486895227, 486895229, 486895231, 486895235, 486895237, 486895243, 486895258, 486895260, 486895262, 486895266, 486895268, 486895274, 486895297, 486895299, 486895305, 486895336, 486897223, 486897231, 486897239, 486897247, 486897260, 486897262, 486897268, 486897270, 486897276, 486897278, 486897284, 486897299, 486897301, 486897307, 486897309, 486897315, 486897338, 486897340, 486897346, 486897377, 486898623, 486898631, 486898639, 486898662, 486898670, 486898701, 486899301, 486899309, 486899317, 486899325, 486899340, 486899348, 486899356, 486899379, 486899387, 486899418, 486901935, 486901943, 486901951, 486901959, 486901972, 486901974, 486901980, 486901982, 486901988, 486901990, 486901996, 486902011, 486902013, 486902019, 486902021, 486902027, 486902050, 486902052, 486902058, 486902089, 486904013, 486904021, 486904029, 486904037, 486904052, 486904060, 486904068, 486904091, 486904099, 486904130, 486908725, 486908733, 486908741, 486908749, 486908764, 486908772, 486908780, 486908803, 486908811, 486908842, 487204701, 487204709, 487204717, 487204725, 487204738, 487204740, 487204746, 487204748, 487204754, 487204756, 487204762, 487204777, 487204779, 487204785, 487204787, 487204793, 487204816, 487204818, 487204824, 487204855, 487206779, 487206787, 487206795, 487206803, 487206818, 487206826, 487206834, 487206857, 487206865, 487206896, 487211491, 487211499, 487211507, 487211515, 487211530, 487211538, 487211546, 487211569, 487211577, 487211608, 487514257, 487514265, 487514273, 487514281, 487514296, 487514304, 487514312, 487514335, 487514343, 487514374, 487710960, 487710997, 487713038, 487717750, 487753978, 487753986, 487754015, 487754017, 487754023, 487754054, 487756056, 487756064, 487756095, 487760768, 487760776, 487760807, 487797294, 487840312, 487840320, 487840351, 487985775, 487985783, 487985791, 487985799, 487985812, 487985814, 487985820, 487985822, 487985828, 487985830, 487985836, 487985851, 487985853, 487985859, 487985861, 487985867, 487985890, 487985892, 487985898, 487985929, 487987853, 487987861, 487987869, 487987877, 487987892, 487987900, 487987908, 487987931, 487987939, 487987970, 487992565, 487992573, 487992581, 487992589, 487992604, 487992612, 487992620, 487992643, 487992651, 487992682, 488020516, 488063534, 488063542, 488063573, 488281778, 488281815, 488283856, 488288568, 488295331, 488295339, 488295347, 488295355, 488295370, 488295378, 488295386, 488295409, 488295417, 488295448, 488591334, 488765361, 488765369, 488765377, 488765400, 488765408, 488765439, 488801590, 488844608, 488844616, 488844647, 488872482, 488915500, 488915508, 488915539, 489076405, 489076413, 489076421, 489076429, 489076444, 489076452, 489076460, 489076483, 489076491, 489076522, 489293161, 489293169, 489293200, 489336179, 489336187, 489336195, 489336218, 489336226, 489336257, 489372408, 489419035, 489419043, 489419051, 489419059, 489419072, 489419074, 489419080, 489419082, 489419088, 489419090, 489419096, 489419111, 489419113, 489419119, 489419121, 489419127, 489419150, 489419152, 489419158, 489419189, 489421113, 489421121, 489421129, 489421137, 489421152, 489421160, 489421168, 489421191, 489421199, 489421230, 489425825, 489425833, 489425841, 489425849, 489425864, 489425872, 489425880, 489425903, 489425911, 489425942, 489728591, 489728599, 489728607, 489728615, 489728630, 489728638, 489728646, 489728669, 489728677, 489728708, 489820961, 489863979, 489863987, 489864018, 490234850, 490277868, 490277876, 490277907, 490367776, 490367813, 490369854, 490374566, 490410794, 490410802, 490410831, 490410833, 490410839, 490410870, 490412872, 490412880, 490412911, 490417584, 490417592, 490417623, 490494223, 490494231, 490494239, 490494247, 490494260, 490494262, 490494268, 490494270, 490494276, 490494278, 490494284, 490494299, 490494301, 490494307, 490494309, 490494315, 490494338, 490494340, 490494346, 490494377, 490496301, 490496309, 490496317, 490496325, 490496340, 490496348, 490496356, 490496379, 490496387, 490496418, 490501013, 490501021, 490501029, 490501037, 490501052, 490501060, 490501068, 490501091, 490501099, 490501130, 490509665, 490509673, 490509681, 490509689, 490509704, 490509712, 490509720, 490509743, 490509751, 490509782, 490677332, 490720350, 490720358, 490720389, 490803779, 490803787, 490803795, 490803803, 490803818, 490803826, 490803834, 490803857, 490803865, 490803896, 490805668, 491310038, 491353056, 491353064, 491353095, 491458406, 491501424, 491501432, 491501463, 491584853, 491584861, 491584869, 491584877, 491584892, 491584900, 491584908, 491584931, 491584939, 491584970, 491834360, 491834397, 491834434, 491836438, 491836475, 491838516, 491841150, 491841187, 491843228, 491847940, 491877378, 491877386, 491877415, 491877417, 491877423, 491877452, 491877454, 491877460, 491877491, 491879456, 491879464, 491879493, 491879495, 491879501, 491879532, 491880856, 491881534, 491881542, 491881573, 491884168, 491884176, 491884205, 491884207, 491884213, 491884244, 491886246, 491886254, 491886285, 491890958, 491890966, 491890997, 491942925, 491942933, 491942941, 491942949, 491942964, 491942972, 491942980, 491943003, 491943011, 491943042, 492143916, 492143953, 492145994, 492150706, 492186934, 492186942, 492186971, 492186973, 492186979, 492187010, 492189012, 492189020, 492189051, 492193724, 492193732, 492193763, 492453472, 492496490, 492496498, 492496529, 492891666, 492924990, 492925027, 492927068, 492931779, 492931780, 492931787, 492931795, 492931803, 492931816, 492931818, 492931824, 492931826, 492931832, 492931834, 492931840, 492931855, 492931857, 492931863, 492931865, 492931871, 492931894, 492931896, 492931902, 492931933, 492933857, 492933865, 492933873, 492933881, 492933896, 492933904, 492933912, 492933935, 492933943, 492933974, 492934684, 492934692, 492934723, 492938569, 492938577, 492938585, 492938593, 492938608, 492938616, 492938624, 492938647, 492938655, 492938686, 492968008, 492968016, 492968045, 492968047, 492968053, 492968084, 492970086, 492970094, 492970125, 492974798, 492974806, 492974837, 493018113, 493018121, 493018129, 493018137, 493018152, 493018160, 493018168, 493018191, 493018199, 493018230, 493234546, 493241335, 493241343, 493241351, 493241359, 493241374, 493241382, 493241390, 493241413, 493241421, 493241452, 493277564, 493277572, 493277603, 493459579, 493459587, 493459595, 493459616, 493459618, 493459624, 493459626, 493459632, 493459655, 493459657, 493459663, 493459694, 493461657, 493461665, 493461673, 493461696, 493461704, 493461735, 493466369, 493466377, 493466385, 493466408, 493466416, 493466447, 493747594, 493769135, 493769143, 493769151, 493769174, 493769182, 493769213, 493790612, 493790620, 493790651, 493966854, 494009872, 494009880, 494009911, 494015620, 494022409, 494022417, 494022425, 494022433, 494022448, 494022456, 494022464, 494022487, 494022495, 494022526, 494058638, 494058646, 494058677, 494093301, 494093309, 494093317, 494093325, 494093340, 494093348, 494093356, 494093379, 494093387, 494093418, 494318412, 494358250, 494358287, 494360328, 494365040, 494401268, 494401276, 494401305, 494401307, 494401313, 494401344, 494403346, 494403354, 494403385, 494408058, 494408066, 494408097, 494550209, 494550217, 494550225, 494550248, 494550256, 494550287, 494667806, 494710824, 494710832, 494710863, 494889230, 495433438, 495433475, 495435516, 495440228, 495448880, 495455669, 495455677, 495455685, 495455693, 495455708, 495455716, 495455724, 495455747, 495455755, 495455786, 495476456, 495476464, 495476493, 495476495, 495476501, 495476532, 495478534, 495478542, 495478573, 495483246, 495483254, 495483285, 495491898, 495491906, 495491937, 495742994, 495786012, 495786020, 495786051, 495983469, 495983477, 495983485, 495983508, 495983516, 495983547, 496404410, 496447428, 496447436, 496447467, 496524068, 496530857, 496530865, 496530873, 496530881, 496530896, 496530904, 496530912, 496530935, 496530943, 496530974, 496567086, 496567094, 496567125, 496882140, 496925158, 496925166, 496925197, 496975228, 497058657, 497058665, 497058673, 497058696, 497058704, 497058735, 497870994, 497871031, 497873072, 497877784, 497914012, 497914020, 497914049, 497914051, 497914057, 497914088, 497916090, 497916098, 497916129, 497920802, 497920810, 497920841, 497957328, 498000346, 498000354, 498000385, 498180550, 498223568, 498223576, 498223607, 498441812, 498441849, 498443890, 498448602, 498484830, 498484838, 498484867, 498484869, 498484875, 498484906, 498486908, 498486916, 498486947, 498491620, 498491628, 498491659, 498751368, 498794386, 498794394, 498794425, 498961624, 498968413, 498968421, 498968429, 498968437, 498968452, 498968460, 498968468, 498968491, 498968499, 498968530, 499004642, 499004650, 499004681, 499032516, 499075534, 499075542, 499075573, 499496213, 499496221, 499496229, 499496252, 499496260, 499496291, 499532442, 499575460, 499575468, 499575499, 500024013, 500024021, 500024052, 500067031, 500067039, 500067047, 500067070, 500067078, 500067109, 500394884, 500437902, 500437910, 500437941, 500570828, 500570836, 500570865, 500570867, 500570873, 500570904, 500572906, 500572914, 500572945, 500577618, 500577626, 500577657, 500880384, 500880392, 500880423, 500965702, 501008720, 501008728, 501008759, 501470072, 501513090, 501513098, 501513129, 501661458, 501661466, 501661497, 501994394, 501994431, 501994468, 501996472, 501996509, 501998550, 502001184, 502001221, 502003262, 502007974, 502037412, 502037420, 502037449, 502037451, 502037457, 502037486, 502037488, 502037494, 502037525, 502039490, 502039498, 502039527, 502039529, 502039535, 502039566, 502040890, 502041568, 502041576, 502041607, 502044202, 502044210, 502044239, 502044241, 502044247, 502044278, 502046280, 502046288, 502046319, 502050992, 502051000, 502051031, 502080430, 502080438, 502080446, 502080467, 502080469, 502080475, 502080477, 502080483, 502080504, 502080506, 502080508, 502080512, 502080514, 502080520, 502080543, 502080545, 502080551, 502080582, 502082508, 502082516, 502082524, 502082545, 502082547, 502082553, 502082555, 502082561, 502082584, 502082586, 502082592, 502082623, 502083908, 502083916, 502083947, 502084586, 502084594, 502084602, 502084625, 502084633, 502084664, 502087220, 502087228, 502087236, 502087257, 502087259, 502087265, 502087267, 502087273, 502087296, 502087298, 502087304, 502087335, 502089298, 502089306, 502089314, 502089337, 502089345, 502089376, 502094010, 502094018, 502094026, 502094049, 502094057, 502094088, 502303950, 502303987, 502306028, 502310740, 502346968, 502346976, 502347005, 502347007, 502347013, 502347044, 502349046, 502349054, 502349085, 502353758, 502353766, 502353797, 502389986, 502389994, 502390002, 502390023, 502390025, 502390031, 502390033, 502390039, 502390062, 502390064, 502390070, 502390101, 502392064, 502392072, 502392080, 502392103, 502392111, 502392142, 502396776, 502396784, 502396792, 502396815, 502396823, 502396854, 502613506, 502656524, 502656532, 502656563, 502699542, 502699550, 502699558, 502699581, 502699589, 502699620, 503085024, 503085061, 503087102, 503091814, 503094718, 503094726, 503094757, 503128042, 503128050, 503128079, 503128081, 503128087, 503128118, 503130120, 503130128, 503130159, 503134832, 503134840, 503134871, 503171060, 503171068, 503171076, 503171097, 503171099, 503171105, 503171107, 503171113, 503171136, 503171138, 503171144, 503171175, 503173138, 503173146, 503173154, 503173177, 503173185, 503173216, 503177850, 503177858, 503177866, 503177889, 503177897, 503177928, 503394580, 503437598, 503437606, 503437637, 503480616, 503480624, 503480632, 503480655, 503480663, 503480694, 503662631, 503662639, 503662647, 503662655, 503662668, 503662670, 503662676, 503662678, 503662684, 503662686, 503662692, 503662707, 503662709, 503662715, 503662717, 503662723, 503662746, 503662748, 503662754, 503662785, 503664709, 503664717, 503664725, 503664733, 503664748, 503664756, 503664764, 503664787, 503664795, 503664826, 503669421, 503669429, 503669437, 503669445, 503669460, 503669468, 503669476, 503669499, 503669507, 503669538, 503907628, 503950646, 503950654, 503950685, 503972187, 503972195, 503972203, 503972211, 503972226, 503972234, 503972242, 503972265, 503972273, 503972304, 504169906, 504169914, 504169945, 504175654, 504218672, 504218680, 504218711, 504261690, 504261698, 504261706, 504261729, 504261737, 504261768, 504478446, 504518284, 504518321, 504520362, 504521464, 504521472, 504521503, 504525074, 504561302, 504561310, 504561339, 504561341, 504561347, 504561378, 504563380, 504563388, 504563419, 504568092, 504568100, 504568131, 504604320, 504604328, 504604336, 504604357, 504604359, 504604365, 504604367, 504604373, 504604396, 504604398, 504604404, 504604435, 504606398, 504606406, 504606414, 504606437, 504606445, 504606476, 504611110, 504611118, 504611126, 504611149, 504611157, 504611188, 504753261, 504753269, 504753277, 504753285, 504753300, 504753308, 504753316, 504753339, 504753347, 504753378, 504827840, 504870858, 504870866, 504870897, 504913876, 504913884, 504913892, 504913915, 504913923, 504913954, 505049264, 505593472, 505593509, 505595550, 505596079, 505596116, 505598157, 505600262, 505602869, 505608914, 505636490, 505636498, 505636527, 505636529, 505636535, 505636566, 505638568, 505638576, 505638607, 505643280, 505643288, 505643319, 505651932, 505651940, 505651971, 505679508, 505679516, 505679524, 505679545, 505679547, 505679553, 505679555, 505679561, 505679584, 505679586, 505679592, 505679623, 505681586, 505681594, 505681602, 505681625, 505681633, 505681664, 505686298, 505686306, 505686314, 505686337, 505686345, 505686376, 505694950, 505694958, 505694966, 505694989, 505694997, 505695028, 505903028, 505905635, 505946046, 505946054, 505946085, 505989064, 505989072, 505989080, 505989103, 505989111, 505989142, 506186521, 506186529, 506186537, 506186545, 506186560, 506186568, 506186576, 506186599, 506186607, 506186638, 506607462, 506607470, 506607501, 506684102, 506686709, 506727120, 506727128, 506727159, 506770138, 506770146, 506770154, 506770177, 506770185, 506770216, 507042174, 507085192, 507085200, 507085231, 507128210, 507128218, 507128226, 507128249, 507128257, 507128288, 507135262, 507178280, 507178288, 507178319, 507261709, 507261717, 507261725, 507261733, 507261748, 507261756, 507261764, 507261787, 507261795, 507261826, 508031028, 508031065, 508033106, 508037818, 508074046, 508074054, 508074083, 508074085, 508074091, 508074122, 508076124, 508076132, 508076163, 508080836, 508080844, 508080875, 508117064, 508117072, 508117080, 508117101, 508117103, 508117109, 508117111, 508117117, 508117140, 508117142, 508117148, 508117179, 508117362, 508119142, 508119150, 508119158, 508119181, 508119189, 508119220, 508119969, 508123854, 508123862, 508123870, 508123893, 508123901, 508123932, 508160380, 508160388, 508160419, 508203398, 508203406, 508203414, 508203437, 508203445, 508203476, 508340584, 508383602, 508383610, 508383641, 508426620, 508426628, 508426636, 508426659, 508426667, 508426698, 508601846, 508601883, 508603924, 508608636, 508644864, 508644872, 508644901, 508644903, 508644909, 508644940, 508646942, 508646950, 508646981, 508651654, 508651662, 508651693, 508911402, 508954420, 508954428, 508954459, 509121658, 509164676, 509164684, 509164715, 509192550, 509195157, 509207694, 509207702, 509207710, 509207733, 509207741, 509207772, 509235568, 509235576, 509235607, 509278586, 509278594, 509278602, 509278625, 509278633, 509278664, 509692476, 509699265, 509699273, 509699281, 509699289, 509699304, 509699312, 509699320, 509699343, 509699351, 509699382, 509735494, 509735502, 509735533, 510227065, 510227073, 510227081, 510227104, 510227112, 510227143, 510554918, 510597936, 510597944, 510597975, 510640954, 510640962, 510640970, 510640993, 510641001, 510641032, 510773880, 510773888, 510773896, 510773917, 510773919, 510773925, 510773927, 510773933, 510773956, 510773958, 510773964, 510773995, 510775958, 510775966, 510775974, 510775997, 510776005, 510776036, 510780670, 510780678, 510780686, 510780709, 510780717, 510780748, 511083436, 511083444, 511083452, 511083475, 511083483, 511083514, 511125736, 511168754, 511168762, 511168793, 511630106, 511632713, 511673124, 511673132, 511673163, 511716142, 511716150, 511716158, 511716181, 511716189, 511716220, 511864510, 511864518, 511864526, 511864549, 511864557, 511864588, 512197446, 512197454, 512197483, 512197485, 512197491, 512197520, 512197522, 512197528, 512197559, 512199524, 512199532, 512199561, 512199563, 512199569, 512199600, 512200924, 512201602, 512201610, 512201641, 512204236, 512204244, 512204273, 512204275, 512204281, 512204312, 512206314, 512206322, 512206353, 512211026, 512211034, 512211065, 512240464, 512240472, 512240480, 512240501, 512240503, 512240509, 512240511, 512240517, 512240538, 512240540, 512240542, 512240546, 512240548, 512240554, 512240577, 512240579, 512240585, 512240616, 512242542, 512242550, 512242558, 512242579, 512242581, 512242587, 512242589, 512242595, 512242618, 512242620, 512242626, 512242657, 512243942, 512243950, 512243981, 512244620, 512244628, 512244636, 512244659, 512244667, 512244698, 512247254, 512247262, 512247270, 512247291, 512247293, 512247299, 512247301, 512247307, 512247330, 512247332, 512247338, 512247369, 512249332, 512249340, 512249348, 512249371, 512249379, 512249410, 512254044, 512254052, 512254060, 512254083, 512254091, 512254122, 512507002, 512507010, 512507039, 512507041, 512507047, 512507078, 512509080, 512509088, 512509119, 512513792, 512513800, 512513831, 512550020, 512550028, 512550036, 512550057, 512550059, 512550065, 512550067, 512550073, 512550096, 512550098, 512550104, 512550135, 512552098, 512552106, 512552114, 512552137, 512552145, 512552176, 512556810, 512556818, 512556826, 512556849, 512556857, 512556888, 512816558, 512816566, 512816597, 512859576, 512859584, 512859592, 512859615, 512859623, 512859654, 513288076, 513288084, 513288113, 513288115, 513288121, 513288152, 513290154, 513290162, 513290193, 513294866, 513294874, 513294905, 513297770, 513297778, 513297786, 513297809, 513297817, 513297848, 513331094, 513331102, 513331110, 513331131, 513331133, 513331139, 513331141, 513331147, 513331170, 513331172, 513331178, 513331209, 513333172, 513333180, 513333188, 513333211, 513333219, 513333250, 513337884, 513337892, 513337900, 513337923, 513337931, 513337962, 513597632, 513597640, 513597671, 513640650, 513640658, 513640666, 513640689, 513640697, 513640728, 514067662, 514110680, 514110688, 514110719, 514153698, 514153706, 514153714, 514153737, 514153745, 514153776, 514289529, 514372958, 514372966, 514372974, 514372997, 514373005, 514373036, 514378706, 514378714, 514378745, 514421724, 514421732, 514421740, 514421763, 514421771, 514421802, 514638480, 514681498, 514681506, 514681537, 514721336, 514721344, 514721373, 514721375, 514721381, 514721412, 514723414, 514723422, 514723453, 514728126, 514728134, 514728165, 514764354, 514764362, 514764370, 514764391, 514764393, 514764399, 514764401, 514764407, 514764430, 514764432, 514764438, 514764469, 514766432, 514766440, 514766448, 514766471, 514766479, 514766510, 514771144, 514771152, 514771160, 514771183, 514771191, 514771222, 515030892, 515030900, 515030931, 515073910, 515073918, 515073926, 515073949, 515073957, 515073988, 515209298, 515252316, 515252324, 515252355, 515756113, 515756150, 515758191, 515762903, 515796524, 515796532, 515796561, 515796563, 515796569, 515796600, 515798602, 515798610, 515798641, 515803314, 515803322, 515803353, 515811966, 515811974, 515812005, 515839542, 515839550, 515839558, 515839579, 515839581, 515839587, 515839589, 515839595, 515839618, 515839620, 515839626, 515839657, 515841620, 515841628, 515841636, 515841659, 515841667, 515841698, 515846332, 515846340, 515846348, 515846371, 515846379, 515846410, 515854984, 515854992, 515855000, 515855023, 515855031, 515855062, 516065669, 516106080, 516106088, 516106119, 516149098, 516149106, 516149114, 516149137, 516149145, 516149176, 516810514, 516810522, 516810530, 516810553, 516810561, 516810592, 516846743, 516887154, 516887162, 516887193, 516930172, 516930180, 516930188, 516930211, 516930219, 516930250, 517245226, 517245234, 517245265, 517288244, 517288252, 517288260, 517288283, 517288291, 517288322, 517338314, 517338322, 517338353, 518234080, 518234088, 518234117, 518234119, 518234125, 518234156, 518236158, 518236166, 518236197, 518240870, 518240878, 518240909, 518277098, 518277106, 518277114, 518277135, 518277137, 518277143, 518277145, 518277151, 518277174, 518277176, 518277182, 518277213, 518279176, 518279184, 518279192, 518279215, 518279223, 518279254, 518280003, 518283888, 518283896, 518283904, 518283927, 518283935, 518283966, 518320414, 518320422, 518320453, 518363432, 518363440, 518363448, 518363471, 518363479, 518363510, 518543636, 518543644, 518543675, 518586654, 518586662, 518586670, 518586693, 518586701, 518586732, 518761880, 518761917, 518763958, 518768670, 518804898, 518804906, 518804935, 518804937, 518804943, 518804974, 518806976, 518806984, 518807015, 518811688, 518811696, 518811727, 518847916, 518847924, 518847932, 518847953, 518847955, 518847961, 518847963, 518847969, 518847992, 518847994, 518848000, 518848031, 518849994, 518850002, 518850010, 518850033, 518850041, 518850072, 518854706, 518854714, 518854722, 518854745, 518854753, 518854784, 519071436, 519114454, 519114462, 519114493, 519157472, 519157480, 519157488, 519157511, 519157519, 519157550, 519324710, 519324718, 519324749, 519355191, 519367728, 519367736, 519367744, 519367767, 519367775, 519367806, 519395602, 519395610, 519395641, 519438620, 519438628, 519438636, 519438659, 519438667, 519438698, 519852510, 519895528, 519895536, 519895567, 519938546, 519938554, 519938562, 519938585, 519938593, 519938624, 520430117, 520430125, 520430133, 520430141, 520430156, 520430164, 520430172, 520430195, 520430203, 520430234, 520757970, 520757978, 520758009, 520800988, 520800996, 520801004, 520801027, 520801035, 520801066, 521285770, 521328788, 521328796, 521328827, 521371806, 521371814, 521371822, 521371845, 521371853, 521371884, 521792747, 521833158, 521833166, 521833197, 521876176, 521876184, 521876192, 521876215, 521876223, 521876254, 522360958, 522363565, 522400498, 522400506, 522400514, 522400535, 522400537, 522400543, 522400545, 522400551, 522400572, 522400574, 522400576, 522400580, 522400582, 522400588, 522400611, 522400613, 522400619, 522400650, 522402576, 522402584, 522402592, 522402613, 522402615, 522402621, 522402623, 522402629, 522402652, 522402654, 522402660, 522402691, 522403976, 522403984, 522404015, 522404654, 522404662, 522404670, 522404693, 522404701, 522404732, 522407288, 522407296, 522407304, 522407325, 522407327, 522407333, 522407335, 522407341, 522407364, 522407366, 522407372, 522407403, 522409366, 522409374, 522409382, 522409405, 522409413, 522409444, 522414078, 522414086, 522414094, 522414117, 522414125, 522414156, 522443516, 522443524, 522443532, 522443540, 522443553, 522443555, 522443561, 522443563, 522443569, 522443571, 522443577, 522443590, 522443592, 522443594, 522443598, 522443600, 522443602, 522443606, 522443608, 522443614, 522443629, 522443631, 522443633, 522443637, 522443639, 522443645, 522443668, 522443670, 522443676, 522443707, 522445594, 522445602, 522445610, 522445618, 522445631, 522445633, 522445639, 522445641, 522445647, 522445649, 522445655, 522445670, 522445672, 522445678, 522445680, 522445686, 522445709, 522445711, 522445717, 522445748, 522446994, 522447002, 522447010, 522447033, 522447041, 522447072, 522447672, 522447680, 522447688, 522447696, 522447711, 522447719, 522447727, 522447750, 522447758, 522447789, 522450306, 522450314, 522450322, 522450330, 522450343, 522450345, 522450351, 522450353, 522450359, 522450361, 522450367, 522450382, 522450384, 522450390, 522450392, 522450398, 522450421, 522450423, 522450429, 522450460, 522452384, 522452392, 522452400, 522452408, 522452423, 522452431, 522452439, 522452462, 522452470, 522452501, 522457096, 522457104, 522457112, 522457120, 522457135, 522457143, 522457151, 522457174, 522457182, 522457213, 522710054, 522710062, 522710070, 522710091, 522710093, 522710099, 522710101, 522710107, 522710130, 522710132, 522710138, 522710169, 522712132, 522712140, 522712148, 522712171, 522712179, 522712210, 522716844, 522716852, 522716860, 522716883, 522716891, 522716922, 522753072, 522753080, 522753088, 522753096, 522753109, 522753111, 522753117, 522753119, 522753125, 522753127, 522753133, 522753148, 522753150, 522753156, 522753158, 522753164, 522753187, 522753189, 522753195, 522753226, 522755150, 522755158, 522755166, 522755174, 522755189, 522755197, 522755205, 522755228, 522755236, 522755267, 522759862, 522759870, 522759878, 522759886, 522759901, 522759909, 522759917, 522759940, 522759948, 522759979, 523019610, 523019618, 523019626, 523019649, 523019657, 523019688, 523062628, 523062636, 523062644, 523062652, 523062667, 523062675, 523062683, 523062706, 523062714, 523062745, 523491128, 523491136, 523491144, 523491165, 523491167, 523491173, 523491175, 523491181, 523491204, 523491206, 523491212, 523491243, 523493206, 523493214, 523493222, 523493245, 523493253, 523493284, 523497918, 523497926, 523497934, 523497957, 523497965, 523497996, 523534146, 523534154, 523534162, 523534170, 523534183, 523534185, 523534191, 523534193, 523534199, 523534201, 523534207, 523534222, 523534224, 523534230, 523534232, 523534238, 523534261, 523534263, 523534269, 523534300, 523536224, 523536232, 523536240, 523536248, 523536263, 523536271, 523536279, 523536302, 523536310, 523536341, 523540936, 523540944, 523540952, 523540960, 523540975, 523540983, 523540991, 523541014, 523541022, 523541053, 523800684, 523800692, 523800700, 523800723, 523800731, 523800762, 523843702, 523843710, 523843718, 523843726, 523843741, 523843749, 523843757, 523843780, 523843788, 523843819, 524270714, 524270722, 524270753, 524313732, 524313740, 524313748, 524313771, 524313779, 524313810, 524449563, 524581758, 524581766, 524581774, 524581797, 524581805, 524581836, 524624776, 524624784, 524624792, 524624800, 524624815, 524624823, 524624831, 524624854, 524624862, 524624893, 524798514, 524841532, 524841540, 524841571, 524884550, 524884558, 524884566, 524884589, 524884597, 524884628, 524924388, 524924396, 524924404, 524924425, 524924427, 524924433, 524924435, 524924441, 524924464, 524924466, 524924472, 524924503, 524926466, 524926474, 524926482, 524926505, 524926513, 524926544, 524931178, 524931186, 524931194, 524931217, 524931225, 524931256, 524967406, 524967414, 524967422, 524967430, 524967443, 524967445, 524967451, 524967453, 524967459, 524967461, 524967467, 524967482, 524967484, 524967490, 524967492, 524967498, 524967521, 524967523, 524967529, 524967560, 524969484, 524969492, 524969500, 524969508, 524969523, 524969531, 524969539, 524969562, 524969570, 524969601, 524974196, 524974204, 524974212, 524974220, 524974235, 524974243, 524974251, 524974274, 524974282, 524974313, 525233944, 525233952, 525233960, 525233983, 525233991, 525234022, 525276962, 525276970, 525276978, 525276986, 525277001, 525277009, 525277017, 525277040, 525277048, 525277079, 525369332, 525412350, 525412358, 525412389, 525916147, 525916184, 525918225, 525922937, 525959165, 525959173, 525959202, 525959204, 525959210, 525959241, 525961243, 525961251, 525961282, 525965955, 525965963, 525965994, 525999576, 525999584, 525999592, 525999613, 525999615, 525999621, 525999623, 525999629, 525999652, 525999654, 525999660, 525999691, 526001654, 526001662, 526001670, 526001693, 526001701, 526001732, 526006366, 526006374, 526006382, 526006405, 526006413, 526006444, 526015018, 526015026, 526015034, 526015057, 526015065, 526015096, 526042594, 526042602, 526042610, 526042618, 526042631, 526042633, 526042639, 526042641, 526042647, 526042649, 526042655, 526042670, 526042672, 526042678, 526042680, 526042686, 526042709, 526042711, 526042717, 526042748, 526044672, 526044680, 526044688, 526044696, 526044711, 526044719, 526044727, 526044750, 526044758, 526044789, 526049384, 526049392, 526049400, 526049408, 526049423, 526049431, 526049439, 526049462, 526049470, 526049501, 526058036, 526058044, 526058052, 526058060, 526058075, 526058083, 526058091, 526058114, 526058122, 526058153, 526225703, 526268721, 526268729, 526268760, 526309132, 526309140, 526309148, 526309171, 526309179, 526309210, 526352150, 526352158, 526352166, 526352174, 526352189, 526352197, 526352205, 526352228, 526352236, 526352267, 527006777, 527049795, 527049803, 527049834, 527090206, 527090214, 527090222, 527090245, 527090253, 527090284, 527133224, 527133232, 527133240, 527133248, 527133263, 527133271, 527133279, 527133302, 527133310, 527133341, 527448278, 527448286, 527448294, 527448317, 527448325, 527448356, 527491296, 527491304, 527491312, 527491320, 527491335, 527491343, 527491351, 527491374, 527491382, 527491413, 527541366, 527541374, 527541382, 527541405, 527541413, 527541444, 528437132, 528437140, 528437148, 528437169, 528437171, 528437177, 528437179, 528437185, 528437208, 528437210, 528437216, 528437247, 528439210, 528439218, 528439226, 528439249, 528439257, 528439288, 528440037, 528443922, 528443930, 528443938, 528443961, 528443969, 528444000, 528480150, 528480158, 528480166, 528480174, 528480187, 528480189, 528480195, 528480197, 528480203, 528480205, 528480211, 528480226, 528480228, 528480234, 528480236, 528480242, 528480265, 528480267, 528480273, 528480304, 528482228, 528482236, 528482244, 528482252, 528482267, 528482275, 528482283, 528482306, 528482314, 528482345, 528483055, 528483063, 528483094, 528486940, 528486948, 528486956, 528486964, 528486979, 528486987, 528486995, 528487018, 528487026, 528487057, 528523466, 528523474, 528523482, 528523505, 528523513, 528523544, 528566484, 528566492, 528566500, 528566508, 528566523, 528566531, 528566539, 528566562, 528566570, 528566601, 528746688, 528746696, 528746704, 528746727, 528746735, 528746766, 528789706, 528789714, 528789722, 528789730, 528789745, 528789753, 528789761, 528789784, 528789792, 528789823, 528964932, 528964940, 528964969, 528964971, 528964977, 528965008, 528967010, 528967018, 528967049, 528971722, 528971730, 528971761, 529007950, 529007958, 529007966, 529007987, 529007989, 529007995, 529007997, 529008003, 529008026, 529008028, 529008034, 529008065, 529010028, 529010036, 529010044, 529010067, 529010075, 529010106, 529014740, 529014748, 529014756, 529014779, 529014787, 529014818, 529274488, 529274496, 529274527, 529317506, 529317514, 529317522, 529317545, 529317553, 529317584, 529515225, 529527762, 529527770, 529527778, 529527801, 529527809, 529527840, 529558243, 529558251, 529558282, 529570780, 529570788, 529570796, 529570804, 529570819, 529570827, 529570835, 529570858, 529570866, 529570897, 529598654, 529598662, 529598670, 529598693, 529598701, 529598732, 529641672, 529641680, 529641688, 529641696, 529641711, 529641719, 529641727, 529641750, 529641758, 529641789, 530055562, 530055570, 530055601, 530098580, 530098588, 530098596, 530098619, 530098627, 530098658, 530961022, 530961030, 530961038, 530961061, 530961069, 530961100, 531004040, 531004048, 531004056, 531004064, 531004079, 531004087, 531004095, 531004118, 531004126, 531004157, 531488822, 531488830, 531488861, 531531840, 531531848, 531531856, 531531879, 531531887, 531531918, 531952781, 531995799, 531995807, 531995838, 532036210, 532036218, 532036226, 532036249, 532036257, 532036288, 532079228, 532079236, 532079244, 532079252, 532079267, 532079275, 532079283, 532079306, 532079314, 532079345, 532523599, 532564010, 532564018, 532564049, 532603550, 532603558, 532603566, 532603574, 532603587, 532603589, 532603595, 532603597, 532603603, 532603605, 532603611, 532603624, 532603626, 532603628, 532603632, 532603634, 532603636, 532603640, 532603642, 532603648, 532603663, 532603665, 532603667, 532603671, 532603673, 532603679, 532603702, 532603704, 532603710, 532603741, 532605628, 532605636, 532605644, 532605652, 532605665, 532605667, 532605673, 532605675, 532605681, 532605683, 532605689, 532605704, 532605706, 532605712, 532605714, 532605720, 532605743, 532605745, 532605751, 532605782, 532607028, 532607036, 532607044, 532607067, 532607075, 532607106, 532607706, 532607714, 532607722, 532607730, 532607745, 532607753, 532607761, 532607784, 532607792, 532607823, 532610340, 532610348, 532610356, 532610364, 532610377, 532610379, 532610385, 532610387, 532610393, 532610395, 532610401, 532610416, 532610418, 532610424, 532610426, 532610432, 532610455, 532610457, 532610463, 532610494, 532612418, 532612426, 532612434, 532612442, 532612457, 532612465, 532612473, 532612496, 532612504, 532612535, 532617130, 532617138, 532617146, 532617154, 532617169, 532617177, 532617185, 532617208, 532617216, 532617247, 532913106, 532913114, 532913122, 532913130, 532913143, 532913145, 532913151, 532913153, 532913159, 532913161, 532913167, 532913182, 532913184, 532913190, 532913192, 532913198, 532913221, 532913223, 532913229, 532913260, 532915184, 532915192, 532915200, 532915208, 532915223, 532915231, 532915239, 532915262, 532915270, 532915301, 532919896, 532919904, 532919912, 532919920, 532919935, 532919943, 532919951, 532919974, 532919982, 532920013, 533222662, 533222670, 533222678, 533222686, 533222701, 533222709, 533222717, 533222740, 533222748, 533222779, 533694180, 533694188, 533694196, 533694204, 533694217, 533694219, 533694225, 533694227, 533694233, 533694235, 533694241, 533694256, 533694258, 533694264, 533694266, 533694272, 533694295, 533694297, 533694303, 533694334, 533696258, 533696266, 533696274, 533696282, 533696297, 533696305, 533696313, 533696336, 533696344, 533696375, 533700970, 533700978, 533700986, 533700994, 533701009, 533701017, 533701025, 533701048, 533701056, 533701087, 534003736, 534003744, 534003752, 534003760, 534003775, 534003783, 534003791, 534003814, 534003822, 534003853, 534473766, 534473774, 534473782, 534473805, 534473813, 534473844, 534516784, 534516792, 534516800, 534516808, 534516823, 534516831, 534516839, 534516862, 534516870, 534516901, 534652615, 534652623, 534652654, 534784810, 534784818, 534784826, 534784834, 534784849, 534784857, 534784865, 534784888, 534784896, 534784927, 535001566, 535001574, 535001605, 535044584, 535044592, 535044600, 535044623, 535044631, 535044662, 535127440, 535127448, 535127456, 535127464, 535127477, 535127479, 535127485, 535127487, 535127493, 535127495, 535127501, 535127516, 535127518, 535127524, 535127526, 535127532, 535127555, 535127557, 535127563, 535127594, 535129518, 535129526, 535129534, 535129542, 535129557, 535129565, 535129573, 535129596, 535129604, 535129635, 535134230, 535134238, 535134246, 535134254, 535134269, 535134277, 535134285, 535134308, 535134316, 535134347, 535436996, 535437004, 535437012, 535437020, 535437035, 535437043, 535437051, 535437074, 535437082, 535437113, 535529366, 535572384, 535572392, 535572423, 535615402, 535615410, 535615418, 535615441, 535615449, 535615480, 536076181, 536076218, 536078259, 536082971, 536119199, 536119207, 536119236, 536119238, 536119244, 536119275, 536121277, 536121285, 536121316, 536125989, 536125997, 536126028, 536202628, 536202636, 536202644, 536202652, 536202665, 536202667, 536202673, 536202675, 536202681, 536202683, 536202689, 536202704, 536202706, 536202712, 536202714, 536202720, 536202743, 536202745, 536202751, 536202782, 536204706, 536204714, 536204722, 536204730, 536204745, 536204753, 536204761, 536204784, 536204792, 536204823, 536209418, 536209426, 536209434, 536209442, 536209457, 536209465, 536209473, 536209496, 536209504, 536209535, 536218070, 536218078, 536218086, 536218094, 536218109, 536218117, 536218125, 536218148, 536218156, 536218187, 536385737, 536428755, 536428763, 536428794, 536512184, 536512192, 536512200, 536512208, 536512223, 536512231, 536512239, 536512262, 536512270, 536512301, 537166811, 537209829, 537209837, 537209868, 537293258, 537293266, 537293274, 537293282, 537293297, 537293305, 537293313, 537293336, 537293344, 537293375, 537651330, 537651338, 537651346, 537651354, 537651369, 537651377, 537651385, 537651408, 537651416, 537651447, 538600071, 538640184, 538640192, 538640200, 538640208, 538640221, 538640223, 538640229, 538640231, 538640237, 538640239, 538640245, 538640260, 538640262, 538640268, 538640270, 538640276, 538640299, 538640301, 538640307, 538640338, 538642262, 538642270, 538642278, 538642286, 538642301, 538642309, 538642317, 538642340, 538642348, 538642379, 538643089, 538643097, 538643128, 538646974, 538646982, 538646990, 538646998, 538647013, 538647021, 538647029, 538647052, 538647060, 538647091, 538726518, 538726526, 538726534, 538726542, 538726557, 538726565, 538726573, 538726596, 538726604, 538726635, 538949740, 538949748, 538949756, 538949764, 538949779, 538949787, 538949795, 538949818, 538949826, 538949857, 539167984, 539167992, 539168000, 539168021, 539168023, 539168029, 539168031, 539168037, 539168060, 539168062, 539168068, 539168099, 539170062, 539170070, 539170078, 539170101, 539170109, 539170140, 539174774, 539174782, 539174790, 539174813, 539174821, 539174852, 539211002, 539211010, 539211018, 539211026, 539211039, 539211041, 539211047, 539211049, 539211055, 539211057, 539211063, 539211078, 539211080, 539211086, 539211088, 539211094, 539211117, 539211119, 539211125, 539211156, 539213080, 539213088, 539213096, 539213104, 539213119, 539213127, 539213135, 539213158, 539213166, 539213197, 539217792, 539217800, 539217808, 539217816, 539217831, 539217839, 539217847, 539217870, 539217878, 539217909, 539477540, 539477548, 539477556, 539477579, 539477587, 539477618, 539520558, 539520566, 539520574, 539520582, 539520597, 539520605, 539520613, 539520636, 539520644, 539520675, 539675259, 539718277, 539718285, 539718316, 539730814, 539730822, 539730830, 539730838, 539730853, 539730861, 539730869, 539730892, 539730900, 539730931, 539801706, 539801714, 539801722, 539801730, 539801745, 539801753, 539801761, 539801784, 539801792, 539801823, 540258614, 540258622, 540258630, 540258653, 540258661, 540258692, 540301632, 540301640, 540301648, 540301656, 540301671, 540301679, 540301687, 540301710, 540301718, 540301749, 541144450, 541144487, 541146528, 541151240, 541164074, 541164082, 541164090, 541164098, 541164113, 541164121, 541164129, 541164152, 541164160, 541164191, 541454006, 541691874, 541691882, 541691890, 541691913, 541691921, 541691952, 541734892, 541734900, 541734908, 541734916, 541734931, 541734939, 541734947, 541734970, 541734978, 541735009, 542112815, 542155833, 542155841, 542155872, 542235080, 542239262, 542239270, 542239278, 542239286, 542239301, 542239309, 542239317, 542239340, 542239348, 542239379, 542683633, 542726651, 542726659, 542726690, 542767062, 542767070, 542767078, 542767101, 542767109, 542767140, 542806602, 542806610, 542806618, 542806626, 542806634, 542806639, 542806641, 542806647, 542806649, 542806655, 542806657, 542806663, 542806665, 542806671, 542806676, 542806678, 542806680, 542806684, 542806686, 542806688, 542806692, 542806694, 542806696, 542806700, 542806702, 542806708, 542806715, 542806717, 542806719, 542806723, 542806725, 542806727, 542806731, 542806733, 542806739, 542806754, 542806756, 542806758, 542806762, 542806764, 542806770, 542806793, 542806795, 542806801, 542806832, 542808680, 542808688, 542808696, 542808704, 542808712, 542808717, 542808719, 542808725, 542808727, 542808733, 542808735, 542808741, 542808743, 542808749, 542808756, 542808758, 542808764, 542808766, 542808772, 542808774, 542808780, 542808795, 542808797, 542808803, 542808805, 542808811, 542808834, 542808836, 542808842, 542808873, 542810080, 542810088, 542810096, 542810104, 542810119, 542810127, 542810135, 542810158, 542810166, 542810197, 542810758, 542810766, 542810774, 542810782, 542810790, 542810797, 542810805, 542810813, 542810821, 542810836, 542810844, 542810852, 542810875, 542810883, 542810914, 542813392, 542813400, 542813408, 542813416, 542813424, 542813429, 542813431, 542813437, 542813439, 542813445, 542813447, 542813453, 542813455, 542813461, 542813468, 542813470, 542813476, 542813478, 542813484, 542813486, 542813492, 542813507, 542813509, 542813515, 542813517, 542813523, 542813546, 542813548, 542813554, 542813585, 542815470, 542815478, 542815486, 542815494, 542815502, 542815509, 542815517, 542815525, 542815533, 542815548, 542815556, 542815564, 542815587, 542815595, 542815626, 542820182, 542820190, 542820198, 542820206, 542820214, 542820221, 542820229, 542820237, 542820245, 542820260, 542820268, 542820276, 542820299, 542820307, 542820338, 543116158, 543116166, 543116174, 543116182, 543116190, 543116195, 543116197, 543116203, 543116205, 543116211, 543116213, 543116219, 543116221, 543116227, 543116234, 543116236, 543116242, 543116244, 543116250, 543116252, 543116258, 543116273, 543116275, 543116281, 543116283, 543116289, 543116312, 543116314, 543116320, 543116351, 543118236, 543118244, 543118252, 543118260, 543118268, 543118275, 543118283, 543118291, 543118299, 543118314, 543118322, 543118330, 543118353, 543118361, 543118392, 543122948, 543122956, 543122964, 543122972, 543122980, 543122987, 543122995, 543123003, 543123011, 543123026, 543123034, 543123042, 543123065, 543123073, 543123104, 543425714, 543425722, 543425730, 543425738, 543425746, 543425753, 543425761, 543425769, 543425777, 543425792, 543425800, 543425808, 543425831, 543425839, 543425870, 543668340, 543897232, 543897240, 543897248, 543897256, 543897264, 543897269, 543897271, 543897277, 543897279, 543897285, 543897287, 543897293, 543897295, 543897301, 543897308, 543897310, 543897316, 543897318, 543897324, 543897326, 543897332, 543897347, 543897349, 543897355, 543897357, 543897363, 543897386, 543897388, 543897394, 543897425, 543899310, 543899318, 543899326, 543899334, 543899342, 543899349, 543899357, 543899365, 543899373, 543899388, 543899396, 543899404, 543899427, 543899435, 543899466, 543904022, 543904030, 543904038, 543904046, 543904054, 543904061, 543904069, 543904077, 543904085, 543904100, 543904108, 543904116, 543904139, 543904147, 543904178, 544206788, 544206796, 544206804, 544206812, 544206820, 544206827, 544206835, 544206843, 544206851, 544206866, 544206874, 544206882, 544206905, 544206913, 544206944, 544676818, 544676826, 544676834, 544676842, 544676857, 544676865, 544676873, 544676896, 544676904, 544676935, 544743528, 544987862, 544987870, 544987878, 544987886, 544987894, 544987901, 544987909, 544987917, 544987925, 544987940, 544987948, 544987956, 544987979, 544987987, 544988018, 545204618, 545204626, 545204634, 545204657, 545204665, 545204696, 545247636, 545247644, 545247652, 545247660, 545247675, 545247683, 545247691, 545247714, 545247722, 545247753, 545330492, 545330500, 545330508, 545330516, 545330524, 545330529, 545330531, 545330537, 545330539, 545330545, 545330547, 545330553, 545330555, 545330561, 545330568, 545330570, 545330576, 545330578, 545330584, 545330586, 545330592, 545330607, 545330609, 545330615, 545330617, 545330623, 545330646, 545330648, 545330654, 545330685, 545332570, 545332578, 545332586, 545332594, 545332602, 545332609, 545332617, 545332625, 545332633, 545332648, 545332656, 545332664, 545332687, 545332695, 545332726, 545337282, 545337290, 545337298, 545337306, 545337314, 545337321, 545337329, 545337337, 545337345, 545337360, 545337368, 545337376, 545337399, 545337407, 545337438, 545640048, 545640056, 545640064, 545640072, 545640080, 545640087, 545640095, 545640103, 545640111, 545640126, 545640134, 545640142, 545640165, 545640173, 545640204, 545732418, 545732426, 545732457, 545775436, 545775444, 545775452, 545775475, 545775483, 545775514, 546279233, 546279241, 546279270, 546279272, 546279278, 546279309, 546281311, 546281319, 546281350, 546286023, 546286031, 546286062, 546322251, 546322259, 546322267, 546322288, 546322290, 546322296, 546322298, 546322304, 546322327, 546322329, 546322335, 546322366, 546324329, 546324337, 546324345, 546324368, 546324376, 546324407, 546329041, 546329049, 546329057, 546329080, 546329088, 546329119, 546405680, 546405688, 546405696, 546405704, 546405712, 546405717, 546405719, 546405725, 546405727, 546405733, 546405735, 546405741, 546405743, 546405749, 546405756, 546405758, 546405764, 546405766, 546405772, 546405774, 546405780, 546405795, 546405797, 546405803, 546405805, 546405811, 546405834, 546405836, 546405842, 546405873, 546407758, 546407766, 546407774, 546407782, 546407790, 546407797, 546407805, 546407813, 546407821, 546407836, 546407844, 546407852, 546407875, 546407883, 546407914, 546412470, 546412478, 546412486, 546412494, 546412502, 546412509, 546412517, 546412525, 546412533, 546412548, 546412556, 546412564, 546412587, 546412595, 546412626, 546421122, 546421130, 546421138, 546421146, 546421154, 546421161, 546421169, 546421177, 546421185, 546421200, 546421208, 546421216, 546421239, 546421247, 546421278, 546588789, 546588797, 546588828, 546631807, 546631815, 546631823, 546631846, 546631854, 546631885, 546715236, 546715244, 546715252, 546715260, 546715268, 546715275, 546715283, 546715291, 546715299, 546715314, 546715322, 546715330, 546715353, 546715361, 546715392, 547181084, 547369863, 547369871, 547369902, 547412881, 547412889, 547412897, 547412920, 547412928, 547412959, 547496310, 547496318, 547496326, 547496334, 547496342, 547496349, 547496357, 547496365, 547496373, 547496388, 547496396, 547496404, 547496427, 547496435, 547496466, 547854382, 547854390, 547854398, 547854406, 547854414, 547854421, 547854429, 547854437, 547854445, 547854460, 547854468, 547854476, 547854499, 547854507, 547854538, 548803123, 548803131, 548803162, 548843236, 548843244, 548843252, 548843260, 548843268, 548843273, 548843275, 548843281, 548843283, 548843289, 548843291, 548843297, 548843299, 548843305, 548843312, 548843314, 548843320, 548843322, 548843328, 548843330, 548843336, 548843351, 548843353, 548843359, 548843361, 548843367, 548843390, 548843392, 548843398, 548843429, 548845314, 548845322, 548845330, 548845338, 548845346, 548845353, 548845361, 548845369, 548845377, 548845392, 548845400, 548845408, 548845431, 548845439, 548845470, 548846141, 548846149, 548846157, 548846180, 548846188, 548846219, 548850026, 548850034, 548850042, 548850050, 548850058, 548850065, 548850073, 548850081, 548850089, 548850104, 548850112, 548850120, 548850143, 548850151, 548850182, 548929570, 548929578, 548929586, 548929594, 548929602, 548929609, 548929617, 548929625, 548929633, 548929648, 548929656, 548929664, 548929687, 548929695, 548929726, 549152792, 549152800, 549152808, 549152816, 549152824, 549152831, 549152839, 549152847, 549152855, 549152870, 549152878, 549152886, 549152909, 549152917, 549152948, 549371036, 549371044, 549371052, 549371060, 549371073, 549371075, 549371081, 549371083, 549371089, 549371091, 549371097, 549371112, 549371114, 549371120, 549371122, 549371128, 549371151, 549371153, 549371159, 549371190, 549373114, 549373122, 549373130, 549373138, 549373153, 549373161, 549373169, 549373192, 549373200, 549373231, 549377826, 549377834, 549377842, 549377850, 549377865, 549377873, 549377881, 549377904, 549377912, 549377943, 549680592, 549680600, 549680608, 549680616, 549680631, 549680639, 549680647, 549680670, 549680678, 549680709, 549837900, 549878311, 549878319, 549878350, 549921329, 549921337, 549921345, 549921368, 549921376, 549921407, 549933866, 549933874, 549933882, 549933890, 549933898, 549933905, 549933913, 549933921, 549933929, 549933944, 549933952, 549933960, 549933983, 549933991, 549934022, 550004758, 550004766, 550004774, 550004782, 550004790, 550004797, 550004805, 550004813, 550004821, 550004836, 550004844, 550004852, 550004875, 550004883, 550004914, 550461666, 550461674, 550461682, 550461690, 550461705, 550461713, 550461721, 550461744, 550461752, 550461783, 551304484, 551304521, 551306562, 551311274, 551367126, 551367134, 551367142, 551367150, 551367158, 551367165, 551367173, 551367181, 551367189, 551367204, 551367212, 551367220, 551367243, 551367251, 551367282, 551614040, 551894926, 551894934, 551894942, 551894950, 551894965, 551894973, 551894981, 551895004, 551895012, 551895043, 552315867, 552315875, 552315906, 552358885, 552358893, 552358901, 552358924, 552358932, 552358963, 552395114, 552442314, 552442322, 552442330, 552442338, 552442346, 552442353, 552442361, 552442369, 552442377, 552442392, 552442400, 552442408, 552442431, 552442439, 552442470, 552843667, 552886685, 552886693, 552886724, 552970114, 552970122, 552970130, 552970138, 552970153, 552970161, 552970169, 552970192, 552970200, 552970231, 553828374, 554879870, 554879878, 554879886, 554879894, 554879902, 554879909, 554879917, 554879925, 554879933, 554879948, 554879956, 554879964, 554879987, 554879995, 554880026, 554903562, 555407670, 555407678, 555407686, 555407694, 555407709, 555407717, 555407725, 555407748, 555407756, 555407787, 555935470, 555935478, 555935486, 555935509, 555935517, 555935548, 555978488, 555978496, 555978504, 555978512, 555978527, 555978535, 555978543, 555978566, 555978574, 555978605, 556482285, 556482293, 556482301, 556482322, 556482324, 556482330, 556482332, 556482338, 556482361, 556482363, 556482369, 556482400, 556484363, 556484371, 556484379, 556484402, 556484410, 556484441, 556489075, 556489083, 556489091, 556489114, 556489122, 556489153, 556791841, 556791849, 556791857, 556791880, 556791888, 556791919, 557341118, 557572915, 557572923, 557572931, 557572954, 557572962, 557572993, 557911936, 559006175, 559006183, 559006191, 559006214, 559006222, 559006253, 559574088, 559574096, 559574104, 559574112, 559574120, 559574125, 559574127, 559574133, 559574135, 559574141, 559574143, 559574149, 559574151, 559574157, 559574164, 559574166, 559574172, 559574174, 559574180, 559574182, 559574188, 559574203, 559574205, 559574211, 559574213, 559574219, 559574242, 559574244, 559574250, 559574281, 559576166, 559576174, 559576182, 559576190, 559576198, 559576205, 559576213, 559576221, 559576229, 559576244, 559576252, 559576260, 559576283, 559576291, 559576322, 559580878, 559580886, 559580894, 559580902, 559580910, 559580917, 559580925, 559580933, 559580941, 559580956, 559580964, 559580972, 559580995, 559581003, 559581034, 559883644, 559883652, 559883660, 559883668, 559883676, 559883683, 559883691, 559883699, 559883707, 559883722, 559883730, 559883738, 559883761, 559883769, 559883800, 559997934, 560081363, 560081371, 560081379, 560081402, 560081410, 560081441, 560664718, 560664726, 560664734, 560664742, 560664750, 560664757, 560664765, 560664773, 560664781, 560664796, 560664804, 560664812, 560664835, 560664843, 560664874, 561464518, 561464555, 561466596, 561471308, 561507536, 561507544, 561507573, 561507575, 561507581, 561507612, 561509614, 561509622, 561509653, 561514326, 561514334, 561514365, 561774074, 561817092, 561817100, 561817131, 562097978, 562097986, 562097994, 562098002, 562098010, 562098017, 562098025, 562098033, 562098041, 562098056, 562098064, 562098072, 562098095, 562098103, 562098134, 562518919, 562518927, 562518935, 562518958, 562518966, 562518997, 562555148, 562598166, 562598174, 562598205, 563046719, 563046727, 563046758, 563089737, 563089745, 563089753, 563089776, 563089784, 563089815, 563173166, 563173174, 563173182, 563173190, 563173198, 563173205, 563173213, 563173221, 563173229, 563173244, 563173252, 563173260, 563173283, 563173291, 563173322, 563988408, 564031426, 564031434, 564031465, 565063596, 565106614, 565106622, 565106653, 565610722, 565610730, 565610738, 565610746, 565610754, 565610761, 565610769, 565610777, 565610785, 565610800, 565610808, 565610816, 565610839, 565610847, 565610878, 566138522, 566138530, 566138538, 566138546, 566138561, 566138569, 566138577, 566138600, 566138608, 566138639, 566685337, 566685345, 566685353, 566685361, 566685374, 566685376, 566685382, 566685384, 566685390, 566685392, 566685398, 566685413, 566685415, 566685421, 566685423, 566685429, 566685452, 566685454, 566685460, 566685491, 566687415, 566687423, 566687431, 566687439, 566687454, 566687462, 566687470, 566687493, 566687501, 566687532, 566692127, 566692135, 566692143, 566692151, 566692166, 566692174, 566692182, 566692205, 566692213, 566692244, 566994893, 566994901, 566994909, 566994917, 566994932, 566994940, 566994948, 566994971, 566994979, 566995010, 567501152, 567544170, 567544178, 567544209, 567775967, 567775975, 567775983, 567775991, 567776006, 567776014, 567776022, 567776045, 567776053, 567776084, 568071970, 569209227, 569209235, 569209243, 569209251, 569209266, 569209274, 569209282, 569209305, 569209313, 569209344, 570157968, 570200986, 570200994, 570201025, 570284415, 570284423, 570284431, 570284439, 570284454, 570284462, 570284470, 570284493, 570284501, 570284532, 571624552, 571624589, 571626630, 571631342, 571667570, 571667578, 571667607, 571667609, 571667615, 571667646, 571669648, 571669656, 571669687, 571674360, 571674368, 571674399, 571934108, 571977126, 571977134, 571977165, 572715182, 572721971, 572721979, 572721987, 572721995, 572722010, 572722018, 572722026, 572722049, 572722057, 572722088, 572758200, 572758208, 572758239, 573249771, 573249779, 573249787, 573249810, 573249818, 573249849, 574148442, 574191460, 574191468, 574191499, 575223630, 575266648, 575266656, 575266687, 576341574, 576341582, 576341590, 576341598, 576341606, 576341613, 576341621, 576341629, 576341637, 576341652, 576341660, 576341668, 576341691, 576341699, 576341730, 576692821, 576692858, 576694899, 576699611, 577002377, 577661186, 577704204, 577704212, 577704243, 577783451, 578232004, 578275022, 578275030, 578275061, 579216711, 580291899, 580361020, 580361028, 580361059, 581784586, 581784623, 581786664, 581791376, 581827604, 581827612, 581827641, 581827643, 581827649, 581827680, 581829682, 581829690, 581829721, 581834394, 581834402, 581834433, 581870622, 581870630, 581870638, 581870659, 581870661, 581870667, 581870669, 581870675, 581870698, 581870700, 581870706, 581870737, 581872700, 581872708, 581872716, 581872739, 581872747, 581872778, 581877412, 581877420, 581877428, 581877451, 581877459, 581877490, 582094142, 582137160, 582137168, 582137199, 582180178, 582180186, 582180194, 582180217, 582180225, 582180256, 582729455, 582875216, 582918234, 582918242, 582918273, 582961252, 582961260, 582961268, 582961291, 582961299, 582961330, 583452823, 583452831, 583452839, 583452847, 583452862, 583452870, 583452878, 583452901, 583452909, 583452940, 584308476, 584351494, 584351502, 584351533, 584394512, 584394520, 584394528, 584394551, 584394559, 584394590, 585383664, 585386271, 585426682, 585426690, 585426721, 585469700, 585469708, 585469716, 585469739, 585469747, 585469778, 586852855, 586852892, 586854933, 586859645, 587162411, 587821220, 587864238, 587864246, 587864277, 587907256, 587907264, 587907272, 587907295, 587907303, 587907334, 587943485, 588392038, 588435056, 588435064, 588435095, 589376745, 590451933, 590564072, 590564080, 590564088, 590564111, 590564119, 590564150, 591987638, 591987646, 591987675, 591987677, 591987683, 591987714, 591989716, 591989724, 591989755, 591994428, 591994436, 591994467, 592030656, 592030664, 592030672, 592030693, 592030695, 592030701, 592030703, 592030709, 592030732, 592030734, 592030740, 592030771, 592032734, 592032742, 592032750, 592032773, 592032781, 592032812, 592037446, 592037454, 592037462, 592037485, 592037493, 592037524, 592297194, 592297202, 592297233, 592340212, 592340220, 592340228, 592340251, 592340259, 592340290, 592889489, 593078268, 593078276, 593078307, 593121286, 593121294, 593121302, 593121325, 593121333, 593121364, 593460307, 594511528, 594511536, 594511567, 594554546, 594554554, 594554562, 594554585, 594554593, 594554624, 595546305, 595586716, 595586724, 595586755, 595629734, 595629742, 595629750, 595629773, 595629781, 595629812, 597012889, 597012926, 597014967, 597019679, 597055907, 597055915, 597055944, 597055946, 597055952, 597055983, 597057985, 597057993, 597058024, 597062697, 597062705, 597062736, 597322445, 597365463, 597365471, 597365502, 598024272, 598024280, 598024311, 598067290, 598067298, 598067306, 598067329, 598067337, 598067368, 598103519, 598146537, 598146545, 598146576, 598552072, 598595090, 598595098, 598595129, 598638108, 598638116, 598638124, 598638147, 598638155, 598638186, 599536779, 599579797, 599579805, 599579836, 600611967, 600654985, 600654993, 600655024, 602190690, 602190698, 602190706, 602190727, 602190729, 602190735, 602190737, 602190743, 602190766, 602190768, 602190774, 602190805, 602192768, 602192776, 602192784, 602192807, 602192815, 602192846, 602197480, 602197488, 602197496, 602197519, 602197527, 602197558, 602233708, 602233716, 602233724, 602233732, 602233745, 602233747, 602233753, 602233755, 602233761, 602233763, 602233769, 602233784, 602233786, 602233792, 602233794, 602233800, 602233823, 602233825, 602233831, 602233862, 602235786, 602235794, 602235802, 602235810, 602235825, 602235833, 602235841, 602235864, 602235872, 602235903, 602240498, 602240506, 602240514, 602240522, 602240537, 602240545, 602240553, 602240576, 602240584, 602240615, 602500246, 602500254, 602500262, 602500285, 602500293, 602500324, 602543264, 602543272, 602543280, 602543288, 602543303, 602543311, 602543319, 602543342, 602543350, 602543381, 603049523, 603092541, 603092549, 603092580, 603281320, 603281328, 603281336, 603281359, 603281367, 603281398, 603324338, 603324346, 603324354, 603324362, 603324377, 603324385, 603324393, 603324416, 603324424, 603324455, 603620341, 604714580, 604714588, 604714596, 604714619, 604714627, 604714658, 604757598, 604757606, 604757614, 604757622, 604757637, 604757645, 604757653, 604757676, 604757684, 604757715, 605706339, 605749357, 605749365, 605749396, 605789768, 605789776, 605789784, 605789807, 605789815, 605789846, 605832786, 605832794, 605832802, 605832810, 605832825, 605832833, 605832841, 605832864, 605832872, 605832903, 607172923, 607172960, 607175001, 607179713, 607215941, 607215949, 607215978, 607215980, 607215986, 607216017, 607218019, 607218027, 607218058, 607222731, 607222739, 607222770, 607482479, 607525497, 607525505, 607525536, 608227324, 608227332, 608227340, 608227363, 608227371, 608227402, 608263553, 608270342, 608270350, 608270358, 608270366, 608270381, 608270389, 608270397, 608270420, 608270428, 608270459, 608306571, 608306579, 608306610, 608755124, 608755132, 608755163, 608798142, 608798150, 608798158, 608798181, 608798189, 608798220, 609696813, 609739831, 609739839, 609739870, 610772001, 610815019, 610815027, 610815058, 612393742, 612393750, 612393758, 612393766, 612393779, 612393781, 612393787, 612393789, 612393795, 612393797, 612393803, 612393818, 612393820, 612393826, 612393828, 612393834, 612393857, 612393859, 612393865, 612393896, 612395820, 612395828, 612395836, 612395844, 612395859, 612395867, 612395875, 612395898, 612395906, 612395937, 612400532, 612400540, 612400548, 612400556, 612400571, 612400579, 612400587, 612400610, 612400618, 612400649, 612703298, 612703306, 612703314, 612703322, 612703337, 612703345, 612703353, 612703376, 612703384, 612703415, 613209557, 613252575, 613252583, 613252614, 613484372, 613484380, 613484388, 613484396, 613484411, 613484419, 613484427, 613484450, 613484458, 613484489, 613780375, 613823393, 613823401, 613823432, 614917632, 614917640, 614917648, 614917656, 614917671, 614917679, 614917687, 614917710, 614917718, 614917749, 615866373, 615909391, 615909399, 615909430, 615992820, 615992828, 615992836, 615992844, 615992859, 615992867, 615992875, 615992898, 615992906, 615992937, 617332957, 617332994, 617335035, 617339747, 617375975, 617375983, 617376012, 617376014, 617376020, 617376051, 617378053, 617378061, 617378092, 617382765, 617382773, 617382804, 617418993, 617419001, 617419009, 617419030, 617419032, 617419038, 617419040, 617419046, 617419069, 617419071, 617419077, 617419108, 617421071, 617421079, 617421087, 617421110, 617421118, 617421149, 617425783, 617425791, 617425799, 617425822, 617425830, 617425861, 617642513, 617685531, 617685539, 617685570, 617728549, 617728557, 617728565, 617728588, 617728596, 617728627, 618423587, 618430376, 618430384, 618430392, 618430400, 618430415, 618430423, 618430431, 618430454, 618430462, 618430493, 618466605, 618466613, 618466644, 618509623, 618509631, 618509639, 618509662, 618509670, 618509701, 618958176, 618958184, 618958192, 618958215, 618958223, 618958254, 619001194, 619001202, 619001210, 619001218, 619001233, 619001241, 619001249, 619001272, 619001280, 619001311, 619856847, 619899865, 619899873, 619899904, 619942883, 619942891, 619942899, 619942922, 619942930, 619942961, 620932035, 620934642, 620975053, 620975061, 620975092, 621018071, 621018079, 621018087, 621018110, 621018118, 621018149, 622596794, 622596802, 622596810, 622596818, 622596826, 622596831, 622596833, 622596839, 622596841, 622596847, 622596849, 622596855, 622596857, 622596863, 622596870, 622596872, 622596878, 622596880, 622596886, 622596888, 622596894, 622596909, 622596911, 622596917, 622596919, 622596925, 622596948, 622596950, 622596956, 622596987, 622598872, 622598880, 622598888, 622598896, 622598904, 622598911, 622598919, 622598927, 622598935, 622598950, 622598958, 622598966, 622598989, 622598997, 622599028, 622603584, 622603592, 622603600, 622603608, 622603616, 622603623, 622603631, 622603639, 622603647, 622603662, 622603670, 622603678, 622603701, 622603709, 622603740, 622906350, 622906358, 622906366, 622906374, 622906382, 622906389, 622906397, 622906405, 622906413, 622906428, 622906436, 622906444, 622906467, 622906475, 622906506, 623369591, 623412609, 623412617, 623412648, 623455627, 623455635, 623455643, 623455666, 623455674, 623455705, 623687424, 623687432, 623687440, 623687448, 623687456, 623687463, 623687471, 623687479, 623687487, 623687502, 623687510, 623687518, 623687541, 623687549, 623687580, 623940409, 623983427, 623983435, 623983466, 625120684, 625120692, 625120700, 625120708, 625120716, 625120723, 625120731, 625120739, 625120747, 625120762, 625120770, 625120778, 625120801, 625120809, 625120840, 626069425, 626069433, 626069464, 626112443, 626112451, 626112459, 626112482, 626112490, 626112521, 626195872, 626195880, 626195888, 626195896, 626195904, 626195911, 626195919, 626195927, 626195935, 626195950, 626195958, 626195966, 626195989, 626195997, 626196028, 627492991, 627493028, 627495069, 627499781, 627536009, 627536017, 627536046, 627536048, 627536054, 627536085, 627538087, 627538095, 627538126, 627542799, 627542807, 627542838, 627579027, 627579035, 627579043, 627579064, 627579066, 627579072, 627579074, 627579080, 627579103, 627579105, 627579111, 627579142, 627581105, 627581113, 627581121, 627581144, 627581152, 627581183, 627585817, 627585825, 627585833, 627585856, 627585864, 627585895, 627802547, 627845565, 627845573, 627845604, 627888583, 627888591, 627888599, 627888622, 627888630, 627888661, 628583621, 628626639, 628626647, 628626678, 628633428, 628633436, 628633444, 628633452, 628633460, 628633467, 628633475, 628633483, 628633491, 628633506, 628633514, 628633522, 628633545, 628633553, 628633584, 628669657, 628669665, 628669673, 628669696, 628669704, 628669735, 629161228, 629161236, 629161244, 629161252, 629161267, 629161275, 629161283, 629161306, 629161314, 629161345, 630016881, 630059899, 630059907, 630059938, 630102917, 630102925, 630102933, 630102956, 630102964, 630102995, 631092069, 631094676, 631135087, 631135095, 631135126, 631178105, 631178113, 631178121, 631178144, 631178152, 631178183, 633529625, 633572643, 633572651, 633572682, 633615661, 633615669, 633615677, 633615700, 633615708, 633615739, 634100443, 634143461, 634143469, 634143500, 634186479, 634186487, 634186495, 634186518, 634186526, 634186557, 636272477, 636272485, 636272493, 636272516, 636272524, 636272555, 637696043, 637696051, 637696080, 637696082, 637696088, 637696119, 637698121, 637698129, 637698160, 637702833, 637702841, 637702872, 637739061, 637739069, 637739077, 637739098, 637739100, 637739106, 637739108, 637739114, 637739137, 637739139, 637739145, 637739176, 637741139, 637741147, 637741155, 637741178, 637741186, 637741217, 637745851, 637745859, 637745867, 637745890, 637745898, 637745929, 637782079, 637782087, 637782095, 637782103, 637782116, 637782118, 637782124, 637782126, 637782132, 637782134, 637782140, 637782155, 637782157, 637782163, 637782165, 637782171, 637782194, 637782196, 637782202, 637782233, 637784157, 637784165, 637784173, 637784181, 637784196, 637784204, 637784212, 637784235, 637784243, 637784274, 637788869, 637788877, 637788885, 637788893, 637788908, 637788916, 637788924, 637788947, 637788955, 637788986, 638005599, 638005607, 638005638, 638048617, 638048625, 638048633, 638048656, 638048664, 638048695, 638091635, 638091643, 638091651, 638091659, 638091674, 638091682, 638091690, 638091713, 638091721, 638091752, 638786673, 638786681, 638786712, 638829691, 638829699, 638829707, 638829730, 638829738, 638829769, 638872709, 638872717, 638872725, 638872733, 638872748, 638872756, 638872764, 638872787, 638872795, 638872826, 639364280, 639364288, 639364296, 639364304, 639364312, 639364319, 639364327, 639364335, 639364343, 639364358, 639364366, 639364374, 639364397, 639364405, 639364436, 640219933, 640219941, 640219972, 640262951, 640262959, 640262967, 640262990, 640262998, 640263029, 640305969, 640305977, 640305985, 640305993, 640306008, 640306016, 640306024, 640306047, 640306055, 640306086, 641254710, 641295121, 641295129, 641295160, 641297728, 641297736, 641297767, 641338139, 641338147, 641338155, 641338178, 641338186, 641338217, 641381157, 641381165, 641381173, 641381181, 641381196, 641381204, 641381212, 641381235, 641381243, 641381274, 643732677, 643732685, 643732716, 643775695, 643775703, 643775711, 643775734, 643775742, 643775773, 643818713, 643818721, 643818729, 643818737, 643818752, 643818760, 643818768, 643818791, 643818799, 643818830, 644260477, 644303495, 644303503, 644303534, 644346513, 644346521, 644346529, 644346552, 644346560, 644346591, 646475529, 646475537, 646475545, 646475553, 646475568, 646475576, 646475584, 646475607, 646475615, 646475646, 647899095, 647899103, 647899111, 647899132, 647899134, 647899140, 647899142, 647899148, 647899171, 647899173, 647899179, 647899210, 647901173, 647901181, 647901189, 647901212, 647901220, 647901251, 647905885, 647905893, 647905901, 647905924, 647905932, 647905963, 647942113, 647942121, 647942129, 647942137, 647942150, 647942152, 647942158, 647942160, 647942166, 647942168, 647942174, 647942189, 647942191, 647942197, 647942199, 647942205, 647942228, 647942230, 647942236, 647942267, 647944191, 647944199, 647944207, 647944215, 647944230, 647944238, 647944246, 647944269, 647944277, 647944308, 647948903, 647948911, 647948919, 647948927, 647948942, 647948950, 647948958, 647948981, 647948989, 647949020, 648208651, 648208659, 648208667, 648208690, 648208698, 648208729, 648251669, 648251677, 648251685, 648251693, 648251708, 648251716, 648251724, 648251747, 648251755, 648251786, 648989725, 648989733, 648989741, 648989764, 648989772, 648989803, 649032743, 649032751, 649032759, 649032767, 649032782, 649032790, 649032798, 649032821, 649032829, 649032860, 650422985, 650422993, 650423001, 650423024, 650423032, 650423063, 650466003, 650466011, 650466019, 650466027, 650466042, 650466050, 650466058, 650466081, 650466089, 650466120, 651414744, 651457762, 651457770, 651457801, 651498173, 651498181, 651498189, 651498212, 651498220, 651498251, 651541191, 651541199, 651541207, 651541215, 651541230, 651541238, 651541246, 651541269, 651541277, 651541308, 653935729, 653935737, 653935745, 653935768, 653935776, 653935807, 653978747, 653978755, 653978763, 653978771, 653978786, 653978794, 653978802, 653978825, 653978833, 653978864, 654463529, 654463537, 654463568, 654506547, 654506555, 654506563, 654506586, 654506594, 654506625, 654549565, 654549573, 654549581, 654549589, 654549604, 654549612, 654549620, 654549643, 654549651, 654549682, 656483013, 658102147, 658102155, 658102163, 658102171, 658102184, 658102186, 658102192, 658102194, 658102200, 658102202, 658102208, 658102223, 658102225, 658102231, 658102233, 658102239, 658102262, 658102264, 658102270, 658102301, 658104225, 658104233, 658104241, 658104249, 658104264, 658104272, 658104280, 658104303, 658104311, 658104342, 658108937, 658108945, 658108953, 658108961, 658108976, 658108984, 658108992, 658109015, 658109023, 658109054, 658145165, 658145173, 658145181, 658145189, 658145197, 658145202, 658145204, 658145210, 658145212, 658145218, 658145220, 658145226, 658145228, 658145234, 658145241, 658145243, 658145249, 658145251, 658145257, 658145259, 658145265, 658145280, 658145282, 658145288, 658145290, 658145296, 658145319, 658145321, 658145327, 658145358, 658147243, 658147251, 658147259, 658147267, 658147275, 658147282, 658147290, 658147298, 658147306, 658147321, 658147329, 658147337, 658147360, 658147368, 658147399, 658151955, 658151963, 658151971, 658151979, 658151987, 658151994, 658152002, 658152010, 658152018, 658152033, 658152041, 658152049, 658152072, 658152080, 658152111, 658411703, 658411711, 658411719, 658411727, 658411742, 658411750, 658411758, 658411781, 658411789, 658411820, 658454721, 658454729, 658454737, 658454745, 658454753, 658454760, 658454768, 658454776, 658454784, 658454799, 658454807, 658454815, 658454838, 658454846, 658454877, 659192777, 659192785, 659192793, 659192801, 659192816, 659192824, 659192832, 659192855, 659192863, 659192894, 659235795, 659235803, 659235811, 659235819, 659235827, 659235834, 659235842, 659235850, 659235858, 659235873, 659235881, 659235889, 659235912, 659235920, 659235951, 660626037, 660626045, 660626053, 660626061, 660626076, 660626084, 660626092, 660626115, 660626123, 660626154, 660669055, 660669063, 660669071, 660669079, 660669087, 660669094, 660669102, 660669110, 660669118, 660669133, 660669141, 660669149, 660669172, 660669180, 660669211, 661574778, 661617796, 661617804, 661617835, 661660814, 661660822, 661660830, 661660853, 661660861, 661660892, 661701225, 661701233, 661701241, 661701249, 661701264, 661701272, 661701280, 661701303, 661701311, 661701342, 661744243, 661744251, 661744259, 661744267, 661744275, 661744282, 661744290, 661744298, 661744306, 661744321, 661744329, 661744337, 661744360, 661744368, 661744399, 664138781, 664138789, 664138797, 664138805, 664138820, 664138828, 664138836, 664138859, 664138867, 664138898, 664181799, 664181807, 664181815, 664181823, 664181831, 664181838, 664181846, 664181854, 664181862, 664181877, 664181885, 664181893, 664181916, 664181924, 664181955, 664666581, 664666589, 664666597, 664666620, 664666628, 664666659, 664709599, 664709607, 664709615, 664709623, 664709638, 664709646, 664709654, 664709677, 664709685, 664709716, 666643047, 668305199, 668305207, 668305215, 668305223, 668305231, 668305236, 668305238, 668305244, 668305246, 668305252, 668305254, 668305260, 668305262, 668305268, 668305275, 668305277, 668305283, 668305285, 668305291, 668305293, 668305299, 668305314, 668305316, 668305322, 668305324, 668305330, 668305353, 668305355, 668305361, 668305392, 668307277, 668307285, 668307293, 668307301, 668307309, 668307316, 668307324, 668307332, 668307340, 668307355, 668307363, 668307371, 668307394, 668307402, 668307433, 668311989, 668311997, 668312005, 668312013, 668312021, 668312028, 668312036, 668312044, 668312052, 668312067, 668312075, 668312083, 668312106, 668312114, 668312145, 668614755, 668614763, 668614771, 668614779, 668614787, 668614794, 668614802, 668614810, 668614818, 668614833, 668614841, 668614849, 668614872, 668614880, 668614911, 669395829, 669395837, 669395845, 669395853, 669395861, 669395868, 669395876, 669395884, 669395892, 669395907, 669395915, 669395923, 669395946, 669395954, 669395985, 670829089, 670829097, 670829105, 670829113, 670829121, 670829128, 670829136, 670829144, 670829152, 670829167, 670829175, 670829183, 670829206, 670829214, 670829245, 671777830, 671777838, 671777869, 671820848, 671820856, 671820864, 671820887, 671820895, 671820926, 671904277, 671904285, 671904293, 671904301, 671904309, 671904316, 671904324, 671904332, 671904340, 671904355, 671904363, 671904371, 671904394, 671904402, 671904433, 674341833, 674341841, 674341849, 674341857, 674341865, 674341872, 674341880, 674341888, 674341896, 674341911, 674341919, 674341927, 674341950, 674341958, 674341989, 674869633, 674869641, 674869649, 674869657, 674869672, 674869680, 674869688, 674869711, 674869719, 674869750, 674912651, 674912659, 674912667, 674912675, 674912683, 674912690, 674912698, 674912706, 674912714, 674912729, 674912737, 674912745, 674912768, 674912776, 674912807, 676803081, 676846099, 676846107, 676846138, 678508251, 678508259, 678508267, 678508275, 678508283, 678508288, 678508290, 678508291, 678508296, 678508298, 678508304, 678508306, 678508312, 678508314, 678508320, 678508322, 678508327, 678508328, 678508329, 678508335, 678508337, 678508343, 678508345, 678508351, 678508353, 678508359, 678508366, 678508368, 678508374, 678508376, 678508382, 678508384, 678508390, 678508405, 678508407, 678508413, 678508415, 678508421, 678508444, 678508446, 678508452, 678508483, 678510329, 678510337, 678510345, 678510353, 678510361, 678510368, 678510369, 678510376, 678510384, 678510392, 678510400, 678510407, 678510415, 678510423, 678510431, 678510446, 678510454, 678510462, 678510485, 678510493, 678510524, 678515041, 678515049, 678515057, 678515065, 678515073, 678515080, 678515081, 678515088, 678515096, 678515104, 678515112, 678515119, 678515127, 678515135, 678515143, 678515158, 678515166, 678515174, 678515197, 678515205, 678515236, 678817807, 678817815, 678817823, 678817831, 678817839, 678817846, 678817847, 678817854, 678817862, 678817870, 678817878, 678817885, 678817893, 678817901, 678817909, 678817924, 678817932, 678817940, 678817963, 678817971, 678818002, 679598881, 679598889, 679598897, 679598905, 679598913, 679598920, 679598921, 679598928, 679598936, 679598944, 679598952, 679598959, 679598967, 679598975, 679598983, 679598998, 679599006, 679599014, 679599037, 679599045, 679599076, 681032141, 681032149, 681032157, 681032165, 681032173, 681032180, 681032181, 681032188, 681032196, 681032204, 681032212, 681032219, 681032227, 681032235, 681032243, 681032258, 681032266, 681032274, 681032297, 681032305, 681032336, 681980882, 681980890, 681980898, 681980921, 681980929, 681980960, 682023900, 682023908, 682023916, 682023924, 682023939, 682023947, 682023955, 682023978, 682023986, 682024017, 682107329, 682107337, 682107345, 682107353, 682107361, 682107368, 682107369, 682107376, 682107384, 682107392, 682107400, 682107407, 682107415, 682107423, 682107431, 682107446, 682107454, 682107462, 682107485, 682107493, 682107524, 684544885, 684544893, 684544901, 684544909, 684544917, 684544924, 684544925, 684544932, 684544940, 684544948, 684544956, 684544963, 684544971, 684544979, 684544987, 684545002, 684545010, 684545018, 684545041, 684545049, 684545080, 685072685, 685072693, 685072701, 685072709, 685072717, 685072724, 685072732, 685072740, 685072748, 685072763, 685072771, 685072779, 685072802, 685072810, 685072841, 686963115, 687006133, 687006141, 687006172, 692031384, 692183934, 692183942, 692183950, 692183958, 692183973, 692183981, 692183989, 692184012, 692184020, 692184051, 695275737, 695275745, 695275753, 695275761, 695275769, 695275776, 695275777, 695275784, 695275792, 695275800, 695275808, 695275815, 695275823, 695275831, 695275839, 695275854, 695275862, 695275870, 695275893, 695275901, 695275932, 697123149, 697166167, 697166175, 697166206, 697209185, 697209193, 697209201, 697209224, 697209232, 697209263, 702191418, 702386986, 702386994, 702387002, 702387010, 702387018, 702387025, 702387033, 702387041, 702387049, 702387064, 702387072, 702387080, 702387103, 702387111, 702387142, 707283183, 707326201, 707326209, 707326240, 707369219, 707369227, 707369235, 707369258, 707369266, 707369297, 712351452, 712394470, 712394478, 712394509, 717486235, 717486243, 717486274, 717529253, 717529261, 717529269, 717529292, 717529300, 717529331, 717572271, 717572279, 717572287, 717572295, 717572310, 717572318, 717572326, 717572349, 717572357, 717572388, 722511486, 722554504, 722554512, 722554543, 727689287, 727689295, 727689303, 727689326, 727689334, 727689365, 727732305, 727732313, 727732321, 727732329, 727732344, 727732352, 727732360, 727732383, 727732391, 727732422, 732671520, 732714538, 732714546, 732714577, 732757556, 732757564, 732757572, 732757595, 732757603, 732757634, 737892339, 737892347, 737892355, 737892363, 737892378, 737892386, 737892394, 737892417, 737892425, 737892456, 737935357, 737935365, 737935373, 737935381, 737935389, 737935396, 737935404, 737935412, 737935420, 737935435, 737935443, 737935451, 737935474, 737935482, 737935513, 742831554, 742874572, 742874580, 742874611, 742917590, 742917598, 742917606, 742917629, 742917637, 742917668, 748095391, 748095399, 748095407, 748095415, 748095423, 748095430, 748095438, 748095446, 748095454, 748095469, 748095477, 748095485, 748095508, 748095516, 748095547, 752991588, 753034606, 753034614, 753034645, 753077624, 753077632, 753077640, 753077663, 753077671, 753077702, 753120642, 753120650, 753120658, 753120666, 753120681, 753120689, 753120697, 753120720, 753120728, 753120759, 758298443, 758298451, 758298459, 758298467, 758298475, 758298482, 758298483, 758298490, 758298498, 758298506, 758298514, 758298521, 758298529, 758298537, 758298545, 758298560, 758298568, 758298576, 758298599, 758298607, 758298638, 763194640, 763194648, 763194679, 763237658, 763237666, 763237674, 763237697, 763237705, 763237736, 763280676, 763280684, 763280692, 763280700, 763280715, 763280723, 763280731, 763280754, 763280762, 763280793, 773397692, 773397700, 773397708, 773397731, 773397739, 773397770, 773440710, 773440718, 773440726, 773440734, 773440749, 773440757, 773440765, 773440788, 773440796, 773440827, 773483728, 773483736, 773483744, 773483752, 773483760, 773483767, 773483775, 773483783, 773483791, 773483806, 773483814, 773483822, 773483845, 773483853, 773483884, 783600744, 783600752, 783600760, 783600768, 783600783, 783600791, 783600799, 783600822, 783600830, 783600861, 783643762, 783643770, 783643778, 783643786, 783643794, 783643801, 783643809, 783643817, 783643825, 783643840, 783643848, 783643856, 783643879, 783643887, 783643918, 793803796, 793803804, 793803812, 793803820, 793803828, 793803835, 793803843, 793803851, 793803859, 793803874, 793803882, 793803890, 793803913, 793803921, 793803952, 793846814, 793846822, 793846830, 793846838, 793846846, 793846853, 793846854, 793846861, 793846869, 793846877, 793846885, 793846892, 793846900, 793846908, 793846916, 793846931, 793846939, 793846947, 793846970, 793846978, 793847009, 804006848, 804006856, 804006864, 804006872, 804006880, 804006887, 804006888, 804006895, 804006903, 804006911, 804006919, 804006926, 804006934, 804006942, 804006950, 804006965, 804006973, 804006981, 804007004, 804007012, 804007043, 814209900, 814209908, 814209916, 814209924, 814209932, 814209939, 814209940, 814209947, 814209948, 814209955, 814209963, 814209971, 814209978, 814209979, 814209986, 814209994, 814210002, 814210010, 814210017, 814210025, 814210033, 814210041, 814210056, 814210064, 814210072, 814210095, 814210103, 814210134]} +RLMATH_EOF diff --git a/tasks/optimize-ae-p44-sum-difference-iii/tests/check.py b/tasks/optimize-ae-p44-sum-difference-iii/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..5a8cdb3909aaceb2dcffa5c3aff899a69b2e946c --- /dev/null +++ b/tasks/optimize-ae-p44-sum-difference-iii/tests/check.py @@ -0,0 +1,41 @@ +"""Sum-difference problem III (AlphaEvolve problem 44). + +A set U of non-negative integers with min U = 0 gives the lower bound + C >= 1 + log(|U-U| / |U+U|) / log(2 max U + 1) +(AlphaEvolve's compute_lower_bound). Upstream checked |U-U| <= 2 max U + 1, which always holds when +U is inside [0, max U]; we check the hypotheses (integers, distinct, min 0) instead. +""" +import math + +import numpy as np + +from run import Invalid, int_list + + +def check(inst, ans): + u = ans.get("U") + if not isinstance(u, list) or not (2 <= len(u) <= inst["max_size"]): + raise Invalid(f"U must be a list of 2..{inst['max_size']} integers") + int_list(u, None, 0, inst["max_value"], "U") + if min(u) != 0: + raise Invalid("U must contain 0 and be non-negative") + if len(set(u)) != len(u): + raise Invalid("U must consist of distinct integers") + x = np.array(sorted(u), dtype=np.int64) + m = int(x[-1]) + # bitmap sweeps with a buffer of m+1 bytes: U-U is symmetric, so count non-negative differences; + # U+U lies in [0, 2m], handled as two windows [0, m] and [m+1, 2m] (x sorted -> contiguous slices) + buf = np.zeros(m + 1, dtype=bool) + for i, v in enumerate(x): + buf[v - x[:i + 1]] = True + d = 2 * int(buf.sum()) - 1 + s = 0 + for lo in (0, m + 1): + buf[:] = False + for v in x: + t = v + x + a, b = np.searchsorted(t, lo), np.searchsorted(t, lo + m, side="right") + buf[t[a:b] - lo] = True + s += int(buf.sum()) + del buf + return 1.0 + math.log(d / s) / math.log(2 * m + 1), {"size": len(u), "max": m, "diffset": d, "sumset": s} diff --git a/tasks/optimize-ae-p44-sum-difference-iii/tests/instance.json b/tasks/optimize-ae-p44-sum-difference-iii/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..56f380bf2c7396f08a873effd36dae6f35fa5ebd --- /dev/null +++ b/tasks/optimize-ae-p44-sum-difference-iii/tests/instance.json @@ -0,0 +1 @@ +{"max_size": 60000, "max_value": 1000000000, "direction": "maximize", "best_known": 1.173077, "baseline": 1.0, "family": "ae_p44_sum_difference_iii", "subset": "optimize"} \ No newline at end of file diff --git a/tasks/optimize-ae-p44-sum-difference-iii/tests/run.py b/tasks/optimize-ae-p44-sum-difference-iii/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/optimize-ae-p44-sum-difference-iii/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/optimize-ae-p44-sum-difference-iii/tests/test.sh b/tasks/optimize-ae-p44-sum-difference-iii/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..279b9b537d6841377ed1c7a772c8d7786f3f4e5e --- /dev/null +++ b/tasks/optimize-ae-p44-sum-difference-iii/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 170 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/optimize-ea-sorting-network-n16/environment/Dockerfile b/tasks/optimize-ea-sorting-network-n16/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/optimize-ea-sorting-network-n16/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/optimize-ea-sorting-network-n16/environment/instance.json b/tasks/optimize-ea-sorting-network-n16/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..58d577dfb2e104cba5039f158f3877807e8059cc --- /dev/null +++ b/tasks/optimize-ea-sorting-network-n16/environment/instance.json @@ -0,0 +1 @@ +{"wires": 16, "max_comparators": 200, "direction": "minimize", "family": "ea_sorting_network_16", "subset": "optimize"} \ No newline at end of file diff --git a/tasks/optimize-ea-sorting-network-n16/solution/solve.sh b/tasks/optimize-ea-sorting-network-n16/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..414ad9e41a4c54b333e91f19f6123c3d8bf87441 --- /dev/null +++ b/tasks/optimize-ea-sorting-network-n16/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"comparators": [[0, 13], [1, 12], [2, 15], [3, 14], [4, 8], [5, 6], [7, 11], [9, 10], [0, 5], [1, 7], [2, 9], [3, 4], [6, 13], [8, 14], [10, 15], [11, 12], [0, 1], [2, 3], [4, 5], [6, 8], [7, 9], [10, 11], [12, 13], [14, 15], [0, 2], [1, 3], [4, 10], [5, 11], [6, 7], [8, 9], [12, 14], [13, 15], [1, 2], [3, 12], [4, 6], [5, 7], [8, 10], [9, 11], [13, 14], [1, 4], [2, 6], [5, 8], [7, 10], [9, 13], [11, 14], [2, 4], [3, 6], [9, 12], [11, 13], [3, 5], [6, 8], [7, 9], [10, 12], [3, 4], [5, 6], [7, 8], [9, 10], [11, 12], [6, 7], [8, 9]]} +RLMATH_EOF diff --git a/tasks/optimize-ea-sorting-network-n16/tests/check.py b/tasks/optimize-ea-sorting-network-n16/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..2038a73c3ede49044852e0c759472dea31ff0bc0 --- /dev/null +++ b/tasks/optimize-ea-sorting-network-n16/tests/check.py @@ -0,0 +1,29 @@ +"""Sorting network on 16 wires, minimize comparators (EinsteinArena sorting-network-16, MIT). + +Audit: upstream verifier applies the network to all 2^16 binary inputs (0-1 principle): exact and sound. +Change: upstream caps submissions at 60 comparators (the record), which leaves no room for a +weaker-than-record baseline; here the cap is inst["max_comparators"] (200).""" +import numpy as np + +from run import Invalid, int_list + + +def check(inst, ans): + n, cap = inst["wires"], inst["max_comparators"] + c = ans.get("comparators") + if not isinstance(c, list) or not 1 <= len(c) <= cap: + raise Invalid(f"comparators must be a list of 1..{cap} pairs") + pairs = [] + for p in c: + i, j = int_list(p, 2, 0, n - 1, "comparator") + if not i < j: + raise Invalid("each comparator [i, j] needs i < j") + pairs.append((i, j)) + v = ((np.arange(1 << n, dtype=np.uint32)[:, None] >> np.arange(n, dtype=np.uint32)) & 1).astype(np.uint8) + for i, j in pairs: + a, b = v[:, i].copy(), v[:, j].copy() + v[:, i] = np.minimum(a, b) + v[:, j] = np.maximum(a, b) + if np.any(v[:, :-1] > v[:, 1:]): + raise Invalid("the network does not sort every 0/1 input") + return float(len(pairs)), {} diff --git a/tasks/optimize-ea-sorting-network-n16/tests/instance.json b/tasks/optimize-ea-sorting-network-n16/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..6d853ce3eb17ecdf76449157c076e335bbf72e31 --- /dev/null +++ b/tasks/optimize-ea-sorting-network-n16/tests/instance.json @@ -0,0 +1 @@ +{"wires": 16, "max_comparators": 200, "direction": "minimize", "best_known": 60, "baseline": 63.0, "family": "ea_sorting_network_16", "subset": "optimize"} \ No newline at end of file diff --git a/tasks/optimize-ea-sorting-network-n16/tests/run.py b/tasks/optimize-ea-sorting-network-n16/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/optimize-ea-sorting-network-n16/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/optimize-ea-sorting-network-n16/tests/test.sh b/tasks/optimize-ea-sorting-network-n16/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/optimize-ea-sorting-network-n16/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt diff --git a/tasks/optimize-finch-heilbronn-disk-n12/environment/Dockerfile b/tasks/optimize-finch-heilbronn-disk-n12/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06d0365485bd1fc9437a07fafe38cb8333e9ac65 --- /dev/null +++ b/tasks/optimize-finch-heilbronn-disk-n12/environment/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.11.16-slim +RUN apt-get update && apt-get install -y --no-install-recommends tmux curl git procps build-essential \ + && rm -rf /var/lib/apt/lists/* +RUN pip install --no-cache-dir numpy==2.4.6 scipy==1.17.1 sympy==1.14.0 networkx==3.6.1 \ + python-sat==1.9.dev15 z3-solver==5.1.0.0 PuLP==3.3.2 ortools==9.15.6755 +WORKDIR /workdir +COPY instance.json /workdir/instance.json diff --git a/tasks/optimize-finch-heilbronn-disk-n12/environment/instance.json b/tasks/optimize-finch-heilbronn-disk-n12/environment/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..5c0759fa5cda3dd14502ba49ee42a3836786b236 --- /dev/null +++ b/tasks/optimize-finch-heilbronn-disk-n12/environment/instance.json @@ -0,0 +1 @@ +{"n": 12, "direction": "maximize", "family": "finch_heilbronn_disk_12", "subset": "optimize"} \ No newline at end of file diff --git a/tasks/optimize-finch-heilbronn-disk-n12/solution/solve.sh b/tasks/optimize-finch-heilbronn-disk-n12/solution/solve.sh new file mode 100644 index 0000000000000000000000000000000000000000..aec844e7ef50ab458b59dee59eeac94bad24e181 --- /dev/null +++ b/tasks/optimize-finch-heilbronn-disk-n12/solution/solve.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# oracle: a known valid construction (planted witness or published solution) +cat > /workdir/answer.json <<'RLMATH_EOF' +{"points": [[-0.9299600115693375, -0.21646653852222866], [0.45064079179549466, -0.7879830314385751], [-0.17393278777585278, -0.984757526162923], [-0.647788033805488, 0.6996584598973214], [0.9941271795249178, -0.10821807117035423], [0.37288729324534947, 0.9278766440288047], [-0.041697913501711696, 0.9991302637832586], [-0.9635471789311011, 0.26753847194733793], [0.007978585745358388, 0.47891882355547993], [0.5225080040195661, -0.22172371095169296], [-0.5414569588823054, -0.8326164258384718], [0.9011818159512781, 0.43344127006638017]]} +RLMATH_EOF diff --git a/tasks/optimize-finch-heilbronn-disk-n12/tests/check.py b/tasks/optimize-finch-heilbronn-disk-n12/tests/check.py new file mode 100644 index 0000000000000000000000000000000000000000..352b9ad2c236456a8fe6008df319b766e30031c5 --- /dev/null +++ b/tasks/optimize-finch-heilbronn-disk-n12/tests/check.py @@ -0,0 +1,23 @@ +"""Erdos #507 Heilbronn problem in the unit disk, n = 12: maximize the minimum triangle area +(Finch/EFT skydiscover erdos_507_heilbronn_disk_n12, Apache-2.0). + +Upstream bug fixed: containment used a 1e-9 slack (x^2 + y^2 <= 1 + 1e-9), letting points sit slightly +outside the disk; duplicates were detected after rounding to 12 decimals. Here containment, distinctness +and the minimum area are exact on the rational values of the floats.""" +import itertools +from fractions import Fraction + +from run import Invalid, float_matrix + + +def check(inst, ans): + n = inst["n"] + p = float_matrix(ans.get("points"), n, 2, "points") + P = [(Fraction(x), Fraction(y)) for x, y in p] + if any(x * x + y * y > 1 for x, y in P): + raise Invalid("all points must lie in the closed unit disk") + if len(set(P)) != n: + raise Invalid("points must be distinct") + m = min(abs((b[0] - a[0]) * (c[1] - a[1]) - (c[0] - a[0]) * (b[1] - a[1])) + for a, b, c in itertools.combinations(P, 3)) / 2 + return float(m), {} diff --git a/tasks/optimize-finch-heilbronn-disk-n12/tests/instance.json b/tasks/optimize-finch-heilbronn-disk-n12/tests/instance.json new file mode 100644 index 0000000000000000000000000000000000000000..2aab79591d91859f3257a300f264b8c8b642ec3e --- /dev/null +++ b/tasks/optimize-finch-heilbronn-disk-n12/tests/instance.json @@ -0,0 +1 @@ +{"n": 12, "direction": "maximize", "best_known": 0.08367134734901148, "baseline": 0.01674682452694515, "family": "finch_heilbronn_disk_12", "subset": "optimize"} \ No newline at end of file diff --git a/tasks/optimize-finch-heilbronn-disk-n12/tests/run.py b/tasks/optimize-finch-heilbronn-disk-n12/tests/run.py new file mode 100644 index 0000000000000000000000000000000000000000..9f6db6107aa1f8132aeb1abdcf9bbf100792e48a --- /dev/null +++ b/tasks/optimize-finch-heilbronn-disk-n12/tests/run.py @@ -0,0 +1,127 @@ +"""rlmath runtime grader. Copied into every task as /tests/run.py next to /tests/check.py. + +Deterministic; no LLM in the reward path. Runs with python3 + numpy/scipy/sympy/networkx only. + + python3 /tests/run.py /tests/instance.json /workdir/answer.json + +Prints the reward in [0, 1] and writes /logs/verifier/details.json when that directory exists. + +check.py must define check(inst, ans) -> (value, extra_dict) and raise Invalid for a bad answer. + construct : value is ignored; a returned check means the witness is valid -> reward 1.0 + optimize : value is the raw objective; reward = 0.1 + 0.9 * progress, where + progress = clip((s - baseline) / (best_known - baseline), 0, 1) (maximize) + clip((baseline - s) / (baseline - best_known), 0, 1) (minimize) + inst must carry "direction", "baseline", "best_known". +""" +import json +import math +import os +import sys + +VALID_FLOOR = 0.1 + + +class Invalid(Exception): + pass + + +# ------------------------------------------------------------ input helpers + +def int_list(v, n=None, lo=None, hi=None, name="list"): + if not isinstance(v, list): + raise Invalid(f"{name} must be a list") + if n is not None and len(v) != n: + raise Invalid(f"{name} must have length {n}, got {len(v)}") + for x in v: + if isinstance(x, bool) or not isinstance(x, int): + raise Invalid(f"{name} must contain integers only") + if (lo is not None and x < lo) or (hi is not None and x > hi): + raise Invalid(f"{name} entry {x} out of range [{lo}, {hi}]") + return v + + +def as_int(x, name="value", lo=None, hi=None): + return int_list([x], 1, lo, hi, name)[0] + + +def num(x, name="value"): + if isinstance(x, bool) or not isinstance(x, (int, float)): + raise Invalid(f"{name} must be a number") + if not math.isfinite(x): + raise Invalid(f"{name} is not finite") + return float(x) + + +def float_matrix(v, rows=None, cols=None, name="matrix"): + if not isinstance(v, list) or (rows is not None and len(v) != rows): + raise Invalid(f"{name} must be a list of {rows} rows") + out = [] + for r in v: + if not isinstance(r, list) or (cols is not None and len(r) != cols): + raise Invalid(f"each row of {name} must have {cols} numbers") + out.append([num(x, name) for x in r]) + return out + + +def float_list(v, n=None, name="list"): + if not isinstance(v, list) or (n is not None and len(v) != n): + raise Invalid(f"{name} must be a list of length {n}") + return [num(x, name) for x in v] + + +# ------------------------------------------------------------------ reward + +def optimize_reward(inst, s): + b, best = inst["baseline"], inst["best_known"] + if inst.get("progress_scale") == "log": + # for non-negative losses spanning orders of magnitude (e.g. overlap loss -> 0); + # progress is measured in log10(value + floor) + f = inst.get("log_floor", 1e-3) + b, best, s = (math.log10(max(x, 0.0) + f) for x in (b, best, s)) + if inst["direction"] == "maximize": + p = (s - b) / (best - b) + else: + p = (b - s) / (b - best) + return VALID_FLOOR + (1 - VALID_FLOOR) * max(0.0, min(1.0, p)) + + +def grade(inst, ans, check): + try: + if not isinstance(ans, dict): + raise Invalid("answer must be a JSON object") + value, extra = check(inst, ans) + if inst.get("subset") == "optimize": + s = float(value) + if not math.isfinite(s): + raise Invalid("non-finite score") + return optimize_reward(inst, s), {"valid": True, "raw_score": s, **(extra or {})} + return 1.0, {"valid": True, **(extra or {})} + except Invalid as e: + return 0.0, {"valid": False, "error": str(e)} + except Exception as e: # any malformed answer + return 0.0, {"valid": False, "error": f"{type(e).__name__}: {e}"} + + +def main(): + here = os.path.dirname(os.path.abspath(__file__)) + sys.path.insert(0, here) + # import ourselves as `run` so check.py's `from run import Invalid` is the same class + import run as R # noqa: E402 + import check as family # noqa: E402 + + inst = json.load(open(sys.argv[1])) + try: + ans = json.load(open(sys.argv[2])) + except Exception as e: + reward, det = 0.0, {"valid": False, "error": f"unreadable answer: {e}"} + else: + reward, det = R.grade(inst, ans, family.check) + det["reward"] = reward + if os.path.isdir("/logs/verifier"): + with open("/logs/verifier/details.json", "w") as f: + json.dump(det, f) + print(reward) + + +if __name__ == "__main__": + main() diff --git a/tasks/optimize-finch-heilbronn-disk-n12/tests/test.sh b/tasks/optimize-finch-heilbronn-disk-n12/tests/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..648521fa89684f62943a573f74ce3cb75cd3ae29 --- /dev/null +++ b/tasks/optimize-finch-heilbronn-disk-n12/tests/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash +mkdir -p /logs/verifier +if [ ! -s /workdir/answer.json ]; then + echo '{"valid": false, "error": "no /workdir/answer.json"}' > /logs/verifier/details.json + echo 0 > /logs/verifier/reward.txt + exit 0 +fi +timeout 290 python3 /tests/run.py /tests/instance.json /workdir/answer.json \ + > /logs/verifier/reward.txt 2> /logs/verifier/grader.log || echo 0 > /logs/verifier/reward.txt