test
stringlengths
184
51.6M
hash
stringlengths
32
32
__inputs__ = ['5 5\n', '2 1\n', '11 30\n', '1 30\n', '9 5\n', '4 0\n', '6 5\n', '2 50\n', '8 5\n', '0 50\n', '11 5\n', '16 3\n', '10 -1\n', '23 3\n', '12 6\n', '12 12\n', '0 -3\n', '-2 1\n', '-3 0\n', '-5 0\n', '5 2\n', '-4 1\n', '-9 1\n', '-16 1\n', '-11 0\n', '-14 0\n', '-6 -3\n', '-24 0\n', '-7 -1\n', '20 -16\n', '2...
19ab9d8d22e5549a36aaa462f7014990
__inputs__ = ['5 5\n'] for __inp__ in __inputs__: import io sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8') __run_prog__() print("___SENTINEL___")
9a0899f24c9c98d1ac3922511a9ab672
__inputs__ = ['5\n2 2\n1 1 2 2\n1 1 2 2\n3 4\n2 2 3 2\n3 1 4 3\n1 5\n1 1 5 1\n3 1 5 1\n4 4\n1 1 4 2\n1 3 4 4\n3 4\n1 2 4 2\n2 1 3 3\n', '1\n3456 4567\n1 234 678 1000\n346 903 1005 2003\n', '5\n2 2\n1 1 2 2\n1 1 2 2\n3 5\n2 2 3 2\n3 1 4 3\n1 5\n1 1 5 1\n3 1 5 1\n4 4\n1 1 4 2\n1 3 4 4\n3 4\n1 2 4 2\n2 1 3 3\n', '1\n3456 ...
4b1b5d02255826d1958c138ab43039bf
__inputs__ = ['5\n2 2\n1 1 2 2\n1 1 2 2\n3 4\n2 2 3 2\n3 1 4 3\n1 5\n1 1 5 1\n3 1 5 1\n4 4\n1 1 4 2\n1 3 4 4\n3 4\n1 2 4 2\n2 1 3 3\n'] for __inp__ in __inputs__: import io sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8') __run_prog__() print("___SENTINEL___")
9da31acaf3308ea91e2eece936624012
__inputs__ = ['9850\n1050\n800\n420\n380\n600\n820\n2400\n2983\n980\n0\n', '9850\n372\n800\n420\n380\n600\n820\n2400\n2983\n980\n0\n', '9850\n372\n800\n420\n380\n600\n820\n2795\n2983\n980\n0\n', '9850\n372\n800\n420\n380\n600\n946\n2795\n2983\n980\n0\n', '9850\n372\n800\n203\n380\n600\n946\n2795\n2983\n980\n0\n', '9850...
9651216ef773a3d0f8a0c2f061c54e8a
__inputs__ = ['9850\n1050\n800\n420\n380\n600\n820\n2400\n1800\n980\n0\n'] for __inp__ in __inputs__: import io sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8') __run_prog__() print("___SENTINEL___")
017004d363aa263059b4b4e4b7a90ab7
__inputs__ = ['5\n00011\n00101\n01000\n10101\n00010\n8\n11000001\n10110111\n01100111\n01111010\n11111111\n01001010\n10100010\n10000001\n2\n01\n00\n3\n000\n000\n000\n0\n', '5\n01011\n00101\n01000\n10101\n00010\n8\n11000001\n10110111\n01100111\n01111010\n11111111\n01001010\n10100000\n10000001\n0\n01\n00\n3\n000\n000\n000...
90aca737dd48efac71c07ed614dcf86e
__inputs__ = ['5\n00011\n00101\n01000\n10101\n00010\n8\n11000001\n10110111\n01100111\n01111010\n11111111\n01011010\n10100010\n10000001\n2\n01\n00\n3\n000\n000\n000\n0\n'] for __inp__ in __inputs__: import io sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8') __run_prog__() print...
d5516aba400e94330e4237cc15a211b8
__inputs__ = ['3\n4 7 8\n12 52 56 8\n2 10 2\n21 75\n2 5 8\n10 51\n', '3\n4 7 8\n12 52 56 8\n2 11 2\n21 75\n2 5 8\n10 51\n', '3\n4 7 8\n19 52 56 8\n2 20 2\n21 75\n2 5 8\n10 51\n', '3\n4 7 8\n12 52 56 8\n2 10 2\n21 75\n2 5 8\n10 49\n', '3\n4 7 8\n19 52 56 8\n2 20 2\n21 75\n2 7 8\n10 51\n', '3\n4 7 8\n7 52 56 8\n2 11 2\n2...
be13f799b68186600e20cee266eac8ff
__inputs__ = ['3\n4 7 8\n12 52 56 8\n2 10 2\n21 75\n2 5 8\n10 51\n'] for __inp__ in __inputs__: import io sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8') __run_prog__() print("___SENTINEL___")
b1e585f935e2d1a770e8f5bca29bcc1a
def is_eq(a, b): if a == b: return True elif isinstance(a, (int, float)) and isinstance(b, (int, float)): return abs(a - b) < 1e-4 elif isinstance(a, list) and isinstance(b, list): if len(a) != len(b): return False for x, y in zip(a, b): if not is_eq(...
77f00d017b157ba1c1b8f18e0345d991
def is_eq(a, b): if a == b: return True elif isinstance(a, (int, float)) and isinstance(b, (int, float)): return abs(a - b) < 1e-4 elif isinstance(a, list) and isinstance(b, list): if len(a) != len(b): return False for x, y in zip(a, b): if not is_eq(...
70d5151844e2a78ce67a53c1c34827ee
def is_eq(a, b): if a == b: return True elif isinstance(a, (int, float)) and isinstance(b, (int, float)): return abs(a - b) < 1e-4 elif isinstance(a, list) and isinstance(b, list): if len(a) != len(b): return False for x, y in zip(a, b): if not is_eq(...
e368f97729460b1673628d3d3d23fc72
def is_eq(a, b): if a == b: return True elif isinstance(a, (int, float)) and isinstance(b, (int, float)): return abs(a - b) < 1e-4 elif isinstance(a, list) and isinstance(b, list): if len(a) != len(b): return False for x, y in zip(a, b): if not is_eq(...
eb7d45f46755f199fc575862ad32277f
__inputs__ = ['5\n-1 -1 4 3 -1\n', '8\n2 4 5 3 -1 8 -1 6\n', '7\n-1 -1 4 -1 7 1 6\n', '6\n-1 -1 -1 -1 -1 -1\n', '2\n-1 -1\n', '10\n4 10 -1 1 6 8 9 2 -1 -1\n', '20\n-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1\n', '5\n-1 -1 4 1 -1\n', '7\n-1 -1 4 -1 7 1 3\n', '7\n-1 -1 4 -1 2 1 6\n', '5\n-1 -1 4 5 1\n', '...
605d3b329910cec0c7a6ae3a630b6e2d
__inputs__ = ['5\n-1 -1 4 3 -1\n'] for __inp__ in __inputs__: import io sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8') __run_prog__() print("___SENTINEL___")
4268681a7944b0b5bbfbf02e9b55cf7e
__inputs__ = ['14 9\n5 5 6 8 8 4 3 2 2 7 3 9 5 4\n', '14 11\n10 8 6 1 7 2 9 5 5 10 3 5 11 3\n', '1 1\n1\n', '3 3\n2 2 2\n', '10 4\n1 4 2 3 1 3 3 4 1 3\n', '3 4\n1 2 4\n', '10 5\n2 2 4 4 3 1 1 2 3 2\n', '19 5\n1 1 2 2 2 2 3 3 3 3 3 3 3 4 4 4 4 5 5\n', '2 2\n1 2\n', '3 4\n1 3 4\n', '3 2\n1 2 2\n', '25 5\n1 5 1 3 2 1 5 5 ...
8d9abf53adf396932e6a706ffae38e01
__inputs__ = ['10 6\n2 3 3 3 4 4 4 5 5 6\n', '13 5\n1 1 5 1 2 3 3 2 4 2 3 4 5\n', '12 6\n1 5 3 3 3 4 3 5 3 2 3 3\n'] for __inp__ in __inputs__: import io sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8') __run_prog__() print("___SENTINEL___")
53291f0f2dd39cbfe298d693f05801dc
__inputs__ = ['6\nW 0 2\nW 1 2\nD 0\nW 2 4\nR 3\nR 2\n1\nR 1000000000\n0\n', '6\nW 0 2\nW 0 2\nD 0\nW 2 4\nR 3\nR 2\n1\nR 1000000000\n0\n', '6\nW 0 2\nW 0 2\nD -1\nW 2 4\nR 2\nR 2\n1\nR 0000000000\n0\n', '6\nW 0 2\nW 1 2\nD 0\nW 2 4\nR 5\nR 2\n1\nR 1000000000\n0\n', '6\nW 0 2\nW 0 2\nD 0\nW 2 4\nR 3\nR 4\n1\nR 00000000...
f36d7d1305d090b38a8bd0d2ae4bbcb1
__inputs__ = ['6\nW 0 2\nW 1 2\nD 0\nW 2 4\nR 3\nR 1\n1\nR 1000000000\n0\n'] for __inp__ in __inputs__: import io sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8') __run_prog__() print("___SENTINEL___")
3c251e9bd2d955692796aa18846d2aa8
__inputs__ = ['3\n1 2 3\n3 2 1\n1 1\n1 1\n', '3\n3 2 1\n1 2 3\n1 1\n1 2\n', '5\n2 1 1 2 3\n1 2 2 2 1\n1 2\n1 3\n2 4\n1 4\n', '10\n2 8 6 1 2 7 6 9 2 8\n4 9 4 3 5 2 9 3 7 3\n1 8\n2 8\n3 8\n4 10\n5 1\n6 4\n7 3\n8 10\n9 2\n', '5\n27468 7465 74275 40573 40155\n112071 76270 244461 264202 132397\n1 777133331\n2 107454154\n3 6...
c44ccc7da07a576b6b1c1e102890edc7
__inputs__ = ['3\n1 2 3\n3 2 1\n1 1\n1 1\n', '3\n3 2 1\n1 2 3\n1 1\n1 2\n'] for __inp__ in __inputs__: import io sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8') __run_prog__() print("___SENTINEL___")
4e821d1a26e464a607c7bbfd0ef9525a
__inputs__ = ['@\n', '_@0.z\n', '0000000a@000a111.r\n', 'a@0.\n', '@0.z\n', '@1.r\n', '0@0.x\n', 'a@r.z\n', 'a@0z\n', 'a@.z\n', 'a_0.z\n', 'a0.z\n', '@.\n', 'a@0._\n', 'a@\n', 'a@_.z\n', 'a@0.z\n', 'a\n', '.\n', '0\n', 'a@0.1\n', 'A\n', 'b@r.z\n', 'lerald.agapov1991@gmaig.com\n', 'z.0@_\n', 'r.111a000@a0000000\n', 'a@....
8712a46af194f31f75ddfc90db656b33
__inputs__ = ['gerald.agapov1991@gmail.com\n', '.asd123__..@\n', 'a___@1.r\n', 'x@x.x@x.x_e_@r1.com\n'] for __inp__ in __inputs__: import io sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8') __run_prog__() print("___SENTINEL___")
f22c71e74dbca6cdcb724fa678fc6b46
__inputs__ = ['20\n', '5184\n', '1000000\n', '999979\n', '559872\n', '256\n', '279936\n', '1\n', '786432\n', '531441\n', '524288\n', '605000\n', '328509\n', '9602\n', '196608\n', '982081\n', '999983\n', '30492\n', '262144\n', '390625\n', '1009\n', '499979\n', '999958\n', '341\n', '1105\n', '1729\n', '29341\n', '162000\...
4d622465c35fd1f25038680bef793e93
__inputs__ = ['20\n', '5184\n'] for __inp__ in __inputs__: import io sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8') __run_prog__() print("___SENTINEL___")
07236983aa7878120278c393a4935da3
__inputs__ = ['2 999\n400000 1 2\n500000 1 1\n', '2 1000\n400000 500 1\n600000 500 2\n', '2 99999\n500 1 1\n499 10000 2\n', '26 10\n495492 7 1\n256604 5 2\n511773 3 2\n590712 4 1\n206826 7 2\n817878 4 2\n843915 1 1\n349160 3 1\n351298 4 1\n782251 8 2\n910928 4 1\n662354 4 2\n468621 2 2\n466991 7 2\n787303 6 2\n221623 8...
2be73b7d952f4349f6fbd638ea57d4e5
__inputs__ = ['2 999\n400000 1 2\n500000 1 1\n', '2 1000\n400000 500 1\n600000 500 2\n', '2 999\n400000 1 2\n500000 1 1\n', '2 1000\n400000 500 1\n600000 500 2\n'] for __inp__ in __inputs__: import io sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8') __run_prog__() print("___SE...
dbf6632203ad4abf63f17230a4542231
__inputs__ = ['5\n3\nABA\n11\nDDBBCCCBBEZ\n7\nFFGZZZY\n1\nZ\n2\nAB\n', '1\n10\nAAAAAAAAAA\n', '1\n10\nAAAAAAAAAB\n', '1\n10\nAAAAAAAAAC\n', '1\n10\nAAAAAAAAAD\n', '1\n10\nAAAAAAAAAE\n', '1\n10\nAAAAAAAAAF\n', '1\n10\nAAAAAAAAAG\n', '1\n10\nAAAAAAAAAH\n', '1\n10\nAAAAAAAAAI\n', '1\n10\nAAAAAAAAAJ\n', '1\n10\nAAAAAAAABB\...
ee372fab958bc130da517d79122cc291
__inputs__ = ['5\n3\nABA\n11\nDDBBCCCBBEZ\n7\nFFGZZZY\n1\nZ\n2\nAB\n'] for __inp__ in __inputs__: import io sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8') __run_prog__() print("___SENTINEL___")
1593564cf2d051d1ed70e07824ccdfbe
def is_eq(a, b): if a == b: return True elif isinstance(a, (int, float)) and isinstance(b, (int, float)): return abs(a - b) < 1e-4 elif isinstance(a, list) and isinstance(b, list): if len(a) != len(b): return False for x, y in zip(a, b): if not is_eq(...
09dfbd72c6ac3a1e1dd62b96fb0154e3
def is_eq(a, b): if a == b: return True elif isinstance(a, (int, float)) and isinstance(b, (int, float)): return abs(a - b) < 1e-4 elif isinstance(a, list) and isinstance(b, list): if len(a) != len(b): return False for x, y in zip(a, b): if not is_eq(...
4404176c4cd447db405e1f02c4c79378
__inputs__ = ['22\n', '37\n', '36\n', '3\n', '5\n', '7\n', '26\n', '38\n', '58\n', '78\n', '57\n', '11\n', '24\n', '199\n', '59\n', '178\n', '389\n', '89\n', '99\n', '499\n', '789\n', '1697\n', '795\n', '989\n', '4\n', '13\n', '18\n', '102\n', '140\n', '234\n', '55\n', '40\n', '30\n', '9\n', '28\n', '21\n', '12\n', '53...
752a6b5ced33c49d7f9efc0f3ecc59d6
__inputs__ = ['15\n', '100000\n'] for __inp__ in __inputs__: import io sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8') __run_prog__() print("___SENTINEL___")
6eb7967885e6efc4f3ca8fcf7a74494c
__inputs__ = ['15 20\n', '-10 -3\n', '19 -10\n', '-10 -2\n', '8 -10\n', '28 0\n', '28 2\n', '9 -14\n', '28 3\n', '1 -14\n', '53 3\n', '1 -20\n', '53 6\n', '0 -20\n', '53 0\n', '84 0\n', '137 0\n', '250 0\n', '110 0\n', '010 0\n', '10 34\n', '-10 -23\n', '15 40\n', '26 -10\n', '-6 -2\n', '40 0\n', '37 1\n', '76 3\n', '0...
fdf94929b97a951404c592bab149c40a
__inputs__ = ['10 20\n', '-10 -20\n', '10 -10\n'] for __inp__ in __inputs__: import io sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8') __run_prog__() print("___SENTINEL___")
5102d7dae8b533eed7af775e84598c87
__inputs__ = ['3\n1 10\n5 5\n10 1\n', '3\n2 1\n1 2\n2 1\n', '2\n1 5\n2 3\n', '2\n2 3\n1 1\n', '3\n1 10\n2 10\n3 10\n', '3\n2 10\n1 9\n3 7\n', '3\n1 1\n3 2\n2 3\n', '3\n3 123\n1 456\n2 789\n', '3\n2 987\n3 654\n1 321\n', '3\n3 143\n2 543\n1 893\n', '2\n1 1\n1 2\n', '3\n2 22\n1 11\n2 22\n', '3\n1 11\n1 12\n1 13\n', '3\n1...
6d6690dc85c532396146091904163c8a
__inputs__ = ['3\n1 10\n5 5\n10 1\n', '3\n2 1\n1 2\n2 1\n'] for __inp__ in __inputs__: import io sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8') __run_prog__() print("___SENTINEL___")
ef19c82254ae72a5bcebb2a2fdd8fd5a
__inputs__ = ['8\n3 1 2 3 3 1 5 3\n7\n5 2 5 3 4 0 5\n0\n', '8\n3 1 2 3 3 1 5 3\n7\n5 0 5 3 4 5 5\n0\n', '8\n3 1 3 3 3 1 5 3\n7\n1 2 0 3 4 0 5\n0\n', '8\n2 3 0 3 6 4 6 9\n7\n0 4 0 5 6 0 0\n0\n', '8\n3 0 3 3 3 1 5 3\n7\n5 2 5 3 4 5 5\n0\n', '8\n4 1 3 3 0 1 4 3\n0\n0 3 1 5 7 1 5\n0\n', '8\n4 1 3 3 0 2 4 5\n7\n1 1 1 3 7 1 ...
ba2a7b5b16b83272d7b90546951202b6
__inputs__ = ['8\n3 1 2 3 3 1 5 3\n7\n5 2 5 3 4 5 5\n0\n'] for __inp__ in __inputs__: import io sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8') __run_prog__() print("___SENTINEL___")
c96bd74b37a38181132568fe758a5003
def is_eq(a, b): if a == b: return True elif isinstance(a, (int, float)) and isinstance(b, (int, float)): return abs(a - b) < 1e-4 elif isinstance(a, list) and isinstance(b, list): if len(a) != len(b): return False for x, y in zip(a, b): if not is_eq(...
50c94ac4132acd817b2525b98829d53a
def is_eq(a, b): if a == b: return True elif isinstance(a, (int, float)) and isinstance(b, (int, float)): return abs(a - b) < 1e-4 elif isinstance(a, list) and isinstance(b, list): if len(a) != len(b): return False for x, y in zip(a, b): if not is_eq(...
2ad1fd479a2ca3d34ab7abe76a90fdb7
__inputs__ = ['4\n0 20\n2 19\n3 18\n4 17\n', '4\n4 7\n1 4\n5 8\n2 8\n', '10\n457835016 996058008\n456475528 529149798\n455108441 512701454\n455817105 523506955\n457368248 814532746\n455073228 459494089\n888688315 774276744\n457667152 974637457\n457293701 800549465\n456580262 636471526\n', '4\n0 20\n2 19\n3 18\n4 20\n',...
f280872328d8cc8b78e0a65e303e6c4d
__inputs__ = ['4\n1 20\n2 19\n3 18\n4 17\n', '4\n4 7\n1 4\n5 8\n2 5\n', '10\n457835016 996058008\n456475528 529149798\n455108441 512701454\n455817105 523506955\n457368248 814532746\n455073228 459494089\n456651538 774276744\n457667152 974637457\n457293701 800549465\n456580262 636471526\n'] for __inp__ in __inputs__: ...
ab4b19ed6f06d0c5a08a4242e16d5574
__inputs__ = ['1 1 0\n0\n', '10 3 10\n17 17 17 8 7 6 5 4 1 1\n', '100 61 71\n11 18 0 47 33 75 91 13 8 21 73 64 50 97 62 50 2 36 68 32 64 74 32 77 81 41 23 44 40 36 45 33 21 68 57 79 75 23 67 37 99 27 30 56 75 62 75 63 46 19 79 42 11 66 21 25 2 12 89 48 75 7 57 85 80 14 82 29 66 47 29 10 1 84 79 39 33 81 73 51 80 67 52 ...
99807956371756b8331f62cd62f1bfb6
__inputs__ = ['20 2 16\n20 5 8 2 18 16 2 16 16 1 5 16 2 13 6 16 4 17 21 7\n', '5 2 11\n8 10 15 23 5\n'] for __inp__ in __inputs__: import io sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8') __run_prog__() print("___SENTINEL___")
4644abb4bd726490ccdf9d7802a4b583
__inputs__ = ['(1?1)\n1 0\n', '(2?(1?2))\n1 1\n', '((1?(5?7))?((6?2)?7))\n3 2\n', '((1?(5?7))?((6?2)?7))\n2 3\n', '((4?3)?(((2?(4?((4?((2?(3?(7?3)))?(((((3?(6?2))?3)?(((((6?6)?(1?5))?((8?8)?1))?(5?((7?((6?((((3?8)?8)?(8?5))?7))?8))?((8?(2?8))?3))))?6))?(8?(7?5)))?8)))?((((7?(4?3))?4)?5)?((1?(((2?2)?((((4?((7?6)?(1?4)))...
f132a07eb02579430f2e26ca0ecf7579
__inputs__ = ['(1?1)\n1 0\n', '(2?(1?2))\n1 1\n', '((1?(5?7))?((6?2)?7))\n3 2\n', '((1?(5?7))?((6?2)?7))\n2 3\n'] for __inp__ in __inputs__: import io sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8') __run_prog__() print("___SENTINEL___")
812bf7911f8032dd15f440de5716efd9
def is_eq(a, b): if a == b: return True elif isinstance(a, (int, float)) and isinstance(b, (int, float)): return abs(a - b) < 1e-4 elif isinstance(a, list) and isinstance(b, list): if len(a) != len(b): return False for x, y in zip(a, b): if not is_eq(...
80e83d41ab2c42d550896a492f5be088
def is_eq(a, b): if a == b: return True elif isinstance(a, (int, float)) and isinstance(b, (int, float)): return abs(a - b) < 1e-4 elif isinstance(a, list) and isinstance(b, list): if len(a) != len(b): return False for x, y in zip(a, b): if not is_eq(...
a598f8bf139cce82216575b966a975ec
__inputs__ = ['3 4\n1 2 4\n', '3 2\n447 44 77\n', '2 2\n507978501 180480073\n', '9 6\n655243746 167613748 1470546 57644035 176077477 56984809 44677 215706823 369042089\n', '6 100\n170427799 37215529 675016434 168544291 683447134 950090227\n', '4 2\n194041605 706221269 69909135 257655784\n', '4 2\n9581849 67346651 53049...
54bd69bf2411ba51054d2292a8f9a8be
__inputs__ = ['3 4\n1 2 4\n', '3 2\n447 44 77\n'] for __inp__ in __inputs__: import io sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8') __run_prog__() print("___SENTINEL___")
92ab13b9809c215020b5fb081f2a3df8
__inputs__ = ['5 6\n1 2 6 8 10\n1 4\n1 9\n0 6\n0 10\n1 100\n1 50\n', '5 8\n5 1 2 4 3\n0 1\n0 2\n0 3\n0 4\n0 5\n1 1000000000\n1 1\n1 500000000\n', '5 6\n1 2 6 8 10\n1 4\n1 9\n0 6\n0 10\n1 100\n1 5\n', '5 6\n1 2 6 5 10\n1 4\n1 9\n0 6\n0 10\n1 100\n1 50\n', '5 4\n5 1 2 4 3\n0 1\n0 2\n0 3\n0 4\n0 5\n1 1000000000\n1 1\n1 50...
0a10e68ac082519888a664ca3c084e10
__inputs__ = ['5 6\n1 2 6 8 10\n1 4\n1 9\n0 6\n0 10\n1 100\n1 50\n', '5 8\n5 1 2 4 3\n0 1\n0 2\n0 3\n0 4\n0 5\n1 1000000000\n1 1\n1 500000000\n'] for __inp__ in __inputs__: import io sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8') __run_prog__() print("___SENTINEL___")
81f70146b98b8e2f22a36041baca2763
__inputs__ = ['3\njohn johanna\nira ira\nkayla jayla\n', '3\njohn johanna\nira ria\nkayla jayla\n', '3\njohn johanna\nria ria\nkayla jayla\n', '3\njogn johanna\nria qia\nkayma jayla\n', '3\nipoh o`gomka\nbjr bjr\njmya` aayjk\n', '3\njohn johanna\nria ria\nkayma jayla\n', '3\njohn johanna\nria qia\nkayma jayla\n', '3\nn...
465686cdc9b09dde51e52c89ca267087
__inputs__ = ['3\njohn johanna\nira ira\nkayla jayla\n'] for __inp__ in __inputs__: import io sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8') __run_prog__() print("___SENTINEL___")
3eab70f2690499924788183c492e4306
__inputs__ = ['2 2\n0 4\n7 4\n', '50 1\n-967 7\n696 7\n-366 4\n557 1\n978 2\n800 4\n-161 2\n-773 2\n-248 2\n134 3\n869 6\n-932 2\n-262 14\n191 3\n669 2\n72 5\n0 1\n757 8\n859 2\n-131 8\n-169 3\n543 10\n-120 2\n-87 8\n-936 6\n-620 3\n-281 11\n684 3\n886 10\n497 4\n380 4\n833 1\n-727 6\n470 11\n584 9\n66 6\n-609 12\n-661...
2a73cec47c60a49c223109973b850857
__inputs__ = ['2 3\n0 4\n5 2\n', '2 2\n0 4\n6 2\n', '2 2\n0 4\n5 2\n'] for __inp__ in __inputs__: import io sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8') __run_prog__() print("___SENTINEL___")
989c69da2e30c2724b3e8c9bc5ca2a33
__inputs__ = ['5\n86 90 69 51 2 96 71 47 88 34 45 46 89 34 31 38 97 84 41 80 14 4 50 83 7 82\n19771 12979 18912 10432 10544 12928 13403 3047 10527 9740 8100 92 2856 14730 1396 15905 6534 4650 11469 3628 8433 2994 10899 16396 18355 11424\n6674 17707 13855 16407 12232 2886 11908 1705 5000 1537 10440 10711 4917 10770 1727...
83d620c9c88a77b4bad01018e6493143
__inputs__ = [] for __inp__ in __inputs__: import io sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8') __run_prog__() print("___SENTINEL___")
22f3d4d8c844fac5f1ba0db0ea002b67
__inputs__ = ['4 5\n1 3 0\n2 4 0\n2 3 1\n4 2 1\n4 4 1\n', '2 1\n1 1 1\n3 1 0\n2 3 1\n', '2 0\n1 1 0\n3 1 0\n2 3 1\n', '4 0\n1 1 1\n1 2 0\n3 2 1\n1 4 0\n2 1 1\n1 3 0\n3 4 1\n4 4 1\n', '3 0\n1 1 1\n5 1 0\n2 6 2\n', '4 1\n1 1 1\n2 2 0\n0 2 1\n1 4 0\n2 1 0\n1 3 0\n5 4 1\n4 8 1\n', '3 2\n1 1 1\n2 2 0\n0 2 1\n0 4 1\n2 1 0\n2...
f0e15b735bf04d125458c67a80d9e44c
__inputs__ = ['100000 0\n', '4 8\n1 1 1\n1 2 0\n3 2 1\n1 4 0\n2 1 1\n1 3 0\n3 4 1\n4 4 1\n', '4 5\n1 3 1\n2 4 0\n2 3 1\n4 2 1\n4 4 1\n', '3 5\n1 3 1\n3 3 0\n3 1 0\n2 3 1\n3 2 1\n', '3 3\n1 1 1\n3 1 0\n2 3 1\n'] for __inp__ in __inputs__: import io sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encod...
dabb370be3442d280826225ddeea4049
__inputs__ = ['15 5\n0 3 7 14 15\n11 11\n', '13 4\n0 3 7 13\n9 9\n', '4 5\n0 3 1 2 4\n1 1\n', '4 5\n0 3 1 2 4\n2 1\n', '15 5\n15 3 7 0 14\n11 11\n', '15 5\n15 14 7 3 0\n11 11\n', '4 3\n0 4 2\n2 2\n', '100 5\n3 100 7 13 0\n99 5\n', '30 8\n0 1 9 10 23 24 26 30\n40 7\n', '15 5\n15 3 7 0 15\n11 11\n', '30 8\n0 1 7 10 23 24...
645a8d19fe0d84403b538c176c08d42b
__inputs__ = ['15 5\n0 3 7 14 15\n11 11\n', '13 4\n0 3 7 13\n9 9\n'] for __inp__ in __inputs__: import io sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8') __run_prog__() print("___SENTINEL___")
50680d1f73d6d83dfc4090a5013fc186
__inputs__ = ['3 1000\n120\n100\n140\n', '4 360\n90\n90\n90\n90\n', '5 3000\n150\n130\n150\n130\n110\n', '3 1001\n120\n100\n140\n', '5 3000\n150\n130\n150\n130\n100\n', '3 1001\n120\n110\n140\n', '4 360\n90\n13\n126\n90\n', '4 293\n90\n13\n126\n90\n', '4 293\n144\n13\n126\n90\n', '4 293\n144\n13\n41\n90\n', '3 0111\n12...
455935dde0b24322e1d2b7b8cb9885da
__inputs__ = ['3 1000\n120\n100\n140\n'] for __inp__ in __inputs__: import io sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8') __run_prog__() print("___SENTINEL___")
8a21552b25f1a9263bbfdaf86e6b1dc0
__inputs__ = ['3 3\n*.*\n.*.\n*.*\n', '4 5\n**..*\n..***\n.*.*.\n*.*.*\n', '1 1\n*\n', '1 1\n.\n', '1 10\n**********\n', '1 10\n*.***.**.*\n', '10 1\n*\n*\n*\n*\n*\n.\n*\n.\n*\n*\n', '10 1\n.\n.\n.\n.\n.\n.\n.\n.\n.\n.\n', '10 10\n*.*...*.**\n..*...*.**\n.**.***...\n....*.*.**\n***....***\n.*..*...*.\n.***.*..*.\n.****...
d475d03f958dba09df47b8d183f6e39a
__inputs__ = ['3 3\n*.*\n.*.\n*.*\n', '4 5\n**..*\n..***\n.*.*.\n*.*.*\n'] for __inp__ in __inputs__: import io sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8') __run_prog__() print("___SENTINEL___")
91011398df8804e41d882563619c1d3a
__inputs__ = ['01100010\n00110\n', '1010111110\n0110\n', '1011101100\n1100001\n', '10010110100000101100\n11101\n', '0\n1\n', '1011101100\n1000001\n', '10010110100000101100\n11001\n', '1010111110\n0111\n', '10010110100000101100\n10001\n', '1010111110\n0011\n', '01100010\n10110\n', '1011101100\n0000001\n', '01100010\n101...
5cc8b2e40958de2abf7a7b744cd51cde
__inputs__ = ['01100010\n00110\n', '1010111110\n0110\n'] for __inp__ in __inputs__: import io sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8') __run_prog__() print("___SENTINEL___")
866b7b402db7ad6b819b48c390121362
__inputs__ = ['5 4 10\n4 3 1\n6 4 3\n3 2 4\n2 2 1\n8 5 3\n1 2\n2 3\n3 4\n4 5\n3 3 1000\n1000 1 100\n1 7 100\n10 9 100\n1 2\n2 3\n3 2\n1 0 5\n25 25 2\n1 0 25\n25 25 2\n5 5 100\n1 1 20\n1 1 20\n10 1 1\n10 1 1\n10 1 1\n1 2\n2 1\n3 4\n4 5\n5 3\n3 3 100\n70 20 10\n50 16 20\n90 10 10\n1 2\n2 2\n2 3\n0 0 0\n', '5 4 10\n4 3 1\...
a21851c21ee5728bc9a94e561f52cbd6
__inputs__ = ['5 4 10\n4 3 1\n6 4 3\n3 2 4\n2 2 1\n8 5 3\n1 2\n2 3\n3 4\n4 5\n3 3 1000\n1000 1 100\n1 7 100\n10 9 100\n1 2\n2 3\n3 2\n1 0 5\n25 25 2\n1 0 25\n25 25 2\n5 5 100\n1 1 20\n1 1 20\n10 1 1\n10 1 1\n10 1 1\n1 2\n2 1\n3 4\n4 5\n5 3\n3 3 100\n70 20 10\n50 15 20\n90 10 10\n1 2\n2 2\n2 3\n0 0 0\n'] for __inp__ in ...
c38f4d685f366016444d034a1ff73cf7
def is_eq(a, b): if a == b: return True elif isinstance(a, (int, float)) and isinstance(b, (int, float)): return abs(a - b) < 1e-4 elif isinstance(a, list) and isinstance(b, list): if len(a) != len(b): return False for x, y in zip(a, b): if not is_eq(...
5573117fe5234385407adc6477e96a73
def is_eq(a, b): if a == b: return True elif isinstance(a, (int, float)) and isinstance(b, (int, float)): return abs(a - b) < 1e-4 elif isinstance(a, list) and isinstance(b, list): if len(a) != len(b): return False for x, y in zip(a, b): if not is_eq(...
2ad1fd479a2ca3d34ab7abe76a90fdb7
__inputs__ = ['976954722 548418041\n', '4232 755480607\n', '640735701 335933492\n', '5341 813849430\n', '23476 23875625\n', '47229813 6200\n', '657244587 28654748\n', '278014879 3453211\n', '5849 7211\n', '417584836 896784933\n', '19079106 69880743\n', '922263603 387506683\n', '937475611 769913258\n', '1000000000 10000...
0ad769824bfde2b2aeed1a542a023ad0
__inputs__ = ['387420489 225159023\n', '14 34\n', '50 34\n', '5 5\n'] for __inp__ in __inputs__: import io sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8') __run_prog__() print("___SENTINEL___")
3a5618d90e7360da8c3a5aa53c1833de
__inputs__ = ['rng gorilla apple\n', 'yakiniku unagi sushi\n', 'a a a\n', 'aaaaaaaaab aaaaaaaaaa aaaaaaaaab\n', 'a a `\n', 'baaaa`aaaa aabaaaaaaa aaaaa`aaab\n', 'rnh gorilla apple\n', 'aaaaaaaaab aaaaaaaaaa aaaaa`aaab\n', 'ybkiniku unagi sushi\n', 'a b a\n', 'rng gorilla paple\n', 'aaaaaaaaab aaaaaaaaaa baaa`aaaaa\n', ...
d41ba6db87e898381aecccff9fae6f5c
__inputs__ = ['rng gorilla apple\n'] for __inp__ in __inputs__: import io sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8') __run_prog__() print("___SENTINEL___")
10edd7be6cd89af0c7dfb67458a23e21
__inputs__ = ['32\n0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0\n', '24\n1 2 5 3 3 6 1 1 15 8 0 3 3 4 6 6 4 0 7 2 5 4 6 2\n', '3\n2 2 0\n', '24\n1 2 5 3 3 6 1 2 15 8 0 3 3 4 6 6 4 0 7 2 5 4 6 2\n', '24\n1 4 5 3 3 6 1 2 15 8 0 3 3 4 6 6 4 0 7 2 5 4 6 2\n', '24\n1 4 5 3 3 6 2 2 15 8 0 3 3 4 6 6 1 0 7 2...
17e779b2d1bc7d445c079885b8f850dd
__inputs__ = ['32\n0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0\n', '3\n1 2 2\n', '3\n1 2 3\n', '24\n1 2 5 3 3 6 1 1 8 8 0 3 3 4 6 6 4 0 7 2 5 4 6 2\n'] for __inp__ in __inputs__: import io sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8') __run_prog__() prin...
df9e548dce2ab9053e887ce80c07f7be
__inputs__ = ['6\n1 2 2 1 5\n2 1 1 1 1 1\n', '7\n1 1 2 3 1 4\n3 3 1 1 1 2 3\n', '2\n1\n2 2\n', '3\n1 1\n2 2 2\n', '4\n1 2 1\n1 2 3 4\n', '4\n1 2 3\n4 1 2 4\n', '5\n1 2 1 4\n1 1 1 2 2\n', '3\n1 2\n2 1 1\n', '4\n1 1 1\n3 1 3 1\n', '4\n1 1 2\n4 1 4 1\n', '4\n1 2 2\n3 1 2 3\n', '3\n1 1\n1 2 2\n', '4\n1 1 1\n2 1 2 2\n', '5\...
3cba5a37e1854bcb8ce00a6ad4b68db7
__inputs__ = ['6\n1 2 2 1 5\n2 1 1 1 1 1\n', '7\n1 1 2 3 1 4\n3 3 1 1 1 2 3\n'] for __inp__ in __inputs__: import io sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8') __run_prog__() print("___SENTINEL___")
810d487b94a9cefb33efcc09cf4a4903
__inputs__ = ['8\n10 0\n0 2\n-3 1\n4 2\n0 -13\n-4 1\n-2 -1\n3 -1\n', '8\n10 0\n0 2\n-3 1\n4 2\n0 -13\n-4 1\n-2 -1\n2 -1\n', '8\n2 -1\n0 2\n-3 1\n4 2\n0 -13\n-4 1\n-2 -1\n2 -1\n', '8\n2 -1\n0 3\n-3 1\n4 2\n0 -13\n-4 1\n-2 -1\n2 -1\n', '8\n10 0\n0 3\n-3 0\n4 2\n0 -13\n-4 1\n-2 -1\n3 -1\n', '8\n10 0\n0 2\n-3 2\n4 2\n0 -13...
74949f1992c54bd3bc6118ea935c3e9f
__inputs__ = ['8\n10 0\n0 2\n-3 0\n4 2\n0 -13\n-4 1\n-2 -1\n3 -1\n'] for __inp__ in __inputs__: import io sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8') __run_prog__() print("___SENTINEL___")
b1591e63916d971b07e4963517f609f3
__inputs__ = ['2\nP 1\nP 2\n2\nP 2\nM -2\n0\n', '2\nP 1\nP 2\n\n2\nP 0\nM -2\n\n0\n', '2\nP 1\nP 4\n\n2\nP 0\nM -2\n\n0\n', '2\nQ 1\nP 4\n\n2\nP -1\nM -2\n\n0\n', '2\nQ 1\nP 4\n\n2\nP -1\nM -3\n\n0\n', '2\nQ 2\nP 4\n\n0\nP 0\nM -2\n\n0\n', '2\nQ 2\nP 8\n\n2\nP -1\nM -3\n\n0\n', '2\nP 1\nP 5\n\n2\nQ 0\nM -2\n\n0\n', '2\...
28d23a5993bde71d0b93ff5a15d7a52d
__inputs__ = ['2\nP 1\nP 2\n2\nP 2\nM -2\n0\n', '2\nP 1\nP 2\n\n2\nP 2\nM -2\n\n0\n'] for __inp__ in __inputs__: import io sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8') __run_prog__() print("___SENTINEL___")
f368a223d0da84faa3bc4c625799f2af
__inputs__ = ['5\n0 1 0 1 1\n', '7\n1 0 1 0 0 1 0\n', '1\n0\n', '1\n1\n', '2\n0 0\n', '2\n0 1\n', '2\n1 0\n', '2\n1 1\n', '10\n0 0 0 0 0 0 0 0 0 0\n', '9\n1 1 1 1 1 1 1 1 1\n', '11\n0 0 0 0 0 0 0 0 0 0 1\n', '12\n1 0 0 0 0 0 0 0 0 0 0 0\n', '20\n1 1 0 1 1 1 1 1 1 1 1 0 1 1 1 0 0 1 0 0\n', '41\n1 1 0 1 0 1 0 0 1 0 1 1 1...
a841f21e861901eb0f1a522425d3812c
__inputs__ = ['5\n0 1 0 1 1\n', '7\n1 0 1 0 0 1 0\n', '1\n0\n'] for __inp__ in __inputs__: import io sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8') __run_prog__() print("___SENTINEL___")
3300e4be38e0f3352a04ed26e034cf6e
__inputs__ = ['2\n1 1\n', '3\n3 4 2\n', '1\n1\n', '1\n1000000000\n', '3\n1 2 3\n', '2\n2 3\n', '5\n1 4 2 1 1\n', '15\n2 72 77 69 62 73 58 9 4 95 97 14 41 79 34\n', '10\n529280935 122195401 684409084 743180136 724768643 211207376 167236398 696535490 425348743 1\n', '8\n1 870540358 821874877 223725489 367257956 1 1058708...
c8c0bc204c6977e81341d29a1f037938
__inputs__ = ['2\n1 1\n', '3\n3 4 2\n'] for __inp__ in __inputs__: import io sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8') __run_prog__() print("___SENTINEL___")
32768b576b7ca66ee7531b5c5af380e1
__inputs__ = ['3 5\n3 1\n0 0\n', '3 0\n5 1\n0 0\n', '1 0\n5 1\n0 0\n', '3 6\n3 0\n0 0\n', '2 5\n1 1\n0 0\n', '2 0\n1 1\n0 0\n', '3 2\n0 0\n0 0\n', '2 2\n0 0\n0 0\n', '3 7\n3 1\n0 0\n', '3 8\n3 1\n0 0\n', '1 5\n1 1\n0 0\n', '3 5\n1 1\n0 0\n', '3 9\n10 1\n0 0\n', '3 8\n1 1\n0 0\n', '4 0\n2 8\n0 0\n', '2 7\n0 0\n0 0\n', '...
03e4067d1a580071cd7d93f49a02c0bb
__inputs__ = ['3 6\n3 1\n0 0\n'] for __inp__ in __inputs__: import io sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8') __run_prog__() print("___SENTINEL___")
8608824ce5aff3829608dcace5829a37
__inputs__ = ['5 1 3 4\n', '1 1 1 1\n', '10 2 1 5\n', '4 2 7 2\n', '489 292 127 263\n', '9557 5242 1190 7734\n', '1480320 1969946 1158387 3940412\n', '0 0 0 0\n', '5000000 5000000 5000000 5000000\n', '1048576 256 1048576 1048576\n', '2073144 2073145 0 0\n', '1000000 0 0 1\n', '2 1 1 1\n', '0 5000000 5000000 5000000\n',...
07c9e809dcb3dd1be55829b175214bc2
__inputs__ = ['5 1 3 4\n', '1 1 1 1\n'] for __inp__ in __inputs__: import io sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8') __run_prog__() print("___SENTINEL___")
1a715f2ff69d228b28f04ee3b0ea9665
__inputs__ = ['5 5 3\n1 3 5\n1 2\n2 3\n3 4\n3 5\n2 4\n', '5 4 2\n2 4\n1 2\n2 3\n3 4\n4 5\n', '10 15 8\n6 9 8 1 2 7 4 5\n9 5\n3 6\n10 7\n7 4\n5 3\n8 2\n10 9\n3 4\n4 6\n5 4\n1 2\n7 3\n1 3\n7 6\n7 8\n', '42 41 20\n8 34 12 13 38 3 9 10 18 16 2 26 24 17 32 21 4 27 15 39\n1 35\n35 8\n1 31\n31 34\n1 40\n40 12\n1 30\n30 13\n1 ...
36d4f7a0a2f53cc5d52049c205ff3737
__inputs__ = ['5 5 3\n1 3 5\n1 2\n2 3\n3 4\n3 5\n2 4\n', '5 4 2\n2 4\n1 2\n2 3\n3 4\n4 5\n'] for __inp__ in __inputs__: import io sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8') __run_prog__() print("___SENTINEL___")
9d57832f22733391280f7381af8f8242
__inputs__ = ['2\n3 2\n2 4 7\n5 3\n1 2 3 4 5\n', '2\n3 2\n2 4 7\n3 3\n1 2 3 4 5\n', '2\n3 2\n2 4 7\n3 3\n1 2 3 4 9\n', '2\n3 2\n2 4 7\n3 3\n1 2 3 4 7\n', '2\n3 2\n2 4 10\n3 3\n1 2 3 4 7\n', '2\n4 2\n1 4 7\n5 3\n1 2 3 4 9\n', '2\n4 1\n1 4 7\n5 6\n1 2 5 6 9\n', '2\n6 2\n2 4 7\n4 3\n1 2 3 4 12\n', '2\n4 2\n1 4 5\n5 6\n1 2...
218e3e31ec8031eba14bf8316a980e70
__inputs__ = ['2\n3 2\n2 4 7\n5 3\n1 2 3 4 5\n'] for __inp__ in __inputs__: import io sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8') __run_prog__() print("___SENTINEL___")
fbc799969cb5449efdc0cd022f2f0530
__inputs__ = ['yysxwlyqboatikfnpxczmpijziiojbvadlfozjqldssffcxdegyxfrvohoxvgsrvlzjlkcuffoeisrpvagxtbkapkpzcafadzzjd\n', 'FSFlNEelYY\n', 'lgtyasficu\n', 'MMVESdOCALHJCTBTUWWQRGUUVTTTABKKAAdIINAdKLRLLVLODHDXDPMcQfUhPNHFBJSDRGsHZNORSCPNvKOOIuZnZAmTPUCoPNlR\n', 'WYKUDTDDBT\n', 'P\n', 'MMbJIBhgFXPVpdQHLkWJkAHFIfJSpITTCRzRCz...
951f3dc106827269e1566254317ffcbd
__inputs__ = ['OYPROSTIYAOPECHATALSYAPRIVETSTASYA\n', 'helloworld\n', 'PRuvetSTAaYA\n'] for __inp__ in __inputs__: import io sys.stdin = io.TextIOWrapper(io.BytesIO(__inp__.encode()), encoding='utf8') __run_prog__() print("___SENTINEL___")
3cd5b14b878f6676cd635c82537bcf62