dataset
stringclasses 1
value | question
stringlengths 29
13k
| exe_method
stringclasses 1
value | solutions
null | task_id
int64 0
5.07k
| test_time_limit
int64 1
1
| example_input
listlengths 0
5
| example_output
listlengths 0
5
| test_input
listlengths 1
10
| test_output
listlengths 1
10
|
|---|---|---|---|---|---|---|---|---|---|
CodeContests
|
N people are standing in a queue, numbered 1, 2, 3, ..., N from front to back. Each person wears a hat, which is red, blue, or green.
The person numbered i says:
* "In front of me, exactly A_i people are wearing hats with the same color as mine."
Assuming that all these statements are correct, find the number of possible combinations of colors of the N people's hats.
Since the count can be enormous, compute it modulo 1000000007.
Constraints
* 1 \leq N \leq 100000
* 0 \leq A_i \leq N-1
* All values in input are integers.
Input
Input is given from Standard Input in the following format:
N
A_1 A_2 A_3 ... A_N
Output
Print the number of possible combinations of colors of the N people's hats, modulo 1000000007.
Examples
Input
6
0 1 2 3 4 5
Output
3
Input
3
0 0 0
Output
6
Input
54
0 0 1 0 1 2 1 2 3 2 3 3 4 4 5 4 6 5 7 8 5 6 6 7 7 8 8 9 9 10 10 11 9 12 10 13 14 11 11 12 12 13 13 14 14 15 15 15 16 16 16 17 17 17
Output
115295190
|
stdin
| null | 1,966
| 1
|
[
"54\n0 0 1 0 1 2 1 2 3 2 3 3 4 4 5 4 6 5 7 8 5 6 6 7 7 8 8 9 9 10 10 11 9 12 10 13 14 11 11 12 12 13 13 14 14 15 15 15 16 16 16 17 17 17\n",
"3\n0 0 0\n",
"6\n0 1 2 3 4 5\n"
] |
[
"115295190\n",
"6\n",
"3\n"
] |
[
"54\n0 0 1 0 1 2 1 2 3 2 3 3 4 4 5 4 6 5 7 8 5 6 6 7 7 8 8 9 9 10 10 11 9 12 10 13 14 11 11 12 12 20 13 14 14 15 15 15 16 16 16 17 17 17\n",
"6\n0 1 2 0 3 4\n",
"6\n0 1 1 3 4 5\n",
"54\n0 0 1 0 1 2 1 2 3 2 3 3 4 4 5 4 6 5 7 8 5 6 6 7 7 8 8 9 9 10 10 11 9 12 10 13 14 11 11 12 12 9 13 14 14 15 15 15 16 16 16 17 17 17\n",
"6\n0 1 0 3 4 5\n",
"54\n0 0 1 0 1 2 1 2 3 2 3 3 2 4 5 4 6 5 7 8 5 6 6 7 7 8 8 9 9 10 10 11 9 12 10 13 14 11 11 12 12 9 13 14 14 15 15 15 16 16 16 17 17 17\n",
"6\n0 1 0 1 4 5\n",
"54\n0 0 1 0 1 2 1 2 6 2 3 3 2 4 5 4 6 5 7 8 5 6 6 7 7 8 8 9 9 10 10 11 9 12 10 13 14 11 11 12 12 9 13 14 14 15 15 15 16 16 16 17 17 17\n",
"6\n0 1 0 1 2 5\n",
"54\n0 0 1 0 1 2 1 2 6 2 3 3 2 4 5 4 6 5 7 8 5 6 6 7 7 7 8 9 9 10 10 11 9 12 10 13 14 11 11 12 12 9 13 14 14 15 15 15 16 16 16 17 17 17\n"
] |
[
"0\n",
"6\n",
"0\n",
"0\n",
"0\n",
"0\n",
"0\n",
"0\n",
"0\n",
"0\n"
] |
CodeContests
|
A positive integer is called a "prime-factor prime" when the number of its prime factors is prime. For example, $12$ is a prime-factor prime because the number of prime factors of $12 = 2 \times 2 \times 3$ is $3$, which is prime. On the other hand, $210$ is not a prime-factor prime because the number of prime factors of $210 = 2 \times 3 \times 5 \times 7$ is $4$, which is a composite number.
In this problem, you are given an integer interval $[l, r]$. Your task is to write a program which counts the number of prime-factor prime numbers in the interval, i.e. the number of prime-factor prime numbers between $l$ and $r$, inclusive.
Input
The input consists of a single test case formatted as follows.
$l$ $r$
A line contains two integers $l$ and $r$ ($1 \leq l \leq r \leq 10^9$), which presents an integer interval $[l, r]$. You can assume that $0 \leq r-l < 1,000,000$.
Output
Print the number of prime-factor prime numbers in $[l,r]$.
Examples
Input
1 9
Output
4
Input
10 20
Output
6
Input
575 57577
Output
36172
Input
180 180
Output
1
Input
9900001 10000000
Output
60997
Input
999000001 1000000000
Output
592955
|
stdin
| null | 3,059
| 1
|
[
"180 180\n",
"999000001 1000000000\n",
"575 57577\n",
"9900001 10000000\n",
"1 9\n"
] |
[
"1\n",
"592955\n",
"36172\n",
"60997\n",
"4\n"
] |
[
"180 355\n",
"575 105187\n",
"1 12\n",
"8 355\n",
"575 184476\n",
"1 17\n",
"575 263927\n",
"8 29\n",
"575 229506\n",
"1 7\n"
] |
[
"110\n",
"66154\n",
"6\n",
"220\n",
"115815\n",
"8\n",
"165557\n",
"14\n",
"144091\n",
"2\n"
] |
CodeContests
|
Given are N points on the circumference of a circle centered at (0,0) in an xy-plane. The coordinates of the i-th point are (\cos(\frac{2\pi T_i}{L}),\sin(\frac{2\pi T_i}{L})).
Three distinct points will be chosen uniformly at random from these N points. Find the expected x- and y-coordinates of the center of the circle inscribed in the triangle formed by the chosen points.
Constraints
* 3 \leq N \leq 3000
* N \leq L \leq 10^9
* 0 \leq T_i \leq L-1
* T_i<T_{i+1}
* All values in input are integers.
Input
Input is given from Standard Input in the following format:
N L
T_1
:
T_N
Output
Print the expected x- and y-coordinates of the center of the circle inscribed in the triangle formed by the chosen points. Your output will be considered correct when the absolute or relative error is at most 10^{-9}.
Examples
Input
3 4
0
1
3
Output
0.414213562373095 -0.000000000000000
Input
4 8
1
3
5
6
Output
-0.229401949926902 -0.153281482438188
Input
10 100
2
11
35
42
54
69
89
91
93
99
Output
0.352886583546338 -0.109065017701873
|
stdin
| null | 453
| 1
|
[
"3 4\n0\n1\n3\n",
"10 100\n2\n11\n35\n42\n54\n69\n89\n91\n93\n99\n",
"4 8\n1\n3\n5\n6\n"
] |
[
"0.414213562373095 -0.000000000000000\n",
"0.352886583546338 -0.109065017701873\n",
"-0.229401949926902 -0.153281482438188\n"
] |
[
"10 100\n2\n10\n35\n42\n54\n69\n89\n91\n93\n99\n",
"4 8\n1\n5\n5\n6\n",
"10 100\n2\n10\n35\n42\n54\n69\n87\n91\n93\n99\n",
"4 8\n1\n2\n5\n6\n",
"4 8\n1\n2\n5\n5\n",
"4 8\n1\n3\n5\n5\n",
"4 15\n1\n3\n5\n5\n",
"3 4\n0\n0\n3\n",
"10 100\n2\n11\n40\n42\n54\n69\n89\n91\n93\n99\n",
"10 100\n4\n10\n35\n42\n54\n69\n89\n91\n93\n99\n"
] |
[
"0.359183517098 -0.113357499556\n",
"-0.436508731113 -0.653281482438\n",
"0.344179693189 -0.120298491279\n",
"-0.000000000000 0.000000000000\n",
"-0.270598050073 -0.053825298748\n",
"-0.500000000000 -0.207106781187\n",
"-0.122207425642 0.826317804167\n",
"1.000000000000 0.000000000000\n",
"0.322750794772 -0.125190080121\n",
"0.352293122816 -0.097891128116\n"
] |
CodeContests
|
There are N slimes standing on a number line. The i-th slime from the left is at position x_i.
It is guaruanteed that 1 \leq x_1 < x_2 < \ldots < x_N \leq 10^{9}.
Niwango will perform N-1 operations. The i-th operation consists of the following procedures:
* Choose an integer k between 1 and N-i (inclusive) with equal probability.
* Move the k-th slime from the left, to the position of the neighboring slime to the right.
* Fuse the two slimes at the same position into one slime.
Find the total distance traveled by the slimes multiplied by (N-1)! (we can show that this value is an integer), modulo (10^{9}+7). If a slime is born by a fuse and that slime moves, we count it as just one slime.
Constraints
* 2 \leq N \leq 10^{5}
* 1 \leq x_1 < x_2 < \ldots < x_N \leq 10^{9}
* x_i is an integer.
Input
Input is given from Standard Input in the following format:
N
x_1 x_2 \ldots x_N
Output
Print the answer.
Examples
Input
3
1 2 3
Output
5
Input
12
161735902 211047202 430302156 450968417 628894325 707723857 731963982 822804784 880895728 923078537 971407775 982631932
Output
750927044
|
stdin
| null | 174
| 1
|
[
"12\n161735902 211047202 430302156 450968417 628894325 707723857 731963982 822804784 880895728 923078537 971407775 982631932\n",
"3\n1 2 3\n"
] |
[
"750927044\n",
"5\n"
] |
[
"12\n161735902 211047202 430302156 450968417 628894325 707723857 731963982 822804784 880895728 923078537 971407775 1765707086\n",
"3\n1 2 5\n",
"12\n161735902 394362112 430302156 450968417 628894325 707723857 731963982 822804784 880895728 923078537 971407775 1765707086\n",
"3\n1 3 5\n",
"12\n161735902 394362112 430302156 872675759 628894325 707723857 731963982 822804784 880895728 923078537 971407775 1765707086\n",
"12\n161735902 394362112 430302156 872675759 628894325 707723857 402149677 822804784 880895728 923078537 971407775 1765707086\n",
"12\n161735902 394362112 430302156 872675759 628894325 946982680 402149677 822804784 880895728 923078537 971407775 1765707086\n",
"12\n161735902 394362112 430302156 872675759 1190847685 946982680 402149677 822804784 880895728 923078537 971407775 1765707086\n",
"12\n161735902 394362112 430302156 872675759 1190847685 946982680 402149677 822804784 135685914 923078537 971407775 1765707086\n",
"12\n161735902 467388357 430302156 872675759 1190847685 946982680 402149677 822804784 135685914 923078537 971407775 1765707086\n"
] |
[
"161914202\n",
"11\n",
"887780913\n",
"10\n",
"9952620\n",
"89619489\n",
"3107276\n",
"58421608\n",
"602338330\n",
"604332739\n"
] |
CodeContests
|
Rohan bought new book Puzzleria in which he has to solve the puzzle.
So,now he need your help to solve one of the puzzle were he is given X consonant
and Y vowels to make a word from it whose length is equals to X + Y.
So now your are given the number of consonant and vowels and has to tell how many words can be formed out of it.
INPUT
First line will be T Testcase (T<50) followed by T lines with two number in each line ,first number is for consonant(consonants ≤ 7)and second is for vowels(vowels ≤ 5).
OUTPUT
It should contain number of words which can be made with given combination.
Repetition of alphabets is not allowed
SAMPLE INPUT
1
5 2
SAMPLE OUTPUT
1058400
Explanation
Here we have 1 testcase with 5 consonant and 2 vowels and when we made words for these combination we get 1058400
|
stdin
| null | 4,102
| 1
|
[
"1\n5 2\n\nSAMPLE\n"
] |
[
"1058400\n"
] |
[
"30\n2 4 \n3 4 \n6 1 \n4 2 \n5 3 \n3 5 \n5 1 \n6 2 \n1 4\n7 3 \n2 1 \n1 2 \n2 5 \n4 1 \n4 3 \n5 4 \n3 2\n4 4\n5 2\n1 3\n7 2\n1 1\n2 1\n7 5\n2 3\n6 3\n7 4\n6 4\n5 5\n2 2\n",
"1\n5 4\n\nSAMPLE\n",
"30\n2 4 \n3 4 \n6 1 \n4 2 \n5 3 \n3 5 \n5 1 \n6 2 \n1 4\n7 4 \n2 1 \n1 2 \n2 5 \n4 1 \n4 3 \n5 4 \n3 2\n4 4\n5 2\n1 3\n7 2\n1 1\n2 1\n7 5\n2 3\n6 3\n7 4\n6 4\n5 5\n2 2\n",
"1\n5 5\n\nSAMPLE\n",
"10\n5 2 \n4 2 \n5 3 \n6 5 \n3 3 \n3 4 \n2 5 \n2 2 \n4 1\n3 4\n",
"1\n6 2\n\nSAMPLE\n",
"30\n4 4 \n3 4 \n6 1 \n4 2 \n5 3 \n3 5 \n5 1 \n6 2 \n1 4\n7 4 \n2 1 \n1 2 \n2 5 \n4 1 \n4 3 \n5 4 \n3 2\n4 4\n5 2\n1 3\n7 2\n1 1\n2 1\n7 5\n2 3\n6 3\n7 4\n6 4\n5 5\n2 2\n",
"1\n4 5\n\nSAMPLE\n",
"10\n5 2 \n4 2 \n5 3 \n6 5 \n3 3 \n3 4 \n2 5 \n2 2 \n4 0\n3 4\n",
"30\n4 4 \n3 2 \n6 1 \n4 2 \n5 3 \n3 5 \n5 1 \n6 2 \n1 4\n7 4 \n2 1 \n1 2 \n2 5 \n4 1 \n4 3 \n5 4 \n3 2\n4 4\n5 2\n1 3\n7 2\n1 1\n2 1\n7 5\n2 3\n6 3\n7 4\n6 4\n5 5\n2 2\n"
] |
[
"75600\n882000\n176400\n252000\n8467200\n1411200\n75600\n2822400\n4200\n36288000\n630\n420\n105840\n21000\n1764000\n38102400\n42000\n7056000\n1058400\n1680\n3628800\n70\n630\n479001600\n25200\n25401600\n199584000\n127008000\n76204800\n5040\n",
"38102400\n",
"75600\n882000\n176400\n252000\n8467200\n1411200\n75600\n2822400\n4200\n199584000\n630\n420\n105840\n21000\n1764000\n38102400\n42000\n7056000\n1058400\n1680\n3628800\n70\n630\n479001600\n25200\n25401600\n199584000\n127008000\n76204800\n5040\n",
"76204800\n",
"1058400\n252000\n8467200\n279417600\n252000\n882000\n105840\n5040\n21000\n882000\n",
"2822400\n",
"7056000\n882000\n176400\n252000\n8467200\n1411200\n75600\n2822400\n4200\n199584000\n630\n420\n105840\n21000\n1764000\n38102400\n42000\n7056000\n1058400\n1680\n3628800\n70\n630\n479001600\n25200\n25401600\n199584000\n127008000\n76204800\n5040\n",
"12700800\n",
"1058400\n252000\n8467200\n279417600\n252000\n882000\n105840\n5040\n840\n882000\n",
"7056000\n42000\n176400\n252000\n8467200\n1411200\n75600\n2822400\n4200\n199584000\n630\n420\n105840\n21000\n1764000\n38102400\n42000\n7056000\n1058400\n1680\n3628800\n70\n630\n479001600\n25200\n25401600\n199584000\n127008000\n76204800\n5040\n"
] |
CodeContests
|
J - Tree Reconstruction
Problem Statement
You have a directed graph. Some non-negative value is assigned on each edge of the graph. You know that the value of the graph satisfies the flow conservation law That is, for every node v, the sum of values on edges incoming to v equals to the sum of values of edges outgoing from v. For example, the following directed graph satisfies the flow conservation law.
<image>
Suppose that you choose a subset of edges in the graph, denoted by E', and then you erase all the values on edges other than E'. Now you want to recover the erased values by seeing only remaining information. Due to the flow conservation law, it may be possible to recover all the erased values. Your task is to calculate the smallest possible size for such E'.
For example, the smallest subset E' for the above graph will be green edges in the following figure. By the flow conservation law, we can recover values on gray edges.
<image>
Input
The input consists of multiple test cases. The format of each test case is as follows.
N M
s_1 t_1
...
s_M t_M
The first line contains two integers N (1 \leq N \leq 500) and M (0 \leq M \leq 3,000) that indicate the number of nodes and edges, respectively. Each of the following M lines consists of two integers s_i and t_i (1 \leq s_i, t_i \leq N). This means that there is an edge from s_i to t_i in the graph.
You may assume that the given graph is simple:
* There are no self-loops: s_i \neq t_i.
* There are no multi-edges: for all i < j, \\{s_i, t_i\\} \neq \\{s_j, t_j\\}.
Also, it is guaranteed that each component of the given graph is strongly connected. That is, for every pair of nodes v and u, if there exist a path from v to u, then there exists a path from u to v.
Note that you are NOT given information of values on edges because it does not effect the answer.
Output
For each test case, print an answer in one line.
Sample Input 1
9 13
1 2
1 3
2 9
3 4
3 5
3 6
4 9
5 7
6 7
6 8
7 9
8 9
9 1
Output for the Sample Input 1
5
Sample Input 2
7 9
1 2
1 3
2 4
3 4
4 5
4 6
5 7
6 7
7 1
Output for the Sample Input 2
3
Sample Input 3
4 4
1 2
2 1
3 4
4 3
Output for the Sample Input 3
2
Example
Input
9 13
1 2
1 3
2 9
3 4
3 5
3 6
4 9
5 7
6 7
6 8
7 9
8 9
9 1
Output
5
|
stdin
| null | 708
| 1
|
[
"9 13\n1 2\n1 3\n2 9\n3 4\n3 5\n3 6\n4 9\n5 7\n6 7\n6 8\n7 9\n8 9\n9 1\n"
] |
[
"5\n"
] |
[
"9 13\n1 2\n1 3\n2 9\n3 4\n3 5\n3 6\n4 9\n5 8\n6 7\n6 8\n7 9\n8 9\n9 1\n",
"9 13\n1 2\n1 3\n1 9\n1 4\n3 5\n5 6\n4 9\n5 7\n6 7\n8 8\n7 9\n5 9\n9 1\n",
"9 1\n1 1\n1 3\n1 9\n1 4\n3 5\n5 6\n4 9\n5 7\n6 7\n6 8\n7 9\n5 9\n9 1\n",
"9 10\n1 2\n1 3\n2 9\n1 4\n3 5\n4 6\n3 9\n5 7\n6 7\n6 8\n7 9\n5 9\n9 1\n",
"9 10\n1 2\n1 3\n2 9\n3 4\n3 5\n6 6\n4 9\n5 1\n6 7\n6 8\n10 9\n8 9\n9 1\n",
"9 0\n1 1\n1 3\n1 18\n2 4\n3 5\n5 6\n4 4\n5 1\n6 7\n6 8\n7 9\n5 9\n9 2\n",
"11 13\n1 2\n1 3\n2 9\n3 4\n3 5\n3 6\n4 5\n5 7\n3 7\n6 8\n7 9\n9 11\n9 1\n",
"9 13\n1 2\n1 3\n2 9\n3 4\n3 5\n3 6\n4 9\n5 7\n6 7\n6 8\n7 9\n9 9\n9 1\n",
"11 13\n1 2\n1 3\n2 9\n3 4\n3 5\n3 6\n4 9\n5 7\n6 7\n6 8\n7 9\n9 9\n9 1\n",
"9 13\n1 2\n1 3\n2 9\n3 4\n3 5\n3 6\n4 9\n5 7\n6 7\n6 8\n7 3\n9 9\n9 1\n"
] |
[
"5\n",
"6\n",
"1\n",
"2\n",
"3\n",
"0\n",
"4\n",
"5\n",
"5\n",
"5\n"
] |
CodeContests
|
I have a plan to go on a school trip at a school. I conducted a questionnaire survey for that purpose. Students have student numbers from 1 to n, and the locations of travel candidates are represented by numbers from 1 to m, and where they want to go ○ , Mark the places you don't want to go with a cross and submit.
At this time, create a program that outputs the place numbers in descending order of the number of people you want to go to. If the number of people is the same, the place numbers are used.
In the first line of the input data, the number of students n and the number of travel candidate locations m are separated by a blank, and the questionnaire result of student i is represented by 1 in ○ and 0 in × in i + 1 line, separated by a blank. There are m numbers in a row. 1 ≤ n ≤ 1000, 1 ≤ m ≤ 100.
Input example 1
---
4 6
1 0 1 0 1 1
1 1 0 1 0 0
1 1 1 0 0 0
1 0 1 0 1 0
Output example 1
1 3 2 5 4 6
input
The input consists of multiple datasets. Input ends when both n and m are 0. The number of datasets does not exceed 5.
output
Output the location number on one line for each dataset.
Example
Input
4 6
1 0 1 0 1 1
1 1 0 1 0 0
1 1 1 0 0 0
1 0 1 0 1 0
4 6
1 0 1 0 1 1
1 1 0 1 0 0
1 1 1 0 0 0
1 0 1 0 1 0
0 0
Output
1 3 2 5 4 6
1 3 2 5 4 6
|
stdin
| null | 2,214
| 1
|
[
"4 6\n1 0 1 0 1 1\n1 1 0 1 0 0\n1 1 1 0 0 0\n1 0 1 0 1 0\n4 6\n1 0 1 0 1 1\n1 1 0 1 0 0\n1 1 1 0 0 0\n1 0 1 0 1 0\n0 0\n"
] |
[
"1 3 2 5 4 6\n1 3 2 5 4 6\n"
] |
[
"4 6\n1 0 1 0 1 1\n1 2 0 1 0 0\n1 1 1 0 0 0\n1 0 1 0 1 0\n4 6\n1 0 1 0 1 1\n1 1 0 1 0 0\n1 1 1 0 0 0\n1 0 1 0 1 0\n0 0\n",
"4 6\n1 0 1 0 1 1\n1 2 0 1 0 0\n1 1 1 0 0 0\n1 0 1 0 1 0\n4 6\n1 0 1 0 1 1\n2 1 0 1 1 0\n1 1 1 0 0 0\n1 0 1 0 1 0\n0 0\n",
"4 6\n1 0 1 0 1 1\n1 1 0 1 0 0\n1 1 1 0 0 0\n1 0 1 0 1 0\n4 6\n0 0 1 0 1 1\n1 1 0 1 0 0\n1 1 1 0 0 0\n1 0 1 0 1 0\n0 0\n",
"4 6\n1 0 1 0 1 1\n1 2 0 1 0 0\n1 1 1 0 0 0\n1 0 1 0 1 0\n4 6\n1 0 1 0 1 1\n1 1 -1 1 0 0\n1 1 1 0 0 0\n1 0 1 0 1 0\n0 0\n",
"4 6\n1 0 1 0 1 2\n1 2 0 1 1 0\n1 1 1 0 0 0\n1 0 1 0 1 0\n4 6\n1 0 1 0 1 1\n2 1 0 1 1 0\n1 1 1 0 0 0\n1 0 1 0 1 0\n0 0\n",
"4 6\n1 0 1 0 1 1\n1 1 0 1 0 0\n1 0 1 0 0 0\n1 0 1 0 1 0\n4 6\n0 0 1 0 1 1\n1 1 0 1 0 0\n1 1 1 0 0 0\n1 0 1 0 1 0\n0 0\n",
"4 6\n1 0 1 0 1 1\n1 2 0 1 0 0\n1 1 1 0 0 1\n1 0 1 0 1 0\n4 6\n1 0 1 0 1 1\n1 1 -1 1 0 0\n1 1 1 0 0 0\n1 0 1 0 1 0\n0 0\n",
"4 6\n1 0 0 0 1 1\n1 2 0 1 0 0\n1 1 1 0 0 0\n1 0 1 0 1 0\n4 6\n1 0 1 0 1 1\n2 1 0 1 1 0\n1 1 0 0 0 0\n1 0 1 0 1 0\n0 0\n",
"4 6\n1 0 1 0 1 2\n1 0 0 1 1 0\n1 1 1 0 0 0\n1 0 1 0 1 0\n4 6\n1 0 1 0 1 1\n2 1 0 1 1 0\n1 1 1 0 0 0\n1 0 1 0 1 0\n0 0\n",
"4 6\n1 0 1 0 1 1\n1 1 0 1 0 0\n1 1 1 0 0 0\n1 0 1 0 1 0\n4 6\n0 0 1 0 1 1\n1 1 0 1 0 0\n1 1 1 0 0 0\n1 -1 1 0 1 0\n0 0\n"
] |
[
"1 2 3 5 4 6\n1 3 2 5 4 6\n",
"1 2 3 5 4 6\n1 3 5 2 4 6\n",
"1 3 2 5 4 6\n1 3 2 5 4 6\n",
"1 2 3 5 4 6\n1 2 3 5 4 6\n",
"1 2 3 5 6 4\n1 3 5 2 4 6\n",
"1 3 5 2 4 6\n1 3 2 5 4 6\n",
"1 2 3 5 6 4\n1 2 3 5 4 6\n",
"1 2 3 5 4 6\n1 5 2 3 4 6\n",
"1 3 5 6 2 4\n1 3 5 2 4 6\n",
"1 3 2 5 4 6\n1 3 5 2 4 6\n"
] |
CodeContests
|
Your task is to write a program which reads a text and prints two words. The first one is the word which is arise most frequently in the text. The second one is the word which has the maximum number of letters.
The text includes only alphabetical characters and spaces. A word is a sequence of letters which is separated by the spaces.
Input
A text is given in a line. You can assume the following conditions:
* The number of letters in the text is less than or equal to 1000.
* The number of letters in a word is less than or equal to 32.
* There is only one word which is arise most frequently in given text.
* There is only one word which has the maximum number of letters in given text.
Output
The two words separated by a space.
Example
Input
Thank you for your mail and your lectures
Output
your lectures
|
stdin
| null | 3,681
| 1
|
[
"Thank you for your mail and your lectures\n"
] |
[
"your lectures\n"
] |
[
"Thank you for your mail amd your lectures\n",
"ahTnk you for your mail and your serutcel\n",
"Uhank you for your mail mad your lrctuees\n",
"ahTnk you for your mail and your leeturcs\n",
"khTna you for your mail and your sequtcel\n",
"khTna you for your mail dna your sequucel\n",
"Uhank uzp gor your mail amd your lecsures\n",
"Uhank you for your mail amd your lectuser\n",
"ahTnk you for your mail and your servtcel\n",
"ahTok you for your mail and your serutcek\n"
] |
[
"your lectures\n",
"your serutcel\n",
"your lrctuees\n",
"your leeturcs\n",
"your sequtcel\n",
"your sequucel\n",
"your lecsures\n",
"your lectuser\n",
"your servtcel\n",
"your serutcek\n"
] |
CodeContests
|
Find the number of integers between 1 and K (inclusive) satisfying the following condition, modulo 10^9 + 7:
* The sum of the digits in base ten is a multiple of D.
Constraints
* All values in input are integers.
* 1 \leq K < 10^{10000}
* 1 \leq D \leq 100
Input
Input is given from Standard Input in the following format:
K
D
Output
Print the number of integers satisfying the condition, modulo 10^9 + 7.
Examples
Input
30
4
Output
6
Input
1000000009
1
Output
2
Input
98765432109876543210
58
Output
635270834
|
stdin
| null | 2,440
| 1
|
[
"98765432109876543210\n58\n",
"30\n4\n",
"1000000009\n1\n"
] |
[
"635270834\n",
"6\n",
"2\n"
] |
[
"98765432109876543210\n66\n",
"30\n1\n",
"1000000009\n2\n",
"98765432109876543210\n18\n",
"1000000009\n4\n",
"98765432109876543210\n11\n",
"1000000009\n5\n",
"98765432109876543210\n12\n",
"1000000009\n9\n",
"98765432109876543210\n10\n"
] |
[
"678072802\n",
"30\n",
"500000004\n",
"852803440\n",
"250000009\n",
"501683936\n",
"200000001\n",
"209841644\n",
"111111112\n",
"851852334\n"
] |
CodeContests
|
My flatmate, Sayan, once invited all his relatives and friends from all over the city to join him on his birthday party.
He is also famous for boasting that all his friends and relatives belong to "proper" families.
Now, he appointed a gaurd to allow only his relatives and friends into the party.
It is gauranteed that all the relatives and friends come with their families all at once ,i.e, all members belonging to the same family reach all at once.
Now gaurd's task is to count the number of "proper" families who came in the party.
All families have a unique "special number" assigned to them ,i.e., all members of the same family share the same "special number".
A family is said to be proper only if the number of members in the familiy is a number which can be made by adding numbers from a given set of "valid" numbers N. Further constraint is that each valid number can be used only once.
Take an example:-
if N={1,2,8}
then all the families with 1,2,3,8,9,10 , or 11 members are allowed in the party , where as families with 4,5,6,7, etc members are not allowed.
The gaurd being a lazy fellow came to you for help.You need to write a program that computes the number of "proper families" in who turned up.
INPUT.
First line of input contains a number T denoting the number of test cases.T test cases follow.
In each test case, the first line contains the number(P) of total number of people coming for the party and the number (M) denoting the number of "valid" numbers.
The 2nd line contains M numbers, the set N ,containing all distinct "valid" numbers separated with spaces.
The 3rd line contains P numbers, the "special" number of the members separated with spaces.
OUTPUT.
Output a single line for each of the test cases that denotes the number of "proper families" who turned up for the party.
CONSTRAINTS:
1 ≤ T ≤ 5
1 ≤ P,N,M ≤ 1000
SAMPLE INPUT
2
8 3
1 2 8
2 2 2 3 4 4 4 4
10 3
2 4 6
2 9 9 9 19 19 19 19 19 20
SAMPLE OUTPUT
2
0
Explanation
In the first case:
Clearly, The families with 1,2,3,8,9,10 and 11 members are allowed in the party.
The family with "Special" number 2 has 3 members in it which is allowed.Same for the family with "special" number 3.
But for the family with "special" number 4 has 4 members, which is not allowed.
So the total number of "proper" families = 2.
|
stdin
| null | 4,489
| 1
|
[
"2\n8 3\n1 2 8\n2 2 2 3 4 4 4 4\n10 3\n2 4 6\n2 9 9 9 19 19 19 19 19 20\n\nSAMPLE\n"
] |
[
"2\n0\n"
] |
[
"1\n536 539\n1 7 10 12 13 14 15 18 19 23 25 26 27 31 35 36 38 49 55 58 59 60 61 62 63 64 65 66 70 73 77 81 82 83 84 87 88 90 91 95 96 98 102 103 105 108 110 112 114 115 116 117 119 121 122 123 125 127 129 130 131 133 134 135 136 137 138 141 142 144 148 150 151 152 153 156 157 159 161 162 163 164 165 167 168 169 171 173 174 175 176 177 179 180 181 184 186 187 188 190 192 195 196 197 198 199 200 202 203 204 205 206 207 208 209 212 216 217 218 221 222 224 229 230 231 232 233 234 235 244 247 248 250 251 252 253 254 257 262 263 267 269 270 273 274 275 276 280 287 288 289 291 293 294 296 298 300 301 302 305 306 307 311 313 317 318 320 321 325 326 330 332 333 334 335 336 338 339 341 342 344 346 347 349 350 351 352 353 354 357 358 359 361 362 363 365 366 367 368 369 371 372 373 375 376 377 378 379 380 383 386 388 391 392 395 399 400 401 404 407 411 412 414 415 419 420 422 427 432 433 434 435 436 438 439 440 444 445 446 448 450 451 452 455 460 461 462 467 470 471 475 476 477 480 483 484 485 487 489 491 492 494 495 496 498 499 501 502 504 506 507 511 514 515 516 517 519 520 524 526 527 528 529 531 532 535 542 544 546 547 551 552 556 561 562 563 564 565 567 568 571 572 573 574 575 576 577 578 579 580 581 204 583 584 585 586 587 592 593 594 597 598 599 600 601 605 608 611 613 615 616 623 624 625 626 627 628 629 630 631 633 635 636 637 638 639 641 642 643 644 645 649 652 653 656 657 658 661 662 665 666 667 668 669 671 672 673 674 675 677 678 680 682 692 693 701 702 704 705 706 707 711 712 714 719 720 721 722 723 724 726 727 728 730 731 732 733 734 735 736 738 739 740 741 744 746 748 749 754 755 757 759 760 761 763 764 766 767 768 771 772 773 775 778 779 784 785 787 791 792 794 800 801 806 808 809 811 812 813 814 815 817 820 822 823 824 828 830 834 835 838 840 842 844 845 846 848 849 851 853 861 863 866 868 869 870 871 872 873 874 875 876 878 879 883 887 890 891 893 894 895 896 897 899 900 902 903 904 906 907 909 910 912 916 917 918 919 920 921 925 926 928 930 931 934 936 937 938 939 942 945 949 950 951 956 959 960 962 964 965 966 967 968 969 970 971 972 977 978 979 980 982 985 990 991 994 995 997 998\n285 285 285 285 285 285 285 285 285 285 285 285 285 285 285 285 285 285 285 285 285 285 285 285 285 285 285 285 285 285 285 285 285 285 285 285 285 285 285 285 285 285 285 285 285 285 285 285 285 285 285 285 285 285 285 615 615 615 615 615 615 615 615 615 615 615 615 615 615 615 615 615 615 615 615 615 615 615 615 615 615 615 615 615 615 615 615 615 615 615 615 615 615 615 615 615 615 615 615 615 615 615 615 615 615 615 615 615 615 615 615 615 615 615 615 615 615 615 615 615 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 971 475 475 475 475 626 626 626 626 626 626 626 626 626 89\n",
"2\n8 3\n0 2 8\n2 2 2 3 4 4 4 4\n10 3\n2 4 6\n2 9 9 9 19 19 19 19 19 20\n\nSAMPLE\n",
"2\n8 3\n0 2 8\n2 2 2 3 4 4 3 4\n10 3\n2 4 6\n2 9 9 9 19 19 19 19 19 20\n\nSAMPLE\n",
"2\n8 3\n0 2 8\n2 2 2 3 4 4 3 4\n10 3\n2 4 6\n2 9 9 9 19 19 19 19 35 20\n\nSAMPLE\n",
"2\n8 3\n1 3 8\n2 2 2 3 4 4 4 4\n10 3\n2 4 6\n2 9 9 9 19 19 19 19 19 20\n\nSAMPLE\n",
"1\n899 188\n8 12 19 22 27 28 29 34 35 38 42 43 53 54 55 60 61 62 64 65 67 68 75 80 81 84 87 88 89 99 106 111 115 128 140 146 150 151 153 155 156 166 167 174 177 181 185 188 190 194 208 216 219 224 231 242 246 254 257 258 261 266 270 284 286 287 292 302 306 310 312 313 317 322 323 328 340 359 360 362 366 367 382 385 386 392 394 396 398 426 429 435 438 445 452 453 469 485 489 493 500 503 508 511 513 526 534 542 545 546 547 550 555 562 567 576 578 583 593 594 598 601 612 613 617 619 629 631 655 670 672 685 686 690 692 694 698 726 727 736 740 750 752 753 755 756 757 762 769 773 774 781 794 796 805 811 816 830 833 838 839 844 847 849 853 868 870 878 882 890 900 901 904 910 915 937 938 940 941 948 959 965 969 970 975 980 982 983\n240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 74 240 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 856 856 856 856 856 856 856 856 856 856 856 856 856 763\n",
"2\n8 3\n1 2 8\n2 2 2 3 4 4 4 4\n10 1\n2 4 6\n2 9 9 9 19 19 19 19 19 20\n\nSAMPLE\n",
"2\n8 3\n0 2 8\n2 2 2 3 4 4 3 4\n10 3\n2 4 6\n2 9 9 4 19 19 19 19 35 20\n\nSAMPLE\n",
"2\n8 3\n1 3 8\n2 2 2 3 4 4 4 4\n10 3\n2 4 7\n2 9 9 9 33 19 19 19 19 20\n\nSAMPLE\n",
"2\n8 3\n0 2 8\n2 2 2 3 4 4 4 4\n10 3\n2 4 5\n2 9 9 9 19 19 19 19 19 20\n\nSAMPLE\n"
] |
[
"5\n",
"0\n0\n",
"1\n0\n",
"1\n1\n",
"3\n0\n",
"3\n",
"2\n0\n",
"1\n2\n",
"3\n1\n",
"0\n1\n"
] |
CodeContests
|
Tom and Jerry started fighting, as always! But this time the fight is on numbers. They ended up bringing a game to decide who is better.
They have N marbles and they choose two integers M1 and M2, in each turn a player can take either M1 or M2 marbles(if available!). One who can't make any move further, loses.
Game is started with Jerry's turn always.
Given N, M1 and M2, and assuming that both are playing optimally, tell us whether Jerry will win or not.
Input:
T, number of test cases then T lines containing three integers N, m1 and m2
Output:
1 If Jerry wins, 0 if Tom wins.
Constraints:
0<T<100
0< m1 ≤ m2, N ≤1000000. Note that m1 or m2 can be greater than N.
Test files will be such that T*N < 10000000 .
Register for IndiaHacksSAMPLE INPUT
6
1 1 2
3 4 5
2 1 2
3 1 2
4 2 5
4 1 2
SAMPLE OUTPUT
1
0
1
0
0
1
Register for IndiaHacks
|
stdin
| null | 2,953
| 1
|
[] |
[] |
[
"10\n1 1 3\n3 4 5\n7 7 9\n13 1 2\n21 8 10\n31 5 7\n43 4 6\n57 5 7\n73 8 10\n91 1 2\n",
"10\n1 1 3\n3 4 5\n7 7 9\n13 1 2\n21 8 10\n31 5 7\n43 4 6\n57 5 7\n73 10 10\n91 1 2\n",
"10\n1 1 3\n3 3 5\n7 7 9\n13 1 2\n21 8 10\n31 5 7\n43 4 4\n57 5 7\n73 8 10\n91 1 2\n",
"10\n1 1 3\n3 4 5\n7 7 9\n13 1 2\n21 8 4\n31 5 7\n43 4 0\n57 5 7\n73 8 10\n91 1 2\n",
"10\n1 1 0\n3 3 5\n7 7 9\n13 1 2\n21 8 10\n31 5 7\n43 4 4\n57 5 7\n113 8 10\n91 1 2\n",
"10\n1 1 3\n3 4 5\n7 12 9\n13 1 2\n21 8 10\n31 5 7\n43 4 3\n57 5 7\n73 10 10\n91 1 2\n",
"10\n1 1 3\n3 4 5\n7 7 9\n13 1 2\n39 8 4\n31 7 7\n43 4 0\n57 5 7\n73 8 10\n91 1 2\n",
"10\n1 1 3\n3 4 5\n7 7 9\n13 1 2\n22 8 4\n31 7 7\n43 4 0\n57 5 7\n73 8 10\n91 1 2\n",
"10\n1 1 3\n3 4 5\n7 12 9\n13 1 2\n21 8 10\n25 5 7\n43 4 3\n57 2 7\n73 10 10\n91 1 2\n",
"10\n1 1 3\n3 6 5\n7 7 9\n13 1 2\n22 8 4\n31 7 7\n43 4 0\n2 5 7\n73 8 10\n91 1 2\n"
] |
[
"1\n0\n1\n1\n0\n1\n0\n1\n0\n1\n",
"1\n0\n1\n1\n0\n1\n0\n1\n1\n1\n",
"1\n1\n1\n1\n0\n1\n0\n1\n0\n1\n",
"1\n0\n1\n1\n1\n1\n0\n1\n0\n1\n",
"0\n1\n1\n1\n0\n1\n0\n1\n0\n1\n",
"1\n0\n0\n1\n0\n1\n0\n1\n1\n1\n",
"1\n0\n1\n1\n0\n0\n0\n1\n0\n1\n",
"1\n0\n1\n1\n1\n0\n0\n1\n0\n1\n",
"1\n0\n0\n1\n0\n0\n0\n1\n1\n1\n",
"1\n0\n1\n1\n1\n0\n0\n0\n0\n1\n"
] |
CodeContests
|
problem
AOR Ika is at the $ S $ th bus stop at time $ 0 $ and wants to go from there to the $ G $ th bus stop. The number of bus stops $ N $ and $ M $ routes (*) connecting different bus stops are given. The bus stops are numbered $ 1, \ dots, and N $, respectively. Each route consists of $ 4 $ values: origin $ u $, destination $ v $, departure time $ t $, and travel time $ c $. You can catch the bus if you are at the departure $ u $ at the time $ t $ and arrive at the destination $ v $ at the time $ t + c $. While not on the bus, AOR Ika gets wet in the rain. When heading to the $ G $ th bus stop through the route that minimizes the time of getting wet in the rain, output the total time of getting wet in the rain from the time $ 0 $ to the arrival at the $ G $ th bus stop.
(*) In graph theory terms, a path is a sequence of vertices and edges, but please note that it is used here to mean edges.
input
Input is given from standard input in the following format.
$ N \ M \ S \ G $
$ u_1 \ v_1 \ t_1 \ c_1 $
$ \ vdots $
$ u_M \ v_M \ t_M \ c_M $
output
Print the minimum amount of time you get wet in one line. Also, output a line break at the end.
Example
Input
2 2 1 2
1 2 10 100
1 2 5 500
Output
5
|
stdin
| null | 2,861
| 1
|
[
"2 2 1 2\n1 2 10 100\n1 2 5 500\n"
] |
[
"5\n"
] |
[
"2 1 1 2\n1 2 10 100\n1 2 5 500\n",
"2 2 1 2\n1 2 10 101\n1 2 5 500\n",
"2 1 1 2\n1 2 13 011\n2 2 5 500\n",
"2 1 1 2\n1 2 19 011\n2 2 5 500\n",
"2 2 1 2\n1 2 10 100\n1 2 7 893\n",
"2 1 1 2\n1 2 34 011\n2 2 5 500\n",
"2 1 1 2\n1 2 9 011\n2 2 5 500\n",
"3 2 1 2\n1 2 11 110\n1 2 6 893\n",
"2 2 1 2\n1 2 11 110\n1 2 0 893\n",
"2 2 1 2\n1 2 16 110\n2 2 7 1526\n"
] |
[
"10\n",
"5\n",
"13\n",
"19\n",
"7\n",
"34\n",
"9\n",
"6\n",
"0\n",
"16\n"
] |
CodeContests
|
Stylish is a programming language whose syntax comprises names, that are sequences of Latin alphabet letters, three types of grouping symbols, periods ('.'), and newlines. Grouping symbols, namely round brackets ('(' and ')'), curly brackets ('{' and '}'), and square brackets ('[' and ']'), must match and be nested properly. Unlike most other programming languages, Stylish uses periods instead of whitespaces for the purpose of term separation. The following is an example of a Stylish program.
1 ( Welcome .to
2 ......... Stylish )
3 { Stylish .is
4 .....[.( a. programming . language .fun .to. learn )
5 .......]
6 ..... Maybe .[
7 ....... It. will .be.an. official . ICPC . language
8 .......]
9 .....}
As you see in the example, a Stylish program is indented by periods. The amount of indentation of a line is the number of leading periods of it.
Your mission is to visit Stylish masters, learn their indentation styles, and become the youngest Stylish master. An indentation style for well-indented Stylish programs is defined by a triple of integers, (R, C, S), satisfying 1 ≤ R, C, S ≤ 20. R, C and S are amounts of indentation introduced by an open round bracket, an open curly bracket, and an open square bracket, respectively.
In a well-indented program, the amount of indentation of a line is given by R(ro − rc) + C(co − cc) + S(so − sc), where ro, co, and so are the numbers of occurrences of open round, curly, and square brackets in all preceding lines, respectively, and rc, cc, and sc are those of close brackets. The first line has no indentation in any well-indented program.
The above example is formatted in the indentation style (R, C, S) = (9, 5, 2). The only grouping symbol occurring in the first line of the above program is an open round bracket. Therefore the amount of indentation for the second line is 9 * (1 − 0) + 5 * (0 − 0) + 2 *(0 − 0) = 9. The first four lines contain two open round brackets, one open curly bracket, one open square bracket, two close round brackets, but no close curly nor square bracket. Therefore the amount of indentation for the fifth line is 9 * (2 − 2) + 5 * (1 − 0) + 2 * (1 − 0) = 7.
Stylish masters write only well-indented Stylish programs. Every master has his/her own indentation style.
Write a program that imitates indentation styles of Stylish masters.
Input
The input consists of multiple datasets. The first line of a dataset contains two integers p (1 ≤ p ≤ 10) and q (1 ≤ q ≤ 10). The next p lines form a well-indented program P written by a Stylish master and the following q lines form another program Q. You may assume that every line of both programs has at least one character and at most 80 characters. Also, you may assume that no line of Q starts with a period.
The last dataset is followed by a line containing two zeros.
Output
Apply the indentation style of P to Q and output the appropriate amount of indentation for each line of Q. The amounts must be output in a line in the order of corresponding lines of Q and they must be separated by a single space. The last one should not be followed by trailing spaces. If the appropriate amount of indentation of a line of Q cannot be determined uniquely through analysis of P, then output -1 for that line.
Example
Input
5 4
(Follow.my.style
.........starting.from.round.brackets)
{then.curly.brackets
.....[.and.finally
.......square.brackets.]}
(Thank.you
{for.showing.me
[all
the.secrets]})
4 2
(This.time.I.will.show.you
.........(how.to.use.round.brackets)
.........[but.not.about.square.brackets]
.........{nor.curly.brackets})
(I.learned
how.to.use.round.brackets)
4 2
(This.time.I.will.show.you
.........(how.to.use.round.brackets)
.........[but.not.about.square.brackets]
.........{nor.curly.brackets})
[I.have.not.learned
how.to.use.square.brackets]
2 2
(Be.smart.and.let.fear.of
..(closed.brackets).go)
(A.pair.of.round.brackets.enclosing
[A.line.enclosed.in.square.brackets])
1 2
Telling.you.nothing.but.you.can.make.it
[One.liner.(is).(never.indented)]
[One.liner.(is).(never.indented)]
2 4
([{Learn.from.my.KungFu
...}])
((
{{
[[
]]}}))
1 2
Do.not.waste.your.time.trying.to.read.from.emptiness
(
)
2 3
({Quite.interesting.art.of.ambiguity
....})
{
(
)}
2 4
({[
............................................................]})
(
{
[
]})
0 0
Output
0 9 14 16
0 9
0 -1
0 2
0 0
0 2 4 6
0 -1
0 -1 4
0 20 40 60
|
stdin
| null | 3,966
| 1
|
[
"5 4\n(Follow.my.style\n.........starting.from.round.brackets)\n{then.curly.brackets\n.....[.and.finally\n.......square.brackets.]}\n(Thank.you\n{for.showing.me\n[all\nthe.secrets]})\n4 2\n(This.time.I.will.show.you\n.........(how.to.use.round.brackets)\n.........[but.not.about.square.brackets]\n.........{nor.curly.brackets})\n(I.learned\nhow.to.use.round.brackets)\n4 2\n(This.time.I.will.show.you\n.........(how.to.use.round.brackets)\n.........[but.not.about.square.brackets]\n.........{nor.curly.brackets})\n[I.have.not.learned\nhow.to.use.square.brackets]\n2 2\n(Be.smart.and.let.fear.of\n..(closed.brackets).go)\n(A.pair.of.round.brackets.enclosing\n[A.line.enclosed.in.square.brackets])\n1 2\nTelling.you.nothing.but.you.can.make.it\n[One.liner.(is).(never.indented)]\n[One.liner.(is).(never.indented)]\n2 4\n([{Learn.from.my.KungFu\n...}])\n((\n{{\n[[\n]]}}))\n1 2\nDo.not.waste.your.time.trying.to.read.from.emptiness\n(\n)\n2 3\n({Quite.interesting.art.of.ambiguity\n....})\n{\n(\n)}\n2 4\n({[\n............................................................]})\n(\n{\n[\n]})\n0 0\n"
] |
[
"0 9 14 16\n0 9\n0 -1\n0 2\n0 0\n0 2 4 6\n0 -1\n0 -1 4\n0 20 40 60\n"
] |
[
"5 4\n(Follow.my.style\n.........starting.from.round.brackets)\n{then.curly.brackets\n.....[.and.finally\n.......square.brackets.]}\n(Thank.you\n{for.showing.me\n[all\nthe.secrets]})\n4 2\n(This.time.I.will.show.you\n.........(how.to.use.round.brackets)\n.........[but.not.about.square.brackets]\n.........{nor.curly.brackets})\n(I.learned\nhow.to.use.round.brackets)\n4 2\n(This.time.I.will.show.you\n.........(how.to.use.round.brackets)\n.........[but.not.about.square.brackets]\n.........{nor.curly.brackets})\n[I.have.not.learned\nhow.to.use.square.brackets]\n2 2\n(Be.smart.and.let.fear.of\n..(closedrb.ackets).go)\n(A.pair.of.round.brackets.enclosing\n[A.line.enclosed.in.square.brackets])\n1 2\nTelling.you.nothing.but.you.can.make.it\n[One.liner.(is).(never.indented)]\n[One.liner.(is).(never.indented)]\n2 4\n([{Learn.from.my.KungFu\n...}])\n((\n{{\n[[\n]]}}))\n1 2\nDo.not.waste.your.time.trying.to.read.from.emptiness\n(\n)\n2 3\n({Quite.interesting.art.of.ambiguity\n....})\n{\n(\n)}\n2 4\n({[\n............................................................]})\n(\n{\n[\n]})\n0 0\n",
"5 4\n(Folmow.my.style\n.........starting.from.round.brackets)\n{then.curly.brackets\n.-...[.and.finally\n.......square.brackets.]}\n(Thank.you\n{for.showing.me\n[all\nthe.secrets]})\n4 2\n(This.time.I.will.show.you\n.........(how.to.use.round.brackets)\n.........[but.not.about.square.brackets]\n.........{nor.curly.brackets})\n(I.learned\nhow.to.use.round.brackets)\n4 2\n(This.time.I.will.show.you\n.........(how.to.use.round.brackets)\n.........[but.not.about.square.brackets]\n.........{nor.curly.brackets})\n[I.have.not.learned\nhow.to.use.square.brackets]\n2 2\n(Be.smart.and.let.fear.of\n..(closedrb.ackets).go)\n(A.pair.of.round.brackets.enclosing\n[A.line.enclosed.in.square.brackets])\n1 2\nTelling.you.nothing.but.you.can.make.it\n[One.liner.(is).(never.indented)]\n[One.liner.(is).(never.indented)]\n2 4\n([{Learn.from.my.KungFu\n...}])\n((\n{{\n[[\n]]}}))\n1 2\nDo.not.waste.your.time.trying.to.read.from.emptiness\n(\n)\n2 3\n({Quite.interesting.art.of.ambiguity\n....})\n{\n(\n)}\n2 4\n({[\n............................................................]})\n(\n{\n[\n]})\n0 0\n",
"5 4\n(Folmow.my.style\n.........starting.from.round.brackets)\n{then.curly.brackets\n.....[.and.finally\n.......square.brackets.]}\n(Thank.you\n{for.showing.me\n[all\nthe.secrets]})\n4 2\n(This.time.I.will.show.you\n.........(how.to.use.round.brackets)\n.........[but.not.about.square.brackets]\n.........{nor.curly.brackets})\n(I.learned\nhow.to.use.round.brackets)\n4 2\n(This.time.I.will.show.you\n.........(how.to.use.round.brackets)\n.........[but.not.about.square.brackets]\n.........{nor.curly.brackets})\n[I.have.not.learned\nhow.to.use.square.brackets]\n2 2\n(Be.smart.and.let.fear.of\n..(closedrb.ackets).go)\n(A.pair.of.round.brackets.enclosing\n[A.line.enclosed.in.square.brackets])\n1 2\nTelling.you.nothing.but.you.can.make.it\n[One.liner.(is).(never.indented)]\n[One.liner.(is).(never.indented)]\n2 4\n([{Learn.from.my.KungFu\n...}])\n((\n{{\n[\\\n]]}}))\n1 2\nDo.not.waste.your.time.trying.to.read.from.emptiness\n(\n)\n2 3\nytiugibma.fo.tra.gnitseretni.etiuQ{(\n....})\n{\n(\n)}\n2 4\n({[\n............................................................]})\n(\n{\n[\n]})\n0 0\n",
"5 4\n(Follow.my.style\n.........starting.from.round.brackets)\n{then.curly.brackets\n.....[.and.finally\n.......square.brackets.]}\n(Thank.you\n{for.showing.me\n[all\nthe.secrets]})\n4 2\n(This.time.I.will.show.you\n.........(how.to.use.round.brackets)\n.........[but.not.about.square.brackets]\n.........{nor.curly.brackets})\n(I.learned\nhow.to.use.round.brackets)\n4 2\n(This.time.I.will.show.you\n.........(how.to.use.round.brackets)\n.........[but.not.about.square.brackets]\n.........{nor.curly.brackets})\n[I.have.not.learned\nhow.to.use.square.brackets]\n2 2\n(Be.smart.and.let.fear.of\n..(closed.brackets).go)\n(A.pair.of.round.brackets.enclosing\n[A.line.enclosed.in.square.brackets])\n1 2\nTelling.you.nothing.but.you.can.make.it\n[One.liner.(is).(never.indented)]\n[One.liner.(is).(never.indented)]\n2 4\n([{Learn.from.my.KungFu\n...}])\n((\n{{\n[[\n]]}}))\n1 2\nDo.not.waste.your.time.trying.to.read.from.emptiness\n(\n)\n2 3\n({Quite.interesting.art.of.ambiguity\n....})\n{\n(\n)}\n2 4\n({[\n........................................./..................]})\n(\n{\n[\n\\})\n0 0\n",
"5 4\n(Folmow.my.style\n.........starting.from.round.brackets)\n{then.curly.brackets\n.....[.and.finally\n.......square.brackets.]}\n(Thank.you\n{for.showing.me\n[all\nthe.secrets]})\n4 2\n(This.time.I.will.show.you\n.........(how.to.use.round.brackets)\n.........[but.not.about.square.brackets]\n.........{nor.curly.brackets})\n(I.learned\nhow.to.use.round.brackets)\n4 2\n(This.time.I.will.show.you\n.........(how.to.use.round.brackets)\n.........[but.not.about.square.brackets]\n.........{nor.curly.brackets})\n[I.have.not.learned\nhow.to.use.square.brackets]\n2 2\n(Be.smart.and.let.fear.of\n..(closedrb.ackets).go)\n(A.pair.of.round.brackets.enclosing\n[A.line.enclosed.in.square.brackets])\n1 2\nTelling.you.nothing.aut.you.can.make.it\n[One.liner.(is).(never.indented)]\n[One.liner.(is).(never.indented)]\n2 4\n([{Learn.from.my.KungFu\n...}])\n((\n{{\n[[\n]]}}))\n1 2\nDo.not.waste.your.time.trying.to.read.from.emptiness\n(\n)\n2 3\nytiugibma.fo.tra.gnitseretni.etiuQ{(\n....})\n{\n(\n)}\n2 4\n({[\n............................................................]})\n(\n{\n\\\n]})\n0 0\n",
"5 4\n(Follow.my.style\n.........starting.from.round.brackets)\n{then.curly.brackets\n.....[.and.finally\n.......square.brackets.]}\n(Thank.you\n|for.showing.me\n[all\nthe.secrets]})\n4 2\n(This.time.I.will.show.you\n.........(how.to.use.round.brackets)\n.........[but.not.about.square.brackets]\n.........{nor.curly.brackets})\n(I.learned\nhow.to.use.round.br`ckets)\n4 2\n(This.time.I.will.show.you\n.........(how.to.use.round.brackets)\n.........[but.not.about.square.brackets]\n.........{nor.curly.brackets})\n[I.have.not.learned\nhow.to.use.square.brackets]\n2 2\n(Be.smart.and.let.fear.of\n..(closedrb.ackets).go)\n(A.pair.of.round.brackets.enclosing\n[A.line.enclosed.in.square.brackets])\n1 2\nTelling.you.nothing.but.you.can.make.it\n[One.lineq.(is).(never.indentec)]\n[One.liner.(is).(never.indented)]\n2 4\n([{Learn.from.my.KungFu\n...}])\n((\n{{\n[[\n]]}}))\n1 2\nDo.not.waste.your.time.trying.to.read.from.emptiness\n(\n)\n2 3\n({Quite.interesting.art.of.ambiguity\n....})\n{\n(\n)}\n2 4\n({[\n............................................................]})\n(\n{\n[\n]})\n0 0\n",
"5 4\n(Follow.my.style\n.........starting.from.round.brackets)\n{then.curly.brackets\n.....[.and.finally\n.......square.brackets.]}\n(Thank.you\n{for.showing.me\n[all\nthe.secrets]})\n4 2\n(This.time.I.will.show.you\n.........(how.to.use.round.brackets)\n.........[but.not.about.square.brackets]\n.........{nor.curly.brackets})\n(I.learned\nhow.to.use.round.brackets)\n4 2\n(This.time.I.will.show.you\n.........(how.to.use.round.brackets)\n.........[but.not.about.square.brackets]\n.........{nor.curly.brackets})\n[I.have.not.learned\nhow.to.use.square.brackets]\n2 2\n(Be.smart.and.let.fear.of\n..(closedrb.ackets).go)\n(A.pair.of.round.brackets.enclosing\n[A.line.enclosed.in.square.brackets])\n1 2\nTelling.you.nothing.but.you.can.make.it\n[One.liner.(is).(never.indented)]\n[One.liner.(is).(never.indented)]\n2 4\n([{Learn.from.my.KungFu\n...}])\n((\n{{\n[[\n]]}}))\n1 2\nDo.not.waste.your.time.trying.to.read.from.emptiness\n(\n)\n2 3\n({Quite.interesting.art.of.ambiguity\n....})\n{\n(\n)}\n2 4\n({[\n........../.................................................]})\n(\n{\n[\n]})\n0 0\n",
"5 4\n(Folmow.my.style\n.........starting.from.round.brackets)\n{then.curly.brackets\n.....[.and.finally\n.......square.brackets.]}\n(Thank.you\n{for.showing.me\n[all\nthe.secrets]})\n4 2\n(This.time.I.will.show.you\n.........(how.to.use.round.brackets)\n.........[but.not.about.square.brackets]\n.........{nor.curly.brackets})\n(I.learned\nhow.to.use.round.brackets)\n4 2\n(This.time.I.will.show.you\n.........(how.to.use.round.brackets)\n.........[but.not.about.square.brackets]\n.........{nor.curly.brackets})\n[I.have.not.learned\nhow.to.use.square.brackets]\n2 2\n(Be.smart.and.let.fear.of\n..(closedrb.ackets).go)\n(A.pair.of.round.brackets.enclosing\n[A.line.enclosed.in.square.brackets])\n1 2\nTelling.you.nothing.but.you.can.make.it\n[One.liner.(is).(never.indented)]\n[One.liner.(is).(never.indented)]\n2 4\n([{Learn.from.my.KungFu\n...}])\n((\n{{\n[\\\n]]}}))\n1 2\nDo.not.waste.your.time.trying.to.read.from.emptiness\n(\n)\n2 3\nytiugibma.fo.tra.gnitseretni.etiuQ{(\n....})\n|\n(\n)}\n2 4\n({[\n............................................................]})\n(\n{\n[\n]})\n0 0\n",
"5 4\n(Folmow.my.style\n.........starting.from.round.brackets)\n{then.curly.brackets\n.....[.and.finally\n.......square.brackets.]}\n(Thank.you\n{for.showing.me\n[all\nthe.secrets]})\n4 2\n(This.time.I.will.show.you\n.........(how.to.use.round.brackets)\n.........[but.not.about.square.bsackets]\n.........{nor.curly.brackets})\n(I.learned\nhow.to.use.round.brackets)\n4 2\n(This.time.I.will.show.you\n.........(how.to.use.round.brackets)\n.........[but.not.about.square.brackets]\n.........{nor.curly.brackets})\n[I.have.not.learned\nhow.to.use.square.brackets]\n2 2\n(Be.smart.and.let.fear.of\n..(closedrb.ackets).go)\n(A.pair.of.round.brackets.enclosing\n[A.line.enclosed.in.square.brackets])\n1 2\nTelling.you.nothing.aut.you.can.make.it\n[One.liner.(is).(never.indented)]\n[One.liner.(is).(never.indented)]\n2 4\n([{Learn.from.my.KungFu\n...}])\n((\n{{\n[[\n]]}}))\n1 2\nDo.not.waste.your.time.trying.to.read.from.emptiness\n(\n)\n2 3\nytiugibma.fo.tra.gnitseretni.etiuQ{(\n....})\n{\n)\n)}\n2 4\n({[\n............................................................]})\n(\n{\n\\\n]})\n0 0\n",
"5 4\n(Follow.my.style\n.........starting.from.round.brackets)\n{then.curly.brackets\n.....[.and.finally\n.......square.brackets.]}\n(Thank.you\n|for.showing.me\n[all\nthe.secrets]})\n4 2\n(This.time.I.will.show.you\n.........(how.to.use.round.brackets)\n.........[but.not.about.square.brackets]\n.........{nor.curly.brackets})\n(I.learned\nhow.to.use.round.br`ckets)\n4 2\n(This.time.I.will.show.you\n.........(how.to.use.round.brackets)\n.........[but.not.about.square.brackets]\n.........{nor.curly.brackets})\n[I.have.not.learned\nhow.to.use.square.brackets]\n2 2\n(Be.smart.and.let.fear.of\n..(closedrb.ackets).go)\n(A.pair.of.round.brackets.enclosing\n[A.line.enclosed.in.square.brackets])\n1 2\nTelling.you.nothing.but.you.can.make.it\n[One.lineq.(is).(never.indentec)]\n[One.liner.(is).(never.indented)]\n2 4\n([{Learn.from.my.KungFu\n...}])\n((\n{{\n[[\n]]}}))\n1 2\nDo.not.waste.your.time.trying.to.read.from.emptiness\n(\n)\n2 3\n({Quite.interesting.art.of.ambiguity\n....})\n{\n(\n)}\n2 4\n({[\n............................................................]})\n(\n{\nZ\n]})\n0 0\n"
] |
[
"0 9 14 16\n0 9\n0 -1\n0 2\n0 0\n0 2 4 6\n0 -1\n0 -1 4\n0 20 40 60\n",
"0 9 10 16\n0 9\n0 -1\n0 2\n0 0\n0 2 4 6\n0 -1\n0 -1 4\n0 20 40 60\n",
"0 9 14 16\n0 9\n0 -1\n0 2\n0 0\n0 2 4 5\n0 -1\n0 -1 4\n0 20 40 60\n",
"0 9 14 16\n0 9\n0 -1\n0 2\n0 0\n0 2 4 6\n0 -1\n0 -1 4\n0 -1 -1 41\n",
"0 9 14 16\n0 9\n0 -1\n0 2\n0 0\n0 2 4 6\n0 -1\n0 -1 4\n0 20 40 40\n",
"0 9 9 11\n0 9\n0 -1\n0 2\n0 0\n0 2 4 6\n0 -1\n0 -1 4\n0 20 40 60\n",
"0 9 14 16\n0 9\n0 -1\n0 2\n0 0\n0 2 4 6\n0 -1\n0 -1 4\n0 -1 -1 10\n",
"0 9 14 16\n0 9\n0 -1\n0 2\n0 0\n0 2 4 5\n0 -1\n0 0 -1\n0 20 40 60\n",
"0 9 14 16\n0 9\n0 -1\n0 2\n0 0\n0 2 4 6\n0 -1\n0 -1 -1\n0 20 40 40\n",
"0 9 9 11\n0 9\n0 -1\n0 2\n0 0\n0 2 4 6\n0 -1\n0 -1 4\n0 20 40 40\n"
] |
CodeContests
|
problem
You love pasta, and you make and eat pasta for dinner every day. You can make three types of pasta: tomato sauce, cream sauce, and basil sauce.
I decided to plan a dinner for N days. Choose one of the three types of pasta each day. However, if the same pasta continues, you will get bored, so do not choose the same pasta for more than 3 consecutive days. Also, the pasta for K days out of N days has already been decided.
Given the value of N and the pasta information for K days as input, create a program that finds the remainder of dividing by 10000 how many plans are to meet the conditions.
input
The input consists of K + 1 lines.
On the first line, two integers N and K (3 ≤ N ≤ 100, 1 ≤ K ≤ N) are written with a blank as a delimiter.
On the 1 + i line (1 ≤ i ≤ K), two integers Ai and Bi (1 ≤ Ai ≤ N, 1 ≤ Bi ≤ 3) are written with a blank as a delimiter. This means that the pasta on the Ai day has already been decided, and when Bi = 1, it is a tomato sauce, when Bi = 2, it is a cream sauce, and when Bi = 3, it is a basil sauce. Ai (1 ≤ i ≤ K) are all different. It is guaranteed that there will be at least one plan to meet the conditions in the given input data.
output
Divide the number of plans to satisfy the condition by 10000 and output the remainder in one line.
Input / output example
Input example 1
5 3
3 1
1 1
4 2
Output example 1
6
In I / O Example 1, you consider a 5-day schedule. The first and third days are tomato sauce, and the fourth day is cream sauce. Also, do not choose the same pasta for more than 3 consecutive days. There are six plans to meet these conditions.
1st day | 2nd day | 3rd day | 4th day | 5th day
--- | --- | --- | --- | --- | ---
Schedule 1 | 1 | 2 | 1 | 2 | 1
Schedule 2 | 1 | 2 | 1 | 2 | 2
Schedule 3 | 1 | 2 | 1 | 2 | 3
Schedule 4 | 1 | 3 | 1 | 2 | 1
Schedule 5 | 1 | 3 | 1 | 2 | 2
Schedule 6 | 1 | 3 | 1 | 2 | 3
In this table, 1 represents tomato sauce, 2 represents cream sauce, and 3 represents basil sauce.
Input example 2
20 5
10 2
4 3
12 1
13 2
9 1
Output example 2
2640
In I / O Example 2, there are a total of 4112640 plans to meet the conditions. It outputs 2640, which is the remainder of dividing it by 10000.
The question text and the data used for the automatic referee are the question text and the test data for scoring, which are created and published by the Japan Committee for Information Olympics.
Example
Input
5 3
3 1
1 1
4 2
Output
6
|
stdin
| null | 1,857
| 1
|
[
"5 3\n3 1\n1 1\n4 2\n"
] |
[
"6\n"
] |
[
"5 3\n3 1\n1 1\n4 1\n",
"5 3\n5 1\n1 1\n4 1\n",
"5 3\n3 2\n1 1\n4 1\n",
"5 2\n3 1\n1 1\n4 1\n",
"9 3\n5 1\n1 1\n4 1\n",
"5 1\n3 1\n1 1\n4 1\n",
"9 3\n5 1\n1 1\n4 2\n",
"5 3\n4 1\n1 1\n4 1\n",
"9 3\n5 1\n1 2\n4 2\n",
"5 3\n5 2\n1 1\n4 2\n"
] |
[
"4\n",
"6\n",
"9\n",
"16\n",
"264\n",
"60\n",
"420\n",
"22\n",
"480\n",
"5\n"
] |
CodeContests
|
Devu is a class teacher of a class of n students. One day, in the morning prayer of the school, all the students of his class were standing in a line. You are given information of their arrangement by a string s. The string s consists of only letters 'B' and 'G', where 'B' represents a boy and 'G' represents a girl.
Devu wants inter-gender interaction among his class should to be maximum. So he does not like seeing two or more boys/girls standing nearby (i.e. continuous) in the line. e.g. he does not like the arrangements BBG and GBB, but he likes BG, GBG etc.
Now by seeing the initial arrangement s of students, Devu may get furious and now he wants to change this arrangement into a likable arrangement. For achieving that, he can swap positions of any two students (not necessary continuous). Let the cost of swapping people from position i with position j (i ≠ j) be c(i, j). You are provided an integer variable type, then the cost of the the swap will be defined by c(i, j) = |j − i|^type.
Please help Devu in finding minimum cost of swaps needed to convert the current arrangement into a likable one.
Input
The first line of input contains an integer T, denoting the number of test cases. Then T test cases are follow.
The first line of each test case contains an integer type, denoting the type of the cost function. Then the next line contains string s of length n, denoting the initial arrangement s of students.
Note that the integer n is not given explicitly in input.
Output
For each test case, print a single line containing the answer of the test case, that is, the minimum cost to convert the current arrangement into a likable one. If it is not possible to convert the current arrangement into a likable one, then print -1 instead of the minimum cost.
Constraints and Example
Input:
8
0
BB
0
BG
0
BBGG
1
BGG
1
BGGB
1
BBBGG
2
BBGG
2
BGB
Output:
-1
0
1
1
1
3
1
0
Explanation
Note type of the first 3 test cases is 0. So c(i, j) = 1. Hence we just have to count minimum number of swaps needed.
Example case 1. There is no way to make sure that both the boys does not stand nearby. So answer is -1.
Example case 2. Arrangement is already valid. No swap is needed. So answer is 0.
Example case 3. Swap boy at position 1 with girl at position 2. After swap the arrangement will be BGBG which is a valid arrangement. So answer is 1.
Now type of the next 3 test cases is 1. So c(i, j) = |j − i|, that is, the absolute value of the difference between i and j.
Example case 4. Swap boy at position 0 with girl at position 1. After swap the arrangement will be GBG which is a valid arrangement. So answer is |1 - 0| = 1.
Example case 5. Swap boy at position 0 with girl at position 1. After swap the arrangement will be GBGB which is a valid arrangement. So answer is |1 - 0| = 1.
Example case 6. Swap boy at position 1 with girl at position 4. After swap the arrangement will be BGBGB which is a valid arrangement. So answer is |4 - 1| = 3.
Then type of the last 2 test cases is 2. So c(i, j) = (j − i)^2
Example case 7. Swap boy at position 1 with girl at position 2. After swap the arrangement will be BGBG which is a valid arrangement. So answer is (2 - 1)^2 = 1.
Example case 8. Arrangement is already valid. No swap is needed. So answer is 0.
|
stdin
| null | 2,866
| 1
|
[
"8\n0\nBB\n0\nBG\n0\nBBGG\n1\nBGG\n1\nBGGB\n1\nBBBGG\n2\nBBGG\n2\nBGB\n"
] |
[
"-1\n0\n1\n1\n1\n3\n1\n0\n"
] |
[
"8\n1\nBB\n0\nBG\n0\nBBGG\n1\nBGG\n1\nBGGB\n1\nBBBGG\n2\nBBGG\n2\nBGB\n",
"8\n1\nBB\n0\nBG\n0\nBBGG\n1\nGBG\n1\nBGGB\n1\nBBBGG\n2\nBBGG\n2\nBGB\n",
"8\n0\nBB\n0\nBG\n0\nBBGG\n1\nBGG\n1\nBGGB\n1\nBBBGG\n2\nBBGG\n2\nBBG\n",
"8\n0\nBB\n0\nBG\n0\nBBGG\n1\nGBG\n1\nBGGB\n1\nGBBBG\n2\nBBGG\n2\nBGB\n",
"8\n1\nBB\n0\nBG\n0\nBBGG\n1\nBGG\n1\nBGGB\n0\nBBBGG\n2\nBBGG\n2\nBBG\n",
"8\n1\nBB\n0\nBG\n0\nBBGG\n1\nBGG\n1\nBGGB\n0\nBBBGG\n2\nBBGG\n2\nBGB\n",
"8\n0\nBB\n0\nBG\n0\nBBGG\n1\nGBG\n1\nGBGB\n1\nBBBGG\n2\nBBGG\n2\nBGB\n",
"8\n-1\nBB\n0\nBG\n1\nGBGB\n2\nBGG\n2\nBGGB\n1\nBBBGG\n2\nBBGG\n2\nBGB\n",
"8\n1\nBB\n0\nBG\n0\nBBGG\n1\nAGG\n0\nBGGB\n1\nBBBGG\n2\nBBGG\n2\nBGB\n",
"8\n0\nBB\n0\nBG\n1\nGGBB\n1\nBGG\n1\nBGGB\n1\nBBBGG\n2\nBGBG\n2\nBGB\n"
] |
[
"-1\n0\n1\n1\n1\n3\n1\n0\n",
"-1\n0\n1\n0\n1\n3\n1\n0\n",
"-1\n0\n1\n1\n1\n3\n1\n1\n",
"-1\n0\n1\n0\n1\n2\n1\n0\n",
"-1\n0\n1\n1\n1\n1\n1\n1\n",
"-1\n0\n1\n1\n1\n1\n1\n0\n",
"-1\n0\n1\n0\n0\n3\n1\n0\n",
"-1\n0\n0\n1\n1\n3\n1\n0\n",
"-1\n0\n1\n-1\n1\n3\n1\n0\n",
"-1\n0\n1\n1\n1\n3\n0\n0\n"
] |
CodeContests
|
You drew lottery N times. In the i-th draw, you got an item of the kind represented by a string S_i.
How many kinds of items did you get?
Constraints
* 1 \leq N \leq 2\times 10^5
* S_i consists of lowercase English letters and has a length between 1 and 10 (inclusive).
Input
Input is given from Standard Input in the following format:
N
S_1
:
S_N
Output
Print the number of kinds of items you got.
Examples
Input
3
apple
orange
apple
Output
2
Input
5
grape
grape
grape
grape
grape
Output
1
Input
4
aaaa
a
aaa
aa
Output
4
|
stdin
| null | 4,619
| 1
|
[
"4\naaaa\na\naaa\naa\n",
"3\napple\norange\napple\n",
"5\ngrape\ngrape\ngrape\ngrape\ngrape\n"
] |
[
"4\n",
"2\n",
"1\n"
] |
[
"4\na`aa\na\naaa\naa\n",
"3\nbpple\norange\napple\n",
"5\ngrape\ngrape\ngraoe\ngrape\ngrape\n",
"5\negapr\ngrape\ngraoe\ngr`pe\nepaqg\n",
"4\na`ab\na\naaa\naa\n",
"3\nbpple\negnaro\napple\n",
"5\ngrape\ngrape\ngraoe\ngrape\neparg\n",
"4\nb`aa\na\naaa\naa\n",
"3\nbpple\negnaro\nappld\n",
"5\ngrape\ngrape\ngraoe\ngrape\nepaqg\n"
] |
[
"4\n",
"3\n",
"2\n",
"5\n",
"4\n",
"3\n",
"3\n",
"4\n",
"3\n",
"3\n"
] |
CodeContests
|
Cat Snuke is learning to write characters. Today, he practiced writing digits `1` and `9`, but he did it the other way around.
You are given a three-digit integer n written by Snuke. Print the integer obtained by replacing each digit `1` with `9` and each digit `9` with `1` in n.
Constraints
* 111 \leq n \leq 999
* n is an integer consisting of digits `1` and `9`.
Input
Input is given from Standard Input in the following format:
n
Output
Print the integer obtained by replacing each occurrence of `1` with `9` and each occurrence of `9` with `1` in n.
Examples
Input
119
Output
991
Input
999
Output
111
|
stdin
| null | 2,286
| 1
|
[
"119\n",
"999\n"
] |
[
"991\n",
"111\n"
] |
[
"191\n",
"111\n",
"199\n",
"111\n",
"199\n",
"191\n"
] |
[
"919\n",
"999\n",
"911\n",
"999\n",
"911\n",
"919\n"
] |
CodeContests
|
Agent 007 is on a secret mission in country "Codeland" on which he was transferring data in form of binary string to secret base of MI6. One day agents of country Codeland detect some ambiguity in system as they find that someone is leaking their data. When Agent 007 get to know about this, he become more careful and change the way of transferring the data in more secure ways.
He encode one string for N days before transferring like on day 1 he toggle(0 to 1 and 1 to 0) the bits of string for once, then on day 2 he toggle the string which he get on day 1 for twice and so on.
Now MI6 need to decode the string. As you are the Agent 006, you need to help them decoding the string. You need to output number of set bits after N days of encoding.
Input:
1st line contains test cases T. Each test case contain 2 lines. Line 1 contain binary string and line 2 contain N.
Output:
Number of set bits after N days of encoding.
Constraints:
1 ≤ T ≤ 100
1 ≤ Length of the string ≤100000
0 ≤ N ≤ 10000
SAMPLE INPUT
2
1011
1
0010
2
SAMPLE OUTPUT
1
3
Explanation
In Test case 1:
String after N days will be 0100, So ans is 1.
In Test case 2:
String after N days will be 1101, So ans is 3.
|
stdin
| null | 4,568
| 1
|
[
"2\n1011\n1\n0010\n2\n\nSAMPLE\n"
] |
[
"1\n3\n"
] |
[
"100\n00\n467\n0000111111\n724\n101001\n942\n100\n382\n010101\n447\n0110110111\n35\n001111110\n547\n0000000\n35\n101000110\n446\n0000001001\n623\n1000111\n323\n000101\n639\n1000111\n21\n00101110\n512\n00\n52\n00\n724\n11111111\n191\n1000001001\n758\n010\n655\n11100100\n548\n1\n596\n001011000\n199\n101011101\n127\n1011\n514\n1\n249\n1000110\n798\n111101\n485\n000001101\n200\n00001010\n472\n00\n815\n00\n202\n000111\n328\n010\n844\n111\n651\n1100011\n892\n11\n688\n010100\n423\n00101101\n757\n110110100\n692\n1101\n139\n1011110010\n549\n001\n455\n0111110\n671\n110100010\n832\n1110100\n222\n1100011010\n292\n011\n168\n011000000\n391\n0111110100\n833\n011011\n102\n010111\n543\n111\n505\n000\n142\n0\n187\n0011\n974\n01\n760\n001011\n550\n0010011\n694\n01001\n18\n0\n926\n10110010\n170\n1101110\n565\n0010\n520\n11000000\n261\n11\n771\n0001\n520\n0\n851\n1001110011\n900\n0\n357\n11100010\n108\n101000\n540\n0001\n485\n1111001\n357\n011\n717\n1110\n129\n1000001\n855\n1111110101\n532\n111\n754\n1000110011\n825\n1001\n734\n0010111\n705\n011000\n142\n1011\n296\n010\n818\n110\n695\n011011010\n685\n11010\n258\n11\n503\n110111110\n292\n1111\n174\n0101\n992\n1\n428\n00011\n75\n11010\n503\n00\n489\n110\n619\n011110010\n232\n011100010\n971\n1010100011\n985\n010\n472\n",
"2\n1011\n1\n0110\n2\n\nSAMPLE\n",
"100\n00\n467\n0000111111\n724\n101001\n942\n100\n382\n010101\n447\n0110110111\n35\n001111110\n547\n0000000\n35\n101000110\n446\n0000001001\n623\n1000111\n323\n000101\n639\n1000111\n21\n00101110\n512\n00\n52\n00\n724\n11111111\n191\n1000001001\n758\n010\n655\n11100100\n548\n1\n596\n001011000\n199\n101011101\n127\n1011\n514\n1\n249\n1000110\n798\n111101\n485\n000001101\n200\n00001010\n472\n00\n815\n00\n202\n000111\n328\n010\n844\n111\n651\n1100011\n892\n11\n688\n010100\n423\n00101101\n757\n110110100\n692\n1101\n139\n1011110010\n549\n001\n455\n1111110\n671\n110100010\n832\n1110100\n222\n1100011010\n292\n011\n168\n011000000\n391\n0111110100\n833\n011011\n102\n010111\n543\n111\n505\n000\n142\n0\n187\n0011\n974\n01\n760\n001011\n550\n0010011\n694\n01001\n18\n0\n926\n10110010\n170\n1101110\n565\n0010\n520\n11000000\n261\n11\n771\n0001\n520\n0\n851\n1001110011\n900\n0\n357\n11100010\n108\n101000\n540\n0001\n485\n1111001\n357\n011\n717\n1110\n129\n1000001\n855\n1111110101\n532\n111\n754\n1000110011\n825\n1001\n734\n0010111\n705\n011000\n142\n1011\n296\n010\n818\n110\n695\n011011010\n685\n11010\n258\n11\n503\n110111110\n292\n1111\n174\n0101\n992\n1\n428\n00011\n75\n11010\n503\n00\n489\n110\n619\n011110010\n232\n011100010\n971\n1010100011\n985\n010\n472\n",
"100\n00\n467\n0000111111\n724\n101001\n942\n100\n382\n010101\n447\n0110110111\n35\n001111110\n547\n0000000\n35\n101000010\n446\n0000001001\n623\n1000111\n323\n000101\n564\n1000111\n21\n00101110\n512\n00\n52\n00\n724\n11111111\n191\n1000001001\n758\n010\n655\n11100100\n548\n1\n596\n001011000\n199\n101011101\n127\n1011\n514\n1\n249\n1000110\n798\n111101\n485\n000001101\n200\n00001010\n472\n00\n815\n00\n202\n000111\n328\n010\n1451\n111\n651\n1100011\n892\n11\n688\n010100\n423\n00101101\n757\n110110100\n692\n1101\n139\n1011110010\n549\n001\n455\n1111110\n671\n110100010\n832\n1110100\n222\n1100011010\n292\n011\n168\n011000000\n391\n0111110100\n833\n011011\n102\n010111\n543\n111\n505\n000\n142\n0\n187\n0011\n974\n01\n760\n001011\n550\n0010011\n694\n01001\n18\n0\n926\n10110010\n170\n1101110\n565\n0010\n520\n11000000\n261\n11\n771\n0001\n520\n0\n851\n1001110011\n900\n0\n357\n11100010\n108\n101000\n540\n0001\n485\n1111001\n357\n011\n717\n1110\n129\n1000001\n855\n1111110101\n532\n111\n754\n1000110011\n825\n1001\n734\n0010111\n705\n011000\n142\n1011\n296\n010\n818\n110\n695\n011011010\n685\n11010\n258\n11\n503\n110111110\n292\n1111\n174\n0101\n992\n1\n428\n00011\n75\n11010\n503\n00\n489\n110\n619\n011110010\n232\n011100010\n971\n1010100011\n985\n010\n472\n",
"2\n1011\n0\n0110\n4\n\nSPM@LE\n",
"100\n00\n467\n0000111111\n724\n101001\n942\n100\n382\n010101\n447\n0110110111\n35\n001111110\n547\n0000000\n35\n101000010\n446\n0000001001\n623\n1000111\n323\n000101\n564\n1000111\n21\n00101110\n512\n00\n52\n00\n724\n11111111\n191\n1000001001\n758\n010\n655\n11100100\n548\n1\n596\n001011000\n199\n101011101\n127\n1011\n514\n1\n249\n1000110\n798\n111101\n485\n000001101\n200\n00001010\n472\n00\n815\n00\n202\n000111\n328\n010\n1451\n111\n651\n1100011\n892\n11\n688\n010100\n423\n00100101\n757\n110110100\n692\n1101\n139\n1011110010\n549\n001\n455\n1111110\n671\n110100010\n832\n1110100\n222\n1100011010\n292\n011\n168\n011000000\n391\n0111110100\n833\n011011\n102\n010111\n543\n111\n505\n000\n142\n0\n71\n0011\n974\n01\n760\n001011\n550\n0010011\n694\n01001\n18\n0\n926\n10110010\n170\n1101110\n565\n0010\n520\n11000000\n261\n11\n771\n0001\n520\n0\n851\n1001110011\n900\n0\n357\n11100010\n108\n101000\n540\n0001\n485\n1111001\n357\n011\n717\n1110\n129\n1000001\n855\n1111110101\n411\n111\n754\n1000110011\n825\n1001\n734\n0010111\n705\n011000\n142\n1011\n296\n010\n818\n110\n695\n011011010\n685\n11010\n258\n11\n503\n110111110\n292\n1111\n174\n0101\n992\n1\n428\n00011\n75\n11010\n503\n00\n489\n110\n619\n011110010\n232\n011100010\n971\n1010100011\n985\n010\n472\n",
"2\n1011\n1\n0010\n2\n\nSPM@LE\n",
"100\n00\n467\n0000111111\n724\n101001\n942\n100\n382\n010101\n447\n0110110111\n35\n001111110\n547\n0000000\n35\n101000010\n446\n0000001001\n623\n1000111\n323\n000101\n564\n1000111\n21\n00101110\n521\n00\n52\n00\n724\n11111111\n191\n1000001001\n758\n010\n655\n11100100\n548\n1\n596\n001011000\n199\n101011101\n127\n1011\n514\n1\n249\n1000110\n798\n111101\n485\n000001101\n200\n00001010\n472\n00\n815\n00\n202\n000111\n328\n010\n1451\n111\n651\n1100011\n892\n11\n688\n010100\n423\n00100101\n757\n110110100\n692\n1101\n139\n1011110010\n549\n001\n455\n1111110\n671\n110100010\n832\n1110100\n222\n1100011010\n292\n011\n168\n011000000\n391\n0111110100\n833\n011011\n102\n010111\n543\n111\n505\n000\n142\n0\n71\n0011\n974\n01\n760\n001011\n550\n0010011\n694\n01001\n18\n0\n926\n10110010\n170\n1101110\n565\n0010\n520\n11000000\n437\n11\n771\n0001\n520\n0\n851\n1001110011\n900\n0\n357\n11100010\n108\n101000\n540\n0001\n485\n1111001\n357\n011\n717\n1110\n129\n1000001\n855\n1111110101\n411\n111\n754\n1000110011\n825\n1001\n734\n0010111\n705\n011000\n142\n1011\n296\n010\n818\n110\n695\n010011010\n685\n11010\n258\n11\n503\n110111110\n292\n1111\n174\n0101\n992\n1\n428\n00011\n75\n11010\n503\n00\n489\n110\n619\n011110010\n232\n011100010\n971\n1010100011\n985\n010\n472\n",
"2\n1010\n1\n0011\n1\n\nSPM@LE\n",
"100\n00\n467\n0000111111\n724\n101001\n942\n100\n382\n010101\n447\n0110110111\n35\n001111110\n547\n0000000\n35\n101000010\n446\n0000001001\n623\n1000111\n323\n000101\n564\n1000111\n21\n00101110\n521\n00\n52\n00\n724\n11111111\n191\n1000001001\n758\n010\n655\n11100100\n548\n1\n596\n001011000\n199\n101011101\n127\n1011\n514\n1\n249\n1000110\n798\n111101\n485\n000001101\n200\n00001010\n472\n00\n815\n00\n202\n000111\n328\n010\n1451\n111\n651\n1100011\n892\n11\n688\n010100\n423\n00100101\n757\n110110100\n692\n1101\n139\n1011110010\n549\n001\n455\n1111110\n671\n110100010\n832\n1110100\n222\n1100011010\n292\n011\n168\n011000000\n391\n0111110100\n833\n011011\n102\n010111\n543\n111\n505\n000\n142\n0\n71\n0011\n974\n01\n760\n001011\n550\n0010011\n694\n01001\n18\n0\n926\n10110010\n170\n1101110\n565\n0010\n520\n11000000\n437\n11\n771\n0001\n520\n0\n851\n1001110011\n900\n0\n357\n11100010\n108\n101000\n540\n0001\n485\n1111001\n357\n011\n717\n1110\n129\n1000001\n855\n1111110101\n411\n111\n754\n1000110011\n825\n1001\n734\n0010111\n705\n011000\n142\n1011\n296\n010\n818\n110\n695\n010011010\n685\n11010\n258\n11\n503\n110111110\n292\n1111\n174\n0101\n992\n1\n428\n00011\n75\n11010\n503\n00\n489\n110\n965\n011110010\n232\n011100010\n971\n1010100011\n985\n010\n472\n"
] |
[
"0\n6\n3\n2\n3\n7\n6\n0\n5\n2\n4\n2\n3\n4\n0\n0\n8\n7\n1\n4\n1\n3\n6\n1\n0\n4\n1\n3\n2\n0\n2\n3\n1\n3\n4\n2\n2\n4\n5\n3\n4\n1\n5\n4\n3\n5\n2\n2\n4\n2\n4\n0\n3\n0\n2\n1\n3\n4\n3\n1\n4\n2\n1\n6\n2\n1\n0\n6\n1\n4\n2\n3\n2\n1\n1\n2\n8\n0\n5\n2\n3\n4\n3\n2\n2\n4\n2\n2\n7\n0\n2\n1\n2\n3\n2\n2\n5\n4\n5\n1\n",
"1\n2\n",
"0\n6\n3\n2\n3\n7\n6\n0\n5\n2\n4\n2\n3\n4\n0\n0\n8\n7\n1\n4\n1\n3\n6\n1\n0\n4\n1\n3\n2\n0\n2\n3\n1\n3\n4\n2\n2\n4\n5\n3\n4\n1\n6\n4\n3\n5\n2\n2\n4\n2\n4\n0\n3\n0\n2\n1\n3\n4\n3\n1\n4\n2\n1\n6\n2\n1\n0\n6\n1\n4\n2\n3\n2\n1\n1\n2\n8\n0\n5\n2\n3\n4\n3\n2\n2\n4\n2\n2\n7\n0\n2\n1\n2\n3\n2\n2\n5\n4\n5\n1\n",
"0\n6\n3\n2\n3\n7\n6\n0\n6\n2\n4\n2\n3\n4\n0\n0\n8\n7\n1\n4\n1\n3\n6\n1\n0\n4\n1\n3\n2\n0\n2\n3\n1\n3\n4\n2\n2\n4\n5\n3\n4\n1\n6\n4\n3\n5\n2\n2\n4\n2\n4\n0\n3\n0\n2\n1\n3\n4\n3\n1\n4\n2\n1\n6\n2\n1\n0\n6\n1\n4\n2\n3\n2\n1\n1\n2\n8\n0\n5\n2\n3\n4\n3\n2\n2\n4\n2\n2\n7\n0\n2\n1\n2\n3\n2\n2\n5\n4\n5\n1\n",
"3\n2\n",
"0\n6\n3\n2\n3\n7\n6\n0\n6\n2\n4\n2\n3\n4\n0\n0\n8\n7\n1\n4\n1\n3\n6\n1\n0\n4\n1\n3\n2\n0\n2\n3\n1\n3\n4\n2\n2\n5\n5\n3\n4\n1\n6\n4\n3\n5\n2\n2\n4\n2\n4\n0\n3\n0\n2\n1\n3\n4\n3\n1\n4\n2\n1\n6\n2\n1\n0\n6\n1\n4\n2\n3\n2\n1\n1\n2\n8\n0\n5\n2\n3\n4\n3\n2\n2\n4\n2\n2\n7\n0\n2\n1\n2\n3\n2\n2\n5\n4\n5\n1\n",
"1\n3\n",
"0\n6\n3\n2\n3\n7\n6\n0\n6\n2\n4\n2\n3\n4\n0\n0\n8\n7\n1\n4\n1\n3\n6\n1\n0\n4\n1\n3\n2\n0\n2\n3\n1\n3\n4\n2\n2\n5\n5\n3\n4\n1\n6\n4\n3\n5\n2\n2\n4\n2\n4\n0\n3\n0\n2\n1\n3\n4\n3\n1\n4\n2\n1\n6\n2\n1\n0\n6\n1\n4\n2\n3\n2\n1\n1\n2\n8\n0\n5\n2\n3\n4\n3\n2\n2\n5\n2\n2\n7\n0\n2\n1\n2\n3\n2\n2\n5\n4\n5\n1\n",
"2\n2\n",
"0\n6\n3\n2\n3\n7\n6\n0\n6\n2\n4\n2\n3\n4\n0\n0\n8\n7\n1\n4\n1\n3\n6\n1\n0\n4\n1\n3\n2\n0\n2\n3\n1\n3\n4\n2\n2\n5\n5\n3\n4\n1\n6\n4\n3\n5\n2\n2\n4\n2\n4\n0\n3\n0\n2\n1\n3\n4\n3\n1\n4\n2\n1\n6\n2\n1\n0\n6\n1\n4\n2\n3\n2\n1\n1\n2\n8\n0\n5\n2\n3\n4\n3\n2\n2\n5\n2\n2\n7\n0\n2\n1\n2\n3\n2\n1\n5\n4\n5\n1\n"
] |
CodeContests
|
As every other little boy, Mike has a favorite toy to play with. Mike's favorite toy is a set of N disks. The boy likes to compose his disks in stacks, but there's one very important rule: the disks in a single stack must be ordered by their radiuses in a strictly increasing order such that the top-most disk will have the smallest radius.
For example, a stack of disks with radii (5, 2, 1) is valid, while a stack of disks with radii (3, 4, 1) is not.
Little Mike has recently come up with the following algorithm after the order of disks are given:
First, Mike initiates an empty set of disk stacks.
Then, Mike processes the disks in the chosen order using the following pattern:
If there is at least one stack such that Mike can put the current disk on the top of the stack without making it invalid, then he chooses the stack with the smallest top disk radius strictly greater than the radius of the current disk, and puts the current disk on top of that stack.
Otherwise, Mike makes a new stack containing only the current disk.
For example, let's assume that the order of the disk radii is (3, 4, 5, 1, 1, 2). Here's how the set of the top stack disks will appear during the algorithm's run:
In the beginning of the algorithm, the set of disk stacks is empty. After processing the first disk, the set of top stack disks is {3}.
We cannot put the second disk on the only stack that we have after processing the first disk, so we make a new stack. After processing the second disk, the set of top stack disks is {3, 4}.
We cannot put the third disk on any of the available stacks, so we make a new stack. After processing the third disk, the set of top stack disks is {3, 4, 5}.
The fourth disk has radius 1, so it can be easily put on any of the available stacks. According to the algorithm, we choose the stack with the top disk radius equal to 3. After processing the fourth disk, the set of top stack disks is {1, 4, 5}.
The fifth disk has radius 1, so there are two stacks we can put it on. According to the algorithm, we choose the stack with the top disk radius equal to 4. After processing the fifth disk, the set of top stack disks is {1, 1, 5}.
The sixth disk has radius 2, so there is only one stack we can put it on. The final set of top stack disks is {1, 1, 2}.
Mike is really excited about his new algorithm, but he has so many disks that it seems impossible to simulate the algorithm manually.
You are given an array A of N integers denoting the radii of Mike's disks. The disks are already ordered by Mike. Your task is to find the set of the stack top disk radii after the algorithm is done.
Input
The first line of the input contains an integer T denoting the number of test cases. The description of T test cases follows.
The first line of a test description contains a single integer N.
The second line of the description contains N integers denoting A1, ... , AN.
Output
For each test case, output a single line. The line should start with a positive integer S denoting the number of stacks after the algorithm is done. This should be followed by S integers on the same line denoting the stacks' top disk radii in non-decreasing order.
If there are multiple correct answers, you are allowed to output any of them.
Constraints
1 ≤ T ≤ 10
1 ≤ N ≤ 10^5
1 ≤ Ai ≤ 10^9
Example
Input:
3
6
3 4 5 1 1 2
10
3 2 9 5 2 9 4 14 7 10
8
14 5 13 19 17 10 18 12
Output:
3 1 1 2
5 2 2 4 7 10
4 5 10 12 18
Explanation
Example 1 is already explained in the problem statement.
|
stdin
| null | 1,592
| 1
|
[
"3\n6\n3 4 5 1 1 2\n10\n3 2 9 5 2 9 4 14 7 10\n8\n14 5 13 19 17 10 18 12\n"
] |
[
"3 1 1 2\n5 2 2 4 7 10\n4 5 10 12 18\n"
] |
[
"3\n6\n3 4 5 1 1 2\n10\n3 2 9 5 2 9 4 14 7 10\n8\n9 5 13 19 17 10 18 12\n",
"3\n6\n3 4 5 1 1 2\n10\n3 2 9 5 2 9 4 14 7 10\n8\n9 5 13 19 23 10 18 12\n",
"3\n6\n3 4 5 1 1 2\n10\n3 2 9 5 2 3 4 14 7 10\n8\n9 5 13 19 23 10 18 12\n",
"3\n6\n3 4 5 1 1 2\n10\n3 2 5 5 2 3 4 14 7 3\n8\n9 5 13 19 23 10 18 12\n",
"3\n6\n3 4 5 2 1 2\n10\n3 2 5 5 2 3 4 14 7 3\n8\n9 5 13 19 23 10 18 12\n",
"3\n6\n2 4 5 2 1 2\n10\n3 2 5 5 2 3 4 14 7 3\n8\n9 5 13 19 23 10 18 12\n",
"3\n6\n2 4 5 2 1 2\n10\n3 2 5 5 2 3 4 14 1 3\n8\n9 5 13 19 23 10 18 12\n",
"3\n6\n2 4 5 0 1 2\n10\n3 2 5 5 2 3 4 14 1 3\n8\n9 5 13 19 23 10 18 12\n",
"3\n6\n2 4 5 0 2 2\n10\n3 2 5 5 2 3 4 14 1 3\n8\n9 5 13 19 23 10 18 12\n",
"3\n6\n2 4 5 0 2 3\n10\n3 2 5 5 2 3 4 14 1 3\n8\n9 5 13 19 23 10 18 12\n"
] |
[
"3 1 1 2\n5 2 2 4 7 10\n4 5 10 12 18\n",
"3 1 1 2\n5 2 2 4 7 10\n4 5 10 12 23\n",
"3 1 1 2\n6 2 2 3 4 7 10\n4 5 10 12 23\n",
"3 1 1 2\n5 2 2 3 3 7\n4 5 10 12 23\n",
"3 1 2 5\n5 2 2 3 3 7\n4 5 10 12 23\n",
"3 1 2 2\n5 2 2 3 3 7\n4 5 10 12 23\n",
"3 1 2 2\n5 1 2 3 3 14\n4 5 10 12 23\n",
"3 0 1 2\n5 1 2 3 3 14\n4 5 10 12 23\n",
"3 0 2 2\n5 1 2 3 3 14\n4 5 10 12 23\n",
"3 0 2 3\n5 1 2 3 3 14\n4 5 10 12 23\n"
] |
CodeContests
|
Given is a string S consisting of `0` and `1`. Find the number of strings, modulo 998244353, that can result from applying the following operation on S between 0 and K times (inclusive):
* Choose a pair of integers i, j (1\leq i < j\leq |S|) such that the i-th and j-th characters of S are `0` and `1`, respectively. Remove the j-th character from S and insert it to the immediate left of the i-th character.
Constraints
* 1 \leq |S| \leq 300
* 0 \leq K \leq 10^9
* S consists of `0` and `1`.
Input
Input is given from Standard Input in the following format:
S K
Output
Find the number of strings, modulo 998244353, that can result from applying the operation on S between 0 and K times (inclusive).
Examples
Input
0101 1
Output
4
Input
01100110 2
Output
14
Input
1101010010101101110111100011011111011000111101110101010010101010101 20
Output
113434815
|
stdin
| null | 4,029
| 1
|
[
"0101 1\n",
"01100110 2\n",
"1101010010101101110111100011011111011000111101110101010010101010101 20\n"
] |
[
"4\n",
"14\n",
"113434815\n"
] |
[
"0111 1\n",
"01000110 2\n",
"1101010010101101110111100011011111011000111101110111010010101010101 20\n",
"0111 0\n",
"01000110 4\n",
"1101010010101101110111100011011111011000111101110111010010101010101 17\n",
"0011 1\n",
"01100110 4\n",
"1100010010101101110111100011011111011000111101110111010010101010101 17\n",
"1100010010101101110111100011011111011000111101110111010010101010101 12\n"
] |
[
"2\n",
"19\n",
"243789638\n",
"1\n",
"25\n",
"434266482\n",
"3\n",
"22\n",
"353017980\n",
"914259453\n"
] |
CodeContests
|
N circles are drawn on the paper. The rabbit has k-colored paint and paints the paper according to the following rules.
* Paint each area with one color of paint or nothing. Here, the "area" refers to the part with a finite area surrounded by a set of arcs.
* Two adjacent areas cannot be painted with the same color. Here, "adjacent" means that there is an arc that shares a part of the boundary. There are a finite number of shared points. Two areas are not considered to be adjacent.
* It is permissible to leave both adjacent areas unpainted.
Rabbit wants to paint as many areas as possible. Find the maximum number of areas that can be painted.
Input
Line 1: n k (1 ≤ n ≤ 20, 1 ≤ k ≤ 1 000 000 000)
Line 2- (n + 1): xi yi ri, (-1 000 ≤ xi, yi ≤ 1 000, 1 ≤ ri ≤ 1 000) (integer)
Neither two circles match.
The point set obtained as the intersection of any two circles does not include two different points with a distance of 10-3 or less.
Output
Output the maximum number of areas that can be painted with paint on one line.
Example
Input
2 1
10 0 10
20 0 10
Output
2
|
stdin
| null | 1,182
| 1
|
[
"2 1\n10 0 10\n20 0 10\n"
] |
[
"2\n"
] |
[
"2 1\n10 1 10\n20 0 10\n",
"2 1\n15 1 17\n20 0 5\n",
"2 2\n7 1 9\n20 0 10\n",
"1 0\n44 6 0\n0 -2 0\n",
"2 1\n15 1 10\n20 0 10\n",
"2 1\n15 1 10\n20 0 5\n",
"2 0\n15 1 17\n20 0 5\n",
"2 0\n15 1 17\n1 0 5\n",
"2 0\n15 1 17\n1 -1 5\n",
"2 0\n8 1 17\n1 -1 5\n"
] |
[
"2\n",
"1\n",
"3\n",
"0\n",
"2\n",
"2\n",
"1\n",
"2\n",
"2\n",
"1\n"
] |
CodeContests
|
Chef belongs to a very rich family which owns many gold mines. Today, he brought N gold coins and decided to form a triangle using these coins. Isn't it strange?
Chef has a unusual way of forming a triangle using gold coins, which is described as follows:
He puts 1 coin in the 1^st row.
then puts 2 coins in the 2^nd row.
then puts 3 coins in the 3^rd row.
and so on as shown in the given figure.
Chef is interested in forming a triangle with maximum possible height using at most N coins. Can you tell him the maximum possible height of the triangle?
Input
The first line of input contains a single integer T denoting the number of test cases.
The first and the only line of each test case contains an integer N denoting the number of gold coins Chef has.
Output
For each test case, output a single line containing an integer corresponding to the maximum possible height of the triangle that Chef can get.
Constraints
1 ≤ T ≤ 100
1 ≤ N ≤ 10^9
Example
Input
3
3
5
7
Output
2
2
3
Explanation
Test 1: Chef can't form a triangle with height > 2 as it requires atleast 6 gold coins.
Test 2: Chef can't form a triangle with height > 2 as it requires atleast 6 gold coins.
Test 3: Chef can't form a triangle with height > 3 as it requires atleast 10 gold coins.
|
stdin
| null | 3,742
| 1
|
[
"3\n3\n5\n7\n"
] |
[
"2\n2\n3\n"
] |
[
"3\n3\n5\n11\n",
"3\n2\n5\n11\n",
"3\n2\n9\n11\n",
"3\n4\n9\n11\n",
"3\n5\n9\n2\n",
"3\n5\n5\n2\n",
"3\n2\n5\n2\n",
"3\n5\n5\n7\n",
"3\n4\n9\n21\n",
"3\n5\n15\n2\n"
] |
[
"2\n2\n4\n",
"1\n2\n4\n",
"1\n3\n4\n",
"2\n3\n4\n",
"2\n3\n1\n",
"2\n2\n1\n",
"1\n2\n1\n",
"2\n2\n3\n",
"2\n3\n6\n",
"2\n5\n1\n"
] |
CodeContests
|
Given any integer x, Aoki can do the operation below.
Operation: Replace x with the absolute difference of x and K.
You are given the initial value of an integer N. Find the minimum possible value taken by N after Aoki does the operation zero or more times.
Constraints
* 0 ≤ N ≤ 10^{18}
* 1 ≤ K ≤ 10^{18}
* All values in input are integers.
Input
Input is given from Standard Input in the following format:
N K
Output
Print the minimum possible value taken by N after Aoki does the operation zero or more times.
Examples
Input
7 4
Output
1
Input
2 6
Output
2
Input
1000000000000000000 1
Output
0
|
stdin
| null | 727
| 1
|
[
"1000000000000000000 1\n",
"7 4\n",
"2 6\n"
] |
[
"0\n",
"1\n",
"2\n"
] |
[
"1000000000000010000 1\n",
"7 6\n",
"7 9\n",
"17 12\n",
"7 13\n",
"8 16\n",
"5 9\n",
"30 23\n",
"10 22\n",
"37 10\n"
] |
[
"0\n",
"1\n",
"2\n",
"5\n",
"6\n",
"8\n",
"4\n",
"7\n",
"10\n",
"3\n"
] |
CodeContests
|
How Many Divisors?
Write a program which reads three integers a, b and c, and prints the number of divisors of c between a and b.
Constraints
* 1 ≤ a, b, c ≤ 10000
* a ≤ b
Input
Three integers a, b and c are given in a line separated by a single space.
Output
Print the number of divisors in a line.
Example
Input
5 14 80
Output
3
|
stdin
| null | 239
| 1
|
[
"5 14 80\n"
] |
[
"3\n"
] |
[
"7 14 80\n",
"7 4 80\n",
"1 1 80\n",
"9 22 80\n",
"5 20 80\n",
"7 25 80\n",
"1 23 80\n",
"2 23 80\n",
"4 32 80\n",
"4 32 120\n"
] |
[
"2\n",
"0\n",
"1\n",
"3\n",
"5\n",
"4\n",
"8\n",
"7\n",
"6\n",
"10\n"
] |
CodeContests
|
The numbers 1 to n x n are contained in the n x n square squares one by one, and the sum of the squares in any vertical column and the sum of the squares in any horizontal column are diagonal squares. Those with the same sum of eyes are called magic squares.
There are the following methods to create a magic square with an odd number of squares on each side.
1. Put 1 in the square just below the center square.
2. Put the following numbers in the square at the bottom right.
However, if the square you are trying to insert a number is out of the square, or if the number is already filled, search for the square to insert the number according to the following method.
* If it extends to the right, it will be on the left side of the same row, if it extends to the left, it will be on the right side of the same row, and if it extends below, it will be on the top of the same column. Put in.
* If the square you are trying to enter is filled, put it in the square diagonally below the left of the filled square.
3. Repeat 2 until all the squares are filled.
Follow this method to create a program that takes the number n of squares on one side as input and outputs magic squares of that size. However, n is an odd number between 3 and 15. Output each number in the square as a right-justified 4-digit number.
input
Multiple inputs are given. Each input gives n (a positive integer) on one line. The input ends with 0. The number of inputs does not exceed 10.
output
Output n x n magic squares for each input.
Example
Input
3
5
0
Output
4 9 2
3 5 7
8 1 6
11 24 7 20 3
4 12 25 8 16
17 5 13 21 9
10 18 1 14 22
23 6 19 2 15
|
stdin
| null | 3,440
| 1
|
[
"3\n5\n0\n"
] |
[
"4 9 2\n 3 5 7\n 8 1 6\n 11 24 7 20 3\n 4 12 25 8 16\n 17 5 13 21 9\n 10 18 1 14 22\n 23 6 19 2 15\n"
] |
[
"3\n0\n0\n",
"3\n7\n0\n",
"3\n3\n0\n",
"3\n11\n0\n",
"3\n9\n0\n",
"3\n15\n0\n",
"3\n19\n0\n",
"3\n17\n0\n",
"3\n27\n0\n",
"3\n13\n0\n"
] |
[
"4 9 2\n 3 5 7\n 8 1 6\n",
"4 9 2\n 3 5 7\n 8 1 6\n 22 47 16 41 10 35 4\n 5 23 48 17 42 11 29\n 30 6 24 49 18 36 12\n 13 31 7 25 43 19 37\n 38 14 32 1 26 44 20\n 21 39 8 33 2 27 45\n 46 15 40 9 34 3 28\n",
"4 9 2\n 3 5 7\n 8 1 6\n 4 9 2\n 3 5 7\n 8 1 6\n",
"4 9 2\n 3 5 7\n 8 1 6\n 56 117 46 107 36 97 26 87 16 77 6\n 7 57 118 47 108 37 98 27 88 17 67\n 68 8 58 119 48 109 38 99 28 78 18\n 19 69 9 59 120 49 110 39 89 29 79\n 80 20 70 10 60 121 50 100 40 90 30\n 31 81 21 71 11 61 111 51 101 41 91\n 92 32 82 22 72 1 62 112 52 102 42\n 43 93 33 83 12 73 2 63 113 53 103\n 104 44 94 23 84 13 74 3 64 114 54\n 55 105 34 95 24 85 14 75 4 65 115\n 116 45 106 35 96 25 86 15 76 5 66\n",
"4 9 2\n 3 5 7\n 8 1 6\n 37 78 29 70 21 62 13 54 5\n 6 38 79 30 71 22 63 14 46\n 47 7 39 80 31 72 23 55 15\n 16 48 8 40 81 32 64 24 56\n 57 17 49 9 41 73 33 65 25\n 26 58 18 50 1 42 74 34 66\n 67 27 59 10 51 2 43 75 35\n 36 68 19 60 11 52 3 44 76\n 77 28 69 20 61 12 53 4 45\n",
"4 9 2\n 3 5 7\n 8 1 6\n 106 219 92 205 78 191 64 177 50 163 36 149 22 135 8\n 9 107 220 93 206 79 192 65 178 51 164 37 150 23 121\n 122 10 108 221 94 207 80 193 66 179 52 165 38 136 24\n 25 123 11 109 222 95 208 81 194 67 180 53 151 39 137\n 138 26 124 12 110 223 96 209 82 195 68 166 54 152 40\n 41 139 27 125 13 111 224 97 210 83 181 69 167 55 153\n 154 42 140 28 126 14 112 225 98 196 84 182 70 168 56\n 57 155 43 141 29 127 15 113 211 99 197 85 183 71 169\n 170 58 156 44 142 30 128 1 114 212 100 198 86 184 72\n 73 171 59 157 45 143 16 129 2 115 213 101 199 87 185\n 186 74 172 60 158 31 144 17 130 3 116 214 102 200 88\n 89 187 75 173 46 159 32 145 18 131 4 117 215 103 201\n 202 90 188 61 174 47 160 33 146 19 132 5 118 216 104\n 105 203 76 189 62 175 48 161 34 147 20 133 6 119 217\n 218 91 204 77 190 63 176 49 162 35 148 21 134 7 120\n",
"4 9 2\n 3 5 7\n 8 1 6\n 172 353 154 335 136 317 118 299 100 281 82 263 64 245 46 227 28 209 10\n 11 173 354 155 336 137 318 119 300 101 282 83 264 65 246 47 228 29 191\n 192 12 174 355 156 337 138 319 120 301 102 283 84 265 66 247 48 210 30\n 31 193 13 175 356 157 338 139 320 121 302 103 284 85 266 67 229 49 211\n 212 32 194 14 176 357 158 339 140 321 122 303 104 285 86 248 68 230 50\n 51 213 33 195 15 177 358 159 340 141 322 123 304 105 267 87 249 69 231\n 232 52 214 34 196 16 178 359 160 341 142 323 124 286 106 268 88 250 70\n 71 233 53 215 35 197 17 179 360 161 342 143 305 125 287 107 269 89 251\n 252 72 234 54 216 36 198 18 180 361 162 324 144 306 126 288 108 270 90\n 91 253 73 235 55 217 37 199 19 181 343 163 325 145 307 127 289 109 271\n 272 92 254 74 236 56 218 38 200 1 182 344 164 326 146 308 128 290 110\n 111 273 93 255 75 237 57 219 20 201 2 183 345 165 327 147 309 129 291\n 292 112 274 94 256 76 238 39 220 21 202 3 184 346 166 328 148 310 130\n 131 293 113 275 95 257 58 239 40 221 22 203 4 185 347 167 329 149 311\n 312 132 294 114 276 77 258 59 240 41 222 23 204 5 186 348 168 330 150\n 151 313 133 295 96 277 78 259 60 241 42 223 24 205 6 187 349 169 331\n 332 152 314 115 296 97 278 79 260 61 242 43 224 25 206 7 188 350 170\n 171 333 134 315 116 297 98 279 80 261 62 243 44 225 26 207 8 189 351\n 352 153 334 135 316 117 298 99 280 81 262 63 244 45 226 27 208 9 190\n",
"4 9 2\n 3 5 7\n 8 1 6\n 137 282 121 266 105 250 89 234 73 218 57 202 41 186 25 170 9\n 10 138 283 122 267 106 251 90 235 74 219 58 203 42 187 26 154\n 155 11 139 284 123 268 107 252 91 236 75 220 59 204 43 171 27\n 28 156 12 140 285 124 269 108 253 92 237 76 221 60 188 44 172\n 173 29 157 13 141 286 125 270 109 254 93 238 77 205 61 189 45\n 46 174 30 158 14 142 287 126 271 110 255 94 222 78 206 62 190\n 191 47 175 31 159 15 143 288 127 272 111 239 95 223 79 207 63\n 64 192 48 176 32 160 16 144 289 128 256 112 240 96 224 80 208\n 209 65 193 49 177 33 161 17 145 273 129 257 113 241 97 225 81\n 82 210 66 194 50 178 34 162 1 146 274 130 258 114 242 98 226\n 227 83 211 67 195 51 179 18 163 2 147 275 131 259 115 243 99\n 100 228 84 212 68 196 35 180 19 164 3 148 276 132 260 116 244\n 245 101 229 85 213 52 197 36 181 20 165 4 149 277 133 261 117\n 118 246 102 230 69 214 53 198 37 182 21 166 5 150 278 134 262\n 263 119 247 86 231 70 215 54 199 38 183 22 167 6 151 279 135\n 136 264 103 248 87 232 71 216 55 200 39 184 23 168 7 152 280\n 281 120 265 104 249 88 233 72 217 56 201 40 185 24 169 8 153\n",
"4 9 2\n 3 5 7\n 8 1 6\n 352 717 326 691 300 665 274 639 248 613 222 587 196 561 170 535 144 509 118 483 92 457 66 431 40 405 14\n 15 353 718 327 692 301 666 275 640 249 614 223 588 197 562 171 536 145 510 119 484 93 458 67 432 41 379\n 380 16 354 719 328 693 302 667 276 641 250 615 224 589 198 563 172 537 146 511 120 485 94 459 68 406 42\n 43 381 17 355 720 329 694 303 668 277 642 251 616 225 590 199 564 173 538 147 512 121 486 95 433 69 407\n 408 44 382 18 356 721 330 695 304 669 278 643 252 617 226 591 200 565 174 539 148 513 122 460 96 434 70\n 71 409 45 383 19 357 722 331 696 305 670 279 644 253 618 227 592 201 566 175 540 149 487 123 461 97 435\n 436 72 410 46 384 20 358 723 332 697 306 671 280 645 254 619 228 593 202 567 176 514 150 488 124 462 98\n 99 437 73 411 47 385 21 359 724 333 698 307 672 281 646 255 620 229 594 203 541 177 515 151 489 125 463\n 464 100 438 74 412 48 386 22 360 725 334 699 308 673 282 647 256 621 230 568 204 542 178 516 152 490 126\n 127 465 101 439 75 413 49 387 23 361 726 335 700 309 674 283 648 257 595 231 569 205 543 179 517 153 491\n 492 128 466 102 440 76 414 50 388 24 362 727 336 701 310 675 284 622 258 596 232 570 206 544 180 518 154\n 155 493 129 467 103 441 77 415 51 389 25 363 728 337 702 311 649 285 623 259 597 233 571 207 545 181 519\n 520 156 494 130 468 104 442 78 416 52 390 26 364 729 338 676 312 650 286 624 260 598 234 572 208 546 182\n 183 521 157 495 131 469 105 443 79 417 53 391 27 365 703 339 677 313 651 287 625 261 599 235 573 209 547\n 548 184 522 158 496 132 470 106 444 80 418 54 392 1 366 704 340 678 314 652 288 626 262 600 236 574 210\n 211 549 185 523 159 497 133 471 107 445 81 419 28 393 2 367 705 341 679 315 653 289 627 263 601 237 575\n 576 212 550 186 524 160 498 134 472 108 446 55 420 29 394 3 368 706 342 680 316 654 290 628 264 602 238\n 239 577 213 551 187 525 161 499 135 473 82 447 56 421 30 395 4 369 707 343 681 317 655 291 629 265 603\n 604 240 578 214 552 188 526 162 500 109 474 83 448 57 422 31 396 5 370 708 344 682 318 656 292 630 266\n 267 605 241 579 215 553 189 527 136 501 110 475 84 449 58 423 32 397 6 371 709 345 683 319 657 293 631\n 632 268 606 242 580 216 554 163 528 137 502 111 476 85 450 59 424 33 398 7 372 710 346 684 320 658 294\n 295 633 269 607 243 581 190 555 164 529 138 503 112 477 86 451 60 425 34 399 8 373 711 347 685 321 659\n 660 296 634 270 608 217 582 191 556 165 530 139 504 113 478 87 452 61 426 35 400 9 374 712 348 686 322\n 323 661 297 635 244 609 218 583 192 557 166 531 140 505 114 479 88 453 62 427 36 401 10 375 713 349 687\n 688 324 662 271 636 245 610 219 584 193 558 167 532 141 506 115 480 89 454 63 428 37 402 11 376 714 350\n 351 689 298 663 272 637 246 611 220 585 194 559 168 533 142 507 116 481 90 455 64 429 38 403 12 377 715\n 716 325 690 299 664 273 638 247 612 221 586 195 560 169 534 143 508 117 482 91 456 65 430 39 404 13 378\n",
"4 9 2\n 3 5 7\n 8 1 6\n 79 164 67 152 55 140 43 128 31 116 19 104 7\n 8 80 165 68 153 56 141 44 129 32 117 20 92\n 93 9 81 166 69 154 57 142 45 130 33 105 21\n 22 94 10 82 167 70 155 58 143 46 118 34 106\n 107 23 95 11 83 168 71 156 59 131 47 119 35\n 36 108 24 96 12 84 169 72 144 60 132 48 120\n 121 37 109 25 97 13 85 157 73 145 61 133 49\n 50 122 38 110 26 98 1 86 158 74 146 62 134\n 135 51 123 39 111 14 99 2 87 159 75 147 63\n 64 136 52 124 27 112 15 100 3 88 160 76 148\n 149 65 137 40 125 28 113 16 101 4 89 161 77\n 78 150 53 138 41 126 29 114 17 102 5 90 162\n 163 66 151 54 139 42 127 30 115 18 103 6 91\n"
] |
CodeContests
|
Problem
There are N vacant lots on the two-dimensional plane. Numbers from 1 to N are assigned to each vacant lot. Every vacant lot is so small that it can be considered a point. The i-th vacant lot exists at (xi, yi).
Taro chose just K from these N vacant lots and decided to build a building in those vacant lots. However, I thought it would be uninteresting to build multiple buildings too close together, so Taro decided to choose a vacant lot so that the Euclidean distance between each vacant lot would always be 2 or more.
Create a program that outputs possible combinations of vacant lots that Taro chooses. If there are multiple combinations, output the smallest one in lexicographical order. However, no matter how you choose K vacant lots, if the Euclidean distance of any two vacant lots is less than 2, output -1 instead.
Constraints
The input satisfies the following conditions.
* All inputs are integers.
* 2 ≤ K ≤ N ≤ 6,000
* 1 ≤ xi, yi ≤ 1,000,000 (1 ≤ i ≤ N)
* xi mod 2 = floor (yi ÷ 2) mod 2 (1 ≤ i ≤ N)
(Here, floor (yi ÷ 2) is the value obtained by dividing yi by 2 and rounding down to the nearest whole number.)
* There can be no more than one vacant lot at the same coordinates.
Input
The input is given in the following format.
N K
x1 y1
x2 y2
...
xN yN
Output
Output the vacant lot numbers selected by Taro line by line in ascending order.
Examples
Input
3 2
2 1
1 2
1 3
Output
1
3
Input
4 3
2 1
1 2
1 3
2 4
Output
-1
Input
5 3
5 7
5 6
6 8
20 20
4 8
Output
2
3
4
|
stdin
| null | 237
| 1
|
[
"4 3\n2 1\n1 2\n1 3\n2 4\n",
"5 3\n5 7\n5 6\n6 8\n20 20\n4 8\n",
"3 2\n2 1\n1 2\n1 3\n"
] |
[
"-1\n",
"2\n3\n4\n",
"1\n3\n"
] |
[
"3 3\n2 1\n1 2\n1 3\n2 4\n",
"5 3\n2 7\n5 6\n6 8\n20 20\n4 8\n",
"3 2\n0 1\n1 2\n1 3\n",
"3 2\n0 1\n2 2\n1 3\n",
"5 3\n5 7\n5 6\n6 8\n20 24\n4 8\n",
"5 1\n0 5\n5 6\n6 8\n20 20\n4 8\n",
"5 3\n5 7\n5 6\n6 8\n20 24\n0 8\n",
"5 2\n5 7\n5 6\n6 8\n20 24\n0 8\n",
"5 3\n2 7\n5 9\n6 8\n18 20\n0 8\n",
"3 2\n1 1\n0 0\n0 2\n2 3\n"
] |
[
"-1\n",
"1\n2\n3\n",
"1\n3\n",
"1\n2\n",
"2\n3\n4\n",
"1\n",
"1\n4\n5\n",
"1\n4\n",
"1\n2\n4\n",
"2\n3\n"
] |
CodeContests
|
You have N items that you want to put them into a knapsack. Item i has value vi, weight wi and limitation mi.
You want to find a subset of items to put such that:
* The total value of the items is as large as possible.
* The items have combined weight at most W, that is capacity of the knapsack.
* You can select at most mi items for ith item.
Find the maximum total value of items in the knapsack.
Constraints
* 1 ≤ N ≤ 100
* 1 ≤ vi ≤ 1,000
* 1 ≤ wi ≤ 1,000
* 1 ≤ mi ≤ 10,000
* 1 ≤ W ≤ 10,000
Input
N W
v1 w1 m1
v2 w2 m2
:
vN wN mN
The first line consists of the integers N and W. In the following N lines, the value, weight and limitation of the i-th item are given.
Output
Print the maximum total values of the items in a line.
Examples
Input
4 8
4 3 2
2 1 1
1 2 4
3 2 2
Output
12
Input
2 100
1 1 100
2 1 50
Output
150
|
stdin
| null | 1,110
| 1
|
[
"2 100\n1 1 100\n2 1 50\n",
"4 8\n4 3 2\n2 1 1\n1 2 4\n3 2 2\n"
] |
[
"150\n",
"12\n"
] |
[
"2 100\n1 1 100\n2 1 25\n",
"5 8\n4 3 2\n2 1 1\n1 2 4\n3 2 2\n",
"2 101\n1 1 100\n2 1 25\n",
"5 8\n4 2 2\n2 1 1\n1 2 4\n3 2 2\n",
"2 101\n1 1 100\n1 1 25\n",
"5 3\n4 2 2\n2 1 1\n1 2 3\n3 2 2\n",
"5 3\n4 1 2\n2 1 1\n1 2 3\n3 2 2\n",
"6 3\n3 1 4\n2 1 0\n2 2 0\n3 2 2\n",
"2 100\n1 2 100\n2 1 25\n",
"2 101\n1 1 100\n3 1 25\n"
] |
[
"125\n",
"12\n",
"126\n",
"14\n",
"101\n",
"6\n",
"10\n",
"9\n",
"87\n",
"151\n"
] |
CodeContests
|
Fennec and Snuke are playing a board game.
On the board, there are N cells numbered 1 through N, and N-1 roads, each connecting two cells. Cell a_i is adjacent to Cell b_i through the i-th road. Every cell can be reached from every other cell by repeatedly traveling to an adjacent cell. In terms of graph theory, the graph formed by the cells and the roads is a tree.
Initially, Cell 1 is painted black, and Cell N is painted white. The other cells are not yet colored. Fennec (who goes first) and Snuke (who goes second) alternately paint an uncolored cell. More specifically, each player performs the following action in her/his turn:
* Fennec: selects an uncolored cell that is adjacent to a black cell, and paints it black.
* Snuke: selects an uncolored cell that is adjacent to a white cell, and paints it white.
A player loses when she/he cannot paint a cell. Determine the winner of the game when Fennec and Snuke play optimally.
Constraints
* 2 \leq N \leq 10^5
* 1 \leq a_i, b_i \leq N
* The given graph is a tree.
Input
Input is given from Standard Input in the following format:
N
a_1 b_1
:
a_{N-1} b_{N-1}
Output
If Fennec wins, print `Fennec`; if Snuke wins, print `Snuke`.
Examples
Input
7
3 6
1 2
3 1
7 4
5 7
1 4
Output
Fennec
Input
4
1 4
4 2
2 3
Output
Snuke
|
stdin
| null | 4,075
| 1
|
[
"4\n1 4\n4 2\n2 3\n",
"7\n3 6\n1 2\n3 1\n7 4\n5 7\n1 4\n"
] |
[
"Snuke\n",
"Fennec\n"
] |
[
"4\n1 4\n4 3\n2 3\n",
"7\n3 6\n2 2\n3 1\n7 4\n5 7\n1 4\n",
"7\n3 6\n2 2\n3 1\n7 4\n4 7\n1 4\n",
"7\n3 6\n1 2\n3 2\n7 4\n5 7\n1 4\n",
"7\n3 6\n2 2\n3 1\n5 4\n4 7\n1 4\n",
"4\n1 2\n4 2\n2 3\n",
"4\n1 4\n4 3\n2 1\n",
"7\n3 6\n1 2\n3 1\n7 4\n5 7\n2 4\n",
"4\n1 4\n4 3\n2 2\n",
"7\n3 6\n1 2\n3 2\n7 4\n5 7\n2 4\n"
] |
[
"Snuke\n",
"Fennec\n",
"Fennec\n",
"Fennec\n",
"Fennec\n",
"Fennec\n",
"Snuke\n",
"Fennec\n",
"Snuke\n",
"Fennec\n"
] |
CodeContests
|
The "Western calendar" is a concept imported from the West, but in Japan there is a concept called the Japanese calendar, which identifies the "era name" by adding a year as a method of expressing the year on the calendar. For example, this year is 2016 in the Christian era, but 2016 in the Japanese calendar. Both are commonly used expressions of years, but have you ever experienced a situation where you know the year of a year but do not know how many years it is in the Japanese calendar, or vice versa?
Create a program that outputs the year of the Japanese calendar when the year is given in the Christian era, and the year of the Western calendar when the year is given in the Japanese calendar. However, the correspondence between the Western calendar and the Japanese calendar is as follows for the sake of simplicity.
Western calendar | Japanese calendar
--- | ---
From 1868 to 1911 | From the first year of the Meiji era to the 44th year of the Meiji era
1912 to 1925 | Taisho 1st year to Taisho 14th year
From 1926 to 1988 | From the first year of Showa to 1988
1989-2016 | 1989-2016
Input
The input is given in the following format.
E Y
The input consists of one line, where E (0 ≤ E ≤ 4) is the type of calendar given, Y is the year in that calendar, and when E is 0, the year Y (1868 ≤ Y ≤ 2016), 1 When is the Meiji Y (1 ≤ Y ≤ 44) year of the Japanese calendar, when it is 2, the Taisho Y (1 ≤ Y ≤ 14) year of the Japanese calendar, and when it is 3, the Showa Y (1 ≤ Y ≤ 63) of the Japanese calendar ) Year, 4 represents the Heisei Y (1 ≤ Y ≤ 28) year of the Japanese calendar.
Output
If it is the Western calendar, it is converted to the Japanese calendar, and if it is the Japanese calendar, it is converted to the Western calendar. However, the result of converting the Western calendar to the Japanese calendar is output with the letter "M" in the Meiji era, the letter "T" in the Taisho era, the letter "S" in the Showa era, and the letter "H" in the Heisei era.
Examples
Input
0 2015
Output
H27
Input
0 1912
Output
T1
Input
2 1
Output
1912
Input
4 28
Output
2016
|
stdin
| null | 4,904
| 1
|
[
"0 2015\n",
"0 1912\n",
"4 28\n",
"2 1\n"
] |
[
"H27\n",
"T1\n",
"2016\n",
"1912\n"
] |
[
"4 2\n",
"3 1\n",
"1 28\n",
"2 0\n",
"3 2\n",
"4 1\n",
"1 42\n",
"1 0\n",
"3 0\n",
"4 0\n"
] |
[
"1990\n",
"1926\n",
"1895\n",
"1911\n",
"1927\n",
"1989\n",
"1909\n",
"1867\n",
"1925\n",
"1988\n"
] |
CodeContests
|
Problem statement
A programming contest will be held in the Russian Federation. The contest has N questions and has M participants. Question i has a score a_i, and it is known that participant j's ability is b_j. For problem i and participant j, participant j can always solve problem i if a_i ≤ b_j and only then. The score of a participant through the contest is the sum of the scores of the problems that the person was able to solve. Participant j also sets a target score c_j for this contest.
Determine if each participant can score more than the target score.
input
The input is given in the following format.
N
a_ {0} a_ {1} a_ {2}… a_ {N−1}
M
b_ {0} b_ {1} b_ {2}… b_ {M−1}
c_ {0} c_ {1} c_ {2}… c_ {M−1}
Constraint
* All inputs are integers
* 1 \ ≤ N \ ≤ 300 \,000
* 1 \ ≤ M \ ≤ 300 \,000
* 0 \ ≤ a_ {i} \ ≤ 1 \, 000 \,000
* 0 \ ≤ b_ {i} \ ≤ 1 \, 000 \,000
* 0 \ ≤ c_ {i} \ ≤ ∑a_k
output
Print the answer on line M. On the i-line, output `Yes` if the participant i-1 can get more points than the target score, and` No` if not.
sample
Sample input 1
6
1 2 1 3 4 5
7
1 3 4 5 3 1 0
2 4 5 3 4 5 3
Sample output 1
Yes
Yes
Yes
Yes
Yes
No
No
The points obtained by each participant are as follows.
* Participant 0: 1 + 1 = 2
* Participant 1: 1 + 2 + 1 + 3 = 7
* Participant 2: 1 + 2 + 1 + 3 + 4 = 11
* Participant 3: 1 + 2 + 1 + 3 + 4 + 5 = 16
* Participant 4: 1 + 2 + 1 + 3 = 7
* Participant 5: 1 + 1 = 2
* Participants 6: 0
Sample input 2
8
1 1 2 3 3 4 6 100
Four
1 3 4 99
1 10 15 120
Sample output 2
Yes
Yes
No
No
Example
Input
6
1 2 1 3 4 5
7
1 3 4 5 3 1 0
2 4 5 3 4 5 3
Output
Yes
Yes
Yes
Yes
Yes
No
No
|
stdin
| null | 3,531
| 1
|
[
"6\n1 2 1 3 4 5\n7\n1 3 4 5 3 1 0\n2 4 5 3 4 5 3\n"
] |
[
"Yes\nYes\nYes\nYes\nYes\nNo\nNo\n"
] |
[
"6\n1 2 1 3 4 5\n7\n1 3 4 5 3 1 0\n2 8 5 3 4 5 3\n",
"6\n1 2 1 3 4 5\n7\n1 3 4 10 3 1 0\n2 4 5 3 4 5 3\n",
"6\n1 2 1 5 4 5\n7\n1 3 4 7 3 1 0\n2 8 5 3 7 5 3\n",
"6\n1 2 2 5 4 5\n7\n1 3 4 7 3 1 0\n2 8 5 3 7 5 3\n",
"6\n2 0 1 3 3 5\n7\n1 1 4 10 3 1 0\n2 4 5 3 4 5 3\n",
"6\n1 2 1 6 3 1\n7\n1 3 4 7 3 1 0\n2 8 5 3 3 0 3\n",
"6\n1 2 2 8 6 1\n7\n2 3 4 2 3 1 0\n1 8 1 3 3 1 1\n",
"6\n1 2 0 15 0 1\n7\n2 5 4 2 6 1 0\n1 16 1 3 5 1 1\n",
"6\n1 1 0 15 0 0\n7\n2 5 4 2 10 1 0\n1 28 1 3 0 1 1\n",
"6\n1 2 1 5 4 5\n7\n1 3 3 7 3 1 0\n2 8 5 3 7 5 3\n"
] |
[
"Yes\nNo\nYes\nYes\nYes\nNo\nNo\n",
"Yes\nYes\nYes\nYes\nYes\nNo\nNo\n",
"Yes\nNo\nYes\nYes\nNo\nNo\nNo\n",
"No\nNo\nYes\nYes\nNo\nNo\nNo\n",
"No\nNo\nYes\nYes\nYes\nNo\nNo\n",
"Yes\nYes\nYes\nYes\nYes\nYes\nNo\n",
"Yes\nNo\nYes\nYes\nYes\nYes\nNo\n",
"Yes\nNo\nYes\nYes\nNo\nYes\nNo\n",
"Yes\nNo\nYes\nNo\nYes\nYes\nNo\n",
"Yes\nNo\nNo\nYes\nNo\nNo\nNo\n"
] |
CodeContests
|
A binary search tree can be unbalanced depending on features of data. For example, if we insert $n$ elements into a binary search tree in ascending order, the tree become a list, leading to long search times. One of strategies is to randomly shuffle the elements to be inserted. However, we should consider to maintain the balanced binary tree where different operations can be performed one by one depending on requirement.
We can maintain the balanced binary search tree by assigning a priority randomly selected to each node and by ordering nodes based on the following properties. Here, we assume that all priorities are distinct and also that all keys are distinct.
* binary-search-tree property. If $v$ is a left child of $u$, then $v.key < u.key$ and if $v$ is a right child of $u$, then $u.key < v.key$
* heap property. If $v$ is a child of $u$, then $v.priority < u.priority$
This combination of properties is why the tree is called Treap (tree + heap).
An example of Treap is shown in the following figure.
<image>
Insert
To insert a new element into a Treap, first of all, insert a node which a randomly selected priority value is assigned in the same way for ordinal binary search tree. For example, the following figure shows the Treap after a node with key = 6 and priority = 90 is inserted.
<image>
It is clear that this Treap violates the heap property, so we need to modify the structure of the tree by rotate operations. The rotate operation is to change parent-child relation while maintaing the binary-search-tree property.
<image>
The rotate operations can be implemented as follows.
rightRotate(Node t)
Node s = t.left
t.left = s.right
s.right = t
return s // the new root of subtree
|
leftRotate(Node t)
Node s = t.right
t.right = s.left
s.left = t
return s // the new root of subtree
---|---
The following figure shows processes of the rotate operations after the insert operation to maintain the properties.
<image>
The insert operation with rotate operations can be implemented as follows.
insert(Node t, int key, int priority) // search the corresponding place recursively
if t == NIL
return Node(key, priority) // create a new node when you reach a leaf
if key == t.key
return t // ignore duplicated keys
if key < t.key // move to the left child
t.left = insert(t.left, key, priority) // update the pointer to the left child
if t.priority < t.left.priority // rotate right if the left child has higher priority
t = rightRotate(t)
else // move to the right child
t.right = insert(t.right, key, priority) // update the pointer to the right child
if t.priority < t.right.priority // rotate left if the right child has higher priority
t = leftRotate(t)
return t
Delete
To delete a node from the Treap, first of all, the target node should be moved until it becomes a leaf by rotate operations. Then, you can remove the node (the leaf). These processes can be implemented as follows.
delete(Node t, int key) // seach the target recursively
if t == NIL
return NIL
if key < t.key // search the target recursively
t.left = delete(t.left, key)
else if key > t.key
t.right = delete(t.right, key)
else
return _delete(t, key)
return t
_delete(Node t, int key) // if t is the target node
if t.left == NIL && t.right == NIL // if t is a leaf
return NIL
else if t.left == NIL // if t has only the right child, then perform left rotate
t = leftRotate(t)
else if t.right == NIL // if t has only the left child, then perform right rotate
t = rightRotate(t)
else // if t has both the left and right child
if t.left.priority > t.right.priority // pull up the child with higher priority
t = rightRotate(t)
else
t = leftRotate(t)
return delete(t, key)
Write a program which performs the following operations to a Treap $T$ based on the above described algorithm.
* insert ($k$, $p$): Insert a node containing $k$ as key and $p$ as priority to $T$.
* find ($k$): Report whether $T$ has a node containing $k$.
* delete ($k$): Delete a node containing $k$.
* print(): Print the keys of the binary search tree by inorder tree walk and preorder tree walk respectively.
Constraints
* The number of operations $ \leq 200,000$
* $0 \leq k, p \leq 2,000,000,000$
* The height of the binary tree does not exceed 50 if you employ the above algorithm
* The keys in the binary search tree are all different.
* The priorities in the binary search tree are all different.
* The size of output $\leq 10$ MB
Input
In the first line, the number of operations $m$ is given. In the following $m$ lines, operations represented by insert $k \; p$, find $k$, delete $k$ or print are given.
Output
For each find($k$) operation, print "yes" if $T$ has a node containing $k$, "no" if not.
In addition, for each print operation, print a list of keys obtained by inorder tree walk and preorder tree walk in a line respectively. Put a space character before each key.
Example
Input
16
insert 35 99
insert 3 80
insert 1 53
insert 14 25
insert 80 76
insert 42 3
insert 86 47
insert 21 12
insert 7 10
insert 6 90
print
find 21
find 22
delete 35
delete 99
print
Output
1 3 6 7 14 21 35 42 80 86
35 6 3 1 14 7 21 80 42 86
yes
no
1 3 6 7 14 21 42 80 86
6 3 1 80 14 7 21 42 86
|
stdin
| null | 2,941
| 1
|
[
"16\ninsert 35 99\ninsert 3 80\ninsert 1 53\ninsert 14 25\ninsert 80 76\ninsert 42 3\ninsert 86 47\ninsert 21 12\ninsert 7 10\ninsert 6 90\nprint\nfind 21\nfind 22\ndelete 35\ndelete 99\nprint\n"
] |
[
"1 3 6 7 14 21 35 42 80 86\n 35 6 3 1 14 7 21 80 42 86\nyes\nno\n 1 3 6 7 14 21 42 80 86\n 6 3 1 80 14 7 21 42 86\n"
] |
[
"16\ninsert 35 99\ninsert 3 80\ninsert 1 53\ninsert 14 25\ninsert 80 76\ninsert 42 3\ninsert 102 47\ninsert 21 12\ninsert 7 10\ninsert 6 90\nprint\nfind 21\nfind 22\ndelete 35\ndelete 99\nprint\n",
"16\ninsert 35 99\ninsert 3 80\ninsert 1 53\ninsert 14 25\ninsert 80 76\ninsert 42 3\ninsert 86 47\ninsert 26 12\ninsert 7 10\ninsert 6 90\nprint\nfind 21\nfind 22\ndelete 35\ndelete 99\nprint\n",
"16\ninsert 35 57\ninsert 3 80\ninsert 1 53\ninsert 14 25\ninsert 80 76\ninsert 42 3\ninsert 86 47\ninsert 26 12\ninsert 7 10\ninsert 6 90\nprint\nfind 21\nfind 22\ndelete 35\ndelete 148\nprint\n",
"16\ninsert 35 99\ninsert 3 80\ninsert 1 53\ninsert 14 25\ninsert 80 76\ninsert 42 3\ninsert 86 47\ninsert 21 12\ninsert 7 10\ninsert 6 139\nprint\nfind 21\nfind 22\ndelete 35\ndelete 99\nprint\n",
"16\ninsert 35 99\ninsert 3 80\ninsert 1 53\ninsert 14 25\ninsert 80 76\ninsert 42 3\ninsert 102 47\ninsert 21 12\ninsert 7 10\ninsert 6 90\nprint\nfind 30\nfind 22\ndelete 35\ndelete 99\nprint\n",
"16\ninsert 35 99\ninsert 3 80\ninsert 1 53\ninsert 14 25\ninsert 80 76\ninsert 42 3\ninsert 141 47\ninsert 21 12\ninsert 7 10\ninsert 6 139\nprint\nfind 21\nfind 22\ndelete 35\ndelete 99\nprint\n",
"16\ninsert 21 99\ninsert 3 80\ninsert 1 12\ninsert 14 25\ninsert 80 76\ninsert 42 3\ninsert 141 47\ninsert 21 6\ninsert 7 10\ninsert 6 139\nprint\nfind 21\nfind 22\ndelete 35\ndelete 99\nprint\n",
"16\ninsert 35 99\ninsert 3 80\ninsert 1 53\ninsert 14 25\ninsert 80 76\ninsert 42 3\ninsert 86 47\ninsert 21 12\ninsert 7 10\ninsert 6 90\nprint\nfind 21\nfind 22\ndelete 35\ndelete 21\nprint\n",
"16\ninsert 35 99\ninsert 3 80\ninsert 1 53\ninsert 14 25\ninsert 87 76\ninsert 42 3\ninsert 102 47\ninsert 21 12\ninsert 7 10\ninsert 6 90\nprint\nfind 21\nfind 22\ndelete 35\ndelete 99\nprint\n",
"16\ninsert 35 99\ninsert 3 80\ninsert 1 53\ninsert 14 25\ninsert 80 76\ninsert 42 3\ninsert 58 47\ninsert 26 12\ninsert 7 10\ninsert 6 90\nprint\nfind 21\nfind 22\ndelete 35\ndelete 99\nprint\n"
] |
[
"1 3 6 7 14 21 35 42 80 102\n 35 6 3 1 14 7 21 80 42 102\nyes\nno\n 1 3 6 7 14 21 42 80 102\n 6 3 1 80 14 7 21 42 102\n",
"1 3 6 7 14 26 35 42 80 86\n 35 6 3 1 14 7 26 80 42 86\nno\nno\n 1 3 6 7 14 26 42 80 86\n 6 3 1 80 14 7 26 42 86\n",
"1 3 6 7 14 26 35 42 80 86\n 6 3 1 80 35 14 7 26 42 86\nno\nno\n 1 3 6 7 14 26 42 80 86\n 6 3 1 80 14 7 26 42 86\n",
"1 3 6 7 14 21 35 42 80 86\n 6 3 1 35 14 7 21 80 42 86\nyes\nno\n 1 3 6 7 14 21 42 80 86\n 6 3 1 80 14 7 21 42 86\n",
"1 3 6 7 14 21 35 42 80 102\n 35 6 3 1 14 7 21 80 42 102\nno\nno\n 1 3 6 7 14 21 42 80 102\n 6 3 1 80 14 7 21 42 102\n",
"1 3 6 7 14 21 35 42 80 141\n 6 3 1 35 14 7 21 80 42 141\nyes\nno\n 1 3 6 7 14 21 42 80 141\n 6 3 1 80 14 7 21 42 141\n",
"1 3 6 7 14 21 42 80 141\n 6 3 1 21 14 7 80 42 141\nyes\nno\n 1 3 6 7 14 21 42 80 141\n 6 3 1 21 14 7 80 42 141\n",
"1 3 6 7 14 21 35 42 80 86\n 35 6 3 1 14 7 21 80 42 86\nyes\nno\n 1 3 6 7 14 42 80 86\n 6 3 1 80 14 7 42 86\n",
"1 3 6 7 14 21 35 42 87 102\n 35 6 3 1 14 7 21 87 42 102\nyes\nno\n 1 3 6 7 14 21 42 87 102\n 6 3 1 87 14 7 21 42 102\n",
"1 3 6 7 14 26 35 42 58 80\n 35 6 3 1 14 7 26 80 58 42\nno\nno\n 1 3 6 7 14 26 42 58 80\n 6 3 1 80 58 14 7 26 42\n"
] |
CodeContests
|
There are X+Y+Z people, conveniently numbered 1 through X+Y+Z. Person i has A_i gold coins, B_i silver coins and C_i bronze coins.
Snuke is thinking of getting gold coins from X of those people, silver coins from Y of the people and bronze coins from Z of the people. It is not possible to get two or more different colors of coins from a single person. On the other hand, a person will give all of his/her coins of the color specified by Snuke.
Snuke would like to maximize the total number of coins of all colors he gets. Find the maximum possible number of coins.
Constraints
* 1 \leq X
* 1 \leq Y
* 1 \leq Z
* X+Y+Z \leq 10^5
* 1 \leq A_i \leq 10^9
* 1 \leq B_i \leq 10^9
* 1 \leq C_i \leq 10^9
Input
Input is given from Standard Input in the following format:
X Y Z
A_1 B_1 C_1
A_2 B_2 C_2
:
A_{X+Y+Z} B_{X+Y+Z} C_{X+Y+Z}
Output
Print the maximum possible total number of coins of all colors he gets.
Examples
Input
1 2 1
2 4 4
3 2 1
7 6 7
5 2 3
Output
18
Input
3 3 2
16 17 1
2 7 5
2 16 12
17 7 7
13 2 10
12 18 3
16 15 19
5 6 2
Output
110
Input
6 2 4
33189 87907 277349742
71616 46764 575306520
8801 53151 327161251
58589 4337 796697686
66854 17565 289910583
50598 35195 478112689
13919 88414 103962455
7953 69657 699253752
44255 98144 468443709
2332 42580 752437097
39752 19060 845062869
60126 74101 382963164
Output
3093929975
|
stdin
| null | 3,397
| 1
|
[
"1 2 1\n2 4 4\n3 2 1\n7 6 7\n5 2 3\n",
"6 2 4\n33189 87907 277349742\n71616 46764 575306520\n8801 53151 327161251\n58589 4337 796697686\n66854 17565 289910583\n50598 35195 478112689\n13919 88414 103962455\n7953 69657 699253752\n44255 98144 468443709\n2332 42580 752437097\n39752 19060 845062869\n60126 74101 382963164\n",
"3 3 2\n16 17 1\n2 7 5\n2 16 12\n17 7 7\n13 2 10\n12 18 3\n16 15 19\n5 6 2\n"
] |
[
"18\n",
"3093929975\n",
"110\n"
] |
[
"1 2 1\n2 4 4\n0 2 1\n7 6 7\n5 2 3\n",
"6 2 4\n33189 87907 277349742\n71616 46764 575306520\n8801 53151 327161251\n58589 4337 796697686\n66854 17565 289910583\n50598 35195 478112689\n13919 88414 103962455\n7953 69657 699253752\n42489 98144 468443709\n2332 42580 752437097\n39752 19060 845062869\n60126 74101 382963164\n",
"3 3 2\n16 17 1\n2 7 5\n2 16 12\n17 7 7\n13 2 13\n12 18 3\n16 15 19\n5 6 2\n",
"6 2 4\n33189 87907 277349742\n33905 46764 575306520\n8801 53151 327161251\n58589 4337 796697686\n66854 17565 289910583\n50598 35195 478112689\n13919 88414 103962455\n7953 69657 699253752\n42489 98144 468443709\n2332 42580 752437097\n39752 19060 845062869\n60126 74101 382963164\n",
"3 3 2\n16 17 1\n2 7 5\n2 16 12\n17 7 7\n13 2 13\n12 18 3\n22 15 19\n5 6 2\n",
"6 2 4\n33189 87907 277349742\n33905 46764 575306520\n8801 53151 327161251\n58589 4337 796697686\n66854 17565 289910583\n50598 35195 478112689\n13919 1573 103962455\n7953 69657 699253752\n42489 98144 468443709\n2332 42580 752437097\n39752 19060 845062869\n60126 74101 382963164\n",
"3 3 2\n16 17 1\n2 7 5\n2 16 12\n17 7 7\n13 2 3\n12 18 3\n22 15 19\n5 6 2\n",
"1 2 1\n2 4 4\n1 2 1\n7 6 2\n5 3 3\n",
"3 3 2\n16 17 1\n2 7 5\n2 16 12\n17 7 7\n13 2 3\n12 13 3\n22 15 19\n5 6 2\n",
"6 2 4\n33189 87907 277349742\n33905 46764 575306520\n8801 53151 327161251\n58589 7236 141577431\n66854 17565 289910583\n50598 35195 478112689\n13919 1573 103962455\n9712 69657 699253752\n42489 98144 468443709\n2332 42580 752437097\n39752 19060 845062869\n60126 74101 382963164\n"
] |
[
"18\n",
"3093929146\n",
"111\n",
"3093891435\n",
"113\n",
"3093871658\n",
"110\n",
"17\n",
"105\n",
"2872505176\n"
] |
CodeContests
|
The postal code in Atcoder Kingdom is A+B+1 characters long, its (A+1)-th character is a hyphen `-`, and the other characters are digits from `0` through `9`.
You are given a string S. Determine whether it follows the postal code format in Atcoder Kingdom.
Constraints
* 1≤A,B≤5
* |S|=A+B+1
* S consists of `-` and digits from `0` through `9`.
Input
Input is given from Standard Input in the following format:
A B
S
Output
Print `Yes` if S follows the postal code format in AtCoder Kingdom; print `No` otherwise.
Examples
Input
3 4
269-6650
Output
Yes
Input
1 1
---
Output
No
Input
1 2
7444
Output
No
|
stdin
| null | 257
| 1
|
[
"1 2\n7444\n",
"3 4\n269-6650\n",
"1 1\n---\n"
] |
[
"No\n",
"Yes\n",
"No\n"
] |
[
"2 2\n7444\n",
"6 4\n269-6650\n",
"1 2\n---\n",
"0 2\n7444\n",
"6 8\n269-6650\n",
"1 0\n---\n",
"0 2\n5343\n",
"6 1\n269-6650\n",
"1 0\n-,-\n",
"0 1\n5343\n"
] |
[
"No\n",
"No\n",
"No\n",
"No\n",
"No\n",
"No\n",
"No\n",
"No\n",
"No\n",
"No\n"
] |
CodeContests
|
Takahashi has received an undirected graph with N vertices, numbered 1, 2, ..., N. The edges in this graph are represented by (u_i, v_i). There are no self-loops and multiple edges in this graph.
Based on this graph, Takahashi is now constructing a new graph with N^2 vertices, where each vertex is labeled with a pair of integers (a, b) (1 \leq a \leq N, 1 \leq b \leq N). The edges in this new graph are generated by the following rule:
* Span an edge between vertices (a, b) and (a', b') if and only if both of the following two edges exist in the original graph: an edge between vertices a and a', and an edge between vertices b and b'.
How many connected components are there in this new graph?
Constraints
* 2 \leq N \leq 100,000
* 0 \leq M \leq 200,000
* 1 \leq u_i < v_i \leq N
* There exists no pair of distinct integers i and j such that u_i = u_j and v_i = v_j.
Input
The input is given from Standard Input in the following format:
N M
u_1 v_1
u_2 v_2
:
u_M v_M
Output
Print the number of the connected components in the graph constructed by Takahashi.
Examples
Input
3 1
1 2
Output
7
Input
7 5
1 2
3 4
3 5
4 5
2 6
Output
18
|
stdin
| null | 4,824
| 1
|
[
"7 5\n1 2\n3 4\n3 5\n4 5\n2 6\n",
"3 1\n1 2\n"
] |
[
"18\n",
"7\n"
] |
[
"7 5\n1 2\n3 4\n3 5\n4 1\n2 6\n",
"7 5\n1 2\n3 7\n3 5\n4 1\n2 6\n",
"7 5\n1 2\n3 7\n3 5\n4 1\n2 2\n",
"7 5\n1 2\n3 7\n6 5\n4 1\n2 2\n",
"12 5\n1 2\n3 4\n3 5\n4 1\n2 6\n",
"7 5\n1 2\n3 7\n3 7\n4 1\n2 3\n",
"12 5\n1 2\n3 4\n3 5\n4 1\n2 2\n",
"7 5\n1 2\n2 6\n6 5\n4 1\n2 2\n",
"7 5\n2 2\n2 6\n6 5\n4 1\n2 2\n",
"10 5\n1 2\n3 4\n2 5\n4 1\n2 2\n"
] |
[
"15\n",
"8\n",
"18\n",
"13\n",
"110\n",
"26\n",
"120\n",
"25\n",
"29\n",
"76\n"
] |
CodeContests
|
The fundamental idea in the JPEG compression algorithm is to sort coeffi- cient of given image by zigzag path and encode it. In this problem, we don’t discuss about details of the algorithm, but you are asked to make simple pro- gram. You are given single integer N , and you must output zigzag path on a matrix where size is N by N . The zigzag scanning is start at the upper-left corner (0, 0) and end up at the bottom-right corner. See the following Figure and sample output to make sure rule of the zigzag scanning. For example, if you are given N = 8, corresponding output should be a matrix shown in right-side of the Figure. This matrix consists of visited time for each element.
<image>
Input
Several test cases are given. Each test case consists of one integer N (0 < N < 10) in a line. The input will end at a line contains single zero.
Output
For each input, you must output a matrix where each element is the visited time. All numbers in the matrix must be right justified in a field of width 3. Each matrix should be prefixed by a header “Case x:” where x equals test case number.
Example
Input
3
4
0
Output
Case 1:
1 2 6
3 5 7
4 8 9
Case 2:
1 2 6 7
3 5 8 13
4 9 12 14
10 11 15 16
|
stdin
| null | 3,805
| 1
|
[
"3\n4\n0\n"
] |
[
"Case 1:\n 1 2 6\n 3 5 7\n 4 8 9\nCase 2:\n 1 2 6 7\n 3 5 8 13\n 4 9 12 14\n 10 11 15 16\n"
] |
[
"3\n7\n0\n",
"3\n3\n0\n",
"3\n0\n0\n",
"3\n1\n0\n",
"3\n2\n0\n",
"3\n-1\n0\n",
"3\n5\n0\n",
"3\n8\n0\n",
"3\n6\n0\n",
"3\n9\n0\n"
] |
[
"Case 1:\n 1 2 6\n 3 5 7\n 4 8 9\nCase 2:\n 1 2 6 7 15 16 28\n 3 5 8 14 17 27 29\n 4 9 13 18 26 30 39\n 10 12 19 25 31 38 40\n 11 20 24 32 37 41 46\n 21 23 33 36 42 45 47\n 22 34 35 43 44 48 49\n",
"Case 1:\n 1 2 6\n 3 5 7\n 4 8 9\nCase 2:\n 1 2 6\n 3 5 7\n 4 8 9\n",
"Case 1:\n 1 2 6\n 3 5 7\n 4 8 9\n",
"Case 1:\n 1 2 6\n 3 5 7\n 4 8 9\nCase 2:\n 1\n",
"Case 1:\n 1 2 6\n 3 5 7\n 4 8 9\nCase 2:\n 1 2\n 3 4\n",
"Case 1:\n 1 2 6\n 3 5 7\n 4 8 9\nCase 2:\n",
"Case 1:\n 1 2 6\n 3 5 7\n 4 8 9\nCase 2:\n 1 2 6 7 15\n 3 5 8 14 16\n 4 9 13 17 22\n 10 12 18 21 23\n 11 19 20 24 25\n",
"Case 1:\n 1 2 6\n 3 5 7\n 4 8 9\nCase 2:\n 1 2 6 7 15 16 28 29\n 3 5 8 14 17 27 30 43\n 4 9 13 18 26 31 42 44\n 10 12 19 25 32 41 45 54\n 11 20 24 33 40 46 53 55\n 21 23 34 39 47 52 56 61\n 22 35 38 48 51 57 60 62\n 36 37 49 50 58 59 63 64\n",
"Case 1:\n 1 2 6\n 3 5 7\n 4 8 9\nCase 2:\n 1 2 6 7 15 16\n 3 5 8 14 17 26\n 4 9 13 18 25 27\n 10 12 19 24 28 33\n 11 20 23 29 32 34\n 21 22 30 31 35 36\n",
"Case 1:\n 1 2 6\n 3 5 7\n 4 8 9\nCase 2:\n 1 2 6 7 15 16 28 29 45\n 3 5 8 14 17 27 30 44 46\n 4 9 13 18 26 31 43 47 60\n 10 12 19 25 32 42 48 59 61\n 11 20 24 33 41 49 58 62 71\n 21 23 34 40 50 57 63 70 72\n 22 35 39 51 56 64 69 73 78\n 36 38 52 55 65 68 74 77 79\n 37 53 54 66 67 75 76 80 81\n"
] |
CodeContests
|
Quantum love solving mathematical problems. One day his teacher give him problem on divisibility to check his mathematical skills. He give him four numbers a,b,c,d and asked him to check whether (a^b) is divisible by (c^d) or not. As the constrains are high, so quantum need your help to answer the query.
INPUT
First line of Input contains no. of test cases T.
Each test case contain four numbers a,b,c,d.
OUTPUT
For each test case print "Divisible" if they are divisible and "Not divisible" if they are not divisible (without quotes).
CONSTRAINTS
T ≤ 50
1 ≤ a,b,c ≤10^9
0 ≤ d ≤10^9
SAMPLE INPUT
1
4 6 2 4
SAMPLE OUTPUT
Divisible
|
stdin
| null | 2,394
| 1
|
[
"1\n4 6 2 4\n\nSAMPLE\n"
] |
[
"Divisible\n"
] |
[
"1\n4 6 1 4\n\nSAMPLE\n",
"1\n3 4 2 2\n\nSAMPLE\n",
"1\n4 4 2 4\n\nSAMPLE\n",
"1\n4 6 2 1\n\nSAMPLE\n",
"1\n4 4 2 2\n\nSAMPLE\n",
"1\n4 3 2 1\n\nSAMPLE\n",
"1\n4 0 2 1\n\nSAMPLE\n",
"1\n1 4 2 2\n\nSAMPLE\n",
"1\n8 0 2 1\n\nSAMPLE\n",
"1\n1 4 2 2\n\nELPMAS\n"
] |
[
"Divisible\n",
"Not divisible\n",
"Divisible\n",
"Divisible\n",
"Divisible\n",
"Divisible\n",
"Not divisible\n",
"Not divisible\n",
"Not divisible\n",
"Not divisible\n"
] |
CodeContests
|
Silver Fox is fighting with N monsters.
The monsters are standing in a row, and we can assume them to be standing on a number line. The i-th monster, standing at the coordinate X_i, has the health of H_i.
Silver Fox can use bombs to attack the monsters. Using a bomb at the coordinate x decreases the healths of all monsters between the coordinates x-D and x+D (inclusive) by A. There is no way other than bombs to decrease the monster's health.
Silver Fox wins when all the monsters' healths become 0 or below.
Find the minimum number of bombs needed to win.
Constraints
* 1 \leq N \leq 2 \times 10^5
* 0 \leq D \leq 10^9
* 1 \leq A \leq 10^9
* 0 \leq X_i \leq 10^9
* 1 \leq H_i \leq 10^9
* X_i are distinct.
* All values in input are integers.
Input
Input is given from Standard Input in the following format:
N D A
X_1 H_1
:
X_N H_N
Output
Print the minimum number of bombs needed to win.
Examples
Input
3 3 2
1 2
5 4
9 2
Output
2
Input
9 4 1
1 5
2 4
3 3
4 2
5 1
6 2
7 3
8 4
9 5
Output
5
Input
3 0 1
300000000 1000000000
100000000 1000000000
200000000 1000000000
Output
3000000000
|
stdin
| null | 1,924
| 1
|
[
"9 4 1\n1 5\n2 4\n3 3\n4 2\n5 1\n6 2\n7 3\n8 4\n9 5\n",
"3 3 2\n1 2\n5 4\n9 2\n",
"3 0 1\n300000000 1000000000\n100000000 1000000000\n200000000 1000000000\n"
] |
[
"5\n",
"2\n",
"3000000000\n"
] |
[
"9 4 1\n1 5\n2 4\n3 3\n4 2\n5 1\n6 2\n7 3\n8 4\n9 0\n",
"3 3 2\n1 4\n5 4\n9 2\n",
"3 0 1\n77888184 1000000000\n100000000 1000000000\n200000000 1000000000\n",
"3 0 1\n86580931 1000000000\n100000000 1000001000\n200000000 1000000000\n",
"2 3 1\n1 1\n5 6\n9 2\n",
"2 0 1\n1 1\n5 6\n9 2\n",
"2 0 2\n1 1\n5 6\n9 2\n",
"1 0 2\n1 1\n5 6\n9 2\n",
"0 2 1\n1 1\n5 6\n4 3\n",
"9 4 1\n1 10\n2 5\n3 3\n1 2\n5 0\n9 1\n0 3\n8 3\n18 -1\n"
] |
[
"5\n",
"3\n",
"3000000000\n",
"3000001000\n",
"6\n",
"7\n",
"4\n",
"1\n",
"0\n",
"10\n"
] |
CodeContests
|
Little Jhool always wanted to have some psychic powers so that he could showoff his skills, and magic to people and impress them. (Specially, his girlfriend Big Jhool!) But, in spite all his efforts, hardwork, dedication, Googling, watching youtube videos he couldn't garner any psychic abilities!
He knew everyone was making fun of him, so to stop all of that - he came up with a smart plan. Anyone who came to him to know about their future, he asked them to write a binary number for him - and then, he smartly told them if the future for that person had good in store, or bad.
The algorithm which Little Jhool follows is, as following:
If the binary number written by the person has six consecutive 0s, or 1s, his future is bad.
Otherwise, he says that their future is good.
Input format:
Single line contains a binary number.
Output format:
You need to print "Good luck!" (Without quotes, and WITH exclamation mark!) if the Jhool is going to tell them that they're going to have a good time.
Else, print "Sorry, sorry!" if the person is going to be told that he'll have a hard time!
Constraints:
The binary number will be in string format, with the maximum length being 100 characters.
SAMPLE INPUT
0001111110
SAMPLE OUTPUT
Sorry, sorry!
Explanation
Since the binary number given has six consecutive 1s, little Jhool tells the man that he's going to have a bad time!
|
stdin
| null | 4,260
| 1
|
[
"0001111110\n\nSAMPLE\n"
] |
[
"Sorry, sorry!\n"
] |
[
"1000111000111001111000111\n",
"1111010100110100101011101100101101110011000010100010000001111100010011100101010001101111000001011000\n",
"0101100011001110001110100111100011010101011000000000110110010010110100101111010111100011101100100101\n",
"1111110\n",
"11111111101111\n",
"110000111110\n",
"0001111110\n\nLAMPSE\n",
"1010111000111001111000111\n",
"1111010100110100101011101100101001110011000010100010000001111100010011100101010001101111000001011000\n",
"0101100011001110001110100111100011010101011000000000010110010010110100101111010111100011101100100101\n"
] |
[
"Good luck!\n",
"Sorry, sorry!\n",
"Sorry, sorry!\n",
"Sorry, sorry!\n",
"Sorry, sorry!\n",
"Good luck!\n",
"Sorry, sorry!\n",
"Good luck!\n",
"Sorry, sorry!\n",
"Sorry, sorry!\n"
] |
CodeContests
|
Read a set of coordinates of three different points P1 (x1, y1), P2 (x2, y2), Q (xq, yq) on the plane, and line symmetry with point Q with the straight line passing through point P1 point P2 as the axis of symmetry. Create a program that outputs the point R (x, y) at the position of. Note that the point Q is not on its axis of symmetry.
<image>
input
The input consists of multiple datasets. Each dataset is given in the following format:
x1, y1, x2, y2, xq, yq
x1, y1, x2, y2, xq, yq (real numbers between -100 and 100) are given on one line separated by commas.
The number of datasets does not exceed 50.
output
Print x, y on a single line, separated by blanks, for each dataset. The output may contain an error of 0.0001 or less in real numbers.
Example
Input
1.0,0.0,-1.0,0.0,1.0,1.0
1.0,0.0,0.0,-1.0,3.0,0.0
0.0,1.0,0.0,-1.0,1.0,1.0
Output
1.000000 -1.000000
1.000000 2.000000
-1.000000 1.000000
|
stdin
| null | 1,933
| 1
|
[
"1.0,0.0,-1.0,0.0,1.0,1.0\n1.0,0.0,0.0,-1.0,3.0,0.0\n0.0,1.0,0.0,-1.0,1.0,1.0\n"
] |
[
"1.000000 -1.000000\n1.000000 2.000000\n-1.000000 1.000000\n"
] |
[
"1.0,0.0,-1.0,0.0,1.0,1.0\n1.0,0.0,0.0,-1.0,0.0,0.3\n0.0,1.0,0.0,-1.0,1.0,1.0\n",
"1.0,0.0,-1.0,0.0,1.0,1.0\n1.0,0.0,0.0,-1.0,3.0,0.0\n1.0,1.0,0.0,-1.0,1.0,1.0\n",
"1.0,0.0,-1.0,0.0,1.0,2.0\n1.0,0.0,0.0,-1.0,3.0,0.0\n1.0,1.0,0.1,-1.0,1.0,1.0\n",
"0.0,0.1,-1.0,0.0,1.0,2.0\n1.0,0.0,0.0,-1.0,3.0,0.0\n1.0,1.0,0.1,-1.0,1.0,1.0\n",
"0.0,0.1,-1.0,0.0,1.0,2.0\n1.0,0.0,0.0,-1.0,3.0,0.0\n1.0,0.0,0.1,-1.0,1.0,1.0\n",
"1.0,0.0,-1.0,0.0,1.0,1.0\n0.0,0.0,0.0,-1.0,3.0,1.0\n1.0,1.0,0.0,-1.0,1.0,1.0\n",
"1.0,0.0,-2.0,0.0,1.0,1.0\n1.0,1.0,0.0,-1.0,3.0,0.0\n1.0,1.0,0.0,-1.0,1.0,1.0\n",
"0.0,0.1,-1.0,0.0,1.0,3.0\n1.0,0.0,0.0,-1.0,3.0,0.0\n1.0,0.0,0.1,-1.0,1.0,1.0\n",
"1.0,0.0,-1.0,0.0,1.0,1.0\n1.0,0.0,0.0,-1.0,3.0,0.0\n0.0,1.0,0.0,-1.0,0.0,1.0\n",
"1.0,1.0,-1.0,0.0,0.0,1.0\n1.0,0.0,0.0,-1.0,0.0,0.3\n0.0,1.0,0.0,-1.0,1.0,1.0\n"
] |
[
"1.00000 -1.00000\n1.30000 -1.00000\n-1.00000 1.00000\n",
"1.00000 -1.00000\n1.00000 2.00000\n1.00000 1.00000\n",
"1.00000 -2.00000\n1.00000 2.00000\n1.00000 1.00000\n",
"1.35644 -1.56436\n1.00000 2.00000\n1.00000 1.00000\n",
"1.35644 -1.56436\n1.00000 2.00000\n1.99448 0.10497\n",
"1.00000 -1.00000\n-3.00000 1.00000\n1.00000 1.00000\n",
"1.00000 -1.00000\n-1.00000 2.00000\n1.00000 1.00000\n",
"1.55446 -2.54455\n1.00000 2.00000\n1.99448 0.10497\n",
"1.00000 -1.00000\n1.00000 2.00000\n0.00000 1.00000\n",
"0.40000 0.20000\n1.30000 -1.00000\n-1.00000 1.00000\n"
] |
CodeContests
|
In olden days finding square roots seemed to be difficult but nowadays it can be easily done using in-built functions available across many languages
.
Assume that you happen to hear the above words and you want to give a try in finding the square root of any given integer using in-built functions. So here's your chance.
Input
The first line of the input contains an integer T, the number of test cases. T lines follow. Each T contains an integer N whose square root needs to be computed.
Output
For each line of input output the square root of the input integer.
Constraints
1<=T<=20
1<=N<=10000
Input:
3
10
5
10000
Output:
3
2
100
|
stdin
| null | 3,658
| 1
|
[
"3\n10\n5\n10000\n"
] |
[
"3\n2\n100\n"
] |
[
"3\n10\n5\n10010\n",
"3\n1\n5\n10000\n",
"3\n1\n11\n10000\n",
"3\n1\n2\n10000\n",
"3\n10\n2\n10100\n",
"3\n1\n12\n11100\n",
"3\n1\n17\n10000\n",
"3\n2\n6\n11100\n",
"3\n16\n2\n10000\n",
"3\n19\n5\n10001\n"
] |
[
"3\n2\n100\n",
"1\n2\n100\n",
"1\n3\n100\n",
"1\n1\n100\n",
"3\n1\n100\n",
"1\n3\n105\n",
"1\n4\n100\n",
"1\n2\n105\n",
"4\n1\n100\n",
"4\n2\n100\n"
] |
CodeContests
|
Reordering the Documents
Susan is good at arranging her dining table for convenience, but not her office desk.
Susan has just finished the paperwork on a set of documents, which are still piled on her desk. They have serial numbers and were stacked in order when her boss brought them in. The ordering, however, is not perfect now, as she has been too lazy to put the documents slid out of the pile back to their proper positions. Hearing that she has finished, the boss wants her to return the documents immediately in the document box he is sending her. The documents should be stowed in the box, of course, in the order of their serial numbers.
The desk has room just enough for two more document piles where Susan plans to make two temporary piles. All the documents in the current pile are to be moved one by one from the top to either of the two temporary piles. As making these piles too tall in haste would make them tumble, not too many documents should be placed on them. After moving all the documents to the temporary piles and receiving the document box, documents in the two piles will be moved from their tops, one by one, into the box. Documents should be in reverse order of their serial numbers in the two piles to allow moving them to the box in order.
For example, assume that the pile has six documents #1, #3, #4, #2, #6, and #5, in this order from the top, and that the temporary piles can have no more than three documents. Then, she can form two temporary piles, one with documents #6, #4, and #3, from the top, and the other with #5, #2, and #1 (Figure E.1). Both of the temporary piles are reversely ordered. Then, comparing the serial numbers of documents on top of the two temporary piles, one with the larger number (#6, in this case) is to be removed and stowed into the document box first. Repeating this, all the documents will be perfectly ordered in the document box.
<image>
Figure E.1. Making two temporary piles
Susan is wondering whether the plan is actually feasible with the documents in the current pile and, if so, how many different ways of stacking them to two temporary piles would do. You are asked to help Susan by writing a program to compute the number of different ways, which should be zero if the plan is not feasible.
As each of the documents in the pile can be moved to either of the two temporary piles, for $n$ documents, there are $2^n$ different choice combinations in total, but some of them may disturb the reverse order of the temporary piles and are thus inappropriate.
The example described above corresponds to the first case of the sample input. In this case, the last two documents, #5 and #6, can be swapped their destinations. Also, exchanging the roles of two temporary piles totally will be OK. As any other move sequences would make one of the piles higher than three and/or make them out of order, the total number of different ways of stacking documents to temporary piles in this example is $2 \times 2 = 4$.
Input
The input consists of a single test case of the following format.
$n$ $m$
$s_1$ ... $s_n$
Here, $n$ is the number of documents in the pile ($1 \leq n \leq 5000$), and $m$ is the number of documents that can be stacked in one temporary pile without committing risks of making it tumble down ($n/2 \leq m \leq n$). Numbers $s_1$ through $s_n$ are the serial numbers of the documents in the document pile, from its top to its bottom. It is guaranteed that all the numbers $1$ through $n$ appear exactly once.
Output
Output a single integer in a line which is the number of ways to form two temporary piles suited for the objective. When no choice will do, the number of ways is $0$, of course.
If the number of possible ways is greater than or equal to $10^9 + 7$, output the number of ways modulo $10^9 + 7$.
Sample Input 1
6 3
1 3 4 2 6 5
Sample Output 1
4
Sample Input 2
6 6
1 3 4 2 6 5
Sample Output 2
8
Sample Input 3
4 4
4 3 1 2
Sample Output 3
0
Example
Input
6 3
1 3 4 2 6 5
Output
4
|
stdin
| null | 3,406
| 1
|
[
"6 3\n1 3 4 2 6 5\n"
] |
[
"4\n"
] |
[
"6 3\n1 5 4 2 6 5\n",
"2 1\n0 1 -1 1 -1 -1\n",
"6 3\n1 5 4 2 0 5\n",
"6 3\n1 5 4 2 0 2\n",
"6 3\n1 5 4 2 0 3\n",
"6 3\n1 5 4 4 0 3\n",
"6 3\n1 5 4 1 0 3\n",
"6 3\n1 5 1 1 0 3\n",
"6 3\n1 5 1 1 0 0\n",
"11 3\n1 5 4 2 0 5\n"
] |
[
"0\n",
"2\n",
"0\n",
"0\n",
"0\n",
"0\n",
"0\n",
"0\n",
"0\n",
"0\n"
] |
CodeContests
|
Description
THE BY DOLM @ STER is a training simulation game scheduled to be released on EXIDNA by 1rem on April 1, 2010. For the time being, it probably has nothing to do with an arcade game where the network connection service stopped earlier this month.
This game is a game in which members of the unit (formation) to be produced are selected from the bidders, and through lessons and communication with the members, they (they) are raised to the top of the bidders, the top biddles.
Each bidle has three parameters, vocal, dance, and looks, and the unit's ability score is the sum of all the parameters of the biddles that belong to the unit. The highest of the three stats of a unit is the rank of the unit.
There is no limit to the number of people in a unit, and you can work as a unit with one, three, or 100 members. Of course, you can hire more than one of the same bidle, but hiring a bidle is expensive and must be taken into account.
As a producer, you decided to write and calculate a program to make the best unit.
Input
The input consists of multiple test cases.
The first line of each test case is given the number N of bid dollars and the available cost M. (1 <= N, M <= 300) The next 2 * N lines contain information about each bidle.
The name of the bidle is on the first line of the bidle information. Biddle names consist of alphabets and spaces, with 30 characters or less. Also, there is no bidle with the same name.
The second line is given the integers C, V, D, L. C is the cost of hiring one Biddle, V is the vocal, D is the dance, and L is the stat of the looks. (1 <= C, V, D, L <= 300)
Input ends with EOF.
Output
Answer the maximum rank of units that can be made within the given cost.
If you cannot make a unit, output 0.
Example
Input
3 10
Dobkeradops
7 5 23 10
PataPata
1 1 2 1
dop
5 3 11 14
2 300
Bydo System Alpha
7 11 4 7
Green Inferno
300 300 300 300
Output
29
462
|
stdin
| null | 2,617
| 1
|
[
"3 10\nDobkeradops\n7 5 23 10\nPataPata\n1 1 2 1\ndop\n5 3 11 14\n2 300\nBydo System Alpha\n7 11 4 7\nGreen Inferno\n300 300 300 300\n"
] |
[
"29\n462\n"
] |
[
"3 10\nDobkeradops\n7 5 23 10\nPataPata\n1 1 2 1\ndop\n5 3 11 14\n2 300\nBydp System Alpha\n7 11 4 7\nGreen Inferno\n300 300 300 300\n",
"3 10\nDobkeradops\n7 5 23 10\nPataPata\n1 1 2 1\ndop\n5 7 21 14\n2 300\nBydp System Alpha\n7 11 4 7\nGreen Inferno\n300 300 300 300\n",
"3 10\nDobkeradops\n7 5 23 10\nPataPata\n1 1 2 1\ndop\n5 9 21 13\n2 300\nBydp System Alpha\n7 11 4 7\nGreen Inferno\n300 300 300 493\n",
"3 10\nDobkeradops\n7 3 23 11\nPataPata\n1 1 3 1\ndop\n5 17 7 13\n2 300\nBydp System Alpha\n7 11 4 7\nGreen Inferno\n300 219 32 493\n",
"3 18\nDobkeradops\n7 2 6 13\nPataPata\n1 1 3 1\ndop\n5 17 9 15\n2 300\npdyB Stsyem Alpha\n7 11 4 7\nGreen Inferno\n300 219 32 493\n",
"3 10\nDobkeradops\n7 5 23 10\nPataPata\n1 1 2 1\ndop\n1 7 11 14\n2 300\nBydp System Alpha\n7 11 4 7\nGreen Inferno\n300 300 300 300\n",
"3 10\nDobkeradops\n7 3 23 11\nPataPata\n1 1 3 1\ndop\n5 9 21 13\n2 300\nBydp System Alpha\n7 11 4 7\nGreen Inferno\n277 219 32 493\n",
"3 10\nDobkeradops\n7 3 23 11\nPataPata\n1 1 3 1\ndop\n9 17 21 13\n2 300\nBydp System Alpha\n7 11 4 7\nGreen Inferno\n300 219 32 493\n",
"3 2\nDobkeradops\n7 1 23 11\nPataPata\n1 1 3 1\ndop\n5 17 7 15\n2 300\nBydp System Alpha\n7 11 4 7\nGreen Inferno\n300 219 32 493\n",
"3 18\nDobkeradops\n7 2 6 13\nPataPata\n1 2 3 1\ndop\n5 17 9 15\n2 300\npdyB Stsyem Alpha\n7 11 4 7\nGreen Inferno\n300 219 32 493\n"
] |
[
"29\n462\n",
"42\n462\n",
"42\n493\n",
"34\n493\n",
"54\n493\n",
"140\n462\n",
"42\n514\n",
"32\n493\n",
"6\n493\n",
"57\n493\n"
] |
CodeContests
|
There are N points on the 2D plane, i-th of which is located on (x_i, y_i). There can be multiple points that share the same coordinate. What is the maximum possible Manhattan distance between two distinct points?
Here, the Manhattan distance between two points (x_i, y_i) and (x_j, y_j) is defined by |x_i-x_j| + |y_i-y_j|.
Constraints
* 2 \leq N \leq 2 \times 10^5
* 1 \leq x_i,y_i \leq 10^9
* All values in input are integers.
Input
Input is given from Standard Input in the following format:
N
x_1 y_1
x_2 y_2
:
x_N y_N
Output
Print the answer.
Examples
Input
3
1 1
2 4
3 2
Output
4
Input
2
1 1
1 1
Output
0
|
stdin
| null | 3,075
| 1
|
[
"3\n1 1\n2 4\n3 2\n",
"2\n1 1\n1 1\n"
] |
[
"4\n",
"0\n"
] |
[
"3\n1 2\n2 4\n3 2\n",
"2\n0 1\n1 1\n",
"2\n0 0\n1 1\n",
"3\n1 2\n1 4\n3 1\n",
"2\n0 -1\n1 2\n",
"3\n0 0\n1 4\n6 1\n",
"3\n0 0\n2 4\n6 1\n",
"3\n0 0\n2 4\n9 1\n",
"3\n0 0\n2 5\n9 1\n",
"3\n-1 0\n2 5\n9 0\n"
] |
[
"3\n",
"1\n",
"2\n",
"5\n",
"4\n",
"8\n",
"7\n",
"10\n",
"11\n",
"12\n"
] |
CodeContests
|
Jiro is a fun loving lad. His classmates are very competitive and are striving for getting a good rank, while he loves seeing them fight for it. The results are going to be out soon. He is anxious to know what is the rank of each of his classmates.
Rank of i'th student = 1+ (Number of students having strictly greater marks than him. Students with equal marks are ranked same.)
Can you help Jiro figure out rank of all his classmates?
Input:
The first line contains an integer N, denoting the number of students in the class.
The second line contains N space separated integers, Mi are the marks of the i'th student.
Ouput:
Print N space separated integers i.e., ranks of the students in a new line.
Constraints:
1 ≤ N ≤ 1000
1 ≤ Mi ≤ 1000
SAMPLE INPUT
4
62 96 82 55
SAMPLE OUTPUT
3 1 2 4
|
stdin
| null | 52
| 1
|
[
"4\n62 96 82 55\n\nSAMPLE\n"
] |
[
"3 1 2 4\n"
] |
[
"384\n87 78 16 94 36 87 93 50 22 63 28 91 60 64 27 41 27 73 37 12 69 68 30 83 31 63 24 68 36 30 3 23 59 70 68 94 57 12 43 30 74 22 20 85 38 99 25 16 71 14 27 92 81 57 74 63 71 97 82 6 26 85 28 37 6 47 30 14 58 25 96 83 46 15 68 35 65 44 51 88 9 77 79 89 85 4 52 55 100 33 61 77 69 40 13 27 87 95 40 96 71 35 79 68 2 98 3 18 93 53 57 2 81 87 42 66 90 45 20 41 30 32 18 98 72 82 76 10 28 68 57 98 54 87 66 7 84 20 25 29 72 33 30 4 20 71 69 9 16 41 50 97 24 19 46 47 52 22 56 80 89 65 29 42 51 94 1 35 65 25 15 88 57 44 92 28 66 60 37 33 52 38 29 76 8 75 22 59 96 30 38 36 94 19 29 44 12 29 30 77 5 44 64 14 39 7 41 5 19 29 89 70 18 18 97 25 44 71 84 91 100 73 26 45 91 6 40 55 87 70 83 43 65 98 8 56 5 49 12 23 29 100 44 47 69 41 23 12 11 6 2 62 31 79 6 21 37 45 27 23 66 9 17 83 59 25 38 63 25 1 37 53 100 80 51 69 72 74 32 82 31 34 95 61 64 100 82 100 97 60 74 14 69 91 96 27 67 85 41 91 85 77 43 37 8 46 57 80 19 88 13 49 73 60 10 37 11 43 88 7 2 14 73 22 56 20 100 22 5 40 12 41 68 6 29 8 51 85 59 21 25 23 70 97 82 31 85 93 73 73 51 26 86 23 100 41 43 99 14 99 91 25 91 10 82 20 37 33 56 95 5 80 70 74 77 51 56 61 43 80 85 94 6 22\n",
"1000\n897 704 678 132 783 902 760 689 765 513 148 647 697 877 326 757 589 871 760 560 261 884 819 947 802 414 784 386 332 984 625 229 984 599 558 766 501 614 454 562 126 799 208 119 973 732 776 858 602 833 417 160 716 236 106 814 847 790 496 178 773 121 307 153 917 161 819 714 675 570 573 998 368 681 117 637 709 189 495 608 318 812 668 934 344 971 748 190 760 243 269 829 561 773 882 775 835 998 488 806 864 961 804 528 939 217 165 944 603 560 848 822 668 812 151 913 782 195 102 838 636 568 667 196 341 845 267 472 238 953 574 101 309 674 530 544 791 892 488 691 451 632 512 415 444 563 327 225 659 627 964 591 491 927 984 128 167 251 500 306 203 371 604 412 945 133 253 736 321 641 723 969 272 234 384 913 994 611 138 949 534 398 539 926 621 523 954 688 674 751 894 173 121 795 782 966 828 935 998 149 872 720 117 441 250 698 353 244 606 688 489 139 382 929 361 903 748 612 591 718 362 781 791 680 575 869 942 700 200 940 145 368 956 459 105 503 157 359 944 663 343 432 999 626 657 360 825 404 872 415 121 530 493 208 209 968 374 150 964 474 386 108 138 639 765 144 141 822 700 381 781 943 713 779 865 370 435 690 971 306 401 993 132 794 497 241 762 771 589 121 541 271 130 580 810 795 921 247 913 620 528 693 562 538 768 724 204 203 413 174 706 714 463 135 508 861 573 566 928 161 587 766 630 914 642 736 104 562 884 917 181 708 906 940 542 971 663 646 470 372 117 472 987 480 507 791 637 981 356 565 438 239 330 968 450 872 704 454 730 884 668 811 888 870 146 430 840 710 372 309 378 389 979 364 770 485 451 406 465 103 267 804 243 794 167 593 962 167 343 691 951 911 798 235 177 845 565 917 851 233 523 228 523 501 790 589 886 240 291 648 244 459 748 684 252 211 573 214 279 816 201 229 123 900 364 200 744 225 413 891 359 836 118 178 633 204 667 816 345 858 463 786 613 507 469 162 618 942 573 797 153 674 323 176 573 884 276 613 109 590 503 665 722 819 139 355 923 706 170 564 860 830 349 473 336 114 832 250 956 404 948 109 978 567 482 848 450 659 460 756 545 260 420 266 375 459 818 594 461 888 158 321 113 704 991 349 719 822 500 971 225 744 980 499 310 462 346 660 417 103 416 862 560 132 424 835 789 242 428 546 426 783 163 440 487 153 986 502 271 782 472 693 822 749 489 131 507 735 989 220 134 701 378 594 129 702 725 214 240 450 661 864 232 724 303 916 174 585 417 642 664 186 335 485 231 724 517 638 755 802 758 790 502 135 680 828 133 702 943 274 151 603 137 580 623 637 496 697 518 209 339 181 592 871 567 723 891 380 657 645 181 711 731 880 142 708 103 176 409 946 647 757 845 981 336 765 914 128 461 431 238 997 513 126 263 376 750 153 656 703 996 133 414 726 309 456 730 312 829 138 555 475 795 696 752 428 460 665 456 218 393 594 511 202 918 675 478 667 124 430 666 119 760 980 142 365 436 772 874 561 207 428 937 298 124 985 626 781 650 983 899 943 873 410 441 790 985 819 753 108 545 419 425 304 695 467 866 427 535 739 889 642 464 825 841 785 809 763 565 755 141 464 994 915 774 434 100 154 549 150 459 994 766 784 594 460 547 459 788 983 198 676 921 562 797 157 346 902 821 207 657 862 571 947 172 641 381 470 992 226 520 451 220 285 531 714 645 375 470 729 654 865 404 574 426 200 632 969 399 749 175 956 907 944 298 980 584 876 449 576 102 265 323 222 747 150 232 391 425 899 120 979 763 721 850 188 218 481 453 517 229 529 769 135 472 967 411 352 843 156 224 845 618 744 363 364 795 792 656 516 691 973 792 453 693 641 839 207 418 291 624 844 116 392 275 785 359 884 137 498 940 261 342 558 906 902 218 997 693 774 809 383 142 600 737 132 537 575 239 855 162 764 995 179 452 270 864 711 153 901 208 389 459 747 243 661 648 362 954 341 432 762 921 772 362 657 804 195 528 339 347 591 399 341 967 752 808 830 462 257 127 868 547 783 911 987 443 559 645 396 196 978 157 116 145 716 971 849 812 795 484 158 682 784 696 648 535 504 775 293 661 802 457 504 584 368 788 323 223 432 916 319 706 973 632 751 986 899 896 193 694 380 548 375 163 243 320 598 944 995 187 902 796 545 405 676 813 489 295 936 822 210 551 824 182 479 575 678 378 470 557 368 146 104 940 209 545 259 103 488\n",
"84\n87 78 16 94 36 87 93 50 22 63 28 91 60 64 27 41 27 73 37 12 69 68 30 83 31 63 24 68 36 30 3 23 59 70 36 94 57 12 43 30 74 22 20 85 38 99 25 16 71 14 27 92 81 57 74 63 71 97 82 6 26 85 28 37 6 47 30 14 58 25 96 83 46 15 68 35 65 44 51 88 9 77 79 89\n",
"4\n62 179 82 55\n\nSAMPLE\n",
"384\n87 78 16 94 36 87 93 50 22 63 28 91 60 64 27 41 27 73 37 12 69 68 30 83 31 63 24 68 36 30 3 23 59 70 68 94 57 12 43 30 74 22 20 85 38 99 25 16 71 5 27 92 81 57 74 63 71 97 82 6 26 85 28 37 6 47 30 14 58 25 96 83 46 15 68 35 65 44 51 88 9 77 79 89 85 4 52 55 100 33 61 77 69 40 13 27 87 95 40 96 71 35 79 68 2 98 3 18 93 53 57 2 81 87 42 66 90 45 20 41 30 32 18 98 72 82 76 10 28 68 57 98 54 87 66 7 84 20 25 29 72 33 30 4 20 71 69 9 16 41 50 97 24 19 46 47 52 22 56 80 89 65 29 42 51 94 1 35 65 25 15 88 57 44 92 28 66 60 37 33 52 38 29 76 8 75 22 59 96 30 38 36 94 19 29 44 12 29 30 77 5 44 64 14 39 7 41 5 19 29 89 70 18 18 97 25 44 71 84 91 100 73 26 45 91 6 40 55 87 70 83 43 65 98 8 56 5 49 12 23 29 100 44 47 69 41 23 12 11 6 2 62 31 79 6 21 37 45 27 23 66 9 17 83 59 25 38 63 25 1 37 53 100 80 51 69 72 74 32 82 31 34 95 61 64 100 82 100 97 60 74 14 69 91 96 27 67 85 41 91 85 77 43 37 8 46 57 80 19 88 13 49 73 60 10 37 11 43 88 7 2 14 73 22 56 20 100 22 5 40 12 41 68 6 29 8 51 85 59 21 25 23 70 97 82 31 85 93 73 73 51 26 86 23 100 41 43 99 14 99 91 25 91 10 82 20 37 33 56 95 5 80 70 74 77 51 56 61 43 80 85 94 6 22\n",
"1000\n897 704 678 132 783 902 760 689 765 513 148 647 697 877 326 757 589 871 760 560 261 884 819 947 802 414 784 386 332 984 625 229 984 599 558 766 501 614 454 562 126 799 208 119 973 732 776 858 602 833 417 160 716 236 106 695 847 790 496 178 773 121 307 153 917 161 819 714 675 570 573 998 368 681 117 637 709 189 495 608 318 812 668 934 344 971 748 190 760 243 269 829 561 773 882 775 835 998 488 806 864 961 804 528 939 217 165 944 603 560 848 822 668 812 151 913 782 195 102 838 636 568 667 196 341 845 267 472 238 953 574 101 309 674 530 544 791 892 488 691 451 632 512 415 444 563 327 225 659 627 964 591 491 927 984 128 167 251 500 306 203 371 604 412 945 133 253 736 321 641 723 969 272 234 384 913 994 611 138 949 534 398 539 926 621 523 954 688 674 751 894 173 121 795 782 966 828 935 998 149 872 720 117 441 250 698 353 244 606 688 489 139 382 929 361 903 748 612 591 718 362 781 791 680 575 869 942 700 200 940 145 368 956 459 105 503 157 359 944 663 343 432 999 626 657 360 825 404 872 415 121 530 493 208 209 968 374 150 964 474 386 108 138 639 765 144 141 822 700 381 781 943 713 779 865 370 435 690 971 306 401 993 132 794 497 241 762 771 589 121 541 271 130 580 810 795 921 247 913 620 528 693 562 538 768 724 204 203 413 174 706 714 463 135 508 861 573 566 928 161 587 766 630 914 642 736 104 562 884 917 181 708 906 940 542 971 663 646 470 372 117 472 987 480 507 791 637 981 356 565 438 239 330 968 450 872 704 454 730 884 668 811 888 870 146 430 840 710 372 309 378 389 979 364 770 485 451 406 465 103 267 804 243 794 167 593 962 167 343 691 951 911 798 235 177 845 565 917 851 233 523 228 523 501 790 589 886 240 291 648 244 459 748 684 252 211 573 214 279 816 201 229 123 900 364 200 744 225 413 891 359 836 118 178 633 204 667 816 345 858 463 786 613 507 469 162 618 942 573 797 153 674 323 176 573 884 276 613 109 590 503 665 722 819 139 355 923 706 170 564 860 830 349 473 336 114 832 250 956 404 948 109 978 567 482 848 450 659 460 756 545 260 420 266 375 459 818 594 461 888 158 321 113 704 991 349 719 822 500 971 225 744 980 499 310 462 346 660 417 103 416 862 560 132 424 835 789 242 428 546 426 783 163 440 487 153 986 502 271 782 472 693 822 749 489 131 507 735 989 220 134 701 378 594 129 702 725 214 240 450 661 864 232 724 303 916 174 585 417 642 664 186 335 485 231 724 517 638 755 802 758 790 502 135 680 828 133 702 943 274 151 603 137 580 623 637 496 697 518 209 339 181 592 871 567 723 891 380 657 645 181 711 731 880 142 708 103 176 409 946 647 757 845 981 336 765 914 128 461 431 238 997 513 126 263 376 750 153 656 703 996 133 414 726 309 456 730 312 829 138 555 475 795 696 752 428 460 665 456 218 393 594 511 202 918 675 478 667 124 430 666 119 760 980 142 365 436 772 874 561 207 428 937 298 124 985 626 781 650 983 899 943 873 410 441 790 985 819 753 108 545 419 425 304 695 467 866 427 535 739 889 642 464 825 841 785 809 763 565 755 141 464 994 915 774 434 100 154 549 150 459 994 766 784 594 460 547 459 788 983 198 676 921 562 797 157 346 902 821 207 657 862 571 947 172 641 381 470 992 226 520 451 220 285 531 714 645 375 470 729 654 865 404 574 426 200 632 969 399 749 175 956 907 944 298 980 584 876 449 576 102 265 323 222 747 150 232 391 425 899 120 979 763 721 850 188 218 481 453 517 229 529 769 135 472 967 411 352 843 156 224 845 618 744 363 364 795 792 656 516 691 973 792 453 693 641 839 207 418 291 624 844 116 392 275 785 359 884 137 498 940 261 342 558 906 902 218 997 693 774 809 383 142 600 737 132 537 575 239 855 162 764 995 179 452 270 864 711 153 901 208 389 459 747 243 661 648 362 954 341 432 762 921 772 362 657 804 195 528 339 347 591 399 341 967 752 808 830 462 257 127 868 547 783 911 987 443 559 645 396 196 978 157 116 145 716 971 849 812 795 484 158 682 784 696 648 535 504 775 293 661 802 457 504 584 368 788 323 223 432 916 319 706 973 632 751 986 899 896 193 694 380 548 375 163 243 320 598 944 995 187 902 796 545 405 676 813 489 295 936 822 210 551 824 182 479 575 678 378 470 557 368 146 104 940 209 545 259 103 488\n",
"84\n87 78 16 94 36 87 93 50 22 63 28 91 60 64 27 41 27 73 37 12 69 68 30 83 31 63 24 68 36 30 3 23 59 70 36 158 57 12 43 30 74 22 20 85 38 99 25 16 71 14 27 92 81 57 74 63 71 97 82 6 26 85 28 37 6 47 30 14 58 25 96 83 46 15 68 35 65 44 51 88 9 77 79 89\n",
"384\n87 78 16 94 36 87 93 50 22 63 28 91 60 64 27 41 27 73 37 12 69 68 30 163 31 63 24 68 36 30 3 23 59 70 68 94 57 12 43 30 74 22 20 85 38 99 25 16 71 5 27 92 81 57 74 63 71 97 82 6 26 85 28 37 6 47 30 14 58 25 96 83 46 15 68 35 65 44 51 88 9 77 79 89 85 4 52 55 100 33 61 77 69 40 13 27 87 95 40 96 71 35 79 68 2 98 3 18 93 53 57 2 81 87 42 66 90 45 20 41 30 32 18 98 72 82 76 10 28 68 57 98 54 87 66 7 84 20 25 29 72 33 30 4 20 71 69 9 16 41 50 97 24 19 46 47 52 22 56 80 89 65 29 42 51 94 1 35 65 25 15 88 57 44 92 28 66 60 37 33 52 38 29 76 8 75 22 59 96 30 38 36 94 19 29 44 12 29 30 77 5 44 64 14 39 7 41 5 19 29 89 70 18 18 97 25 44 71 84 91 100 73 26 45 91 6 40 55 87 70 83 43 65 98 8 56 5 49 12 23 29 100 44 47 69 41 23 12 11 6 2 62 31 79 6 21 37 45 27 23 66 9 17 83 59 25 38 63 25 1 37 53 100 80 51 69 72 74 32 82 31 34 95 61 64 100 82 100 97 60 74 14 69 91 96 27 67 85 41 91 85 77 43 37 8 46 57 80 19 88 13 49 73 60 10 37 11 43 88 7 2 14 73 22 56 20 100 22 5 40 12 41 68 6 29 8 51 85 59 21 25 23 70 97 82 31 85 93 73 73 51 26 86 23 100 41 43 99 14 99 91 25 91 10 82 20 37 33 56 95 5 80 70 74 77 51 56 61 43 80 85 94 6 22\n",
"1000\n897 704 678 132 783 902 760 689 765 513 148 647 697 877 326 757 589 871 760 560 261 884 819 947 802 414 784 386 332 984 625 229 984 599 558 766 501 614 454 562 126 799 208 119 973 732 776 858 602 833 417 160 716 236 106 695 847 790 496 178 773 121 307 153 917 161 819 714 675 570 573 998 368 681 117 637 709 189 495 608 318 812 668 934 344 971 748 190 760 243 269 829 561 773 882 775 835 998 488 806 864 961 804 528 939 217 165 944 603 560 848 822 668 812 151 913 782 195 102 838 636 568 667 196 341 845 267 472 238 953 574 101 309 674 530 544 791 892 488 691 451 632 512 415 444 563 327 225 659 627 964 591 491 927 984 128 167 251 500 306 203 371 604 412 945 133 253 736 321 641 723 969 272 234 384 913 994 611 138 949 534 398 539 926 621 523 954 688 674 751 894 173 121 795 782 966 828 935 998 149 872 720 117 441 250 698 353 244 606 688 489 139 382 929 361 903 748 612 591 718 362 781 791 680 575 869 942 700 200 940 145 368 956 459 105 503 157 359 944 663 343 432 999 626 657 360 825 404 872 415 121 530 493 208 209 968 374 150 964 474 386 108 138 639 765 144 141 822 700 381 781 943 713 779 865 370 435 690 971 306 401 993 132 794 497 241 762 771 589 121 541 271 130 580 810 795 921 247 913 620 528 693 562 538 768 724 204 203 413 174 706 714 463 135 508 861 573 566 928 161 587 766 630 914 642 736 104 562 884 917 181 708 906 940 542 971 663 646 470 372 117 472 987 480 507 791 637 981 356 565 438 239 330 968 450 872 704 454 730 884 668 811 888 870 146 430 840 710 372 309 378 389 979 364 770 485 451 406 465 103 267 804 243 794 167 593 962 167 343 691 951 911 798 235 177 845 565 917 851 233 523 228 523 501 790 589 886 240 291 648 244 459 748 684 252 211 573 214 279 816 201 229 123 900 364 200 744 225 413 891 359 836 118 178 633 204 667 816 345 858 463 786 613 507 469 162 618 942 573 797 153 674 323 176 573 884 276 613 109 590 503 665 722 819 139 355 923 706 170 564 860 830 349 473 336 114 832 250 956 404 948 109 978 567 482 848 450 659 460 756 545 260 420 266 375 459 818 594 461 888 158 321 113 704 991 349 719 822 500 971 225 744 980 499 310 462 346 660 417 103 416 862 560 132 424 835 789 242 428 546 426 783 163 440 487 153 986 502 271 782 472 693 822 749 489 131 507 735 989 220 134 701 378 594 129 702 725 214 240 450 661 864 232 724 303 916 174 585 417 642 664 186 335 485 231 724 517 638 755 802 758 790 502 135 680 828 133 702 943 274 151 603 137 580 623 637 496 697 518 209 339 181 592 871 567 723 891 380 657 645 181 711 731 880 142 708 103 176 409 946 647 757 845 981 336 765 914 128 461 431 238 997 513 126 263 376 750 153 656 703 996 133 414 726 309 456 730 312 829 107 555 475 795 696 752 428 460 665 456 218 393 594 511 202 918 675 478 667 124 430 666 119 760 980 142 365 436 772 874 561 207 428 937 298 124 985 626 781 650 983 899 943 873 410 441 790 985 819 753 108 545 419 425 304 695 467 866 427 535 739 889 642 464 825 841 785 809 763 565 755 141 464 994 915 774 434 100 154 549 150 459 994 766 784 594 460 547 459 788 983 198 676 921 562 797 157 346 902 821 207 657 862 571 947 172 641 381 470 992 226 520 451 220 285 531 714 645 375 470 729 654 865 404 574 426 200 632 969 399 749 175 956 907 944 298 980 584 876 449 576 102 265 323 222 747 150 232 391 425 899 120 979 763 721 850 188 218 481 453 517 229 529 769 135 472 967 411 352 843 156 224 845 618 744 363 364 795 792 656 516 691 973 792 453 693 641 839 207 418 291 624 844 116 392 275 785 359 884 137 498 940 261 342 558 906 902 218 997 693 774 809 383 142 600 737 132 537 575 239 855 162 764 995 179 452 270 864 711 153 901 208 389 459 747 243 661 648 362 954 341 432 762 921 772 362 657 804 195 528 339 347 591 399 341 967 752 808 830 462 257 127 868 547 783 911 987 443 559 645 396 196 978 157 116 145 716 971 849 812 795 484 158 682 784 696 648 535 504 775 293 661 802 457 504 584 368 788 323 223 432 916 319 706 973 632 751 986 899 896 193 694 380 548 375 163 243 320 598 944 995 187 902 796 545 405 676 813 489 295 936 822 210 551 824 182 479 575 678 378 470 557 368 146 104 940 209 545 259 103 488\n",
"84\n87 78 16 94 36 87 93 50 22 63 28 91 60 64 27 41 27 73 37 12 69 68 30 83 31 63 24 68 36 30 3 23 59 70 36 158 57 12 43 30 74 22 20 85 31 99 25 16 71 14 27 92 81 57 74 63 71 97 82 6 26 85 28 37 6 47 30 14 58 25 96 83 46 15 68 35 65 44 51 88 9 77 79 89\n"
] |
[
"53 90 329 28 242 53 33 190 305 148 275 38 156 145 279 217 279 104 234 342 123 129 259 70 255 148 297 129 242 259 377 299 160 118 129 28 165 342 209 259 99 305 314 60 230 9 288 329 113 334 279 36 80 165 99 148 113 16 74 363 285 60 275 234 363 194 259 334 164 288 21 70 197 332 129 245 141 203 184 49 353 91 87 46 60 375 181 176 1 249 153 91 123 225 340 279 53 25 225 21 113 245 87 129 379 12 377 324 33 179 165 379 80 53 215 137 45 200 314 217 259 253 324 12 110 74 96 350 275 129 165 12 178 53 137 360 68 314 288 267 110 249 259 375 314 113 123 353 329 217 190 16 297 320 197 194 181 305 171 82 46 141 267 215 184 28 383 245 141 288 332 49 165 203 36 275 137 156 234 249 181 230 267 96 356 98 305 160 21 259 230 242 28 320 267 203 342 267 259 91 370 203 145 334 229 360 217 370 320 267 46 118 324 324 16 288 203 113 68 38 1 104 285 200 38 363 225 176 53 118 70 209 141 12 356 171 370 192 342 299 267 1 203 194 123 217 299 342 348 363 379 152 255 87 363 312 234 200 279 299 137 353 328 70 160 288 230 148 288 383 234 179 1 82 184 123 110 99 253 74 255 248 25 153 145 1 74 1 16 156 99 334 123 38 21 279 136 60 217 38 60 91 209 234 356 197 165 82 320 49 340 192 104 156 350 234 348 209 49 360 379 334 104 305 171 314 1 305 370 225 342 217 129 363 267 356 184 60 160 312 288 299 118 16 74 255 60 33 104 104 184 285 59 299 1 217 209 9 334 9 38 288 38 350 74 314 234 249 171 25 370 82 118 99 91 184 171 153 209 82 60 28 363 305\n",
"122 351 383 955 254 113 288 375 280 557 930 421 361 139 763 293 478 146 288 515 803 132 200 65 221 677 251 700 760 23 447 835 23 466 519 277 571 454 632 509 965 224 859 975 37 319 264 161 464 183 671 911 336 828 989 207 169 241 578 890 269 970 777 919 96 909 200 338 387 499 493 2 721 380 978 435 345 881 580 459 771 209 392 86 748 40 306 880 288 816 797 187 513 269 137 265 181 2 586 217 154 55 218 546 82 851 904 69 462 515 167 194 392 209 924 104 257 877 997 179 438 500 395 875 752 170 798 601 826 61 491 999 774 389 543 533 238 125 586 371 637 440 559 675 644 508 762 840 408 444 52 474 582 89 23 962 901 810 573 778 867 719 461 681 68 952 808 316 767 430 329 45 793 830 702 104 10 458 943 63 541 693 536 90 450 549 59 376 389 301 124 898 970 229 257 51 189 85 2 929 143 333 978 646 811 360 740 814 460 376 583 941 704 87 733 112 306 457 474 335 730 260 238 381 488 149 76 358 871 78 933 721 56 623 990 567 914 735 69 402 749 653 1 445 410 734 191 687 143 675 970 543 581 859 856 47 716 926 52 599 700 987 943 433 280 935 939 194 358 705 260 73 341 263 152 720 651 374 40 778 690 13 955 234 577 821 286 273 478 970 535 794 960 485 213 229 92 813 104 451 546 367 509 537 276 326 865 867 679 896 348 338 614 948 561 159 493 503 88 909 481 277 443 102 427 316 991 509 132 96 886 346 110 78 534 40 402 423 605 717 978 601 17 595 562 238 435 28 738 504 649 824 761 47 640 143 351 632 321 132 392 212 129 148 931 657 177 344 717 774 709 698 33 726 274 590 637 685 611 993 798 218 816 234 901 472 54 901 749 371 62 107 225 829 892 170 504 96 164 831 549 838 549 571 241 478 131 822 786 418 814 623 306 378 809 854 493 852 789 205 870 835 969 118 726 871 311 840 679 126 735 180 977 890 439 865 395 205 747 161 614 248 455 562 609 907 452 76 493 226 919 389 764 893 493 132 790 455 985 477 567 399 331 200 941 739 91 348 900 507 160 185 742 600 757 983 184 811 56 687 64 985 35 501 593 167 640 408 620 295 529 805 668 800 713 623 204 468 618 129 912 767 984 351 15 742 334 194 573 40 840 311 30 575 773 616 745 407 671 993 674 157 515 955 667 181 245 820 659 528 663 254 905 648 589 919 19 569 794 257 601 367 194 304 583 959 562 318 16 846 951 357 709 468 961 355 325 852 822 640 404 154 832 326 781 99 896 482 671 427 401 884 759 590 834 326 554 434 296 221 292 241 569 948 381 189 952 355 73 792 924 462 946 485 449 435 578 361 553 856 755 886 473 146 501 329 126 707 410 424 886 342 320 138 936 346 993 893 684 67 421 293 170 28 757 280 102 962 618 656 826 5 557 965 802 712 303 919 414 354 7 952 677 324 774 630 321 772 187 943 522 598 229 363 299 659 620 399 630 848 695 468 560 869 95 387 597 395 967 657 398 975 288 30 936 725 650 271 141 513 862 659 83 782 967 21 445 260 417 26 119 73 142 683 646 241 21 200 298 987 529 669 665 780 365 610 151 662 539 314 128 427 612 191 176 249 214 284 504 296 939 612 10 101 267 652 1000 918 524 926 623 10 277 251 468 620 526 623 246 26 874 385 92 509 226 914 745 113 199 862 410 157 498 65 899 430 705 605 14 839 552 637 846 788 542 338 424 713 605 323 416 152 687 491 663 871 440 45 691 304 895 56 109 69 782 30 483 140 643 487 997 801 764 845 309 926 832 697 665 119 974 33 284 332 165 882 848 594 634 554 835 545 275 948 601 49 682 741 175 917 843 170 452 311 729 726 229 236 414 556 371 37 236 634 367 430 178 862 670 786 448 174 981 696 791 249 735 132 946 576 78 803 751 519 110 113 848 5 367 267 214 703 936 465 315 955 538 488 824 163 907 283 8 889 636 796 154 342 919 117 859 698 623 309 816 404 418 730 59 752 653 286 92 271 730 410 218 877 546 755 744 474 691 752 49 299 216 185 616 807 964 150 526 254 107 17 645 518 424 694 875 35 914 981 933 336 40 166 209 229 592 912 379 251 363 418 539 565 265 785 404 221 629 565 483 721 246 764 844 653 99 770 348 37 440 301 19 119 123 879 366 707 525 713 905 816 769 467 69 8 883 113 228 529 686 385 208 583 784 84 194 855 523 193 885 596 488 383 709 605 521 721 931 991 78 856 529 806 993 586\n",
"11 20 74 4 52 11 6 43 71 34 61 8 37 33 63 48 63 24 50 79 28 29 57 15 56 34 69 29 52 57 84 70 38 27 52 4 40 79 47 57 22 71 73 13 49 1 67 74 25 77 63 7 18 40 22 34 25 2 17 82 66 13 61 50 82 44 57 77 39 67 3 15 45 76 29 55 32 46 42 10 81 21 19 9\n",
"3 1 2 4\n",
"53 90 329 28 242 53 33 190 305 148 275 38 156 145 279 217 279 104 234 341 123 129 259 70 255 148 297 129 242 259 377 299 160 118 129 28 165 341 209 259 99 305 314 60 230 9 288 329 113 369 279 36 80 165 99 148 113 16 74 362 285 60 275 234 362 194 259 334 164 288 21 70 197 332 129 245 141 203 184 49 352 91 87 46 60 375 181 176 1 249 153 91 123 225 339 279 53 25 225 21 113 245 87 129 379 12 377 324 33 179 165 379 80 53 215 137 45 200 314 217 259 253 324 12 110 74 96 349 275 129 165 12 178 53 137 359 68 314 288 267 110 249 259 375 314 113 123 352 329 217 190 16 297 320 197 194 181 305 171 82 46 141 267 215 184 28 383 245 141 288 332 49 165 203 36 275 137 156 234 249 181 230 267 96 355 98 305 160 21 259 230 242 28 320 267 203 341 267 259 91 369 203 145 334 229 359 217 369 320 267 46 118 324 324 16 288 203 113 68 38 1 104 285 200 38 362 225 176 53 118 70 209 141 12 355 171 369 192 341 299 267 1 203 194 123 217 299 341 347 362 379 152 255 87 362 312 234 200 279 299 137 352 328 70 160 288 230 148 288 383 234 179 1 82 184 123 110 99 253 74 255 248 25 153 145 1 74 1 16 156 99 334 123 38 21 279 136 60 217 38 60 91 209 234 355 197 165 82 320 49 339 192 104 156 349 234 347 209 49 359 379 334 104 305 171 314 1 305 369 225 341 217 129 362 267 355 184 60 160 312 288 299 118 16 74 255 60 33 104 104 184 285 59 299 1 217 209 9 334 9 38 288 38 349 74 314 234 249 171 25 369 82 118 99 91 184 171 153 209 82 60 28 362 305\n",
"122 350 383 955 253 113 287 375 279 557 930 421 360 139 763 292 478 146 287 515 803 132 200 65 220 677 250 700 760 23 447 835 23 466 519 276 571 454 632 509 965 223 859 975 37 318 263 161 464 183 671 911 335 828 989 364 169 240 578 890 268 970 777 919 96 909 200 337 387 499 493 2 721 380 978 435 344 881 580 459 771 208 392 86 748 40 305 880 287 816 797 187 513 268 137 264 181 2 586 216 154 55 217 546 82 851 904 69 462 515 167 194 392 208 924 104 256 877 997 179 438 500 395 875 752 170 798 601 826 61 491 999 774 389 543 533 237 125 586 371 637 440 559 675 644 508 762 840 408 444 52 474 582 89 23 962 901 810 573 778 867 719 461 681 68 952 808 315 767 430 328 45 793 830 702 104 10 458 943 63 541 693 536 90 450 549 59 376 389 300 124 898 970 228 256 51 189 85 2 929 143 332 978 646 811 359 740 814 460 376 583 941 704 87 733 112 305 457 474 334 730 259 237 381 488 149 76 357 871 78 933 721 56 623 990 567 914 735 69 402 749 653 1 445 410 734 191 687 143 675 970 543 581 859 856 47 716 926 52 599 700 987 943 433 279 935 939 194 357 705 259 73 340 262 152 720 651 374 40 778 690 13 955 233 577 821 285 272 478 970 535 794 960 485 212 228 92 813 104 451 546 367 509 537 275 325 865 867 679 896 347 337 614 948 561 159 493 503 88 909 481 276 443 102 427 315 991 509 132 96 886 345 110 78 534 40 402 423 605 717 978 601 17 595 562 237 435 28 738 504 649 824 761 47 640 143 350 632 320 132 392 211 129 148 931 657 177 343 717 774 709 698 33 726 273 590 637 685 611 993 798 217 816 233 901 472 54 901 749 371 62 107 224 829 892 170 504 96 164 831 549 838 549 571 240 478 131 822 786 418 814 623 305 378 809 854 493 852 789 205 870 835 969 118 726 871 310 840 679 126 735 180 977 890 439 865 395 205 747 161 614 247 455 562 609 907 452 76 493 225 919 389 764 893 493 132 790 455 985 477 567 399 330 200 941 739 91 347 900 507 160 185 742 600 757 983 184 811 56 687 64 985 35 501 593 167 640 408 620 294 529 805 668 800 713 623 204 468 618 129 912 767 984 350 15 742 333 194 573 40 840 310 30 575 773 616 745 407 671 993 674 157 515 955 667 181 244 820 659 528 663 253 905 648 589 919 19 569 794 256 601 367 194 303 583 959 562 317 16 846 951 356 709 468 961 354 324 852 822 640 404 154 832 325 781 99 896 482 671 427 401 884 759 590 834 325 554 434 295 220 291 240 569 948 381 189 952 354 73 792 924 462 946 485 449 435 578 360 553 856 755 886 473 146 501 328 126 707 410 424 886 341 319 138 936 345 993 893 684 67 421 292 170 28 757 279 102 962 618 656 826 5 557 965 802 712 302 919 414 353 7 952 677 323 774 630 320 772 187 943 522 598 228 362 298 659 620 399 630 848 695 468 560 869 95 387 597 395 967 657 398 975 287 30 936 725 650 270 141 513 862 659 83 782 967 21 445 259 417 26 119 73 142 683 646 240 21 200 297 987 529 669 665 780 364 610 151 662 539 313 128 427 612 191 176 248 213 283 504 295 939 612 10 101 266 652 1000 918 524 926 623 10 276 250 468 620 526 623 245 26 874 385 92 509 225 914 745 113 199 862 410 157 498 65 899 430 705 605 14 839 552 637 846 788 542 337 424 713 605 322 416 152 687 491 663 871 440 45 691 303 895 56 109 69 782 30 483 140 643 487 997 801 764 845 308 926 832 697 665 119 974 33 283 331 165 882 848 594 634 554 835 545 274 948 601 49 682 741 175 917 843 170 452 310 729 726 228 235 414 556 371 37 235 634 367 430 178 862 670 786 448 174 981 696 791 248 735 132 946 576 78 803 751 519 110 113 848 5 367 266 213 703 936 465 314 955 538 488 824 163 907 282 8 889 636 796 154 341 919 117 859 698 623 308 816 404 418 730 59 752 653 285 92 270 730 410 217 877 546 755 744 474 691 752 49 298 215 185 616 807 964 150 526 253 107 17 645 518 424 694 875 35 914 981 933 335 40 166 208 228 592 912 379 250 362 418 539 565 264 785 404 220 629 565 483 721 245 764 844 653 99 770 347 37 440 300 19 119 123 879 366 707 525 713 905 816 769 467 69 8 883 113 227 529 686 385 207 583 784 84 194 855 523 193 885 596 488 383 709 605 521 721 931 991 78 856 529 806 993 586\n",
"11 20 74 5 52 11 6 43 71 34 61 8 37 33 63 48 63 24 50 79 28 29 57 15 56 34 69 29 52 57 84 70 38 27 52 1 40 79 47 57 22 71 73 13 49 2 67 74 25 77 63 7 18 40 22 34 25 3 17 82 66 13 61 50 82 44 57 77 39 67 4 15 45 76 29 55 32 46 42 10 81 21 19 9\n",
"54 90 329 29 242 54 34 190 305 148 275 39 156 145 279 217 279 104 234 341 123 129 259 1 255 148 297 129 242 259 377 299 160 118 129 29 165 341 209 259 99 305 314 61 230 10 288 329 113 369 279 37 80 165 99 148 113 17 74 362 285 61 275 234 362 194 259 334 164 288 22 71 197 332 129 245 141 203 184 50 352 91 87 47 61 375 181 176 2 249 153 91 123 225 339 279 54 26 225 22 113 245 87 129 379 13 377 324 34 179 165 379 80 54 215 137 46 200 314 217 259 253 324 13 110 74 96 349 275 129 165 13 178 54 137 359 69 314 288 267 110 249 259 375 314 113 123 352 329 217 190 17 297 320 197 194 181 305 171 82 47 141 267 215 184 29 383 245 141 288 332 50 165 203 37 275 137 156 234 249 181 230 267 96 355 98 305 160 22 259 230 242 29 320 267 203 341 267 259 91 369 203 145 334 229 359 217 369 320 267 47 118 324 324 17 288 203 113 69 39 2 104 285 200 39 362 225 176 54 118 71 209 141 13 355 171 369 192 341 299 267 2 203 194 123 217 299 341 347 362 379 152 255 87 362 312 234 200 279 299 137 352 328 71 160 288 230 148 288 383 234 179 2 82 184 123 110 99 253 74 255 248 26 153 145 2 74 2 17 156 99 334 123 39 22 279 136 61 217 39 61 91 209 234 355 197 165 82 320 50 339 192 104 156 349 234 347 209 50 359 379 334 104 305 171 314 2 305 369 225 341 217 129 362 267 355 184 61 160 312 288 299 118 17 74 255 61 34 104 104 184 285 60 299 2 217 209 10 334 10 39 288 39 349 74 314 234 249 171 26 369 82 118 99 91 184 171 153 209 82 61 29 362 305\n",
"122 350 383 954 253 113 287 375 279 557 930 421 360 139 763 292 478 146 287 515 803 132 200 65 220 677 250 700 760 23 447 835 23 466 519 276 571 454 632 509 964 223 859 974 37 318 263 161 464 183 671 911 335 828 989 364 169 240 578 890 268 969 777 919 96 909 200 337 387 499 493 2 721 380 977 435 344 881 580 459 771 208 392 86 748 40 305 880 287 816 797 187 513 268 137 264 181 2 586 216 154 55 217 546 82 851 904 69 462 515 167 194 392 208 924 104 256 877 997 179 438 500 395 875 752 170 798 601 826 61 491 999 774 389 543 533 237 125 586 371 637 440 559 675 644 508 762 840 408 444 52 474 582 89 23 961 901 810 573 778 867 719 461 681 68 951 808 315 767 430 328 45 793 830 702 104 10 458 943 63 541 693 536 90 450 549 59 376 389 300 124 898 969 228 256 51 189 85 2 929 143 332 977 646 811 359 740 814 460 376 583 941 704 87 733 112 305 457 474 334 730 259 237 381 488 149 76 357 871 78 933 721 56 623 990 567 914 735 69 402 749 653 1 445 410 734 191 687 143 675 969 543 581 859 856 47 716 926 52 599 700 986 943 433 279 935 939 194 357 705 259 73 340 262 152 720 651 374 40 778 690 13 954 233 577 821 285 272 478 969 535 794 959 485 212 228 92 813 104 451 546 367 509 537 275 325 865 867 679 896 347 337 614 947 561 159 493 503 88 909 481 276 443 102 427 315 991 509 132 96 886 345 110 78 534 40 402 423 605 717 977 601 17 595 562 237 435 28 738 504 649 824 761 47 640 143 350 632 320 132 392 211 129 148 931 657 177 343 717 774 709 698 33 726 273 590 637 685 611 993 798 217 816 233 901 472 54 901 749 371 62 107 224 829 892 170 504 96 164 831 549 838 549 571 240 478 131 822 786 418 814 623 305 378 809 854 493 852 789 205 870 835 968 118 726 871 310 840 679 126 735 180 976 890 439 865 395 205 747 161 614 247 455 562 609 907 452 76 493 225 919 389 764 893 493 132 790 455 984 477 567 399 330 200 941 739 91 347 900 507 160 185 742 600 757 982 184 811 56 687 64 984 35 501 593 167 640 408 620 294 529 805 668 800 713 623 204 468 618 129 912 767 983 350 15 742 333 194 573 40 840 310 30 575 773 616 745 407 671 993 674 157 515 954 667 181 244 820 659 528 663 253 905 648 589 919 19 569 794 256 601 367 194 303 583 958 562 317 16 846 950 356 709 468 960 354 324 852 822 640 404 154 832 325 781 99 896 482 671 427 401 884 759 590 834 325 554 434 295 220 291 240 569 947 381 189 951 354 73 792 924 462 945 485 449 435 578 360 553 856 755 886 473 146 501 328 126 707 410 424 886 341 319 138 936 345 993 893 684 67 421 292 170 28 757 279 102 961 618 656 826 5 557 964 802 712 302 919 414 353 7 951 677 323 774 630 320 772 187 988 522 598 228 362 298 659 620 399 630 848 695 468 560 869 95 387 597 395 966 657 398 974 287 30 936 725 650 270 141 513 862 659 83 782 966 21 445 259 417 26 119 73 142 683 646 240 21 200 297 986 529 669 665 780 364 610 151 662 539 313 128 427 612 191 176 248 213 283 504 295 939 612 10 101 266 652 1000 918 524 926 623 10 276 250 468 620 526 623 245 26 874 385 92 509 225 914 745 113 199 862 410 157 498 65 899 430 705 605 14 839 552 637 846 788 542 337 424 713 605 322 416 152 687 491 663 871 440 45 691 303 895 56 109 69 782 30 483 140 643 487 997 801 764 845 308 926 832 697 665 119 973 33 283 331 165 882 848 594 634 554 835 545 274 947 601 49 682 741 175 917 843 170 452 310 729 726 228 235 414 556 371 37 235 634 367 430 178 862 670 786 448 174 980 696 791 248 735 132 945 576 78 803 751 519 110 113 848 5 367 266 213 703 936 465 314 954 538 488 824 163 907 282 8 889 636 796 154 341 919 117 859 698 623 308 816 404 418 730 59 752 653 285 92 270 730 410 217 877 546 755 744 474 691 752 49 298 215 185 616 807 963 150 526 253 107 17 645 518 424 694 875 35 914 980 933 335 40 166 208 228 592 912 379 250 362 418 539 565 264 785 404 220 629 565 483 721 245 764 844 653 99 770 347 37 440 300 19 119 123 879 366 707 525 713 905 816 769 467 69 8 883 113 227 529 686 385 207 583 784 84 194 855 523 193 885 596 488 383 709 605 521 721 931 991 78 856 529 806 993 586\n",
"11 20 74 5 51 11 6 43 71 34 61 8 37 33 63 48 63 24 49 79 28 29 57 15 55 34 69 29 51 57 84 70 38 27 51 1 40 79 47 57 22 71 73 13 55 2 67 74 25 77 63 7 18 40 22 34 25 3 17 82 66 13 61 49 82 44 57 77 39 67 4 15 45 76 29 54 32 46 42 10 81 21 19 9\n"
] |
CodeContests
|
A rich man has a square room with mirrors for security or just for fun. Each side of the room is eight meters wide. The floor, the ceiling and the walls are not special; however, the room can be equipped with a lot of mirrors on the walls or as vertical partitions.
Every mirror is one meter wide, as tall as the wall, double-side, perfectly reflective, and ultimately thin.
Poles to fix mirrors are located at the corners of the room, on the walls and inside the room. Their locations are the 81 lattice points at intervals of one meter. A mirror can be fixed between two poles which are one meter distant from each other. If we use the sign "+" to represent a pole, the overview of the room can be illustrated as follows.
<image>
Let us denote a location on the floor by (x,y) in a rectangular coordinate system. For example, the rectangular coordinates of the four corners of the room are (0,0), (8,0), (0,8) and (8,8), respectively. The location (x,y) is in the room if and only if the conditions 0 ≤ x ≤ 8 and 0 ≤ y ≤ 8 are satisfied. If i and j are integers satisfying the conditions 0 ≤ i ≤ 8 and 0 ≤ j ≤ 8, we can denote by (i,j) the locations of poles.
One day a thief intruded into this room possibly by breaking the ceiling. He stood at (0.75,0.25) and looked almost toward the center of the room. Precisely speaking, he looked toward the point (1, 0.5) of the same height as his eyes. So what did he see in the center of his sight? He would have seen one of the walls or himself as follows.
* If there existed no mirror, he saw the wall at (8, 7.5)
* If there existed one mirror between two poles at (8, 7) and (8, 8), he saw the wall at (7.5, 8). (Let us denote the line between these two poles by (8, 7)-(8, 8).)
* If there were four mirrors on (8, 7)-(8, 8), (7, 8)-(8, 8), (0, 0)-(0, 1) and (0, 0)-(1, 0), he saw himself at (0.75, 0.25).
* If there were four mirrors on (2, 1)-(2, 2), (1, 2)-(2, 2), (0, 0)-(0, 1) and (0, 0)-(1, 0), he saw himself at (0.75, 0.25)
Your job is to write a program that reports the location at which the thief saw one of the walls or himself with the given mirror arrangements.
Input
The input contains multiple data sets, each representing how to equip the room with mirrors. A data set is given in the following format.
n
d1 i1 j1
d2 i2 j2
. . .
dn in jn
The first integer n is the number of mirrors, such that 0 ≤ n ≤ 144. The way the k-th (1 ≤ k ≤ n) mirror is fixed is given by dk and (ik,jk). dk is either 'x' or 'y', which gives the direction of the mirror. If dk is 'x', the mirror is fixed on (ik, jk)-(ik + 1, jk). If dk is 'y', the mirror is fixed on (ik,jk) (ik,jk + 1). The end of the input is indicated by a negative integer.
Output
For each data set, your program should output the location (x,y) at which the thief saw one of the walls or himself. The location should be reported in a line containing two integers which are separated by a single space and respectively represent x and y in centimeter as the unit of length. No extra lines nor spaces are allowed.
Example
Input
0
1
y 8 7
4
y 8 7
x 7 8
y 0 0
x 0 0
4
y 2 1
x 1 2
y 0 0
x 0 0
-1
Output
800 750
750 800
75 25
75 25
|
stdin
| null | 4,161
| 1
|
[
"0\n1\ny 8 7\n4\ny 8 7\nx 7 8\ny 0 0\nx 0 0\n4\ny 2 1\nx 1 2\ny 0 0\nx 0 0\n-1\n"
] |
[
"800 750\n750 800\n75 25\n75 25\n"
] |
[
"0\n1\ny 1 7\n4\ny 8 7\nx 7 8\ny 0 0\nx 0 0\n4\ny 2 1\nx 1 2\ny 0 0\nx 0 0\n-1\n",
"0\n1\ny 1 7\n4\ny 8 7\nx 7 8\ny 0 0\nx 0 0\n4\ny 2 1\nx 1 4\ny 0 0\nx 0 0\n-1\n",
"0\n1\ny 1 7\n4\ny 8 7\nx 7 7\ny 0 0\nx 0 0\n4\ny 2 1\nx 1 2\ny 0 0\nx 0 0\n-1\n",
"0\n1\ny 1 7\n4\ny 8 7\nx 7 7\ny 0 0\nx 0 0\n4\nx 2 1\nx 1 2\ny 0 0\nx 0 0\n-1\n",
"0\n1\ny 8 7\n4\ny 8 7\nx 7 8\ny 0 0\nx 1 0\n4\ny 2 1\nx 1 2\ny 0 0\nx 0 0\n-1\n",
"0\n1\ny 1 7\n4\ny 8 7\nx 7 7\ny 0 0\nx 0 0\n4\nx 2 1\nx 2 2\ny 0 0\nx 0 0\n-1\n",
"0\n1\ny 1 7\n4\ny 1 7\nx 7 8\ny 0 0\nx 0 0\n4\ny 2 1\ny 1 4\ny 0 0\nx 0 0\n-1\n",
"0\n1\ny 1 7\n4\ny 1 7\nx 7 8\n{ 0 1\nx 0 0\n4\nx 2 1\ny 1 4\ny 0 1\nx 0 0\n-1\n",
"0\n1\ny 1 7\n4\ny 8 7\nx 7 8\ny 0 0\ny 0 0\n4\ny 2 1\nx 1 4\ny 0 0\nx 0 0\n-1\n",
"0\n1\ny 1 7\n4\ny 8 7\nx 8 7\ny 0 0\nx 0 0\n4\ny 2 1\nx 1 2\ny 0 0\nx 0 0\n-1\n"
] |
[
"800 750\n800 750\n75 25\n75 25\n",
"800 750\n800 750\n75 25\n0 350\n",
"800 750\n800 750\n800 650\n75 25\n",
"800 750\n800 750\n800 650\n800 750\n",
"800 750\n750 800\n50 0\n75 25\n",
"800 750\n800 750\n800 650\n450 0\n",
"800 750\n800 750\n800 750\n0 350\n",
"800 750\n800 750\n800 750\n800 750\n",
"800 750\n800 750\n50 0\n0 350\n",
"800 750\n800 750\n750 800\n75 25\n"
] |
CodeContests
|
William Robinson was completely puzzled in the music room; he could not find his triangle in his bag. He was sure that he had prepared it the night before. He remembered its clank when he had stepped on the school bus early that morning. No, not in his dream. His triangle was quite unique: no two sides had the same length, which made his favorite peculiar jingle. He insisted to the music teacher, Mr. Smith, that his triangle had probably been stolen by those aliens and thrown away into deep space.
Your mission is to help Will find his triangle in space. His triangle has been made invisible by the aliens, but candidate positions of its vertices are somehow known. You have to tell which three of them make his triangle. Having gone through worm-holes, the triangle may have changed its size. However, even in that case, all the sides are known to be enlarged or shrunk equally, that is, the transformed triangle is similar to the original.
Input
The very first line of the input has an integer which is the number of data sets. Each data set gives data for one incident such as that of Will’s. At least one and at most ten data sets are given.
The first line of each data set contains three decimals that give lengths of the sides of the original triangle, measured in centimeters. Three vertices of the original triangle are named P, Q, and R. Three decimals given in the first line correspond to the lengths of sides QR, RP, and PQ, in this order. They are separated by one or more space characters.
The second line of a data set has an integer which is the number of points in space to be considered as candidates for vertices. At least three and at most thirty points are considered.
The rest of the data set are lines containing coordinates of candidate points, in light years. Each line has three decimals, corresponding to x, y, and z coordinates, separated by one or more space characters. Points are numbered in the order of their appearances, starting from one.
Among all the triangles formed by three of the given points, only one of them is similar to the original, that is, ratios of the lengths of any two sides are equal to the corresponding ratios of the original allowing an error of less than 0.01 percent. Other triangles have some of the ratios different from the original by at least 0.1 percent.
The origin of the coordinate system is not the center of the earth but the center of our galaxy. Note that negative coordinate values may appear here. As they are all within or close to our galaxy, coordinate values are less than one hundred thousand light years. You don’t have to take relativistic effects into account, i.e., you may assume that we are in a Euclidean space. You may also assume in your calculation that one light year is equal to 9.461 × 1012 kilometers.
A succeeding data set, if any, starts from the line immediately following the last line of the preceding data set.
Output
For each data set, one line should be output. That line should contain the point numbers of the three vertices of the similar triangle, separated by a space character. They should be reported in the order P, Q, and then R.
Examples
Input
2
50.36493 81.61338 79.96592
5
-10293.83 -4800.033 -5296.238
14936.30 6964.826 7684.818
-4516.069 25748.41 -27016.06
18301.59 -11946.25 5380.309
27115.20 43415.93 -71607.81
11.51547 13.35555 14.57307
5
-56292.27 2583.892 67754.62
-567.5082 -756.2763 -118.7268
-1235.987 -213.3318 -216.4862
-317.6108 -54.81976 -55.63033
22505.44 -40752.88 27482.94
Output
1 2 4
3 4 2
Input
2
50.36493 81.61338 79.96592
5
-10293.83 -4800.033 -5296.238
14936.30 6964.826 7684.818
-4516.069 25748.41 -27016.06
18301.59 -11946.25 5380.309
27115.20 43415.93 -71607.81
11.51547 13.35555 14.57307
5
-56292.27 2583.892 67754.62
-567.5082 -756.2763 -118.7268
-1235.987 -213.3318 -216.4862
-317.6108 -54.81976 -55.63033
22505.44 -40752.88 27482.94
Output
1 2 4
3 4 2
|
stdin
| null | 3,324
| 1
|
[
"2\n50.36493 81.61338 79.96592\n5\n-10293.83 -4800.033 -5296.238\n14936.30 6964.826 7684.818\n-4516.069 25748.41 -27016.06\n18301.59 -11946.25 5380.309\n27115.20 43415.93 -71607.81\n11.51547 13.35555 14.57307\n5\n-56292.27 2583.892 67754.62\n-567.5082 -756.2763 -118.7268\n-1235.987 -213.3318 -216.4862\n-317.6108 -54.81976 -55.63033\n22505.44 -40752.88 27482.94\n",
"2\n 50.36493 81.61338 79.96592\n5\n -10293.83 -4800.033 -5296.238\n 14936.30 6964.826 7684.818\n -4516.069 25748.41 -27016.06\n 18301.59 -11946.25 5380.309\n 27115.20 43415.93 -71607.81\n 11.51547 13.35555 14.57307\n5\n -56292.27 2583.892 67754.62\n -567.5082 -756.2763 -118.7268\n -1235.987 -213.3318 -216.4862\n -317.6108 -54.81976 -55.63033\n 22505.44 -40752.88 27482.94\n"
] |
[
"1 2 4\n3 4 2\n",
"1 2 4\n3 4 2\n"
] |
[
"2\n 50.36493 81.61338 79.96592\n5\n -10293.83 -4800.033 -5296.238\n 14936.30 6964.826 7684.818\n -4516.069 25748.41 -27016.06\n 18301.59 -11946.25 5380.309\n 27115.20 43415.99770967086 -71607.81\n 11.51547 13.35555 14.57307\n5\n -56292.27 2583.892 67754.62\n -567.5082 -756.2763 -118.7268\n -1235.987 -213.3318 -216.4862\n -317.6108 -54.81976 -55.63033\n 22505.44 -40752.88 27482.94\n",
"2\n 50.36493 81.61338 79.96592\n5\n -10293.83 -4800.033 -5296.238\n 14936.30 6964.826 7684.818\n -4516.069 25748.41 -27016.06\n 18301.59 -11946.25 5380.309\n 27115.20 43415.99770967086 -71607.81\n 11.51547 13.35555 14.57307\n5\n -56292.27 2584.5264985984345 67754.62\n -567.5082 -756.2763 -118.7268\n -1235.987 -213.3318 -216.4862\n -317.6108 -54.81976 -55.63033\n 22505.44 -40752.88 27482.94\n",
"2\n 50.36493 81.61338 79.96592\n5\n -10293.83 -4800.033 -5296.238\n 14936.30 6964.826 7684.818\n -4516.069 25748.68553121518 -27016.06\n 18301.59 -11946.25 5380.309\n 27115.20 43415.99770967086 -71607.81\n 11.51547 13.35555 14.57307\n5\n -56292.27 2583.892 67754.62\n -567.5082 -756.2763 -118.7268\n -1235.987 -213.3318 -216.4862\n -317.6108 -54.81976 -55.63033\n 22505.44 -40752.88 27482.94\n",
"2\n 50.36493 81.61338 79.96592\n5\n -10293.83 -4800.033 -5296.238\n 14936.30 6964.826 7684.818\n -4516.069 25748.41 -27016.06\n 18301.59 -11946.25 5380.309\n 27115.20 43415.99770967086 -71607.81\n 11.51547 13.35555 14.57307\n5\n -56292.27 2584.5264985984345 67755.55744936658\n -567.5082 -756.2763 -118.7268\n -1235.987 -213.3318 -216.4862\n -317.6108 -54.81976 -55.63033\n 22505.44 -40752.88 27482.94\n",
"2\n 50.36493 81.61338 79.96592\n5\n -10293.83 -4800.033 -5296.238\n 14936.30 6964.826 7684.894858264562\n -4516.069 25748.41 -27016.06\n 18301.59 -11946.25 5380.309\n 27115.20 43415.99770967086 -71607.81\n 11.51547 13.35555 14.57307\n5\n -56292.27 2584.5264985984345 67755.55744936658\n -567.5082 -756.2763 -118.7268\n -1235.987 -213.3318 -216.4862\n -317.6108 -54.81976 -55.63033\n 22505.44 -40752.88 27482.94\n",
"2\n 50.36493 81.61338 79.96592\n5\n -10293.83 -4800.033 -5296.238\n 14936.30 6964.826 7684.894858264562\n -4516.069 25748.41 -27016.06\n 18301.59 -11946.25 5380.309\n 27115.20 43415.99770967086 -71607.81\n 11.51547 13.35555 14.57307\n5\n -56292.27 2584.5264985984345 67755.55744936658\n -567.5082 -756.2763 -118.7268\n -1235.987 -213.3318 -216.4862\n -317.6108 -54.81976 -55.63033\n 22505.44 -40752.88 27483.444069553898\n",
"2\n 50.36493 81.61338 79.96592\n5\n -10293.83 -4800.033 -5296.238\n 14936.30 6964.826 7684.818\n -4516.069 25748.41 -27016.06\n 18301.59 -11946.25 5380.309\n 27115.20 43415.93 -71607.81\n 11.51547 13.35555 14.57307\n5\n -56292.27 2583.892 67754.62\n -567.5082 -756.2763 -118.7268\n -1235.987 -213.3318 -216.4862\n -317.6108 -54.81976 -55.63033\n 22505.51648385568 -40752.88 27482.94\n",
"2\n 50.36493 81.61338 79.96592\n5\n -10293.83 -4800.033 -5296.238\n 14936.30 6964.826 7684.818\n -4516.069 25748.41 -27016.06\n 18301.59 -11946.25 5380.309\n 27115.20 43415.99770967086 -71607.81\n 11.51547 13.35555 14.57307\n5\n -56292.27 2584.703121022903 67754.62\n -567.5082 -756.2763 -118.7268\n -1235.987 -213.3318 -216.4862\n -317.6108 -54.81976 -55.63033\n 22505.44 -40752.88 27482.94\n",
"2\n 50.36493 81.61338 79.96592\n5\n -10293.83 -4800.033 -5296.238\n 14936.30 6964.826 7684.818\n -4516.069 25748.68553121518 -27016.06\n 18301.59 -11946.25 5380.309\n 27115.20 43415.99770967086 -71607.81\n 11.51547 13.35555 14.57307\n5\n -56292.27 2583.892 67754.62\n -567.5082 -756.2763 -118.7268\n -1235.987 -213.3318 -216.4862\n -317.6108 -54.81976 -55.63033\n 22505.44 -40752.88 27482.997591308562\n",
"2\n 50.36493 81.61338 79.96592\n5\n -10293.83 -4800.033 -5296.238\n 14936.30 6964.826 7684.818\n -4516.069 25748.41 -27016.06\n 18301.59 -11946.25 5380.309\n 27115.20 43415.99770967086 -71607.81\n 11.51547 13.35555 14.57307\n5\n -56292.09110175918 2584.5264985984345 67755.55744936658\n -567.5082 -756.2763 -118.7268\n -1235.987 -213.3318 -216.4862\n -317.6108 -54.81976 -55.63033\n 22505.44 -40752.88 27482.94\n"
] |
[
"1 2 4\n3 4 2\n",
"1 2 4\n3 4 2\n",
"1 2 4\n3 4 2\n",
"1 2 4\n3 4 2\n",
"1 2 4\n3 4 2\n",
"1 2 4\n3 4 2\n",
"1 2 4\n3 4 2\n",
"1 2 4\n3 4 2\n",
"1 2 4\n3 4 2\n",
"1 2 4\n3 4 2\n"
] |
CodeContests
|
There are N people numbered 1 to N. Each person wears a red hat or a blue hat.
You are given a string s representing the colors of the people. Person i wears a red hat if s_i is `R`, and a blue hat if s_i is `B`.
Determine if there are more people wearing a red hat than people wearing a blue hat.
Constraints
* 1 \leq N \leq 100
* |s| = N
* s_i is `R` or `B`.
Input
Input is given from Standard Input in the following format:
N
s
Output
If there are more people wearing a red hat than there are people wearing a blue hat, print `Yes`; otherwise, print `No`.
Examples
Input
4
RRBR
Output
Yes
Input
4
BRBR
Output
No
|
stdin
| null | 176
| 1
|
[
"4\nRRBR\n",
"4\nBRBR\n"
] |
[
"Yes\n",
"No\n"
] |
[
"4\nRBRR\n",
"4\nBBRR\n",
"4\nRRCR\n",
"4\nRRAR\n",
"4\nRARR\n",
"4\nBQBR\n",
"4\nRCRR\n",
"4\nBPBR\n",
"4\nRRRC\n",
"4\nAQBR\n"
] |
[
"Yes\n",
"No\n",
"Yes\n",
"Yes\n",
"Yes\n",
"No\n",
"Yes\n",
"No\n",
"Yes\n",
"No\n"
] |
CodeContests
|
Alice and Brown are brothers in a family and each receives pocket money in celebration of the coming year. They are very close and share the total amount of the money fifty-fifty. The pocket money each receives is a multiple of 1,000 yen.
Write a program to calculate each one’s share given the amount of money Alice and Brown received.
Input
The input is given in the following format.
a b
A line of data is given that contains two values of money: a (1000 ≤ a ≤ 50000) for Alice and b (1000 ≤ b ≤ 50000) for Brown.
Output
Output the amount of money each of Alice and Brown receive in a line.
Examples
Input
1000 3000
Output
2000
Input
5000 5000
Output
5000
Input
1000 2000
Output
1500
|
stdin
| null | 3,402
| 1
|
[
"5000 5000\n",
"1000 2000\n",
"1000 3000\n"
] |
[
"5000\n",
"1500\n",
"2000\n"
] |
[
"3857 5000\n",
"0000 2000\n",
"1010 3000\n",
"428 5000\n",
"0000 2954\n",
"0010 3000\n",
"824 5000\n",
"0000 4848\n",
"0000 3000\n",
"45 5000\n"
] |
[
"4428\n",
"1000\n",
"2005\n",
"2714\n",
"1477\n",
"1505\n",
"2912\n",
"2424\n",
"1500\n",
"2522\n"
] |
CodeContests
|
Given a set S. Generate T, a set that contains all subsets of S minus the null set and calculate A, XOR sum of the set T.
S={1,2,3}
T={{1},{2},{3},{1,2},{1,3},{2,3} ,{1,2,3}}
A=XORiana of T .
XORiana of a set is defined as XOR of all the elements it contains.
Constraints:
1 ≤ T ≤ 100
1 ≤ N ≤ 100
0 ≤ Array[i] ≤ 200
SAMPLE INPUT
2
2
3 3
3
1 2 3
SAMPLE OUTPUT
0
0
Explanation
*Test Case 1: *
All subsets will be {3},{3},{3,3}
XOR of of all elements : {3} XOR{3} XOR {3 XOR 3} is zero .
*Test Case 2: *
All subsets will be {1} ,{2} ,{3} ,{1,2} ,{1,3} ,{2,3} ,{1,2,3}
XOR of all elements : {1} XOR {2} XOR {3} XOR {1 XOR 2} XOR {1 XOR 3} XOR {2 XOR 3} XOR {1 XOR 2 XOR 3} is zero.
|
stdin
| null | 3,669
| 1
|
[
"2\n2 \n3 3\n3 \n1 2 3\n\nSAMPLE\n"
] |
[
"0\n0\n"
] |
[
"100\n100\n41 67 134 100 169 124 78 158 162 64 105 145 81 27 161 91 195 142 27 36 191 4 102 153 92 182 21 116 118 95 47 126 171 138 69 112 67 99 35 94 103 11 122 133 73 64 141 111 53 68 147 44 62 157 37 59 123 141 129 178 116 35 190 42 88 106 40 142 64 48 46 5 90 129 170 150 6 101 193 148 29 23 84 154 156 40 166 176 131 108 144 39 26 123 137 138 118 82 129 141\n100\n33 115 39 58 104 130 177 106 73 186 21 145 124 72 70 29 177 173 97 112 186 90 161 36 155 167 55 174 31 52 150 150 141 124 166 30 107 191 7 137 57 87 153 183 145 109 9 158 21 188 22 146 106 30 13 168 100 191 162 55 10 159 24 137 148 83 195 41 2 150 91 36 174 20 196 21 148 199 68 84 81 134 53 199 18 138 100 188 127 67 128 93 48 83 7 21 110 17 13 114\n100\n109 16 135 51 0 49 119 156 198 103 24 8 44 9 189 102 195 85 93 143 123 187 114 103 48 0 58 18 180 196 198 81 189 198 9 157 72 22 138 92 38 179 190 57 158 191 15 88 156 111 2 34 72 55 128 46 162 86 75 33 69 142 44 16 81 198 122 51 21 99 157 76 92 189 75 112 0 110 3 69 61 88 1 189 55 23 2 185 182 85 88 26 17 157 32 132 169 154 121 189\n100\n176 129 168 92 25 155 34 149 41 112 145 60 118 153 139 23 79 196 87 129 149 37 66 149 193 195 97 16 86 105 88 82 55 134 114 101 116 71 186 63 113 155 185 53 112 8 32 145 113 156 121 158 46 182 81 144 196 22 129 161 135 50 173 66 44 59 92 39 53 24 154 110 145 49 186 113 74 22 168 18 187 105 158 191 2 25 77 14 114 24 134 74 172 159 33 70 87 97 118 177\n100\n173 70 163 68 192 185 102 80 13 27 2 99 127 25 143 124 23 172 61 181 3 32 105 193 125 31 92 142 22 86 64 100 187 160 13 174 70 170 35 33 111 160 96 67 85 150 140 94 95 24 19 125 176 94 58 102 171 66 78 193 51 84 18 64 119 152 0 87 60 126 10 157 170 115 176 27 43 158 164 109 82 86 165 87 177 74 25 27 29 128 23 120 102 162 123 196 137 61 195 125\n100\n64 60 2 116 30 126 11 171 11 147 153 120 190 124 188 163 140 51 62 29 100 113 158 178 165 7 77 0 58 39 103 160 157 124 77 108 113 87 1 50 60 28 193 184 5 140 111 104 35 156 72 150 23 85 156 16 26 157 126 157 137 71 69 161 96 22 17 112 117 96 185 41 23 129 29 165 159 132 96 55 53 162 184 134 54 172 57 169 132 163 7 83 111 35 67 48 75 138 23 142\n100\n154 111 141 175 59 25 21 70 26 134 5 183 50 198 79 101 193 134 37 134 156 193 176 105 162 148 81 100 13 41 55 55 142 62 11 77 24 78 152 43 96 73 40 113 75 72 18 10 17 132 112 95 169 31 40 88 85 90 97 189 190 145 153 114 51 140 44 58 135 159 192 5 64 181 103 29 175 8 92 197 149 156 161 27 67 141 129 40 13 174 1 77 15 83 13 192 24 1 192 159\n100\n70 28 27 84 75 186 98 170 87 47 4 103 21 63 106 163 10 171 89 40 164 142 19 113 191 104 18 32 150 5 175 139 103 22 98 47 184 48 171 64 113 75 145 112 146 78 169 62 119 185 89 144 65 140 45 108 118 70 1 123 132 72 152 87 170 163 101 103 23 127 0 169 15 165 28 143 147 88 143 37 9 63 49 81 188 142 8 60 21 158 154 88 146 90 149 43 30 20 148 67\n100\n136 183 35 26 185 38 53 29 24 148 123 159 57 166 144 155 118 126 11 25 155 1 149 96 184 115 164 142 75 113 142 196 148 72 26 6 173 29 4 105 26 12 175 93 165 36 136 141 14 194 56 52 136 38 82 155 15 131 30 41 25 11 37 186 90 50 62 34 93 153 16 52 8 62 33 54 103 34 103 56 148 124 117 13 109 28 0 80 118 58 50 155 161 64 103 76 43 109 102 161\n100\n89 148 82 53 74 20 2 123 31 169 78 59 8 19 171 3 145 181 104 192 85 113 98 189 122 138 37 10 61 34 108 161 159 93 115 69 137 69 58 100 171 64 117 15 155 15 130 39 12 88 82 154 85 110 84 174 180 15 151 141 115 79 110 98 73 188 177 132 156 89 113 8 141 190 123 163 28 184 178 0 71 85 174 71 133 67 153 95 168 25 76 29 50 198 109 93 86 80 116 49\n100\n67 128 79 64 21 5 26 16 116 126 66 87 81 164 140 86 21 62 121 64 109 15 102 73 124 141 145 162 23 131 6 68 118 2 107 107 81 12 136 30 114 9 84 156 90 93 196 152 54 145 108 48 91 112 131 114 39 158 122 104 195 52 69 79 38 23 118 66 59 98 86 196 62 33 158 22 146 192 37 125 47 58 2 7 98 30 92 0 78 199 152 48 82 140 115 175 162 167 136 197\n100\n18 97 28 51 16 30 49 125 58 29 120 140 160 147 162 55 75 192 161 154 198 146 114 146 188 169 38 63 75 115 121 75 15 128 34 170 105 64 157 162 161 124 149 69 130 123 150 133 125 110 137 136 137 78 193 36 114 164 191 149 135 105 137 4 137 23 64 170 8 168 81 85 152 173 52 194 76 26 196 172 49 40 174 19 143 11 141 89 19 165 5 185 16 50 15 9 64 166 93 74\n100\n109 100 95 173 189 161 172 168 158 31 68 26 110 22 174 179 110 152 182 191 95 164 74 164 102 55 60 74 172 21 122 147 177 189 5 195 194 150 143 154 81 12 72 39 28 112 162 167 8 15 108 23 159 34 4 86 119 158 145 6 166 100 167 92 187 132 156 174 47 21 83 22 131 176 183 148 123 182 18 176 20 111 182 56 90 125 124 86 77 169 43 134 77 68 68 191 196 183 28 127\n100\n26 71 97 12 103 27 8 145 108 185 38 37 43 113 101 50 128 111 50 149 192 54 69 81 65 67 113 193 34 72 172 30 101 42 177 77 170 102 164 181 190 23 37 23 179 195 169 127 42 110 182 58 126 87 70 128 51 58 13 60 183 86 142 10 72 128 34 41 118 103 67 65 138 81 57 150 14 198 58 61 63 156 7 78 89 35 165 75 186 186 33 160 130 48 128 92 33 40 166 135\n100\n10 199 37 92 182 128 152 169 44 194 8 52 47 32 135 8 64 97 43 49 15 41 189 100 12 48 123 51 74 33 91 0 54 190 97 119 180 178 131 144 140 87 99 125 83 138 92 193 52 11 160 34 40 97 185 129 140 5 191 192 10 149 178 179 171 77 73 193 20 97 26 76 190 182 178 159 18 89 159 49 124 72 180 8 167 8 77 103 170 7 196 74 122 11 19 161 56 90 163 83\n100\n116 132 52 141 154 13 62 196 60 15 104 199 136 80 198 32 187 184 40 117 6 70 41 82 49 123 158 105 21 95 96 116 78 178 179 58 177 150 7 129 81 195 78 76 153 99 184 165 93 8 172 43 129 114 168 55 191 173 122 148 51 186 144 46 177 117 29 116 74 191 69 112 146 93 91 15 149 57 40 52 36 151 87 26 162 155 183 194 180 97 65 65 113 61 178 78 78 140 11 147\n100\n45 170 175 89 150 149 133 65 14 82 7 32 96 167 122 82 10 41 31 187 105 79 121 138 151 47 8 46 76 159 189 22 66 86 55 28 14 60 53 177 148 103 61 31 82 55 197 106 152 21 96 81 21 55 147 124 118 135 176 174 59 198 74 53 122 35 43 88 153 32 147 80 126 78 50 1 161 199 55 163 116 173 161 45 73 74 150 153 181 87 99 110 43 65 172 129 181 112 76 181\n100\n47 90 71 5 172 32 189 120 165 31 58 93 6 178 148 6 171 166 196 97 20 94 129 188 109 184 169 178 17 15 26 84 168 106 128 97 118 190 199 185 86 199 20 110 71 13 15 85 118 180 131 67 187 44 186 107 160 27 74 31 152 71 68 93 85 137 111 4 77 6 168 22 13 0 142 137 38 188 155 89 47 181 93 184 187 161 93 17 101 82 47 65 153 104 84 95 125 21 164 181\n100\n72 106 56 143 193 80 80 68 11 113 168 51 16 79 168 40 131 133 179 63 59 53 136 95 165 74 120 35 80 176 55 125 71 8 159 156 2 32 105 40 175 162 85 162 80 36 197 2 108 80 140 76 58 93 140 146 74 173 97 80 135 72 0 107 155 66 141 188 81 168 115 196 25 9 12 136 55 162 43 142 21 122 112 48 18 168 117 114 50 90 135 159 169 95 103 40 179 199 105 191\n100\n61 81 52 153 33 29 187 42 53 83 20 14 118 44 63 29 52 64 169 70 5 47 194 87 126 76 123 140 79 190 188 110 71 145 21 70 183 189 155 178 179 6 62 135 87 196 33 88 135 179 193 190 162 165 1 105 7 167 69 134 71 57 198 145 197 18 38 44 172 163 28 64 1 123 90 4 1 27 197 92 171 163 101 163 121 165 21 45 10 95 141 22 12 151 15 55 193 138 79 82\n100\n8 54 22 107 45 138 144 90 139 154 4 23 25 78 124 181 130 133 23 194 130 46 187 45 5 16 150 89 138 163 135 97 9 30 24 108 137 74 120 172 93 55 134 161 56 6 184 75 182 119 141 32 84 179 79 83 67 36 125 118 137 28 119 177 137 91 156 195 60 101 193 32 136 180 75 107 184 74 119 190 76 41 151 129 90 174 72 191 189 187 90 39 93 53 63 81 103 5 176 79\n100\n95 139 68 198 83 39 115 21 193 26 122 38 28 181 199 178 91 23 143 34 43 149 102 107 102 141 87 146 91 37 13 0 16 90 162 135 126 10 77 182 60 189 105 74 63 122 195 166 160 38 188 11 45 67 25 67 189 142 63 147 102 17 99 23 26 3 48 51 170 36 58 167 56 5 131 162 19 175 156 131 95 44 191 3 188 115 50 119 72 191 183 133 175 42 169 100 154 78 185 57\n100\n133 93 90 103 150 33 122 71 11 190 138 41 58 47 152 58 79 102 83 190 2 168 22 95 135 8 161 142 194 99 188 178 42 157 141 47 69 145 180 113 164 110 61 185 73 104 62 103 102 69 154 129 152 74 149 130 44 44 49 118 65 163 152 173 70 131 147 111 69 198 98 103 152 79 53 43 122 88 163 34 50 22 40 111 92 51 180 77 16 76 178 20 15 148 198 179 35 57 83 62\n100\n102 62 20 170 22 73 41 86 88 117 117 92 98 67 149 65 189 132 19 81 3 130 28 31 189 152 30 172 64 7 95 28 81 90 10 177 71 36 59 43 40 33 37 93 30 74 193 182 3 61 90 62 107 197 151 23 90 117 40 103 166 83 61 59 45 186 51 165 1 40 9 97 83 50 58 21 175 181 187 71 87 199 104 179 138 100 130 61 118 5 140 28 59 22 198 160 98 135 81 14\n100\n167 93 196 161 146 138 70 138 76 155 117 171 160 152 158 33 55 65 126 1 34 159 193 148 73 192 193 133 137 103 90 11 94 68 27 98 189 48 79 47 149 131 69 75 198 49 36 199 123 43 131 154 61 34 185 167 16 193 104 66 153 108 23 84 192 67 48 69 130 11 14 90 27 143 4 199 74 195 106 158 189 58 9 89 47 40 18 164 175 26 89 103 66 12 40 170 76 195 41 186\n100\n51 109 187 83 85 190 50 86 155 181 128 102 77 62 24 165 72 32 85 28 46 89 78 83 125 65 60 45 178 21 55 120 127 173 134 51 75 136 134 1 137 110 174 190 156 71 80 135 145 82 25 118 173 112 37 198 105 162 117 92 139 47 146 103 31 115 39 58 29 45 194 199 45 72 75 62 72 173 80 38 97 142 8 3 77 125 134 1 78 182 169 136 78 139 138 121 26 63 77 175\n100\n124 181 100 161 62 2 48 95 84 16 137 107 193 84 144 59 21 58 43 68 77 119 57 41 91 64 23 115 72 129 41 115 15 136 157 159 100 52 93 41 29 48 27 198 24 124 74 133 85 38 170 62 29 84 109 78 123 85 0 24 193 105 12 165 167 7 77 184 104 190 34 91 21 85 134 190 142 198 86 18 21 24 197 176 54 69 108 127 93 68 166 102 38 0 19 118 90 184 139 156\n100\n8 32 78 14 187 39 74 20 27 154 188 41 198 42 2 121 104 146 56 109 33 108 161 133 86 4 185 142 42 60 161 20 143 178 187 113 63 191 134 15 56 161 12 11 159 51 138 170 124 107 7 184 151 101 89 158 41 190 13 12 55 60 93 72 2 76 143 173 66 51 75 128 132 161 69 103 129 107 92 51 153 192 170 119 72 7 94 105 40 183 62 9 7 38 160 71 171 54 147 114\n100\n123 29 89 166 87 156 32 70 139 66 122 83 160 153 105 91 59 186 87 29 42 117 45 156 188 52 154 66 33 160 119 31 138 67 176 98 114 120 53 7 69 16 122 42 7 63 60 147 193 30 117 43 176 114 26 117 134 20 171 192 164 154 66 93 64 175 0 12 100 151 76 179 143 77 189 161 185 72 34 144 161 163 104 146 88 108 157 30 123 64 74 146 37 181 118 11 92 191 32 123\n100\n61 191 61 130 98 169 91 0 179 117 117 114 195 41 136 67 28 53 109 173 181 103 169 16 83 167 185 2 30 157 81 167 110 66 87 171 77 45 164 38 71 47 115 192 111 57 5 53 171 180 140 130 75 120 190 177 198 186 4 89 31 144 188 10 118 119 59 127 9 119 79 116 100 196 53 58 30 193 6 49 54 72 160 94 54 133 146 29 71 28 159 41 21 88 166 33 85 70 129 61\n100\n60 8 182 162 106 78 179 97 87 138 69 183 140 195 66 33 109 157 117 134 53 135 58 193 43 93 66 151 140 94 137 174 112 97 151 95 17 92 92 37 130 13 96 110 189 28 9 186 144 40 182 169 120 193 92 162 14 127 7 194 105 113 11 113 93 64 3 195 162 181 146 109 48 168 24 111 154 35 127 33 40 62 127 177 17 140 142 100 0 158 76 154 135 30 31 95 137 23 122 127\n100\n29 11 11 154 80 53 93 121 185 128 43 0 155 71 70 52 175 31 40 134 40 186 34 48 139 165 196 112 62 52 131 187 64 157 48 156 170 50 182 101 93 99 132 44 131 75 4 50 26 66 138 1 23 43 41 180 95 118 59 163 28 129 88 54 13 179 169 66 79 177 37 2 115 92 123 72 48 123 153 148 195 197 108 108 11 193 65 181 2 10 28 56 105 165 23 169 115 53 5 84\n100\n78 145 40 33 85 100 168 194 33 85 148 81 32 56 110 72 182 101 106 35 60 71 127 137 143 168 33 195 171 3 142 11 79 34 112 193 130 161 34 58 126 106 191 43 188 27 119 84 24 93 35 24 94 182 67 27 5 146 86 189 140 37 50 159 178 156 77 3 42 100 11 25 143 195 16 15 4 6 168 41 135 98 125 113 23 112 18 57 196 139 86 94 46 43 122 111 80 55 158 47\n100\n70 190 73 127 13 54 96 72 50 41 41 46 125 13 24 129 95 3 194 193 67 187 40 79 41 125 134 60 0 107 21 92 93 117 117 3 143 93 39 11 125 28 178 148 50 92 44 54 23 153 36 147 146 26 61 104 38 171 86 5 99 56 128 67 151 19 191 166 117 46 93 187 21 112 67 99 44 97 1 128 142 104 168 168 41 96 62 120 44 118 25 19 184 174 184 59 149 14 95 103\n100\n32 51 137 14 163 51 19 90 117 83 118 184 52 186 69 48 137 197 24 168 27 148 193 182 71 69 93 77 14 104 84 143 95 11 93 92 198 190 99 90 93 74 149 174 114 173 69 18 65 33 38 111 52 63 108 149 88 45 31 120 106 71 168 21 58 157 47 182 38 122 123 106 106 189 156 145 151 123 118 150 97 36 191 6 110 13 51 80 44 143 141 45 178 149 105 114 185 27 24 4\n100\n156 117 27 155 102 86 68 98 179 11 89 158 90 175 10 132 89 96 150 112 122 129 72 36 77 153 176 70 85 52 151 197 151 1 35 93 72 116 116 128 111 125 38 96 139 144 56 26 102 158 188 21 186 108 177 28 179 147 149 80 45 128 62 26 119 77 91 47 185 31 6 84 154 169 109 156 21 145 65 16 60 97 135 190 77 49 5 86 188 75 143 177 130 87 155 82 53 0 154 89\n100\n88 15 8 110 140 199 197 107 54 104 37 85 99 192 13 12 82 183 151 129 137 33 0 64 83 57 168 110 168 108 41 132 37 84 99 101 69 183 56 92 40 87 12 10 20 35 63 15 97 77 174 134 153 133 78 86 24 134 75 149 112 184 24 192 104 22 55 113 62 73 84 160 122 53 197 22 150 137 117 6 131 197 105 36 157 199 90 98 185 47 84 192 125 196 55 28 138 142 28 195\n100\n142 37 106 167 53 193 105 146 9 124 54 65 39 6 9 92 99 175 36 61 47 18 13 127 112 96 109 41 130 90 34 115 86 123 66 144 136 37 16 93 149 171 44 177 85 0 190 85 125 118 68 6 129 8 141 25 136 180 116 70 184 147 128 136 4 100 123 164 11 40 50 104 83 166 141 70 45 106 88 56 107 66 57 78 199 74 155 191 190 32 58 196 117 90 167 107 34 46 62 2\n100\n39 26 95 106 114 150 186 79 176 22 79 101 12 76 164 157 170 38 112 144 161 180 0 43 56 61 47 139 8 90 52 179 18 19 7 84 147 177 75 13 109 171 42 139 136 21 101 34 129 158 36 69 97 104 198 2 105 38 32 65 116 81 179 23 127 171 113 182 140 16 88 119 189 113 59 51 71 83 164 38 12 184 159 101 174 133 59 114 49 195 122 141 16 177 52 165 91 138 110 167\n100\n55 187 24 22 39 41 48 4 34 168 41 72 68 174 176 137 33 41 145 18 15 174 52 46 156 124 166 181 144 40 134 96 76 27 5 18 91 41 65 191 71 59 100 17 16 143 24 64 105 157 102 66 75 46 32 189 46 145 3 152 101 126 153 184 49 150 5 146 25 170 136 195 193 123 132 56 96 10 176 92 150 90 195 52 150 115 36 161 160 184 129 134 50 82 6 136 184 190 17 182\n100\n66 116 188 25 101 10 50 182 21 193 38 154 193 95 80 38 167 20 145 83 65 96 33 190 32 189 39 183 17 129 153 79 13 0 52 145 61 151 118 163 13 107 154 76 17 11 29 64 166 131 142 98 122 155 187 57 158 64 162 110 146 65 180 165 146 140 97 42 64 194 184 70 115 0 6 106 102 96 33 11 67 15 45 175 154 48 119 79 188 121 192 197 197 109 52 71 58 122 59 197\n100\n199 99 120 120 36 184 112 115 153 85 141 199 167 8 44 169 81 79 108 7 59 106 49 75 26 124 7 174 84 128 146 145 81 114 149 168 138 107 193 104 105 97 17 155 41 143 133 97 79 136 155 33 154 130 52 104 79 88 70 154 72 176 101 15 86 31 80 175 60 114 138 57 190 38 181 47 42 18 70 31 61 19 181 190 33 72 163 102 102 128 121 98 47 145 6 22 86 194 177 44\n100\n83 147 40 85 64 123 137 53 168 130 55 66 58 112 56 118 1 142 76 106 102 84 23 70 112 50 75 111 50 195 88 120 101 183 198 92 48 184 45 187 62 143 58 59 71 16 172 32 41 83 88 15 176 116 98 39 83 5 197 146 169 75 117 187 20 30 42 135 189 173 80 73 177 186 181 185 122 145 179 85 113 135 135 83 186 96 48 85 152 121 60 182 36 88 119 36 192 65 78 198\n100\n96 186 11 176 147 121 2 45 102 164 139 172 57 170 120 54 159 80 98 191 160 110 191 67 33 75 136 99 175 190 176 56 72 103 86 167 115 142 95 166 56 186 37 198 26 164 85 65 108 140 160 14 154 12 152 138 106 125 30 49 179 79 113 38 117 21 145 191 169 39 108 165 162 73 81 170 147 53 108 108 115 29 66 89 63 171 141 59 31 172 114 166 188 170 168 199 55 50 44 136\n100\n78 6 27 113 123 171 127 73 61 173 134 102 187 17 63 153 126 195 95 13 6 170 59 105 96 33 23 52 79 119 126 193 185 65 171 44 107 71 87 99 119 196 115 152 92 153 57 190 159 157 86 9 65 86 19 59 113 35 28 101 68 69 56 131 178 74 195 43 74 116 24 111 185 122 171 57 95 174 38 183 58 95 122 183 31 103 32 100 190 80 8 105 102 58 18 157 161 120 28 56\n100\n113 132 92 182 67 120 158 74 187 94 183 164 64 114 146 190 25 55 163 67 192 31 19 80 118 128 148 120 79 91 166 187 8 126 25 159 118 20 35 114 56 147 156 134 160 151 8 78 94 189 124 176 94 90 189 172 19 101 102 44 123 139 9 27 37 186 16 27 169 23 99 114 15 44 36 69 178 76 58 152 46 137 115 188 16 88 182 74 133 115 56 56 62 16 124 129 42 184 72 49\n100\n196 26 182 2 175 16 65 152 159 155 17 44 154 43 24 199 22 121 133 13 117 193 73 60 175 74 185 101 22 8 195 26 120 91 188 129 72 177 193 8 54 122 76 137 16 3 90 112 89 53 179 99 122 102 2 169 54 129 134 38 74 26 63 134 172 148 53 103 107 118 133 37 95 179 61 144 59 161 107 176 72 45 192 172 28 196 11 135 35 29 116 132 156 158 149 20 96 124 120 126\n100\n6 183 45 174 91 188 138 64 104 77 153 142 4 23 52 25 11 42 124 149 135 190 146 128 55 4 141 109 181 179 102 83 92 132 112 99 161 47 5 90 169 159 28 139 28 180 71 178 40 56 148 44 145 125 10 98 16 180 15 64 26 72 79 193 82 5 136 133 105 187 132 38 165 64 118 199 32 108 96 38 178 38 45 59 169 144 162 169 49 118 67 158 143 61 3 190 186 26 3 4\n100\n100 168 23 147 196 166 30 65 152 0 17 173 186 68 197 179 24 128 60 158 25 67 112 134 52 169 162 170 11 35 90 111 64 150 160 145 167 154 187 17 165 142 88 73 15 179 37 188 69 86 30 9 40 121 119 81 26 20 11 54 93 184 157 199 136 29 150 57 5 165 134 49 94 192 70 119 17 113 53 117 177 160 105 153 191 162 176 54 72 134 16 50 193 145 52 147 121 61 144 59\n100\n166 85 39 118 107 68 154 50 32 199 20 135 98 192 116 182 29 116 59 158 183 199 135 157 70 71 142 180 77 6 95 86 3 52 118 35 85 28 78 160 101 149 164 185 26 157 137 41 138 193 96 33 93 168 73 135 109 96 181 161 139 184 123 99 131 49 42 6 50 87 40 169 23 188 67 83 0 158 6 138 63 120 166 158 85 23 29 98 156 70 175 196 83 188 19 146 190 75 69 119\n100\n141 197 145 54 158 58 194 191 141 37 100 32 75 136 38 158 180 85 13 84 53 127 85 26 70 136 81 170 149 148 77 199 35 173 137 151 131 17 33 171 176 129 131 44 142 67 0 128 116 34 199 157 40 181 23 141 131 149 139 99 175 99 163 45 126 1 24 83 189 135 24 95 145 170 83 117 192 152 124 173 140 55 68 70 43 30 156 165 114 180 58 158 124 8 111 67 117 128 190 99\n100\n180 70 190 12 0 64 75 84 82 111 106 68 44 26 36 166 192 188 38 65 12 147 46 59 52 171 56 110 57 66 50 70 145 125 148 74 174 43 29 136 163 16 58 134 101 61 55 15 174 182 139 82 24 100 175 137 176 100 24 64 137 95 125 29 51 188 194 144 106 75 71 90 84 19 179 195 158 7 45 174 38 156 20 32 166 22 157 153 71 155 189 25 29 128 39 127 194 90 48 54\n100\n117 192 130 18 148 56 190 82 143 39 101 93 127 69 193 33 31 192 135 26 42 80 16 161 117 107 120 45 166 121 182 182 6 91 70 15 195 143 163 171 192 135 17 12 81 67 121 152 122 28 30 29 24 99 153 151 194 41 64 183 120 144 188 77 13 2 58 2 153 49 58 175 90 38 23 195 101 5 158 123 87 41 26 130 9 20 135 43 131 74 102 100 71 175 9 30 194 22 136 90\n100\n15 52 154 182 133 188 55 160 145 123 142 59 87 143 147 184 189 68 188 198 80 79 107 13 60 47 46 71 182 144 142 48 36 153 149 88 23 25 51 190 39 46 162 175 24 78 185 103 181 177 150 48 170 94 16 129 126 38 115 72 152 62 21 67 128 65 129 59 82 189 186 19 135 140 66 32 85 22 3 161 96 141 150 32 72 161 170 113 165 45 120 10 128 170 21 196 4 114 199 10\n100\n69 152 35 71 144 30 182 61 195 151 66 83 110 158 172 95 106 14 52 84 105 12 21 141 175 90 125 11 167 182 183 187 193 50 79 68 74 84 29 135 60 105 111 192 24 150 16 60 1 159 109 123 67 100 25 56 140 48 55 7 49 91 160 182 36 19 70 79 125 119 9 101 31 124 7 125 101 83 169 88 164 163 124 134 170 51 197 124 111 67 65 40 179 155 28 61 32 27 160 139\n100\n66 37 48 48 4 48 165 21 133 175 41 114 147 162 154 76 54 58 121 184 88 66 116 56 180 29 137 29 189 43 4 101 184 120 187 136 52 182 128 166 72 193 158 179 183 187 23 197 96 194 101 53 120 103 72 20 132 153 24 33 57 65 132 80 167 166 90 68 126 28 79 144 103 49 33 3 110 40 27 10 127 82 193 187 63 161 165 199 51 118 81 158 103 158 38 178 64 57 172 21\n100\n122 156 67 60 98 143 34 41 19 152 62 11 11 193 5 81 51 160 98 71 42 94 84 135 100 155 155 123 50 88 139 10 17 132 148 10 95 19 48 189 171 51 95 23 37 49 0 7 134 84 177 12 41 104 96 162 137 151 51 132 165 138 45 28 194 126 178 145 128 5 149 57 112 1 199 127 92 153 195 142 167 149 176 55 142 148 103 15 47 73 165 149 137 169 131 170 53 168 52 178\n100\n156 181 95 186 129 131 78 59 152 89 158 38 54 172 8 56 171 147 103 111 174 19 107 5 199 188 61 45 35 92 132 76 67 3 167 99 54 167 12 114 129 193 177 54 12 31 89 126 47 99 89 74 36 12 187 157 103 91 82 29 27 161 152 96 46 183 197 154 32 102 145 76 24 81 195 23 32 143 2 169 82 189 37 199 35 179 54 52 199 150 132 145 93 71 49 190 4 177 105 119\n100\n150 128 28 122 68 185 174 184 51 84 37 115 189 81 74 159 50 146 60 27 33 21 161 18 146 150 63 61 46 58 194 171 145 102 46 20 54 153 160 186 19 135 16 113 135 192 18 65 170 136 125 146 44 112 82 15 105 126 1 173 106 80 193 190 191 14 23 57 100 49 122 85 162 102 68 174 152 48 35 38 162 37 72 192 0 143 119 81 170 191 145 184 114 85 79 199 82 186 119 50\n100\n193 185 116 8 88 99 25 96 169 131 14 102 170 137 198 77 198 51 88 63 53 105 141 67 62 55 81 95 18 72 94 70 138 121 45 123 43 165 118 135 137 199 99 192 154 124 31 66 29 122 156 18 75 92 110 161 132 128 122 149 77 26 148 78 177 138 175 144 125 139 21 140 40 166 81 148 147 151 107 151 110 157 77 9 3 176 140 23 174 54 169 106 85 199 48 130 173 58 16 84\n100\n173 31 4 183 191 22 10 187 164 168 194 179 23 109 57 141 85 77 23 72 28 35 149 117 9 143 67 65 190 91 169 138 4 176 12 191 93 9 20 197 62 128 100 159 42 40 89 94 42 20 86 146 164 86 71 143 66 74 45 188 149 27 154 104 81 46 157 85 114 150 32 73 143 112 32 83 39 168 189 83 9 187 195 45 112 39 135 48 79 7 30 154 1 140 43 118 12 177 23 72\n100\n183 85 86 120 57 102 39 6 76 124 52 37 35 99 116 90 167 6 21 175 120 192 165 147 58 84 131 29 182 105 162 89 123 70 142 82 196 180 169 72 115 51 136 155 174 77 154 129 82 51 169 37 101 76 4 73 161 197 195 125 85 62 29 160 118 73 79 109 62 24 174 82 75 15 143 46 132 168 84 161 72 86 66 89 151 4 33 194 76 198 4 133 68 184 17 164 16 14 66 196\n100\n73 148 110 196 141 191 66 189 20 155 148 51 81 71 25 28 173 54 109 30 38 191 139 53 48 167 54 77 90 197 56 173 189 62 136 29 88 139 185 41 167 120 160 47 181 182 6 189 184 3 160 62 132 192 43 63 123 11 140 92 43 70 119 49 112 176 45 86 156 3 164 98 108 78 138 123 5 11 193 117 143 27 114 90 16 1 139 144 36 12 74 33 140 1 183 135 28 33 37 134\n100\n177 71 122 63 59 140 168 82 48 166 90 27 58 71 106 105 1 34 170 155 107 99 130 75 3 39 194 88 64 73 48 158 80 87 164 113 13 52 170 178 166 104 16 49 177 37 137 59 32 155 105 126 137 166 114 155 90 46 182 35 93 136 46 38 56 3 114 199 41 125 74 124 144 63 149 76 197 134 47 26 43 44 192 161 69 175 139 96 81 71 68 113 66 30 6 109 90 59 84 146\n100\n159 103 6 191 93 196 183 150 157 35 12 67 69 165 103 173 191 116 149 115 118 43 188 97 111 91 74 163 125 7 170 121 127 58 136 75 21 176 199 119 41 11 112 9 35 63 30 114 136 183 32 188 139 105 70 140 68 191 128 185 137 120 124 197 154 103 94 162 65 154 100 102 114 29 194 26 63 128 148 79 151 199 3 42 80 16 90 98 58 130 153 151 62 44 49 85 55 172 89 58\n100\n152 129 40 60 46 27 44 22 136 73 154 133 156 51 191 134 131 122 79 2 176 180 69 188 29 85 2 10 127 74 160 99 42 55 193 65 128 172 84 126 198 123 1 187 88 197 52 175 150 78 55 93 30 6 131 89 165 121 127 164 40 113 189 110 88 163 120 188 21 64 3 154 122 116 54 186 25 124 18 102 120 59 88 82 141 174 100 166 22 154 152 50 116 26 86 2 137 101 101 149\n100\n167 102 65 81 43 110 108 89 58 184 121 106 186 187 171 90 172 118 73 153 81 62 196 13 51 115 4 185 133 164 104 37 53 184 133 172 121 144 170 57 88 129 97 140 123 101 143 76 131 100 48 13 53 111 93 132 51 14 199 16 12 34 49 52 112 141 9 50 180 169 135 162 165 111 17 11 163 121 6 145 43 50 193 64 42 44 33 136 102 25 159 153 7 6 143 129 151 70 195 28\n100\n141 59 20 115 144 178 58 184 138 183 38 137 35 30 182 115 80 21 25 152 4 46 12 4 45 25 44 149 194 129 132 9 116 29 161 133 130 146 132 83 73 39 80 35 187 170 189 29 160 121 197 189 163 44 21 105 15 113 134 199 137 15 164 58 111 183 46 143 137 31 55 51 151 90 52 95 20 61 160 167 73 34 133 191 101 178 187 79 100 15 109 72 61 152 170 23 64 137 50 10\n100\n191 178 43 161 21 118 98 183 133 95 109 72 68 103 64 45 49 50 46 142 44 155 59 168 85 101 168 47 6 187 135 109 164 33 151 140 25 124 146 0 38 31 21 17 24 184 15 144 152 19 70 167 119 174 87 30 145 116 44 99 162 85 115 121 102 141 4 173 133 52 11 29 24 159 183 65 45 150 26 191 97 13 171 186 62 190 184 106 18 22 119 66 18 191 159 166 103 79 98 67\n100\n145 103 30 20 25 134 21 33 35 87 193 27 148 24 92 118 0 44 31 86 95 108 153 197 192 121 19 107 71 22 161 191 52 51 123 165 156 180 61 65 123 100 28 35 153 12 82 76 157 89 92 199 176 61 42 131 60 100 38 80 20 145 129 168 141 162 34 33 70 82 0 160 164 141 99 136 65 33 29 27 54 28 119 184 110 168 17 197 125 6 10 63 48 90 169 144 199 43 155 64\n100\n137 158 6 111 14 147 93 129 187 80 85 164 34 76 15 118 184 47 48 147 155 32 181 37 27 96 59 124 199 53 101 41 4 129 15 165 50 132 83 119 96 39 178 38 41 3 6 20 70 49 5 124 78 187 184 29 139 98 173 38 15 2 41 85 63 11 66 27 183 130 165 82 182 31 35 90 12 56 2 48 113 126 97 64 15 93 107 37 18 138 24 70 183 145 128 59 83 21 137 160\n100\n149 123 83 105 47 113 186 184 9 34 100 170 39 157 68 56 85 192 22 133 135 183 27 99 61 90 135 100 79 173 106 85 45 9 36 181 139 99 101 7 195 19 84 27 155 160 133 52 0 3 88 198 75 169 104 190 43 157 57 119 75 149 190 146 198 67 146 109 80 79 181 7 119 138 25 99 170 14 110 155 32 165 18 120 37 64 109 103 144 50 141 101 144 27 141 110 96 24 83 98\n100\n40 131 170 154 135 103 45 9 14 32 117 30 118 32 13 90 61 132 35 117 45 121 18 5 133 121 46 170 188 194 8 27 35 177 75 5 50 42 54 118 190 124 179 165 154 171 22 44 67 109 10 72 152 74 177 97 170 141 67 141 17 168 65 121 55 127 114 83 137 132 149 162 82 35 192 135 130 134 120 128 88 124 34 33 3 125 122 182 160 65 130 64 23 122 86 108 38 31 165 26\n100\n162 163 178 19 51 141 115 76 168 121 98 187 131 39 139 152 30 74 181 142 118 100 100 34 6 80 190 123 199 168 85 34 55 144 44 108 0 19 118 149 147 180 99 48 84 119 132 140 88 170 97 33 140 22 145 140 127 50 82 47 99 50 130 196 104 131 5 51 82 139 167 170 76 143 156 173 116 157 86 166 33 43 72 14 98 71 137 61 9 120 186 127 41 53 123 128 91 197 99 81\n100\n23 110 71 178 193 90 53 34 66 47 113 22 145 174 88 22 177 119 83 166 5 194 46 124 41 89 98 197 66 60 191 173 65 5 6 38 196 118 62 144 126 15 93 123 169 124 18 169 72 70 161 15 25 129 94 37 195 30 149 100 101 194 161 103 192 159 148 6 13 169 39 55 161 51 10 77 176 139 22 102 24 196 49 23 112 123 114 171 8 20 181 156 98 149 145 97 66 43 48 192\n100\n131 4 95 94 50 149 151 181 198 45 75 45 184 33 100 199 167 97 9 141 31 99 98 174 187 159 62 145 129 59 124 167 166 168 127 94 49 196 142 123 196 17 11 168 48 181 33 174 88 84 68 68 25 4 44 121 160 111 122 151 100 142 30 25 30 51 120 198 127 80 5 182 25 14 12 4 192 9 138 5 66 66 171 80 164 141 26 86 135 133 51 124 76 92 159 151 196 127 7 87\n1\n27\n100\n120 5 127 37 110 183 3 137 83 141 35 21 77 78 80 34 111 29 53 130 8 130 48 32 141 70 16 63 18 15 184 109 174 141 85 8 160 148 85 178 101 171 105 1 196 172 109 131 187 70 125 184 2 127 146 88 152 197 189 95 198 151 18 173 57 119 73 115 68 83 10 59 125 196 39 183 118 159 118 61 167 3 166 138 26 193 82 76 160 138 157 180 154 78 61 68 121 73 98 157\n100\n58 19 145 101 189 16 156 39 125 125 132 178 21 116 162 87 8 138 130 5 90 199 169 7 53 13 56 185 183 148 193 199 162 6 66 135 19 71 64 199 8 47 14 114 12 107 22 127 92 120 199 98 71 186 192 152 17 124 188 93 89 88 14 96 68 146 158 137 145 168 197 25 47 21 37 43 107 70 149 146 39 52 12 20 31 76 91 125 45 99 16 174 56 77 72 136 8 96 109 132\n100\n158 188 144 4 130 127 49 119 68 174 101 161 55 166 127 113 162 180 18 128 89 113 141 23 196 131 40 31 135 32 182 182 50 44 52 57 1 68 33 173 94 19 126 83 133 182 112 36 25 52 12 24 45 96 2 173 158 105 77 158 111 81 50 170 180 53 127 159 116 197 118 118 177 181 65 152 113 171 176 186 74 42 41 109 97 62 48 42 148 192 136 20 17 29 24 181 38 106 161 150\n100\n147 58 39 105 181 68 14 1 116 94 167 45 167 39 163 0 174 44 199 125 80 17 24 49 86 74 57 185 15 58 75 30 182 11 37 70 162 191 28 61 12 96 76 100 158 171 191 48 122 98 150 158 128 145 142 38 60 73 77 93 95 4 13 32 125 104 95 21 48 168 84 20 91 38 32 119 137 166 32 62 134 31 37 94 102 11 114 42 69 34 147 130 103 41 6 11 97 137 102 15\n100\n63 117 117 199 151 43 138 182 54 87 12 112 122 37 174 91 8 118 51 77 23 52 11 30 189 1 15 87 128 29 121 187 63 127 88 77 114 46 75 82 31 39 19 169 47 162 6 160 152 105 161 120 180 41 150 139 138 124 151 5 140 189 25 82 104 53 180 30 11 6 58 187 51 127 30 22 147 7 96 114 5 149 6 10 115 135 188 185 134 113 23 76 163 177 126 122 107 129 66 27\n100\n25 100 48 175 130 157 13 96 16 92 105 51 7 130 103 147 52 55 84 135 194 146 190 36 47 105 7 78 158 81 146 99 22 192 13 8 52 41 191 176 124 57 108 146 158 32 63 27 31 41 79 37 100 37 109 150 54 140 197 27 179 46 139 38 81 98 192 21 97 93 13 6 129 93 151 16 194 38 188 75 171 21 180 83 166 99 156 9 66 68 159 195 184 128 94 132 66 58 66 63\n100\n113 31 86 160 166 49 122 60 83 173 166 106 146 74 108 146 70 20 66 69 178 127 38 84 159 167 178 30 121 191 90 93 44 9 107 40 123 22 47 150 25 62 182 169 140 1 55 105 126 87 63 179 166 78 145 9 86 106 120 43 6 42 161 183 138 17 195 109 199 97 195 142 52 167 140 103 55 155 52 56 45 62 197 50 189 65 105 127 47 27 103 76 65 75 46 181 3 15 63 160\n100\n116 181 177 133 28 184 103 44 76 174 108 135 2 135 41 186 193 120 14 144 57 112 104 96 91 106 26 16 183 133 111 176 105 65 6 98 18 19 191 24 67 50 134 95 175 75 94 187 65 162 39 108 60 82 186 95 122 135 148 159 119 138 66 173 150 60 141 93 148 6 118 68 12 65 19 127 171 114 42 150 149 128 61 177 136 25 6 65 183 153 5 26 153 165 145 127 180 31 180 183\n100\n147 123 81 63 144 49 26 40 62 91 29 98 198 178 127 25 60 69 180 23 147 2 165 82 23 55 187 7 9 130 91 111 144 144 75 89 5 156 124 17 56 48 160 80 50 88 166 67 178 173 43 48 132 176 163 198 135 16 57 180 166 61 91 133 129 85 50 91 93 88 88 186 57 159 27 110 26 90 41 64 66 74 92 148 12 92 16 158 27 159 42 39 163 48 196 50 96 196 78 108\n100\n86 37 103 123 1 41 45 30 94 0 193 54 194 4 142 124 169 181 43 27 1 102 23 38 161 34 101 5 100 132 56 36 10 117 193 77 192 110 190 8 175 89 69 191 139 35 106 39 173 69 173 44 27 195 136 195 102 116 7 22 164 148 8 172 8 190 157 47 31 86 96 106 67 14 190 67 5 111 183 53 39 26 142 129 40 127 140 86 43 47 153 70 10 5 109 171 71 42 132 42\n100\n20 25 81 118 188 151 52 57 65 175 30 151 102 150 188 147 72 90 19 117 193 160 156 92 93 199 32 49 73 143 133 44 56 86 25 164 0 132 22 145 53 109 95 147 108 119 34 136 123 44 182 90 175 146 39 48 165 162 168 119 69 182 113 87 140 166 33 90 121 36 77 195 106 63 49 20 56 133 166 155 57 21 61 101 60 116 163 138 178 197 134 188 99 70 199 115 166 65 32 74\n100\n78 137 0 48 193 158 157 71 58 82 17 65 106 20 112 4 2 197 136 43 116 178 106 24 115 73 160 78 136 119 8 188 182 121 16 23 112 186 170 166 42 68 58 76 62 146 181 153 104 38 197 122 195 111 115 187 21 37 4 178 40 64 166 94 131 165 156 184 65 106 65 0 184 189 2 11 157 7 7 27 86 143 35 112 31 77 49 6 1 35 146 159 176 11 108 90 164 197 125 107\n100\n83 15 177 94 180 155 168 134 183 11 116 3 148 0 41 60 73 123 189 32 23 187 178 139 103 137 90 63 177 1 3 113 30 114 99 198 103 198 117 190 68 174 92 48 106 184 48 126 167 35 7 177 71 5 30 120 45 58 159 198 42 8 77 66 33 105 78 90 111 40 17 2 69 143 48 26 160 57 63 46 90 68 126 186 10 49 139 13 162 158 20 37 15 75 172 76 190 29 155 10\n100\n77 184 75 35 176 40 48 129 190 33 167 37 123 45 3 194 86 134 52 75 141 125 1 55 104 178 191 33 60 125 26 125 90 189 107 135 47 119 83 14 28 113 48 26 40 127 109 66 165 165 87 73 176 150 53 153 29 109 143 0 171 11 178 163 188 168 2 160 168 173 66 160 18 185 1 85 19 146 13 96 189 94 4 119 19 27 88 61 95 52 43 90 147 165 124 84 125 153 192 110\n100\n197 97 5 112 56 56 130 31 34 101 171 38 56 65 36 69 124 186 172 2 52 71 180 125 180 108 199 137 67 128 12 31 84 93 58 140 87 88 77 159 159 130 30 76 140 38 191 60 76 60 94 128 37 53 185 139 127 128 196 104 168 196 175 13 183 191 148 46 133 159 127 173 1 7 95 152 35 60 52 171 195 120 73 88 67 175 163 12 74 49 130 28 195 183 33 127 45 0 185 190\n100\n172 38 171 193 96 173 61 108 116 100 139 27 97 72 178 89 172 93 58 199 78 166 10 42 195 167 177 54 54 192 2 26 194 45 174 148 83 44 81 175 70 47 118 98 167 194 172 67 138 191 189 68 60 112 100 12 34 77 175 17 90 47 190 140 105 84 43 14 164 100 98 82 75 170 123 98 51 64 77 23 60 164 117 67 170 119 55 97 127 65 100 88 169 13 198 44 159 50 56 5\n100\n10 28 113 20 82 32 66 187 31 64 101 180 185 102 73 53 194 27 188 154 2 66 168 147 171 137 33 112 62 120 101 155 85 86 117 141 163 48 132 67 153 146 13 194 107 75 66 129 82 108 2 94 171 106 98 155 144 44 24 178 101 31 140 103 125 128 159 189 70 49 112 188 163 0 141 114 105 44 111 175 84 106 58 197 194 159 123 15 96 22 58 73 76 196 106 105 195 187 143 141\n100\n139 188 39 77 172 152 196 82 171 185 129 184 47 68 139 199 15 122 42 112 107 31 48 54 171 90 9 58 125 127 68 164 155 105 89 7 155 196 123 141 49 34 184 26 186 11 22 69 58 11 0 4 185 103 162 8 122 40 1 137 12 147 119 91 148 160 5 25 90 130 81 88 195 38 11 184 47 55 171 102 100 161 117 165 139 101 23 15 9 53 2 31 185 89 7 144 135 64 12 27\n100\n184 155 95 85 49 38 155 15 141 56 9 19 27 62 48 179 143 131 151 51 96 98 179 138 106 191 101 13 181 51 69 86 77 142 141 155 35 58 199 161 180 295 184 138 113 56 193 173 71 31 52 53 199 23 100 36 0 166 192 146 164 103 81 152 9 133 122 82 89 42 104 69 140 136 65 5 12 72 26 155 25 10 156 188 46 68 14 13 196 126 65 85 181 29 56 188 116 38 198 115\n100\n99 22 133 68 29 143 116 28 61 190 24 141 47 147 119 81 182 89 105 3 149 190 191 168 145 117 145 167 70 138 186 125 2 182 95 28 55 196 120 141 13 146 78 27 103 124 86 186 165 197 68 16 18 144 4 163 79 15 172 43 7 17 126 17 180 57 69 136 58 100 22 74 35 28 114 158 99 27 192 121 140 89 136 43 93 146 21 28 94 18 2 143 96 27 17 85 3 72 176 85\n100\n111 66 54 154 142 43 100 150 66 9 134 198 100 182 116 85 93 53 124 21 48 111 75 43 103 23 116 123 85 3 112 117 84 69 7 166 104 184 181 65 172 30 160 87 115 145 193 21 42 65 49 158 148 166 70 96 93 103 167 83 60 114 44 15 114 124 161 125 0 67 172 49 17 18 13 158 179 69 86 75 124 46 187 117 82 71 140 101 35 25 73 147 6 188 117 43 138 184 157 39\n100\n94 60 131 53 65 37 190 171 27 97 60 184 91 99 91 140 90 106 13 98 23 190 162 125 21 195 146 178 154 1 123 13 98 146 87 78 12 118 82 84 114 156 19 58 127 130 1 26 92 166 24 144 155 102 19 88 184 21 156 35 68 199 10 13 108 135 115 162 154 102 34 115 10 63 74 92 184 81 148 40 24 101 181 102 93 96 20 101 55 179 178 14 7 73 99 66 68 185 124 164\n100\n187 29 118 111 2 122 42 187 142 97 188 172 38 13 133 148 31 150 196 59 9 29 117 124 106 121 189 25 138 9 69 81 39 107 29 113 154 85 50 193 49 194 2 8 134 127 72 107 96 142 172 50 8 19 21 83 127 173 105 44 158 175 44 91 134 152 183 24 186 63 131 101 153 155 126 196 128 51 61 10 80 153 27 91 91 52 9 126 69 134 63 130 121 67 49 17 65 11 125 108\n",
"2\n2 \n3 3\n3 \n1 0 3\n\nSAMPLE\n",
"100\n100\n41 67 134 100 169 124 78 158 162 64 105 145 81 27 161 91 195 142 27 36 191 4 102 153 92 182 21 116 118 95 47 126 171 138 69 112 67 99 35 94 103 11 122 133 73 64 141 111 53 68 147 44 62 157 37 59 123 141 129 178 116 35 190 42 88 106 40 142 64 48 46 5 90 129 170 150 6 101 193 148 29 23 84 154 156 40 166 176 131 108 144 39 26 123 137 138 118 82 129 141\n100\n33 115 39 58 104 130 177 106 73 186 21 145 124 72 70 29 177 173 97 112 186 90 161 36 155 167 55 174 31 52 150 150 141 124 166 30 107 191 7 137 57 87 153 183 145 109 9 158 21 188 22 146 106 30 13 168 100 191 162 55 10 159 24 137 148 83 195 41 2 150 91 36 174 20 196 21 148 199 68 84 81 134 53 199 18 138 100 188 127 67 128 93 48 83 7 21 110 17 13 114\n100\n109 16 135 51 0 49 119 156 198 103 24 8 44 9 189 102 195 85 93 143 123 187 114 103 48 0 58 18 180 196 198 81 189 198 9 157 72 22 138 92 38 179 190 57 158 191 15 88 156 111 2 34 72 55 128 46 162 86 75 33 69 142 44 16 81 198 122 51 21 99 157 76 92 189 75 112 0 110 3 69 61 33 1 189 55 23 2 185 182 85 88 26 17 157 32 132 169 154 121 189\n100\n176 129 168 92 25 155 34 149 41 112 145 60 118 153 139 23 79 196 87 129 149 37 66 149 193 195 97 16 86 105 88 82 55 134 114 101 116 71 186 63 113 155 185 53 112 8 32 145 113 156 121 158 46 182 81 144 196 22 129 161 135 50 173 66 44 59 92 39 53 24 154 110 145 49 186 113 74 22 168 18 187 105 158 191 2 25 77 14 114 24 134 74 172 159 33 70 87 97 118 177\n100\n173 70 163 68 192 185 102 80 13 27 2 99 127 25 143 124 23 172 61 181 3 32 105 193 125 31 92 142 22 86 64 100 187 160 13 174 70 170 35 33 111 160 96 67 85 150 140 94 95 24 19 125 176 94 58 102 171 66 78 193 51 84 18 64 119 152 0 87 60 126 10 157 170 115 176 27 43 158 164 109 82 86 165 87 177 74 25 27 29 128 23 120 102 162 123 196 137 61 195 125\n100\n64 60 2 116 30 126 11 171 11 147 153 120 190 124 188 222 140 51 62 29 100 113 158 178 165 7 77 0 58 39 103 160 157 124 77 108 113 87 1 50 60 28 193 184 5 140 111 104 35 156 72 150 23 85 156 16 26 157 126 157 137 71 69 161 96 22 17 112 117 96 185 41 23 129 29 165 159 132 96 55 53 162 184 134 54 172 57 169 132 163 7 83 111 35 67 48 75 138 23 142\n100\n154 111 141 175 59 25 21 70 26 134 5 183 50 198 79 101 193 134 37 134 156 193 176 105 162 148 81 100 13 41 55 55 142 62 11 77 24 78 152 43 96 73 40 113 75 72 18 10 17 132 112 95 169 31 40 88 85 90 97 189 190 145 153 114 51 140 44 58 135 159 192 5 64 181 103 29 175 8 92 197 149 156 161 27 67 141 129 40 13 174 1 77 15 83 13 192 24 1 192 159\n100\n70 28 27 84 75 186 98 170 87 47 4 103 21 63 106 163 10 171 89 40 164 142 19 113 191 104 18 32 150 5 175 139 103 22 98 47 184 48 171 64 113 75 145 112 146 78 169 62 119 185 89 144 65 140 45 108 118 70 1 123 132 72 152 87 170 163 101 103 23 127 0 169 15 165 28 143 147 88 143 37 9 63 49 81 188 142 8 60 21 158 154 88 146 90 149 43 30 20 148 67\n100\n136 183 35 26 185 38 53 29 24 148 123 159 57 166 144 155 118 126 11 25 155 1 149 96 184 115 164 142 75 113 142 196 148 72 26 6 173 29 4 105 26 12 175 93 165 36 136 141 14 194 56 52 136 38 82 155 15 131 30 41 25 11 37 186 90 50 62 34 93 153 16 52 8 62 33 54 103 34 103 56 148 124 117 13 109 28 0 80 118 58 50 155 161 64 103 76 43 109 102 161\n100\n89 148 82 53 74 20 2 123 31 169 78 59 8 19 171 3 145 181 104 192 85 113 98 189 122 138 37 10 61 34 108 161 159 93 115 69 137 69 58 100 171 64 117 15 155 15 130 39 12 88 82 154 85 110 84 174 180 15 151 141 115 79 110 98 73 188 177 132 156 89 113 8 141 190 123 163 28 184 178 0 71 85 174 71 133 67 153 95 168 25 76 29 50 198 109 93 86 80 116 49\n100\n67 128 79 64 21 5 26 16 116 126 66 87 81 164 140 86 21 62 121 64 109 15 102 73 124 141 145 162 23 131 6 68 118 2 107 107 81 12 136 30 114 9 84 156 90 93 196 152 54 145 108 48 91 112 131 114 39 158 122 104 195 52 69 79 38 23 118 66 59 98 86 196 62 33 158 22 146 239 37 125 47 58 2 7 98 30 92 0 78 199 152 48 82 140 115 175 162 167 136 197\n100\n18 97 28 51 16 30 49 125 58 29 120 140 160 147 162 55 75 192 161 154 198 146 114 146 188 169 38 63 75 115 121 75 15 128 34 170 105 64 157 162 161 124 149 69 130 123 150 133 125 110 137 136 137 78 193 36 114 164 191 149 135 105 137 4 137 23 64 170 8 168 81 85 152 173 52 194 76 26 196 172 49 40 174 19 143 11 141 89 19 165 5 185 16 50 15 9 64 166 93 74\n100\n109 100 95 173 189 161 172 168 158 31 68 26 110 22 174 179 110 152 182 191 95 164 74 164 102 55 60 74 172 21 122 147 177 189 5 195 194 150 143 154 81 12 72 39 28 112 162 167 8 15 108 23 159 34 4 86 119 158 145 6 166 100 167 92 187 132 156 174 47 21 83 22 131 176 183 148 123 182 18 176 20 111 182 56 90 125 124 86 77 169 43 134 77 68 68 191 196 183 28 127\n100\n26 71 97 12 103 27 8 145 108 185 38 37 43 113 101 50 128 111 50 149 192 54 69 81 65 67 113 193 34 72 172 30 101 42 177 77 170 102 164 181 190 23 37 23 179 195 169 162 42 110 182 58 126 87 70 128 51 58 13 60 183 86 142 10 72 128 34 41 118 103 67 65 138 81 57 150 14 198 58 61 63 156 7 78 89 35 165 75 186 186 25 160 130 48 128 92 33 40 166 135\n100\n10 199 37 92 182 128 152 169 44 194 8 52 47 32 135 8 64 97 43 49 15 41 189 100 12 48 123 51 74 33 91 0 54 190 97 119 180 178 131 144 140 87 99 125 83 138 92 193 52 11 160 34 40 97 185 129 140 5 191 192 10 149 178 179 171 77 73 193 20 97 26 76 190 182 178 159 18 89 159 49 124 72 180 8 167 8 77 103 170 7 196 74 122 11 19 161 56 90 163 83\n100\n116 132 52 141 154 13 62 196 60 15 104 199 136 80 198 32 187 184 40 117 6 70 41 82 49 123 158 105 21 95 96 116 78 178 179 58 177 150 7 129 81 195 78 76 153 99 184 165 93 8 172 43 129 114 168 55 191 173 122 148 51 186 144 46 177 117 29 116 74 191 69 112 146 93 91 15 149 57 40 52 36 151 87 26 162 155 183 194 180 97 65 65 113 61 178 78 78 140 11 147\n100\n45 170 175 89 91 149 133 65 14 82 7 32 96 167 122 82 10 41 31 187 105 79 121 138 151 47 8 46 76 159 189 22 66 86 55 28 14 60 53 177 148 103 61 31 82 55 197 106 152 21 96 81 21 55 147 124 118 135 176 174 59 198 74 53 122 35 43 88 153 32 147 80 126 78 50 1 161 199 55 163 116 173 161 45 73 74 150 153 181 87 99 110 43 65 172 129 181 112 76 181\n100\n47 90 71 5 172 32 189 120 165 31 58 93 6 178 148 6 171 166 196 97 20 94 129 188 109 184 169 178 17 15 26 84 168 106 128 97 118 190 199 185 86 199 20 110 71 13 15 85 118 180 131 67 187 44 186 107 160 27 74 31 152 71 68 93 85 137 111 4 77 6 168 22 13 0 142 137 38 188 155 89 47 181 93 184 187 161 93 17 101 82 47 65 153 104 84 95 125 21 164 181\n100\n72 106 56 143 193 80 80 68 11 184 168 51 16 79 168 40 131 133 179 63 59 53 136 95 165 74 120 35 80 176 55 125 71 8 159 156 2 32 105 40 175 162 85 162 80 36 197 2 108 80 140 76 58 93 140 146 74 173 97 80 135 72 0 107 155 66 141 188 81 168 115 196 25 9 12 136 55 162 43 142 21 122 112 48 18 168 117 114 50 90 135 159 169 95 103 40 179 199 105 191\n100\n61 81 52 153 33 29 187 42 53 83 20 14 118 44 63 29 52 64 169 70 5 47 194 87 126 76 123 140 79 190 188 110 71 145 21 70 183 189 155 178 179 6 62 135 87 196 33 88 135 179 193 190 162 165 1 105 7 167 69 134 71 57 198 145 197 18 38 44 172 163 28 64 1 123 90 4 1 27 197 92 171 163 101 163 121 165 21 45 10 95 141 22 12 151 15 55 193 138 79 82\n100\n8 54 22 107 45 138 144 90 139 154 4 23 25 78 124 181 130 133 23 194 130 46 187 45 5 16 150 89 138 163 135 97 9 30 24 108 137 74 120 172 93 55 134 161 56 6 184 75 182 119 141 32 84 179 79 83 67 36 125 118 137 28 119 177 137 91 156 195 60 101 193 32 136 180 75 107 184 74 119 190 76 41 151 129 90 174 72 191 189 187 90 39 93 53 63 81 103 5 176 79\n100\n95 139 68 198 83 39 115 21 193 26 122 38 28 181 199 178 91 23 143 34 43 149 102 107 102 141 87 146 94 37 13 0 16 90 162 135 126 10 77 182 60 189 105 74 63 122 195 166 160 38 188 11 45 67 25 67 189 142 63 147 102 17 99 23 26 3 48 51 170 36 58 167 56 5 131 162 19 175 156 131 95 44 191 3 188 115 50 119 72 191 183 133 175 42 169 100 154 78 185 57\n100\n133 93 90 103 150 33 122 71 11 190 138 41 58 47 152 58 79 102 83 190 2 168 22 95 135 2 161 142 194 99 188 178 42 157 141 47 69 145 180 113 164 110 61 185 73 104 62 103 102 69 154 129 152 74 149 130 44 44 49 118 65 163 152 173 70 131 147 111 69 198 98 103 152 79 53 43 122 88 163 34 50 22 40 111 92 51 180 77 16 76 178 20 15 148 198 179 35 57 83 62\n100\n102 62 20 170 22 73 41 86 88 117 117 92 98 67 149 65 189 132 19 81 3 130 28 31 189 152 30 172 64 7 95 28 81 90 10 177 71 36 59 43 40 33 37 93 30 74 193 182 3 61 90 62 107 197 151 23 90 117 40 103 166 83 61 59 45 186 51 165 1 40 9 97 83 50 58 21 175 181 187 71 87 199 104 179 138 100 130 61 118 5 140 28 59 22 198 160 98 135 81 14\n100\n167 93 196 161 146 138 70 138 76 155 117 171 160 152 158 33 55 65 126 1 34 159 193 148 73 192 193 133 137 103 90 11 94 68 27 98 189 48 79 47 149 131 123 75 198 49 36 199 123 43 131 154 61 34 185 167 16 193 104 66 153 108 23 84 192 67 48 69 130 11 14 90 27 143 4 199 74 195 106 158 189 58 9 89 47 40 18 164 175 26 89 103 66 12 40 170 76 195 41 186\n100\n51 109 187 83 85 190 50 86 155 181 128 102 77 62 24 165 72 32 85 28 46 89 78 83 125 65 60 45 178 21 55 120 127 173 134 51 75 136 134 1 137 110 174 190 156 71 80 135 145 82 25 118 173 112 37 198 105 162 117 92 139 47 146 103 31 115 39 58 29 45 194 199 45 72 75 62 72 173 80 38 97 142 8 3 77 125 134 1 78 182 169 136 78 139 138 121 26 63 77 175\n100\n124 181 100 161 62 2 48 95 84 16 137 107 193 84 144 59 21 58 43 68 77 119 57 41 91 64 23 115 72 129 41 115 15 136 157 159 100 52 93 41 29 48 27 198 24 124 74 133 85 38 170 62 29 84 109 78 123 85 0 24 193 105 12 165 167 7 77 184 104 190 34 91 21 85 134 190 142 198 86 18 21 24 197 176 54 69 108 127 93 68 166 102 38 0 19 118 90 184 139 156\n100\n8 32 78 14 187 39 74 20 27 154 188 41 198 42 2 121 104 146 56 109 33 108 161 133 86 4 185 142 42 60 161 20 143 178 187 113 63 191 134 15 56 161 12 11 159 51 138 170 124 107 7 184 151 101 89 158 41 190 13 12 55 60 93 72 2 76 143 173 66 51 75 128 132 161 69 103 129 107 92 51 153 192 170 119 72 7 94 105 40 183 62 9 7 38 160 71 171 54 147 114\n100\n123 29 89 166 87 156 32 70 139 66 122 83 160 153 105 91 59 186 87 29 42 117 45 156 188 52 154 66 33 160 119 31 138 67 176 98 114 120 53 7 69 16 122 42 7 63 60 147 193 30 117 43 176 114 26 117 134 20 171 192 164 154 66 93 64 175 0 12 100 151 76 179 143 77 189 161 185 72 34 144 161 163 104 146 88 108 157 30 123 64 74 146 37 181 118 11 92 191 32 123\n100\n61 191 61 130 98 169 91 0 179 117 117 114 195 41 136 67 28 53 109 173 181 103 169 16 83 167 185 2 30 157 81 167 110 66 87 171 77 45 164 38 71 47 115 192 111 57 5 53 171 180 140 130 75 120 190 177 198 186 4 89 31 144 188 10 118 119 59 127 9 119 79 116 100 196 53 58 30 193 6 49 54 72 160 94 54 133 146 29 71 28 159 41 21 88 166 33 85 70 129 61\n100\n60 8 182 162 106 78 179 97 87 138 69 183 140 195 66 33 61 157 117 134 53 135 58 193 43 93 66 151 140 94 137 174 112 97 151 95 17 92 92 37 130 13 96 110 189 28 9 186 144 40 182 169 120 193 92 162 14 127 7 194 105 48 11 113 93 64 3 195 162 181 146 109 48 168 24 111 154 35 127 33 40 62 127 177 17 140 142 100 0 158 76 154 135 30 31 95 137 23 122 127\n100\n29 11 11 154 80 53 93 121 185 128 43 0 155 71 70 52 175 31 40 134 40 186 34 48 139 165 196 112 62 52 131 187 64 157 48 156 170 50 182 101 93 99 132 44 131 75 4 50 26 66 138 1 23 43 41 180 95 118 59 163 28 129 88 54 13 179 169 66 79 177 37 2 115 92 123 72 48 123 153 148 195 197 108 108 11 193 65 181 2 10 28 56 105 165 23 169 115 53 5 84\n100\n78 145 40 33 85 100 168 194 33 85 148 81 32 56 110 72 182 101 106 35 60 71 127 137 143 168 33 195 171 3 142 11 79 34 112 193 130 161 34 58 126 106 259 43 188 27 119 84 24 93 35 24 94 182 67 27 5 146 86 189 140 37 50 159 178 156 77 3 42 100 11 25 143 195 16 15 4 6 168 41 135 98 125 113 23 112 18 57 196 139 86 94 46 43 122 111 80 55 158 47\n100\n70 190 73 127 13 54 96 72 50 41 41 46 125 13 24 129 95 3 194 193 67 187 40 79 41 125 134 60 0 107 21 92 93 117 117 3 143 93 39 11 125 28 178 148 50 92 44 54 23 153 36 147 146 26 61 104 38 171 86 5 99 56 128 67 151 19 191 166 117 46 93 187 21 112 67 99 44 97 1 128 142 104 168 168 41 96 62 120 44 118 10 19 184 174 184 59 149 14 95 103\n100\n32 51 137 14 163 51 19 90 117 83 118 184 52 186 69 48 137 197 24 168 27 247 193 182 71 69 93 77 14 104 84 143 95 11 93 92 198 190 99 90 93 74 149 174 114 173 69 18 65 33 38 111 52 63 108 149 88 45 31 120 106 71 168 21 58 157 47 182 38 122 123 106 106 189 156 145 151 123 118 150 97 36 191 6 110 13 51 80 44 143 141 45 178 149 105 114 185 27 24 4\n100\n156 117 27 155 102 86 68 98 179 11 89 158 90 175 10 132 89 96 150 112 122 129 72 36 77 153 176 70 85 52 151 197 151 1 35 93 72 116 116 128 111 125 38 96 139 144 56 26 102 158 188 21 186 108 177 28 179 147 149 80 45 128 62 26 119 77 91 47 185 31 6 84 154 169 109 156 21 145 65 16 60 97 135 190 77 49 5 86 188 75 143 177 130 87 155 82 53 0 154 89\n100\n88 15 8 110 140 199 197 107 54 104 37 85 99 192 13 12 82 183 151 129 137 33 0 64 83 57 168 110 168 108 41 132 37 84 99 101 69 183 56 92 40 87 12 10 20 35 63 15 97 77 174 134 153 133 78 86 24 134 75 149 112 184 24 192 104 22 55 113 62 73 45 160 122 53 197 22 150 137 117 6 131 197 105 36 157 199 90 98 185 47 84 192 125 196 55 28 138 142 28 195\n100\n142 37 106 167 53 193 105 146 9 124 54 65 39 6 9 92 99 175 36 61 47 18 13 127 112 96 109 41 130 90 34 115 86 123 66 144 136 37 16 93 149 171 44 177 85 0 190 85 125 77 68 6 129 8 141 25 136 180 116 70 184 147 128 136 4 100 123 164 11 40 50 104 83 166 141 70 45 106 88 56 107 66 57 78 199 74 155 191 190 32 58 196 117 90 167 107 34 46 62 2\n100\n39 26 95 106 114 150 186 79 176 22 79 101 12 76 164 157 170 38 22 144 161 180 0 43 56 61 47 139 8 90 52 179 18 19 7 84 147 177 75 13 109 171 42 139 136 21 101 34 129 158 36 69 97 104 198 2 105 38 32 65 116 81 179 23 127 171 113 182 140 16 88 119 189 113 59 51 71 83 164 38 12 184 159 101 174 133 59 114 49 195 122 141 16 177 52 165 91 138 110 167\n100\n55 187 34 22 39 41 48 4 34 168 41 72 68 174 176 137 33 41 145 18 15 174 52 46 156 124 166 181 144 40 134 96 76 27 5 18 91 41 65 191 71 59 100 17 16 143 24 64 105 157 102 66 75 46 32 189 46 145 3 152 101 31 153 184 49 150 5 146 25 170 136 195 193 123 132 56 96 10 176 92 150 90 195 52 150 115 36 161 160 184 129 134 50 82 6 136 184 190 17 182\n100\n66 116 188 25 101 10 50 182 21 193 38 154 193 95 80 38 167 20 145 83 65 96 33 190 32 189 39 183 17 129 153 79 13 0 52 145 61 151 118 163 13 107 154 76 17 11 29 64 166 131 142 98 122 155 187 57 158 64 162 110 146 65 180 165 146 140 97 42 64 194 184 70 115 0 6 106 102 96 33 11 67 15 45 175 154 48 119 79 188 121 192 197 197 109 52 71 58 122 59 197\n100\n199 99 120 120 36 184 112 115 153 85 141 199 167 8 44 169 81 79 108 7 59 106 49 75 26 124 7 174 84 128 146 145 81 114 149 168 138 107 193 104 105 97 17 155 41 143 133 97 79 136 155 33 154 130 52 104 79 88 70 154 72 176 101 15 86 31 80 175 60 114 138 57 190 38 181 47 42 18 70 31 61 19 181 190 33 72 163 102 102 128 121 98 47 145 6 22 86 194 177 44\n100\n83 147 40 85 64 123 137 53 168 130 55 66 58 112 56 118 1 142 76 106 102 84 23 70 112 50 75 111 50 195 88 120 101 183 198 92 48 184 45 187 62 143 58 59 71 16 172 32 41 83 88 15 176 116 98 39 83 5 197 146 169 75 117 187 20 30 42 135 189 173 80 73 177 186 181 185 122 145 179 85 113 135 135 83 186 96 48 85 152 121 60 136 36 88 119 36 192 65 78 198\n100\n96 186 11 176 147 121 2 45 102 164 139 172 57 170 120 54 159 80 98 191 160 110 191 67 33 75 136 99 175 190 176 56 72 103 86 167 115 142 95 166 56 186 37 198 26 164 85 65 108 140 160 14 154 12 152 138 106 125 30 49 179 79 113 38 117 21 145 191 169 39 108 165 162 47 81 170 147 53 108 108 115 29 66 89 63 171 141 59 31 172 114 166 188 170 168 199 55 50 44 136\n100\n78 6 27 113 123 171 127 73 61 173 134 102 187 17 63 153 126 195 95 13 6 170 59 105 96 33 23 52 79 119 126 193 185 65 171 44 107 71 87 99 119 196 115 152 92 153 57 190 159 157 86 9 65 86 19 59 113 35 28 101 68 69 56 131 178 74 195 43 74 116 24 111 185 122 171 57 95 174 38 183 58 95 122 183 31 103 32 100 190 80 8 105 102 58 18 157 161 120 28 56\n100\n113 132 92 182 67 120 158 74 187 94 183 164 64 114 146 190 25 55 163 67 192 31 19 80 118 128 148 120 79 91 166 187 8 126 25 159 118 20 35 114 56 147 156 134 160 151 8 78 94 189 124 176 94 90 189 172 19 101 102 44 123 139 9 27 37 186 16 27 169 23 99 114 15 44 36 69 178 76 58 152 46 137 115 188 16 88 182 74 133 115 56 56 62 16 124 129 42 184 72 49\n100\n196 26 182 2 175 16 65 152 159 155 17 44 154 43 24 199 22 121 133 13 117 193 73 60 175 74 185 101 22 8 195 26 120 91 188 129 72 177 193 8 54 122 76 137 16 3 90 112 89 53 179 99 122 102 2 169 54 129 134 38 74 26 63 134 172 148 53 103 107 118 133 37 95 179 61 144 59 161 107 176 72 45 192 172 28 196 11 135 35 29 116 132 156 158 149 20 96 124 120 126\n100\n6 183 45 174 91 188 138 64 104 77 153 142 4 23 52 25 11 42 124 149 135 190 146 128 55 4 141 109 181 179 102 83 92 132 112 99 161 47 5 90 169 159 28 139 28 180 71 178 40 56 148 44 145 125 10 98 16 180 15 64 26 72 79 193 82 5 136 133 105 187 132 38 165 64 118 199 32 108 96 38 178 38 45 59 169 144 162 169 49 118 67 158 143 61 3 190 186 26 3 4\n100\n100 168 23 147 196 166 30 65 152 0 5 173 186 68 197 179 24 128 60 158 25 67 112 134 52 169 162 170 11 35 90 111 64 150 160 145 167 154 187 17 165 142 88 73 15 179 37 188 69 86 30 9 40 121 119 81 26 20 11 54 93 184 157 199 136 29 150 57 5 165 134 49 94 192 70 119 17 113 53 117 177 160 105 153 191 162 176 54 72 134 16 50 193 145 52 147 121 61 144 59\n100\n166 85 39 118 107 68 154 50 32 199 20 135 98 192 116 182 29 116 59 158 183 199 135 157 70 71 142 180 77 6 95 86 3 52 118 35 85 28 78 160 101 149 164 185 26 157 137 41 138 193 96 33 93 168 73 135 109 96 181 161 139 184 123 99 131 49 42 6 50 87 40 169 23 188 67 83 0 158 6 138 63 120 166 158 85 23 29 98 156 70 175 196 83 188 19 146 190 75 69 119\n100\n141 197 145 54 158 58 194 191 141 37 100 32 75 136 38 158 180 85 13 84 53 127 85 26 70 136 81 170 149 148 77 199 35 173 137 151 131 17 33 171 176 129 131 44 142 67 0 128 116 34 199 157 40 181 23 141 131 149 139 99 175 99 163 45 126 1 24 83 189 135 24 95 145 170 83 117 192 152 124 173 140 55 68 70 43 30 156 165 114 180 58 158 124 8 111 67 117 128 190 99\n100\n180 70 190 12 0 64 75 84 82 111 106 68 44 26 36 166 192 188 38 65 12 147 46 59 52 171 56 110 57 66 50 70 145 125 148 74 174 43 29 136 163 16 58 134 101 61 55 15 174 182 139 82 24 100 175 137 176 100 24 64 137 95 125 29 51 188 194 144 106 75 71 90 84 19 179 195 158 7 45 174 38 156 20 32 166 22 157 153 71 155 189 25 29 128 39 127 194 90 48 54\n100\n117 192 130 18 148 56 190 82 143 39 101 93 127 69 193 33 31 192 135 26 42 80 16 161 117 107 120 45 166 121 182 182 6 91 70 15 195 143 163 171 192 135 17 12 81 67 121 152 122 28 30 29 24 99 153 151 194 41 64 183 120 144 188 77 13 2 58 2 153 49 58 175 90 38 23 195 101 5 158 123 87 41 26 130 9 20 135 43 131 74 102 100 71 175 9 30 194 22 136 90\n100\n15 52 154 182 133 188 55 160 145 123 142 59 87 143 147 184 189 68 188 198 80 79 107 13 60 47 46 71 182 144 142 48 36 153 149 88 23 25 51 190 39 46 162 175 24 78 185 103 181 177 150 48 170 94 16 129 126 38 115 72 152 62 21 67 128 65 129 59 82 189 186 19 135 140 66 32 85 22 3 161 96 141 150 32 72 161 170 113 165 45 120 10 128 170 21 196 4 114 199 10\n100\n69 152 35 71 144 30 182 61 195 151 66 83 110 158 172 95 106 14 52 84 105 12 21 141 175 90 125 11 167 182 183 187 193 50 79 68 74 84 29 135 60 105 111 192 24 150 16 60 1 159 109 123 67 100 25 56 140 48 55 7 49 91 160 182 36 19 70 79 125 119 9 101 31 124 7 125 101 83 169 88 164 163 124 134 170 51 197 124 111 67 65 40 179 155 28 61 32 27 160 139\n100\n66 37 48 48 4 48 165 21 133 175 41 114 147 162 154 76 54 58 121 184 88 66 116 56 180 29 137 29 189 43 4 101 184 120 187 136 52 182 128 166 72 193 158 179 183 187 23 197 96 194 101 53 120 103 72 20 132 153 24 33 57 65 132 80 167 166 90 68 126 28 79 144 103 49 33 3 110 40 27 10 127 82 193 187 63 161 165 199 51 118 81 158 103 158 38 178 64 57 172 21\n100\n122 156 67 60 98 143 34 41 19 152 62 11 11 193 5 81 51 160 98 71 42 94 84 135 100 155 155 123 50 88 139 10 17 132 148 10 95 19 48 189 171 51 95 23 37 49 0 7 134 84 177 12 41 104 96 162 137 151 51 132 165 138 45 28 194 126 178 145 128 5 149 57 112 1 199 127 92 259 195 142 167 149 176 55 142 148 103 15 47 73 165 149 137 169 131 170 53 168 52 178\n100\n156 181 95 186 129 131 78 59 152 89 158 38 54 172 8 56 171 147 103 111 174 19 107 5 199 188 61 45 35 92 132 76 67 3 167 99 54 167 12 114 129 193 177 54 12 31 89 126 47 99 89 74 36 12 187 157 103 91 82 29 27 161 152 96 46 183 197 154 32 102 145 76 24 81 195 23 32 143 2 169 82 189 37 199 35 179 54 52 199 150 132 145 93 71 49 190 4 177 105 119\n100\n150 128 28 122 68 185 174 184 51 84 37 115 189 81 74 159 50 146 60 27 33 21 161 18 146 150 63 61 46 58 194 171 145 102 46 20 54 153 160 186 19 135 16 113 135 192 18 65 170 136 125 146 44 112 82 15 105 126 1 173 106 80 193 190 191 14 23 57 100 49 122 85 162 102 68 174 152 48 35 38 162 37 72 192 0 143 119 81 170 191 145 184 114 85 79 199 82 186 119 50\n100\n193 185 116 8 88 99 25 96 169 131 14 102 170 137 198 77 198 51 88 63 53 105 141 67 62 55 81 95 18 72 94 70 138 121 45 123 43 165 118 135 137 199 99 192 154 124 31 66 29 122 156 18 75 92 110 161 132 128 122 149 77 26 148 78 177 138 175 144 125 139 21 140 40 166 81 148 147 151 107 151 110 157 77 9 3 176 140 23 174 54 169 106 85 199 48 130 173 58 16 84\n100\n173 31 4 183 191 22 10 187 164 168 194 179 23 109 57 141 85 77 23 72 28 35 149 117 9 143 67 65 190 91 169 138 4 176 12 191 93 9 20 197 62 128 100 159 42 40 89 94 42 20 86 146 164 86 71 143 66 74 45 188 149 27 154 104 81 46 157 85 114 150 32 73 143 112 32 83 39 168 189 83 9 187 195 45 112 39 135 48 79 7 30 154 1 140 43 118 12 177 23 72\n100\n183 85 86 120 57 102 39 6 76 124 52 37 35 99 116 90 167 6 21 175 120 192 165 147 58 84 131 29 182 105 162 89 123 70 142 82 196 180 169 72 115 51 136 155 174 77 154 129 82 51 169 37 101 76 4 73 161 197 195 125 85 62 29 160 118 73 79 109 62 24 174 82 75 15 143 46 132 168 84 161 72 86 66 89 151 4 33 194 76 198 4 133 68 184 17 164 16 9 66 196\n100\n73 148 110 196 141 191 66 189 20 155 148 51 81 71 25 28 173 54 109 30 38 191 139 53 48 167 54 77 90 197 56 173 189 62 136 29 88 139 185 41 167 120 160 47 181 182 6 189 184 3 160 62 173 192 43 63 123 11 140 92 43 70 119 49 112 176 45 86 156 3 164 98 108 78 138 123 5 11 193 117 143 27 114 90 16 1 139 144 36 12 74 33 140 1 183 135 28 33 37 134\n100\n177 71 122 63 59 140 168 82 48 166 90 27 58 71 106 105 1 34 170 155 107 99 130 75 3 39 194 88 64 73 48 158 80 87 164 113 13 52 170 178 166 104 16 49 177 37 137 59 32 155 105 126 137 166 114 155 90 46 182 35 93 136 46 38 56 3 114 199 41 125 74 124 144 63 149 76 197 134 47 26 43 44 192 161 69 175 139 96 81 71 68 113 66 30 6 109 90 59 84 146\n100\n159 103 6 191 93 196 183 150 157 35 12 67 69 165 103 173 191 116 149 115 118 43 188 97 111 91 74 163 125 7 170 121 127 58 136 75 21 176 199 119 41 11 112 9 35 63 30 114 136 183 32 188 139 105 70 140 68 191 128 185 137 120 124 197 154 103 94 162 65 154 100 102 114 29 194 26 63 128 148 79 151 199 3 42 80 16 90 98 58 130 85 151 62 44 49 85 55 172 89 58\n100\n152 129 40 60 46 27 44 13 136 73 154 133 156 51 191 134 131 122 79 2 176 180 69 188 29 85 2 10 127 74 160 99 42 55 193 65 128 172 84 126 198 123 1 187 88 197 52 175 150 78 55 93 30 6 131 89 165 121 127 164 40 113 189 110 88 163 120 188 21 64 3 154 122 116 54 186 25 124 18 102 120 59 88 82 141 174 100 166 22 154 152 50 116 26 86 2 137 101 101 149\n100\n167 102 65 81 43 110 108 89 58 184 121 106 186 187 171 90 172 118 73 153 81 62 196 13 51 115 4 185 133 164 104 37 53 184 133 172 121 144 170 57 88 129 97 140 123 101 143 76 131 100 48 13 53 110 93 132 51 14 199 16 12 34 49 52 112 141 9 50 180 169 135 162 165 111 17 11 163 121 6 145 43 50 193 64 42 44 33 136 102 25 159 153 7 6 143 129 151 70 195 28\n100\n141 59 20 115 144 178 58 184 138 183 38 137 35 30 182 115 80 21 25 152 4 46 12 4 45 25 44 149 194 129 132 9 116 29 161 133 130 146 132 83 73 39 80 35 187 170 189 29 160 121 197 189 163 44 21 105 15 113 134 199 137 15 164 58 111 183 46 143 137 31 55 51 151 90 52 95 20 61 160 167 73 34 133 191 101 178 187 79 100 15 109 72 61 152 170 23 64 137 50 10\n100\n191 178 43 161 21 118 98 183 133 95 109 72 68 103 64 45 49 50 46 142 44 155 59 168 85 101 168 47 6 187 135 109 164 33 151 140 25 124 146 0 38 31 21 17 24 184 15 144 152 19 70 167 119 174 87 30 145 116 44 99 162 85 115 121 102 72 4 173 133 52 11 29 24 159 183 65 45 150 26 191 97 13 171 186 62 190 184 106 18 22 119 66 18 191 159 166 103 79 98 67\n100\n145 103 30 20 25 134 21 33 35 87 193 27 148 24 92 118 0 44 31 86 95 108 153 127 192 121 19 107 71 22 161 191 52 51 123 165 156 180 61 65 123 100 28 35 153 12 82 76 157 89 92 199 176 61 42 131 60 100 38 80 20 145 129 168 141 162 34 33 70 82 0 160 164 141 99 136 65 33 29 27 54 28 119 184 110 168 17 197 125 6 10 63 48 90 169 144 199 43 155 64\n100\n137 158 6 111 14 147 93 129 187 80 85 164 34 76 15 118 184 47 48 147 155 32 181 37 27 96 59 124 199 53 101 41 4 129 15 165 50 132 83 119 96 39 178 38 41 3 6 20 70 49 5 124 78 187 184 29 139 98 173 38 15 2 41 85 63 11 66 27 183 130 165 82 182 31 35 90 12 56 2 48 113 126 97 64 15 93 107 37 18 138 24 70 183 145 128 59 83 21 137 160\n100\n149 123 83 105 47 113 186 184 9 34 100 170 39 157 68 56 85 192 22 133 135 183 27 99 61 90 135 100 79 173 106 85 45 9 36 181 139 99 101 7 195 19 84 27 155 160 133 52 0 3 88 198 75 169 104 190 43 157 57 119 75 149 190 146 198 67 146 109 80 79 181 7 119 138 25 99 170 14 110 155 32 165 18 120 37 64 109 103 144 50 141 101 144 27 141 110 96 24 83 98\n100\n40 131 170 154 135 103 45 9 14 32 117 30 118 32 13 90 61 132 35 117 45 121 18 5 133 121 46 170 188 194 8 27 35 177 75 5 50 42 54 118 190 124 179 165 154 171 22 44 67 109 10 72 152 74 177 97 170 141 67 141 17 168 65 121 55 127 114 83 137 132 149 162 82 35 192 135 130 134 120 128 88 124 34 33 3 125 122 182 160 65 130 64 23 122 86 108 38 31 165 26\n100\n162 163 178 19 51 141 115 76 168 121 98 187 131 39 139 152 30 74 181 142 118 100 100 34 6 80 190 238 199 168 85 34 55 144 44 108 0 19 118 149 147 180 99 48 84 119 132 140 88 170 97 33 140 22 145 140 127 50 82 47 99 50 130 196 104 131 5 51 82 139 167 170 76 143 156 173 116 157 86 166 33 43 72 14 98 71 137 61 9 120 186 127 41 53 123 128 91 197 99 81\n100\n23 110 71 178 193 90 53 34 66 47 113 22 145 174 88 22 177 119 83 166 5 194 46 124 41 89 98 197 66 60 191 173 65 5 6 38 196 118 62 144 126 15 93 123 169 124 18 169 72 70 161 15 25 129 94 37 195 30 149 100 101 194 161 103 192 159 148 6 13 169 39 55 161 51 10 77 176 139 22 102 24 196 49 23 112 123 114 171 8 20 181 156 98 149 145 97 66 43 48 192\n100\n131 4 95 94 50 149 151 181 198 45 75 45 184 33 100 199 167 97 9 141 31 99 98 174 187 159 62 145 129 59 124 167 166 168 127 94 49 196 142 123 196 17 11 168 48 181 33 174 88 84 68 68 25 4 44 121 160 111 122 151 100 142 30 25 30 51 120 198 127 80 5 182 25 14 12 4 192 9 138 5 66 66 171 80 164 141 26 86 135 133 51 124 76 92 159 151 196 127 7 87\n1\n5\n100\n120 5 127 37 110 183 3 137 83 141 35 21 77 78 80 34 111 29 53 130 8 130 48 32 141 70 16 63 18 15 184 109 174 141 85 8 160 148 85 178 101 171 105 1 196 172 109 131 187 70 125 184 2 127 146 88 152 197 189 95 198 151 18 173 57 119 73 115 68 83 10 59 125 196 39 183 118 159 118 61 167 3 166 138 26 193 82 76 160 138 157 180 154 78 61 68 121 73 98 157\n100\n58 19 145 101 189 16 156 39 125 125 132 178 21 116 162 87 8 138 130 5 90 199 169 7 53 13 56 185 183 148 193 199 162 6 66 135 19 71 64 199 8 47 14 114 12 107 22 127 92 120 199 98 71 186 192 152 17 124 188 93 89 88 14 96 68 146 158 137 145 168 197 25 47 21 37 43 107 70 149 146 39 52 12 20 31 76 91 125 45 99 16 174 56 77 72 136 8 96 109 132\n100\n158 188 144 4 130 127 49 119 68 174 101 161 55 166 127 113 162 180 18 128 89 113 141 23 196 131 40 31 135 32 182 182 50 44 52 57 1 68 33 173 94 19 126 83 133 182 112 36 25 52 12 24 45 96 2 173 158 105 77 158 111 81 50 170 180 53 127 159 116 197 118 118 177 181 65 152 113 171 176 186 74 42 41 109 97 62 48 42 148 192 136 20 17 29 24 181 38 106 161 150\n100\n147 58 39 105 181 68 14 1 116 94 167 45 167 39 163 0 174 44 199 125 80 17 24 49 86 74 57 185 15 58 75 30 182 11 37 70 162 191 28 61 12 96 76 100 158 171 191 48 122 98 150 158 128 145 142 38 60 73 77 93 95 4 13 32 125 104 95 21 48 168 84 20 91 38 32 119 137 166 32 62 134 31 37 94 102 11 114 42 69 34 147 130 103 41 6 11 97 137 102 15\n100\n63 117 117 199 151 43 138 182 54 87 12 112 122 37 174 91 8 118 51 77 23 52 20 30 189 1 15 87 128 29 121 187 63 127 88 77 114 46 75 82 31 39 19 169 47 162 6 160 152 105 161 120 180 41 150 139 138 124 151 5 140 189 25 82 104 53 180 30 11 6 58 187 51 127 30 22 147 7 96 114 5 149 6 10 115 135 188 185 134 113 23 76 163 177 126 122 107 129 66 27\n100\n25 100 48 175 130 157 13 96 16 92 105 51 7 130 103 147 52 55 84 135 194 146 190 36 47 105 7 78 158 81 146 99 22 192 13 8 52 41 191 176 124 57 108 146 158 32 63 27 31 41 79 37 100 37 109 150 54 140 197 27 179 46 139 38 81 98 192 21 97 93 13 6 129 93 151 16 194 38 188 75 171 21 180 83 166 99 156 9 66 68 159 195 184 128 94 132 66 58 66 63\n100\n113 31 86 160 166 49 122 60 83 173 166 106 146 74 108 146 70 20 66 69 178 127 38 84 159 167 178 30 121 191 90 93 44 9 107 40 123 22 47 150 25 62 182 169 140 1 55 105 126 87 63 179 166 78 145 9 86 106 120 43 6 42 161 183 138 17 195 109 199 97 195 142 52 167 140 103 55 155 52 56 45 62 197 50 189 65 105 127 47 27 103 76 65 75 46 181 3 9 63 160\n100\n116 181 177 133 28 184 103 44 76 174 108 135 2 135 41 186 193 120 14 144 57 112 104 96 91 106 26 16 183 133 111 176 105 65 6 98 18 19 191 24 67 50 134 95 175 75 94 187 65 162 39 108 60 82 186 95 122 135 148 159 119 138 66 173 150 60 141 93 148 6 118 68 12 65 19 127 171 114 42 150 149 128 61 177 136 25 6 65 183 153 5 26 153 165 145 127 180 31 180 183\n100\n147 123 81 63 144 49 26 40 62 91 29 98 198 178 127 25 60 69 180 23 147 2 165 82 23 55 187 7 9 130 91 111 144 144 75 89 5 156 124 17 56 48 160 80 50 88 166 67 178 173 43 48 132 176 163 198 135 16 57 180 166 61 91 133 129 85 50 91 93 88 88 186 57 159 27 110 26 90 41 64 66 74 92 148 12 92 16 158 27 159 42 34 163 48 196 50 96 196 78 108\n100\n86 37 103 123 1 41 45 30 94 0 193 54 194 4 142 124 169 181 43 27 1 102 23 38 161 34 101 5 100 132 56 36 10 117 193 77 192 110 190 8 175 89 69 191 139 35 106 39 173 69 173 44 27 195 136 195 102 116 7 22 164 148 8 172 8 190 157 47 31 86 96 106 67 14 190 67 5 111 183 53 39 26 142 129 40 127 140 86 43 47 153 70 10 5 109 171 71 42 132 42\n100\n20 25 81 118 188 151 52 57 65 175 30 151 102 150 188 230 72 90 19 117 193 160 156 92 93 199 32 49 73 143 133 44 56 86 25 164 0 132 2 145 53 90 95 147 108 119 34 136 123 44 182 90 175 146 39 48 165 162 168 119 69 182 113 87 140 166 33 90 121 36 77 195 106 63 49 20 56 133 166 155 57 21 61 101 60 116 163 138 178 197 134 188 99 70 199 115 166 65 32 74\n100\n78 137 0 48 193 158 157 71 58 82 17 65 106 20 112 4 2 197 136 43 116 178 106 24 115 73 160 78 136 119 8 188 182 121 16 23 112 186 170 166 42 68 58 76 62 146 181 153 104 38 197 122 195 111 115 187 21 37 4 178 40 64 166 94 76 165 156 184 65 106 65 0 184 189 2 11 157 7 7 27 86 143 35 112 31 77 49 6 1 35 146 159 176 11 108 90 164 197 125 107\n100\n83 15 177 94 180 155 168 134 183 11 116 3 148 0 41 60 73 123 189 32 23 187 178 139 103 137 90 63 177 1 3 113 30 114 99 198 103 198 117 190 68 174 92 48 106 184 48 126 167 35 7 177 71 5 30 120 45 58 159 198 42 8 77 66 33 105 78 90 111 40 17 2 69 143 48 26 160 57 63 46 90 68 126 186 10 49 139 13 162 158 20 37 15 75 172 76 190 29 155 10\n100\n77 184 75 35 176 40 48 129 190 33 167 37 123 45 3 194 86 134 52 75 141 125 1 55 104 178 191 33 60 125 26 125 90 189 107 135 47 119 83 14 28 113 48 26 40 127 109 66 165 165 87 73 176 150 53 153 29 109 143 0 266 11 119 163 188 168 2 160 168 173 66 160 18 185 1 85 19 146 13 96 189 94 4 119 19 27 88 61 95 52 43 90 147 165 124 84 125 153 192 110\n100\n197 97 5 112 56 56 130 31 34 101 171 38 56 65 36 69 124 186 172 2 52 71 180 125 180 108 199 137 67 128 12 31 84 93 58 140 87 88 77 159 159 130 30 76 140 38 191 60 76 60 94 128 37 53 185 139 127 128 196 104 168 196 175 7 183 191 148 46 133 159 127 173 1 7 95 152 35 60 52 171 195 120 73 88 67 175 163 12 74 49 130 28 195 183 33 127 45 0 185 190\n100\n172 38 171 193 96 173 61 108 116 100 139 27 97 72 178 89 172 93 58 199 78 166 10 42 195 167 177 54 54 192 2 26 194 45 174 148 83 44 81 175 70 47 118 98 167 194 172 67 138 191 189 68 60 112 100 12 34 77 175 17 90 47 190 140 105 84 43 14 164 100 98 82 75 170 123 98 51 64 77 23 60 164 117 67 170 119 55 97 127 65 100 88 169 13 198 44 159 50 56 5\n100\n10 28 113 20 82 32 66 187 31 64 101 180 185 102 73 53 194 27 188 154 2 66 168 147 171 137 33 112 62 120 101 155 85 86 117 141 163 48 132 67 153 146 13 194 107 75 66 129 82 108 2 94 171 106 98 155 144 44 24 178 101 31 140 103 125 128 159 189 70 49 112 188 163 0 141 114 105 44 111 175 84 106 58 197 194 159 123 15 96 22 58 73 76 196 106 105 195 187 143 141\n100\n139 188 39 77 172 152 196 82 171 185 129 184 47 68 139 199 15 122 42 112 107 31 48 54 171 90 9 58 125 127 68 164 155 105 89 7 155 196 123 141 49 34 184 26 186 11 22 69 58 11 0 4 185 103 162 8 122 40 1 137 12 147 119 91 148 160 5 25 90 130 81 88 195 38 11 184 47 55 171 102 100 161 117 165 139 101 23 15 9 53 2 31 185 89 7 144 135 64 12 27\n100\n184 155 95 85 49 38 155 15 141 56 9 19 27 62 48 179 143 131 151 51 96 98 179 138 106 191 101 13 181 51 69 86 77 142 141 155 35 58 199 161 180 295 184 138 113 56 193 173 71 31 52 53 199 23 100 36 0 166 192 146 164 103 81 152 9 133 122 82 89 42 104 69 140 136 65 5 12 72 26 155 25 10 156 188 46 68 14 13 196 126 65 85 181 29 56 188 116 38 198 115\n100\n99 22 133 68 29 143 116 28 61 190 24 141 47 147 119 81 182 89 30 3 149 190 191 168 145 117 145 167 70 138 186 125 2 182 95 28 55 196 120 141 13 146 78 27 103 124 86 186 165 197 68 16 18 144 4 163 79 15 172 43 7 17 126 17 180 57 69 136 58 100 22 74 35 28 114 158 99 27 192 121 140 89 136 43 93 146 21 28 183 18 2 143 96 27 17 85 3 72 176 85\n100\n111 66 54 154 142 43 100 150 66 9 134 198 100 182 116 85 93 53 124 21 48 111 75 43 103 23 116 123 85 3 112 117 84 69 7 166 104 184 181 65 172 30 160 87 115 145 193 21 42 65 49 158 148 166 70 96 93 103 167 83 60 114 44 15 114 124 161 125 0 21 172 49 17 18 13 158 179 69 86 75 124 46 187 117 82 71 140 101 35 25 73 147 6 188 117 43 138 184 157 39\n100\n94 60 202 53 65 37 190 171 27 97 60 184 91 99 91 140 90 106 13 98 23 190 162 125 21 195 146 178 154 1 123 13 98 146 87 78 12 118 82 84 114 156 19 58 127 130 1 26 92 166 24 144 155 102 19 88 184 21 156 35 68 199 10 13 108 135 115 162 154 102 34 115 10 63 74 92 184 81 148 40 24 101 181 102 93 96 20 101 55 179 178 14 7 73 99 66 68 185 124 164\n100\n187 29 118 111 2 122 42 187 142 97 188 172 38 13 133 148 31 150 196 59 9 29 117 124 106 121 189 25 138 9 69 81 39 107 29 113 154 85 50 193 49 194 2 8 134 127 72 107 96 142 172 50 8 19 21 83 127 173 105 44 158 175 44 91 134 152 183 24 186 63 131 101 153 155 126 196 128 51 61 10 80 153 52 91 91 52 9 126 69 134 63 130 121 67 49 17 65 11 125 108\n",
"100\n100\n41 67 134 100 169 124 78 158 162 64 105 145 81 27 161 91 195 142 27 36 191 4 102 153 92 182 21 116 118 95 47 126 171 138 69 112 67 99 35 94 103 11 122 133 73 64 141 111 53 68 147 44 62 157 37 59 123 141 129 178 116 35 190 42 88 106 40 142 64 48 46 5 90 129 170 150 6 101 193 148 29 23 84 154 156 40 166 176 131 108 144 39 26 123 137 138 118 82 129 141\n100\n33 115 39 58 104 130 177 106 73 186 21 145 124 72 70 29 177 173 97 112 186 90 161 36 155 167 55 174 31 52 150 150 141 124 166 30 107 191 7 137 57 87 153 183 145 109 9 158 21 188 22 146 106 30 13 168 100 191 162 55 10 159 24 137 148 83 195 41 2 150 91 36 174 20 196 21 148 199 68 84 81 134 53 199 18 138 100 188 127 67 128 93 48 83 7 21 110 17 13 114\n100\n109 16 135 51 0 49 119 156 198 103 24 8 44 9 189 102 195 85 93 143 123 187 114 103 48 0 58 18 180 196 198 81 189 198 9 157 72 22 138 92 38 179 190 57 158 191 15 88 156 111 2 34 72 55 128 46 162 86 75 33 69 142 44 16 81 198 122 51 21 99 157 76 92 189 75 112 0 110 3 69 61 88 1 189 55 23 2 185 182 85 88 26 17 157 32 132 169 154 121 189\n100\n176 129 168 92 25 155 34 149 41 112 145 60 118 153 139 23 79 196 87 129 149 37 66 149 193 195 97 16 86 105 88 82 55 134 114 101 116 71 186 63 113 155 185 53 112 8 32 145 113 156 121 158 46 182 81 144 196 22 129 161 135 50 173 66 44 59 92 39 53 24 154 110 145 49 186 113 74 22 168 18 187 105 158 191 2 25 77 14 114 24 134 74 172 159 33 70 87 97 118 177\n100\n173 70 163 68 192 185 102 80 13 27 2 99 127 25 143 124 23 172 61 181 3 32 105 193 125 31 92 142 22 86 64 100 187 160 13 174 70 170 35 33 111 160 96 67 85 150 140 94 95 24 19 125 176 94 58 102 171 66 78 193 51 84 18 64 119 152 0 87 60 126 10 157 170 115 176 27 43 158 164 109 82 86 165 87 177 74 25 27 29 128 23 120 102 162 123 196 137 61 195 125\n100\n64 60 2 116 30 126 11 171 11 147 153 120 190 124 188 163 140 51 62 29 100 113 158 178 165 7 77 0 58 39 103 160 157 124 77 108 113 87 1 50 60 28 193 184 5 140 111 104 35 156 72 150 23 85 156 16 26 157 126 157 137 71 69 161 96 22 17 112 117 96 185 41 23 129 29 165 159 132 96 55 53 162 184 134 54 172 57 169 132 163 7 83 111 35 67 48 75 138 23 142\n100\n154 111 141 175 59 25 21 70 26 134 5 183 50 198 79 101 193 134 37 134 156 193 176 105 162 148 81 100 13 41 55 55 142 62 11 77 24 78 152 43 96 73 40 113 75 72 18 10 17 132 112 95 169 31 40 88 85 90 97 189 190 145 153 114 51 140 44 58 135 159 192 5 64 181 103 29 175 8 92 197 149 156 161 27 67 141 129 40 13 174 1 77 15 83 13 192 24 1 192 159\n100\n70 28 27 84 75 186 98 170 87 47 4 103 21 63 106 163 10 171 89 40 164 142 19 113 191 104 18 32 150 5 175 139 103 22 98 47 184 48 171 64 113 75 145 112 146 78 169 62 119 185 89 144 65 140 45 108 118 70 1 123 132 72 152 87 170 163 101 103 23 127 0 169 15 165 28 143 147 88 143 37 9 63 49 81 188 142 8 60 21 158 154 88 146 90 149 43 30 20 148 67\n100\n136 183 35 26 185 38 53 29 24 148 123 159 57 166 144 155 118 126 11 25 155 1 149 96 184 115 164 142 75 113 142 196 148 72 26 6 173 29 4 105 26 12 175 93 165 36 136 141 14 194 56 52 136 38 82 155 15 131 30 41 25 11 37 186 90 50 62 34 93 153 16 52 8 62 33 54 103 34 103 56 148 124 117 13 109 28 0 80 118 58 50 155 161 64 103 76 43 109 102 161\n100\n89 148 82 53 74 20 2 123 31 169 78 59 8 19 171 3 145 181 104 192 85 113 98 189 122 138 37 10 61 34 108 161 159 93 115 69 137 69 58 100 171 64 117 15 155 15 130 39 12 88 82 154 85 110 84 174 180 15 151 141 115 79 110 98 73 188 177 132 156 89 113 8 141 190 123 163 28 184 178 0 71 85 174 71 133 67 153 95 168 25 76 29 50 198 109 93 86 80 116 49\n100\n67 128 79 64 21 5 26 16 116 126 66 87 81 164 140 86 21 62 121 64 109 15 102 73 124 141 145 162 23 131 6 68 118 2 107 107 81 12 136 30 114 9 84 156 90 93 196 152 54 145 108 48 91 112 131 114 39 158 122 104 195 52 69 79 38 23 118 66 59 98 86 196 62 33 158 22 146 192 37 125 47 58 2 7 98 30 92 0 78 199 152 48 82 140 115 175 162 167 136 197\n100\n18 97 28 51 16 30 49 125 58 29 120 140 160 147 162 55 75 192 161 154 198 146 114 146 188 169 38 63 75 115 121 75 15 128 34 170 105 64 157 162 161 124 149 69 130 123 150 133 125 110 137 136 137 78 193 36 114 164 191 149 135 105 137 4 137 23 64 170 8 168 81 85 152 173 52 194 76 26 196 172 49 40 174 19 143 11 141 89 19 165 5 185 16 50 15 9 64 166 93 74\n100\n109 100 95 173 189 161 172 168 158 31 68 26 110 22 174 179 110 152 182 191 95 164 74 164 102 55 60 74 172 21 122 147 177 189 5 195 194 150 143 154 81 12 72 39 28 112 162 167 8 15 108 23 159 34 4 86 119 158 145 6 166 100 167 92 187 132 156 174 47 21 83 22 131 176 183 148 123 182 18 176 20 111 182 56 90 125 124 86 77 169 43 134 77 68 68 191 196 183 28 127\n100\n26 71 97 12 103 27 8 145 108 185 38 37 43 113 101 50 128 111 50 149 192 54 69 81 65 67 113 193 34 72 172 30 101 42 177 77 170 102 164 181 190 23 37 23 179 195 169 127 42 110 182 58 126 87 70 128 51 58 13 60 183 86 142 10 72 128 34 41 118 103 67 65 138 81 57 150 14 198 58 61 63 156 7 78 89 35 165 75 186 186 33 160 130 48 128 92 33 40 166 135\n100\n10 199 37 92 182 128 152 169 44 194 8 52 47 32 135 8 64 97 43 49 15 41 189 100 12 48 123 51 74 33 91 0 54 190 97 119 180 178 131 144 140 87 99 125 83 138 92 193 52 11 160 34 40 97 185 129 140 5 191 192 10 149 178 179 171 77 73 193 20 97 26 76 190 182 178 159 18 89 159 49 124 72 180 8 167 8 77 103 170 7 196 74 122 11 19 161 56 90 163 83\n100\n116 132 52 141 154 13 62 196 60 15 104 199 136 80 198 32 187 184 40 117 6 70 41 82 49 123 158 105 21 95 96 116 78 178 179 58 177 150 7 129 81 195 78 76 153 99 184 165 93 8 172 43 129 114 168 55 191 173 122 148 51 186 144 46 177 117 29 116 74 191 69 112 146 93 91 15 149 57 40 52 36 151 87 26 162 155 183 194 180 97 65 65 113 61 178 78 78 140 11 147\n100\n45 170 175 89 91 149 133 65 14 82 7 32 96 167 122 82 10 41 31 187 105 79 121 138 151 47 8 46 76 159 189 22 66 86 55 28 14 60 53 177 148 103 61 31 82 55 197 106 152 21 96 81 21 55 147 124 118 135 176 174 59 198 74 53 122 35 43 88 153 32 147 80 126 78 50 1 161 199 55 163 116 173 161 45 73 74 150 153 181 87 99 110 43 65 172 129 181 112 76 181\n100\n47 90 71 5 172 32 189 120 165 31 58 93 6 178 148 6 171 166 196 97 20 94 129 188 109 184 169 178 17 15 26 84 168 106 128 97 118 190 199 185 86 199 20 110 71 13 15 85 118 180 131 67 187 44 186 107 160 27 74 31 152 71 68 93 85 137 111 4 77 6 168 22 13 0 142 137 38 188 155 89 47 181 93 184 187 161 93 17 101 82 47 65 153 104 84 95 125 21 164 181\n100\n72 106 56 143 193 80 80 68 11 113 168 51 16 79 168 40 131 133 179 63 59 53 136 95 165 74 120 35 80 176 55 125 71 8 159 156 2 32 105 40 175 162 85 162 80 36 197 2 108 80 140 76 58 93 140 146 74 173 97 80 135 72 0 107 155 66 141 188 81 168 115 196 25 9 12 136 55 162 43 142 21 122 112 48 18 168 117 114 50 90 135 159 169 95 103 40 179 199 105 191\n100\n61 81 52 153 33 29 187 42 53 83 20 14 118 44 63 29 52 64 169 70 5 47 194 87 126 76 123 140 79 190 188 110 71 145 21 70 183 189 155 178 179 6 62 135 87 196 33 88 135 179 193 190 162 165 1 105 7 167 69 134 71 57 198 145 197 18 38 44 172 163 28 64 1 123 90 4 1 27 197 92 171 163 101 163 121 165 21 45 10 95 141 22 12 151 15 55 193 138 79 82\n100\n8 54 22 107 45 138 144 90 139 154 4 23 25 78 124 181 130 133 23 194 130 46 187 45 5 16 150 89 138 163 135 97 9 30 24 108 137 74 120 172 93 55 134 161 56 6 184 75 182 119 141 32 84 179 79 83 67 36 125 118 137 28 119 177 137 91 156 195 60 101 193 32 136 180 75 107 184 74 119 190 76 41 151 129 90 174 72 191 189 187 90 39 93 53 63 81 103 5 176 79\n100\n95 139 68 198 83 39 115 21 193 26 122 38 28 181 199 178 91 23 143 34 43 149 102 107 102 141 87 146 91 37 13 0 16 90 162 135 126 10 77 182 60 189 105 74 63 122 195 166 160 38 188 11 45 67 25 67 189 142 63 147 102 17 99 23 26 3 48 51 170 36 58 167 56 5 131 162 19 175 156 131 95 44 191 3 188 115 50 119 72 191 183 133 175 42 169 100 154 78 185 57\n100\n133 93 90 103 150 33 122 71 11 190 138 41 58 47 152 58 79 102 83 190 2 168 22 95 135 8 161 142 194 99 188 178 42 157 141 47 69 145 180 113 164 110 61 185 73 104 62 103 102 69 154 129 152 74 149 130 44 44 49 118 65 163 152 173 70 131 147 111 69 198 98 103 152 79 53 43 122 88 163 34 50 22 40 111 92 51 180 77 16 76 178 20 15 148 198 179 35 57 83 62\n100\n102 62 20 170 22 73 41 86 88 117 117 92 98 67 149 65 189 132 19 81 3 130 28 31 189 152 30 172 64 7 95 28 81 90 10 177 71 36 59 43 40 33 37 93 30 74 193 182 3 61 90 62 107 197 151 23 90 117 40 103 166 83 61 59 45 186 51 165 1 40 9 97 83 50 58 21 175 181 187 71 87 199 104 179 138 100 130 61 118 5 140 28 59 22 198 160 98 135 81 14\n100\n167 93 196 161 146 138 70 138 76 155 117 171 160 152 158 33 55 65 126 1 34 159 193 148 73 192 193 133 137 103 90 11 94 68 27 98 189 48 79 47 149 131 69 75 198 49 36 199 123 43 131 154 61 34 185 167 16 193 104 66 153 108 23 84 192 67 48 69 130 11 14 90 27 143 4 199 74 195 106 158 189 58 9 89 47 40 18 164 175 26 89 103 66 12 40 170 76 195 41 186\n100\n51 109 187 83 85 190 50 86 155 181 128 102 77 62 24 165 72 32 85 28 46 89 78 83 125 65 60 45 178 21 55 120 127 173 134 51 75 136 134 1 137 110 174 190 156 71 80 135 145 82 25 118 173 112 37 198 105 162 117 92 139 47 146 103 31 115 39 58 29 45 194 199 45 72 75 62 72 173 80 38 97 142 8 3 77 125 134 1 78 182 169 136 78 139 138 121 26 63 77 175\n100\n124 181 100 161 62 2 48 95 84 16 137 107 193 84 144 59 21 58 43 68 77 119 57 41 91 64 23 115 72 129 41 115 15 136 157 159 100 52 93 41 29 48 27 198 24 124 74 133 85 38 170 62 29 84 109 78 123 85 0 24 193 105 12 165 167 7 77 184 104 190 34 91 21 85 134 190 142 198 86 18 21 24 197 176 54 69 108 127 93 68 166 102 38 0 19 118 90 184 139 156\n100\n8 32 78 14 187 39 74 20 27 154 188 41 198 42 2 121 104 146 56 109 33 108 161 133 86 4 185 142 42 60 161 20 143 178 187 113 63 191 134 15 56 161 12 11 159 51 138 170 124 107 7 184 151 101 89 158 41 190 13 12 55 60 93 72 2 76 143 173 66 51 75 128 132 161 69 103 129 107 92 51 153 192 170 119 72 7 94 105 40 183 62 9 7 38 160 71 171 54 147 114\n100\n123 29 89 166 87 156 32 70 139 66 122 83 160 153 105 91 59 186 87 29 42 117 45 156 188 52 154 66 33 160 119 31 138 67 176 98 114 120 53 7 69 16 122 42 7 63 60 147 193 30 117 43 176 114 26 117 134 20 171 192 164 154 66 93 64 175 0 12 100 151 76 179 143 77 189 161 185 72 34 144 161 163 104 146 88 108 157 30 123 64 74 146 37 181 118 11 92 191 32 123\n100\n61 191 61 130 98 169 91 0 179 117 117 114 195 41 136 67 28 53 109 173 181 103 169 16 83 167 185 2 30 157 81 167 110 66 87 171 77 45 164 38 71 47 115 192 111 57 5 53 171 180 140 130 75 120 190 177 198 186 4 89 31 144 188 10 118 119 59 127 9 119 79 116 100 196 53 58 30 193 6 49 54 72 160 94 54 133 146 29 71 28 159 41 21 88 166 33 85 70 129 61\n100\n60 8 182 162 106 78 179 97 87 138 69 183 140 195 66 33 109 157 117 134 53 135 58 193 43 93 66 151 140 94 137 174 112 97 151 95 17 92 92 37 130 13 96 110 189 28 9 186 144 40 182 169 120 193 92 162 14 127 7 194 105 113 11 113 93 64 3 195 162 181 146 109 48 168 24 111 154 35 127 33 40 62 127 177 17 140 142 100 0 158 76 154 135 30 31 95 137 23 122 127\n100\n29 11 11 154 80 53 93 121 185 128 43 0 155 71 70 52 175 31 40 134 40 186 34 48 139 165 196 112 62 52 131 187 64 157 48 156 170 50 182 101 93 99 132 44 131 75 4 50 26 66 138 1 23 43 41 180 95 118 59 163 28 129 88 54 13 179 169 66 79 177 37 2 115 92 123 72 48 123 153 148 195 197 108 108 11 193 65 181 2 10 28 56 105 165 23 169 115 53 5 84\n100\n78 145 40 33 85 100 168 194 33 85 148 81 32 56 110 72 182 101 106 35 60 71 127 137 143 168 33 195 171 3 142 11 79 34 112 193 130 161 34 58 126 106 191 43 188 27 119 84 24 93 35 24 94 182 67 27 5 146 86 189 140 37 50 159 178 156 77 3 42 100 11 25 143 195 16 15 4 6 168 41 135 98 125 113 23 112 18 57 196 139 86 94 46 43 122 111 80 55 158 47\n100\n70 190 73 127 13 54 96 72 50 41 41 46 125 13 24 129 95 3 194 193 67 187 40 79 41 125 134 60 0 107 21 92 93 117 117 3 143 93 39 11 125 28 178 148 50 92 44 54 23 153 36 147 146 26 61 104 38 171 86 5 99 56 128 67 151 19 191 166 117 46 93 187 21 112 67 99 44 97 1 128 142 104 168 168 41 96 62 120 44 118 25 19 184 174 184 59 149 14 95 103\n100\n32 51 137 14 163 51 19 90 117 83 118 184 52 186 69 48 137 197 24 168 27 148 193 182 71 69 93 77 14 104 84 143 95 11 93 92 198 190 99 90 93 74 149 174 114 173 69 18 65 33 38 111 52 63 108 149 88 45 31 120 106 71 168 21 58 157 47 182 38 122 123 106 106 189 156 145 151 123 118 150 97 36 191 6 110 13 51 80 44 143 141 45 178 149 105 114 185 27 24 4\n100\n156 117 27 155 102 86 68 98 179 11 89 158 90 175 10 132 89 96 150 112 122 129 72 36 77 153 176 70 85 52 151 197 151 1 35 93 72 116 116 128 111 125 38 96 139 144 56 26 102 158 188 21 186 108 177 28 179 147 149 80 45 128 62 26 119 77 91 47 185 31 6 84 154 169 109 156 21 145 65 16 60 97 135 190 77 49 5 86 188 75 143 177 130 87 155 82 53 0 154 89\n100\n88 15 8 110 140 199 197 107 54 104 37 85 99 192 13 12 82 183 151 129 137 33 0 64 83 57 168 110 168 108 41 132 37 84 99 101 69 183 56 92 40 87 12 10 20 35 63 15 97 77 174 134 153 133 78 86 24 134 75 149 112 184 24 192 104 22 55 113 62 73 84 160 122 53 197 22 150 137 117 6 131 197 105 36 157 199 90 98 185 47 84 192 125 196 55 28 138 142 28 195\n100\n142 37 106 167 53 193 105 146 9 124 54 65 39 6 9 92 99 175 36 61 47 18 13 127 112 96 109 41 130 90 34 115 86 123 66 144 136 37 16 93 149 171 44 177 85 0 190 85 125 118 68 6 129 8 141 25 136 180 116 70 184 147 128 136 4 100 123 164 11 40 50 104 83 166 141 70 45 106 88 56 107 66 57 78 199 74 155 191 190 32 58 196 117 90 167 107 34 46 62 2\n100\n39 26 95 106 114 150 186 79 176 22 79 101 12 76 164 157 170 38 112 144 161 180 0 43 56 61 47 139 8 90 52 179 18 19 7 84 147 177 75 13 109 171 42 139 136 21 101 34 129 158 36 69 97 104 198 2 105 38 32 65 116 81 179 23 127 171 113 182 140 16 88 119 189 113 59 51 71 83 164 38 12 184 159 101 174 133 59 114 49 195 122 141 16 177 52 165 91 138 110 167\n100\n55 187 24 22 39 41 48 4 34 168 41 72 68 174 176 137 33 41 145 18 15 174 52 46 156 124 166 181 144 40 134 96 76 27 5 18 91 41 65 191 71 59 100 17 16 143 24 64 105 157 102 66 75 46 32 189 46 145 3 152 101 126 153 184 49 150 5 146 25 170 136 195 193 123 132 56 96 10 176 92 150 90 195 52 150 115 36 161 160 184 129 134 50 82 6 136 184 190 17 182\n100\n66 116 188 25 101 10 50 182 21 193 38 154 193 95 80 38 167 20 145 83 65 96 33 190 32 189 39 183 17 129 153 79 13 0 52 145 61 151 118 163 13 107 154 76 17 11 29 64 166 131 142 98 122 155 187 57 158 64 162 110 146 65 180 165 146 140 97 42 64 194 184 70 115 0 6 106 102 96 33 11 67 15 45 175 154 48 119 79 188 121 192 197 197 109 52 71 58 122 59 197\n100\n199 99 120 120 36 184 112 115 153 85 141 199 167 8 44 169 81 79 108 7 59 106 49 75 26 124 7 174 84 128 146 145 81 114 149 168 138 107 193 104 105 97 17 155 41 143 133 97 79 136 155 33 154 130 52 104 79 88 70 154 72 176 101 15 86 31 80 175 60 114 138 57 190 38 181 47 42 18 70 31 61 19 181 190 33 72 163 102 102 128 121 98 47 145 6 22 86 194 177 44\n100\n83 147 40 85 64 123 137 53 168 130 55 66 58 112 56 118 1 142 76 106 102 84 23 70 112 50 75 111 50 195 88 120 101 183 198 92 48 184 45 187 62 143 58 59 71 16 172 32 41 83 88 15 176 116 98 39 83 5 197 146 169 75 117 187 20 30 42 135 189 173 80 73 177 186 181 185 122 145 179 85 113 135 135 83 186 96 48 85 152 121 60 182 36 88 119 36 192 65 78 198\n100\n96 186 11 176 147 121 2 45 102 164 139 172 57 170 120 54 159 80 98 191 160 110 191 67 33 75 136 99 175 190 176 56 72 103 86 167 115 142 95 166 56 186 37 198 26 164 85 65 108 140 160 14 154 12 152 138 106 125 30 49 179 79 113 38 117 21 145 191 169 39 108 165 162 73 81 170 147 53 108 108 115 29 66 89 63 171 141 59 31 172 114 166 188 170 168 199 55 50 44 136\n100\n78 6 27 113 123 171 127 73 61 173 134 102 187 17 63 153 126 195 95 13 6 170 59 105 96 33 23 52 79 119 126 193 185 65 171 44 107 71 87 99 119 196 115 152 92 153 57 190 159 157 86 9 65 86 19 59 113 35 28 101 68 69 56 131 178 74 195 43 74 116 24 111 185 122 171 57 95 174 38 183 58 95 122 183 31 103 32 100 190 80 8 105 102 58 18 157 161 120 28 56\n100\n113 132 92 182 67 120 158 74 187 94 183 164 64 114 146 190 25 55 163 67 192 31 19 80 118 128 148 120 79 91 166 187 8 126 25 159 118 20 35 114 56 147 156 134 160 151 8 78 94 189 124 176 94 90 189 172 19 101 102 44 123 139 9 27 37 186 16 27 169 23 99 114 15 44 36 69 178 76 58 152 46 137 115 188 16 88 182 74 133 115 56 56 62 16 124 129 42 184 72 49\n100\n196 26 182 2 175 16 65 152 159 155 17 44 154 43 24 199 22 121 133 13 117 193 73 60 175 74 185 101 22 8 195 26 120 91 188 129 72 177 193 8 54 122 76 137 16 3 90 112 89 53 179 99 122 102 2 169 54 129 134 38 74 26 63 134 172 148 53 103 107 118 133 37 95 179 61 144 59 161 107 176 72 45 192 172 28 196 11 135 35 29 116 132 156 158 149 20 96 124 120 126\n100\n6 183 45 174 91 188 138 64 104 77 153 142 4 23 52 25 11 42 124 149 135 190 146 128 55 4 141 109 181 179 102 83 92 132 112 99 161 47 5 90 169 159 28 139 28 180 71 178 40 56 148 44 145 125 10 98 16 180 15 64 26 72 79 193 82 5 136 133 105 187 132 38 165 64 118 199 32 108 96 38 178 38 45 59 169 144 162 169 49 118 67 158 143 61 3 190 186 26 3 4\n100\n100 168 23 147 196 166 30 65 152 0 17 173 186 68 197 179 24 128 60 158 25 67 112 134 52 169 162 170 11 35 90 111 64 150 160 145 167 154 187 17 165 142 88 73 15 179 37 188 69 86 30 9 40 121 119 81 26 20 11 54 93 184 157 199 136 29 150 57 5 165 134 49 94 192 70 119 17 113 53 117 177 160 105 153 191 162 176 54 72 134 16 50 193 145 52 147 121 61 144 59\n100\n166 85 39 118 107 68 154 50 32 199 20 135 98 192 116 182 29 116 59 158 183 199 135 157 70 71 142 180 77 6 95 86 3 52 118 35 85 28 78 160 101 149 164 185 26 157 137 41 138 193 96 33 93 168 73 135 109 96 181 161 139 184 123 99 131 49 42 6 50 87 40 169 23 188 67 83 0 158 6 138 63 120 166 158 85 23 29 98 156 70 175 196 83 188 19 146 190 75 69 119\n100\n141 197 145 54 158 58 194 191 141 37 100 32 75 136 38 158 180 85 13 84 53 127 85 26 70 136 81 170 149 148 77 199 35 173 137 151 131 17 33 171 176 129 131 44 142 67 0 128 116 34 199 157 40 181 23 141 131 149 139 99 175 99 163 45 126 1 24 83 189 135 24 95 145 170 83 117 192 152 124 173 140 55 68 70 43 30 156 165 114 180 58 158 124 8 111 67 117 128 190 99\n100\n180 70 190 12 0 64 75 84 82 111 106 68 44 26 36 166 192 188 38 65 12 147 46 59 52 171 56 110 57 66 50 70 145 125 148 74 174 43 29 136 163 16 58 134 101 61 55 15 174 182 139 82 24 100 175 137 176 100 24 64 137 95 125 29 51 188 194 144 106 75 71 90 84 19 179 195 158 7 45 174 38 156 20 32 166 22 157 153 71 155 189 25 29 128 39 127 194 90 48 54\n100\n117 192 130 18 148 56 190 82 143 39 101 93 127 69 193 33 31 192 135 26 42 80 16 161 117 107 120 45 166 121 182 182 6 91 70 15 195 143 163 171 192 135 17 12 81 67 121 152 122 28 30 29 24 99 153 151 194 41 64 183 120 144 188 77 13 2 58 2 153 49 58 175 90 38 23 195 101 5 158 123 87 41 26 130 9 20 135 43 131 74 102 100 71 175 9 30 194 22 136 90\n100\n15 52 154 182 133 188 55 160 145 123 142 59 87 143 147 184 189 68 188 198 80 79 107 13 60 47 46 71 182 144 142 48 36 153 149 88 23 25 51 190 39 46 162 175 24 78 185 103 181 177 150 48 170 94 16 129 126 38 115 72 152 62 21 67 128 65 129 59 82 189 186 19 135 140 66 32 85 22 3 161 96 141 150 32 72 161 170 113 165 45 120 10 128 170 21 196 4 114 199 10\n100\n69 152 35 71 144 30 182 61 195 151 66 83 110 158 172 95 106 14 52 84 105 12 21 141 175 90 125 11 167 182 183 187 193 50 79 68 74 84 29 135 60 105 111 192 24 150 16 60 1 159 109 123 67 100 25 56 140 48 55 7 49 91 160 182 36 19 70 79 125 119 9 101 31 124 7 125 101 83 169 88 164 163 124 134 170 51 197 124 111 67 65 40 179 155 28 61 32 27 160 139\n100\n66 37 48 48 4 48 165 21 133 175 41 114 147 162 154 76 54 58 121 184 88 66 116 56 180 29 137 29 189 43 4 101 184 120 187 136 52 182 128 166 72 193 158 179 183 187 23 197 96 194 101 53 120 103 72 20 132 153 24 33 57 65 132 80 167 166 90 68 126 28 79 144 103 49 33 3 110 40 27 10 127 82 193 187 63 161 165 199 51 118 81 158 103 158 38 178 64 57 172 21\n100\n122 156 67 60 98 143 34 41 19 152 62 11 11 193 5 81 51 160 98 71 42 94 84 135 100 155 155 123 50 88 139 10 17 132 148 10 95 19 48 189 171 51 95 23 37 49 0 7 134 84 177 12 41 104 96 162 137 151 51 132 165 138 45 28 194 126 178 145 128 5 149 57 112 1 199 127 92 153 195 142 167 149 176 55 142 148 103 15 47 73 165 149 137 169 131 170 53 168 52 178\n100\n156 181 95 186 129 131 78 59 152 89 158 38 54 172 8 56 171 147 103 111 174 19 107 5 199 188 61 45 35 92 132 76 67 3 167 99 54 167 12 114 129 193 177 54 12 31 89 126 47 99 89 74 36 12 187 157 103 91 82 29 27 161 152 96 46 183 197 154 32 102 145 76 24 81 195 23 32 143 2 169 82 189 37 199 35 179 54 52 199 150 132 145 93 71 49 190 4 177 105 119\n100\n150 128 28 122 68 185 174 184 51 84 37 115 189 81 74 159 50 146 60 27 33 21 161 18 146 150 63 61 46 58 194 171 145 102 46 20 54 153 160 186 19 135 16 113 135 192 18 65 170 136 125 146 44 112 82 15 105 126 1 173 106 80 193 190 191 14 23 57 100 49 122 85 162 102 68 174 152 48 35 38 162 37 72 192 0 143 119 81 170 191 145 184 114 85 79 199 82 186 119 50\n100\n193 185 116 8 88 99 25 96 169 131 14 102 170 137 198 77 198 51 88 63 53 105 141 67 62 55 81 95 18 72 94 70 138 121 45 123 43 165 118 135 137 199 99 192 154 124 31 66 29 122 156 18 75 92 110 161 132 128 122 149 77 26 148 78 177 138 175 144 125 139 21 140 40 166 81 148 147 151 107 151 110 157 77 9 3 176 140 23 174 54 169 106 85 199 48 130 173 58 16 84\n100\n173 31 4 183 191 22 10 187 164 168 194 179 23 109 57 141 85 77 23 72 28 35 149 117 9 143 67 65 190 91 169 138 4 176 12 191 93 9 20 197 62 128 100 159 42 40 89 94 42 20 86 146 164 86 71 143 66 74 45 188 149 27 154 104 81 46 157 85 114 150 32 73 143 112 32 83 39 168 189 83 9 187 195 45 112 39 135 48 79 7 30 154 1 140 43 118 12 177 23 72\n100\n183 85 86 120 57 102 39 6 76 124 52 37 35 99 116 90 167 6 21 175 120 192 165 147 58 84 131 29 182 105 162 89 123 70 142 82 196 180 169 72 115 51 136 155 174 77 154 129 82 51 169 37 101 76 4 73 161 197 195 125 85 62 29 160 118 73 79 109 62 24 174 82 75 15 143 46 132 168 84 161 72 86 66 89 151 4 33 194 76 198 4 133 68 184 17 164 16 14 66 196\n100\n73 148 110 196 141 191 66 189 20 155 148 51 81 71 25 28 173 54 109 30 38 191 139 53 48 167 54 77 90 197 56 173 189 62 136 29 88 139 185 41 167 120 160 47 181 182 6 189 184 3 160 62 132 192 43 63 123 11 140 92 43 70 119 49 112 176 45 86 156 3 164 98 108 78 138 123 5 11 193 117 143 27 114 90 16 1 139 144 36 12 74 33 140 1 183 135 28 33 37 134\n100\n177 71 122 63 59 140 168 82 48 166 90 27 58 71 106 105 1 34 170 155 107 99 130 75 3 39 194 88 64 73 48 158 80 87 164 113 13 52 170 178 166 104 16 49 177 37 137 59 32 155 105 126 137 166 114 155 90 46 182 35 93 136 46 38 56 3 114 199 41 125 74 124 144 63 149 76 197 134 47 26 43 44 192 161 69 175 139 96 81 71 68 113 66 30 6 109 90 59 84 146\n100\n159 103 6 191 93 196 183 150 157 35 12 67 69 165 103 173 191 116 149 115 118 43 188 97 111 91 74 163 125 7 170 121 127 58 136 75 21 176 199 119 41 11 112 9 35 63 30 114 136 183 32 188 139 105 70 140 68 191 128 185 137 120 124 197 154 103 94 162 65 154 100 102 114 29 194 26 63 128 148 79 151 199 3 42 80 16 90 98 58 130 153 151 62 44 49 85 55 172 89 58\n100\n152 129 40 60 46 27 44 22 136 73 154 133 156 51 191 134 131 122 79 2 176 180 69 188 29 85 2 10 127 74 160 99 42 55 193 65 128 172 84 126 198 123 1 187 88 197 52 175 150 78 55 93 30 6 131 89 165 121 127 164 40 113 189 110 88 163 120 188 21 64 3 154 122 116 54 186 25 124 18 102 120 59 88 82 141 174 100 166 22 154 152 50 116 26 86 2 137 101 101 149\n100\n167 102 65 81 43 110 108 89 58 184 121 106 186 187 171 90 172 118 73 153 81 62 196 13 51 115 4 185 133 164 104 37 53 184 133 172 121 144 170 57 88 129 97 140 123 101 143 76 131 100 48 13 53 111 93 132 51 14 199 16 12 34 49 52 112 141 9 50 180 169 135 162 165 111 17 11 163 121 6 145 43 50 193 64 42 44 33 136 102 25 159 153 7 6 143 129 151 70 195 28\n100\n141 59 20 115 144 178 58 184 138 183 38 137 35 30 182 115 80 21 25 152 4 46 12 4 45 25 44 149 194 129 132 9 116 29 161 133 130 146 132 83 73 39 80 35 187 170 189 29 160 121 197 189 163 44 21 105 15 113 134 199 137 15 164 58 111 183 46 143 137 31 55 51 151 90 52 95 20 61 160 167 73 34 133 191 101 178 187 79 100 15 109 72 61 152 170 23 64 137 50 10\n100\n191 178 43 161 21 118 98 183 133 95 109 72 68 103 64 45 49 50 46 142 44 155 59 168 85 101 168 47 6 187 135 109 164 33 151 140 25 124 146 0 38 31 21 17 24 184 15 144 152 19 70 167 119 174 87 30 145 116 44 99 162 85 115 121 102 141 4 173 133 52 11 29 24 159 183 65 45 150 26 191 97 13 171 186 62 190 184 106 18 22 119 66 18 191 159 166 103 79 98 67\n100\n145 103 30 20 25 134 21 33 35 87 193 27 148 24 92 118 0 44 31 86 95 108 153 197 192 121 19 107 71 22 161 191 52 51 123 165 156 180 61 65 123 100 28 35 153 12 82 76 157 89 92 199 176 61 42 131 60 100 38 80 20 145 129 168 141 162 34 33 70 82 0 160 164 141 99 136 65 33 29 27 54 28 119 184 110 168 17 197 125 6 10 63 48 90 169 144 199 43 155 64\n100\n137 158 6 111 14 147 93 129 187 80 85 164 34 76 15 118 184 47 48 147 155 32 181 37 27 96 59 124 199 53 101 41 4 129 15 165 50 132 83 119 96 39 178 38 41 3 6 20 70 49 5 124 78 187 184 29 139 98 173 38 15 2 41 85 63 11 66 27 183 130 165 82 182 31 35 90 12 56 2 48 113 126 97 64 15 93 107 37 18 138 24 70 183 145 128 59 83 21 137 160\n100\n149 123 83 105 47 113 186 184 9 34 100 170 39 157 68 56 85 192 22 133 135 183 27 99 61 90 135 100 79 173 106 85 45 9 36 181 139 99 101 7 195 19 84 27 155 160 133 52 0 3 88 198 75 169 104 190 43 157 57 119 75 149 190 146 198 67 146 109 80 79 181 7 119 138 25 99 170 14 110 155 32 165 18 120 37 64 109 103 144 50 141 101 144 27 141 110 96 24 83 98\n100\n40 131 170 154 135 103 45 9 14 32 117 30 118 32 13 90 61 132 35 117 45 121 18 5 133 121 46 170 188 194 8 27 35 177 75 5 50 42 54 118 190 124 179 165 154 171 22 44 67 109 10 72 152 74 177 97 170 141 67 141 17 168 65 121 55 127 114 83 137 132 149 162 82 35 192 135 130 134 120 128 88 124 34 33 3 125 122 182 160 65 130 64 23 122 86 108 38 31 165 26\n100\n162 163 178 19 51 141 115 76 168 121 98 187 131 39 139 152 30 74 181 142 118 100 100 34 6 80 190 123 199 168 85 34 55 144 44 108 0 19 118 149 147 180 99 48 84 119 132 140 88 170 97 33 140 22 145 140 127 50 82 47 99 50 130 196 104 131 5 51 82 139 167 170 76 143 156 173 116 157 86 166 33 43 72 14 98 71 137 61 9 120 186 127 41 53 123 128 91 197 99 81\n100\n23 110 71 178 193 90 53 34 66 47 113 22 145 174 88 22 177 119 83 166 5 194 46 124 41 89 98 197 66 60 191 173 65 5 6 38 196 118 62 144 126 15 93 123 169 124 18 169 72 70 161 15 25 129 94 37 195 30 149 100 101 194 161 103 192 159 148 6 13 169 39 55 161 51 10 77 176 139 22 102 24 196 49 23 112 123 114 171 8 20 181 156 98 149 145 97 66 43 48 192\n100\n131 4 95 94 50 149 151 181 198 45 75 45 184 33 100 199 167 97 9 141 31 99 98 174 187 159 62 145 129 59 124 167 166 168 127 94 49 196 142 123 196 17 11 168 48 181 33 174 88 84 68 68 25 4 44 121 160 111 122 151 100 142 30 25 30 51 120 198 127 80 5 182 25 14 12 4 192 9 138 5 66 66 171 80 164 141 26 86 135 133 51 124 76 92 159 151 196 127 7 87\n1\n27\n100\n120 5 127 37 110 183 3 137 83 141 35 21 77 78 80 34 111 29 53 130 8 130 48 32 141 70 16 63 18 15 184 109 174 141 85 8 160 148 85 178 101 171 105 1 196 172 109 131 187 70 125 184 2 127 146 88 152 197 189 95 198 151 18 173 57 119 73 115 68 83 10 59 125 196 39 183 118 159 118 61 167 3 166 138 26 193 82 76 160 138 157 180 154 78 61 68 121 73 98 157\n100\n58 19 145 101 189 16 156 39 125 125 132 178 21 116 162 87 8 138 130 5 90 199 169 7 53 13 56 185 183 148 193 199 162 6 66 135 19 71 64 199 8 47 14 114 12 107 22 127 92 120 199 98 71 186 192 152 17 124 188 93 89 88 14 96 68 146 158 137 145 168 197 25 47 21 37 43 107 70 149 146 39 52 12 20 31 76 91 125 45 99 16 174 56 77 72 136 8 96 109 132\n100\n158 188 144 4 130 127 49 119 68 174 101 161 55 166 127 113 162 180 18 128 89 113 141 23 196 131 40 31 135 32 182 182 50 44 52 57 1 68 33 173 94 19 126 83 133 182 112 36 25 52 12 24 45 96 2 173 158 105 77 158 111 81 50 170 180 53 127 159 116 197 118 118 177 181 65 152 113 171 176 186 74 42 41 109 97 62 48 42 148 192 136 20 17 29 24 181 38 106 161 150\n100\n147 58 39 105 181 68 14 1 116 94 167 45 167 39 163 0 174 44 199 125 80 17 24 49 86 74 57 185 15 58 75 30 182 11 37 70 162 191 28 61 12 96 76 100 158 171 191 48 122 98 150 158 128 145 142 38 60 73 77 93 95 4 13 32 125 104 95 21 48 168 84 20 91 38 32 119 137 166 32 62 134 31 37 94 102 11 114 42 69 34 147 130 103 41 6 11 97 137 102 15\n100\n63 117 117 199 151 43 138 182 54 87 12 112 122 37 174 91 8 118 51 77 23 52 11 30 189 1 15 87 128 29 121 187 63 127 88 77 114 46 75 82 31 39 19 169 47 162 6 160 152 105 161 120 180 41 150 139 138 124 151 5 140 189 25 82 104 53 180 30 11 6 58 187 51 127 30 22 147 7 96 114 5 149 6 10 115 135 188 185 134 113 23 76 163 177 126 122 107 129 66 27\n100\n25 100 48 175 130 157 13 96 16 92 105 51 7 130 103 147 52 55 84 135 194 146 190 36 47 105 7 78 158 81 146 99 22 192 13 8 52 41 191 176 124 57 108 146 158 32 63 27 31 41 79 37 100 37 109 150 54 140 197 27 179 46 139 38 81 98 192 21 97 93 13 6 129 93 151 16 194 38 188 75 171 21 180 83 166 99 156 9 66 68 159 195 184 128 94 132 66 58 66 63\n100\n113 31 86 160 166 49 122 60 83 173 166 106 146 74 108 146 70 20 66 69 178 127 38 84 159 167 178 30 121 191 90 93 44 9 107 40 123 22 47 150 25 62 182 169 140 1 55 105 126 87 63 179 166 78 145 9 86 106 120 43 6 42 161 183 138 17 195 109 199 97 195 142 52 167 140 103 55 155 52 56 45 62 197 50 189 65 105 127 47 27 103 76 65 75 46 181 3 15 63 160\n100\n116 181 177 133 28 184 103 44 76 174 108 135 2 135 41 186 193 120 14 144 57 112 104 96 91 106 26 16 183 133 111 176 105 65 6 98 18 19 191 24 67 50 134 95 175 75 94 187 65 162 39 108 60 82 186 95 122 135 148 159 119 138 66 173 150 60 141 93 148 6 118 68 12 65 19 127 171 114 42 150 149 128 61 177 136 25 6 65 183 153 5 26 153 165 145 127 180 31 180 183\n100\n147 123 81 63 144 49 26 40 62 91 29 98 198 178 127 25 60 69 180 23 147 2 165 82 23 55 187 7 9 130 91 111 144 144 75 89 5 156 124 17 56 48 160 80 50 88 166 67 178 173 43 48 132 176 163 198 135 16 57 180 166 61 91 133 129 85 50 91 93 88 88 186 57 159 27 110 26 90 41 64 66 74 92 148 12 92 16 158 27 159 42 39 163 48 196 50 96 196 78 108\n100\n86 37 103 123 1 41 45 30 94 0 193 54 194 4 142 124 169 181 43 27 1 102 23 38 161 34 101 5 100 132 56 36 10 117 193 77 192 110 190 8 175 89 69 191 139 35 106 39 173 69 173 44 27 195 136 195 102 116 7 22 164 148 8 172 8 190 157 47 31 86 96 106 67 14 190 67 5 111 183 53 39 26 142 129 40 127 140 86 43 47 153 70 10 5 109 171 71 42 132 42\n100\n20 25 81 118 188 151 52 57 65 175 30 151 102 150 188 147 72 90 19 117 193 160 156 92 93 199 32 49 73 143 133 44 56 86 25 164 0 132 22 145 53 109 95 147 108 119 34 136 123 44 182 90 175 146 39 48 165 162 168 119 69 182 113 87 140 166 33 90 121 36 77 195 106 63 49 20 56 133 166 155 57 21 61 101 60 116 163 138 178 197 134 188 99 70 199 115 166 65 32 74\n100\n78 137 0 48 193 158 157 71 58 82 17 65 106 20 112 4 2 197 136 43 116 178 106 24 115 73 160 78 136 119 8 188 182 121 16 23 112 186 170 166 42 68 58 76 62 146 181 153 104 38 197 122 195 111 115 187 21 37 4 178 40 64 166 94 131 165 156 184 65 106 65 0 184 189 2 11 157 7 7 27 86 143 35 112 31 77 49 6 1 35 146 159 176 11 108 90 164 197 125 107\n100\n83 15 177 94 180 155 168 134 183 11 116 3 148 0 41 60 73 123 189 32 23 187 178 139 103 137 90 63 177 1 3 113 30 114 99 198 103 198 117 190 68 174 92 48 106 184 48 126 167 35 7 177 71 5 30 120 45 58 159 198 42 8 77 66 33 105 78 90 111 40 17 2 69 143 48 26 160 57 63 46 90 68 126 186 10 49 139 13 162 158 20 37 15 75 172 76 190 29 155 10\n100\n77 184 75 35 176 40 48 129 190 33 167 37 123 45 3 194 86 134 52 75 141 125 1 55 104 178 191 33 60 125 26 125 90 189 107 135 47 119 83 14 28 113 48 26 40 127 109 66 165 165 87 73 176 150 53 153 29 109 143 0 171 11 178 163 188 168 2 160 168 173 66 160 18 185 1 85 19 146 13 96 189 94 4 119 19 27 88 61 95 52 43 90 147 165 124 84 125 153 192 110\n100\n197 97 5 112 56 56 130 31 34 101 171 38 56 65 36 69 124 186 172 2 52 71 180 125 180 108 199 137 67 128 12 31 84 93 58 140 87 88 77 159 159 130 30 76 140 38 191 60 76 60 94 128 37 53 185 139 127 128 196 104 168 196 175 13 183 191 148 46 133 159 127 173 1 7 95 152 35 60 52 171 195 120 73 88 67 175 163 12 74 49 130 28 195 183 33 127 45 0 185 190\n100\n172 38 171 193 96 173 61 108 116 100 139 27 97 72 178 89 172 93 58 199 78 166 10 42 195 167 177 54 54 192 2 26 194 45 174 148 83 44 81 175 70 47 118 98 167 194 172 67 138 191 189 68 60 112 100 12 34 77 175 17 90 47 190 140 105 84 43 14 164 100 98 82 75 170 123 98 51 64 77 23 60 164 117 67 170 119 55 97 127 65 100 88 169 13 198 44 159 50 56 5\n100\n10 28 113 20 82 32 66 187 31 64 101 180 185 102 73 53 194 27 188 154 2 66 168 147 171 137 33 112 62 120 101 155 85 86 117 141 163 48 132 67 153 146 13 194 107 75 66 129 82 108 2 94 171 106 98 155 144 44 24 178 101 31 140 103 125 128 159 189 70 49 112 188 163 0 141 114 105 44 111 175 84 106 58 197 194 159 123 15 96 22 58 73 76 196 106 105 195 187 143 141\n100\n139 188 39 77 172 152 196 82 171 185 129 184 47 68 139 199 15 122 42 112 107 31 48 54 171 90 9 58 125 127 68 164 155 105 89 7 155 196 123 141 49 34 184 26 186 11 22 69 58 11 0 4 185 103 162 8 122 40 1 137 12 147 119 91 148 160 5 25 90 130 81 88 195 38 11 184 47 55 171 102 100 161 117 165 139 101 23 15 9 53 2 31 185 89 7 144 135 64 12 27\n100\n184 155 95 85 49 38 155 15 141 56 9 19 27 62 48 179 143 131 151 51 96 98 179 138 106 191 101 13 181 51 69 86 77 142 141 155 35 58 199 161 180 295 184 138 113 56 193 173 71 31 52 53 199 23 100 36 0 166 192 146 164 103 81 152 9 133 122 82 89 42 104 69 140 136 65 5 12 72 26 155 25 10 156 188 46 68 14 13 196 126 65 85 181 29 56 188 116 38 198 115\n100\n99 22 133 68 29 143 116 28 61 190 24 141 47 147 119 81 182 89 105 3 149 190 191 168 145 117 145 167 70 138 186 125 2 182 95 28 55 196 120 141 13 146 78 27 103 124 86 186 165 197 68 16 18 144 4 163 79 15 172 43 7 17 126 17 180 57 69 136 58 100 22 74 35 28 114 158 99 27 192 121 140 89 136 43 93 146 21 28 94 18 2 143 96 27 17 85 3 72 176 85\n100\n111 66 54 154 142 43 100 150 66 9 134 198 100 182 116 85 93 53 124 21 48 111 75 43 103 23 116 123 85 3 112 117 84 69 7 166 104 184 181 65 172 30 160 87 115 145 193 21 42 65 49 158 148 166 70 96 93 103 167 83 60 114 44 15 114 124 161 125 0 67 172 49 17 18 13 158 179 69 86 75 124 46 187 117 82 71 140 101 35 25 73 147 6 188 117 43 138 184 157 39\n100\n94 60 131 53 65 37 190 171 27 97 60 184 91 99 91 140 90 106 13 98 23 190 162 125 21 195 146 178 154 1 123 13 98 146 87 78 12 118 82 84 114 156 19 58 127 130 1 26 92 166 24 144 155 102 19 88 184 21 156 35 68 199 10 13 108 135 115 162 154 102 34 115 10 63 74 92 184 81 148 40 24 101 181 102 93 96 20 101 55 179 178 14 7 73 99 66 68 185 124 164\n100\n187 29 118 111 2 122 42 187 142 97 188 172 38 13 133 148 31 150 196 59 9 29 117 124 106 121 189 25 138 9 69 81 39 107 29 113 154 85 50 193 49 194 2 8 134 127 72 107 96 142 172 50 8 19 21 83 127 173 105 44 158 175 44 91 134 152 183 24 186 63 131 101 153 155 126 196 128 51 61 10 80 153 27 91 91 52 9 126 69 134 63 130 121 67 49 17 65 11 125 108\n",
"100\n100\n41 67 134 100 169 124 78 158 162 64 105 145 81 27 161 91 195 142 27 36 191 4 102 153 92 182 21 116 118 95 47 126 171 138 69 112 67 99 35 94 103 11 122 133 73 64 141 111 53 68 147 44 62 157 37 59 123 141 129 178 116 35 190 42 88 106 40 142 64 48 46 5 90 129 170 150 6 101 193 148 29 23 84 154 156 40 166 176 131 108 144 39 26 123 137 138 118 82 129 141\n100\n33 115 39 58 104 130 177 106 73 186 21 145 124 72 70 29 177 173 97 112 186 90 161 36 155 167 55 174 31 52 150 150 141 124 166 30 107 191 7 137 57 87 153 183 145 109 9 158 21 188 22 146 106 30 13 168 100 191 162 55 10 159 24 137 148 83 195 41 2 150 91 36 174 20 196 21 148 199 68 84 81 134 53 199 18 138 100 188 127 67 128 93 48 83 7 21 110 17 13 114\n100\n109 16 135 51 0 49 119 156 198 103 24 8 44 9 189 102 195 85 93 143 123 187 114 103 48 0 58 18 180 196 198 81 189 198 9 157 72 22 138 92 38 179 190 57 158 191 15 88 156 111 2 34 72 55 128 46 162 86 75 33 69 142 44 16 81 198 122 51 21 99 157 76 92 189 75 112 0 110 3 69 61 88 1 189 55 23 2 185 182 85 88 26 17 157 32 132 169 154 121 189\n100\n176 129 168 92 25 155 34 149 41 112 145 60 118 153 139 23 79 196 87 129 149 37 66 149 193 195 97 16 86 105 88 82 55 134 114 101 116 71 186 63 113 155 185 53 112 8 32 145 113 156 121 158 46 182 81 144 196 22 129 161 135 50 173 66 44 59 92 39 53 24 154 110 145 49 186 113 74 22 168 18 187 105 158 191 2 25 77 14 114 24 134 74 172 159 33 70 87 97 118 177\n100\n173 70 163 68 192 185 102 80 13 27 2 99 127 25 143 124 23 172 61 181 3 32 105 193 125 31 92 142 22 86 64 100 187 160 13 174 70 170 35 33 111 160 96 67 85 150 140 94 95 24 19 125 176 94 58 102 171 66 78 193 51 84 18 64 119 152 0 87 60 126 10 157 170 115 176 27 43 158 164 109 82 86 165 87 177 74 25 27 29 128 23 120 102 162 123 196 137 61 195 125\n100\n64 60 2 116 30 126 11 171 11 147 153 120 190 124 188 163 140 51 62 29 100 113 158 178 165 7 77 0 58 39 103 160 157 124 77 108 113 87 1 50 60 28 193 184 5 140 111 104 35 156 72 150 23 85 156 16 26 157 126 157 137 71 69 161 96 22 17 112 117 96 185 41 23 129 29 165 159 132 96 55 53 162 184 134 54 172 57 169 132 163 7 83 111 35 67 48 75 138 23 142\n100\n154 111 141 175 59 25 21 70 26 134 5 183 50 198 79 101 193 134 37 134 156 193 176 105 162 148 81 100 13 41 55 55 142 62 11 77 24 78 152 43 96 73 40 113 75 72 18 10 17 132 112 95 169 31 40 88 85 90 97 189 190 145 153 114 51 140 44 58 135 159 192 5 64 181 103 29 175 8 92 197 149 156 161 27 67 141 129 40 13 174 1 77 15 83 13 192 24 1 192 159\n100\n70 28 27 84 75 186 98 170 87 47 4 103 21 63 106 163 10 171 89 40 164 142 19 113 191 104 18 32 150 5 175 139 103 22 98 47 184 48 171 64 113 75 145 112 146 78 169 62 119 185 89 144 65 140 45 108 118 70 1 123 132 72 152 87 170 163 101 103 23 127 0 169 15 165 28 143 147 88 143 37 9 63 49 81 188 142 8 60 21 158 154 88 146 90 149 43 30 20 148 67\n100\n136 183 35 26 185 38 53 29 24 148 123 159 57 166 144 155 118 126 11 25 155 1 149 96 184 115 164 142 75 113 142 196 148 72 26 6 173 29 4 105 26 12 175 93 165 36 136 141 14 194 56 52 136 38 82 155 15 131 30 41 25 11 37 186 90 50 62 34 93 153 16 52 8 62 33 54 103 34 103 56 148 124 117 13 109 28 0 80 118 58 50 155 161 64 103 76 43 109 102 161\n100\n89 148 82 53 74 20 2 123 31 169 78 59 8 19 171 3 145 181 104 192 85 113 98 189 122 138 37 10 61 34 108 161 159 93 115 69 137 69 58 100 171 64 117 15 155 15 130 39 12 88 82 154 85 110 84 174 180 15 151 141 115 79 110 98 73 188 177 132 156 89 113 8 141 190 123 163 28 184 178 0 71 85 174 71 133 67 153 95 168 25 76 29 50 198 109 93 86 80 116 49\n100\n67 128 79 64 21 5 26 16 116 126 66 87 81 164 140 86 21 62 121 64 109 15 102 73 124 141 145 162 23 131 6 68 118 2 107 107 81 12 136 30 114 9 84 156 90 93 196 152 54 145 108 48 91 112 131 114 39 158 122 104 195 52 69 79 38 23 118 66 59 98 86 196 62 33 158 22 146 192 37 125 47 58 2 7 98 30 92 0 78 199 152 48 82 140 115 175 162 167 136 197\n100\n18 97 28 51 16 30 49 125 58 29 120 140 160 147 162 55 75 192 161 154 198 146 114 146 188 169 38 63 75 115 121 75 15 128 34 170 105 64 157 162 161 124 149 69 130 123 150 133 125 110 137 136 137 78 193 36 114 164 191 149 135 105 137 4 137 23 64 170 8 168 81 85 152 173 52 194 76 26 196 172 49 40 174 19 143 11 141 89 19 165 5 185 16 50 15 9 64 166 93 74\n100\n109 100 95 173 189 161 172 168 158 31 68 26 110 22 174 179 110 152 182 191 95 164 74 164 102 55 60 74 172 21 122 147 177 189 5 195 194 150 143 154 81 12 72 39 28 112 162 167 8 15 108 23 159 34 4 86 119 158 145 6 166 100 167 92 187 132 156 174 47 21 83 22 131 176 183 148 123 182 18 176 20 111 182 56 90 125 124 86 77 169 43 134 77 68 68 191 196 183 28 127\n100\n26 71 97 12 103 27 8 145 108 185 38 37 43 113 101 50 128 111 50 149 192 54 69 81 65 67 113 193 34 72 172 30 101 42 177 77 170 102 164 181 190 23 37 23 179 195 169 127 42 110 182 58 126 87 70 128 51 58 13 60 183 86 142 10 72 128 34 41 118 103 67 65 138 81 57 150 14 198 58 61 63 156 7 78 89 35 165 75 186 186 25 160 130 48 128 92 33 40 166 135\n100\n10 199 37 92 182 128 152 169 44 194 8 52 47 32 135 8 64 97 43 49 15 41 189 100 12 48 123 51 74 33 91 0 54 190 97 119 180 178 131 144 140 87 99 125 83 138 92 193 52 11 160 34 40 97 185 129 140 5 191 192 10 149 178 179 171 77 73 193 20 97 26 76 190 182 178 159 18 89 159 49 124 72 180 8 167 8 77 103 170 7 196 74 122 11 19 161 56 90 163 83\n100\n116 132 52 141 154 13 62 196 60 15 104 199 136 80 198 32 187 184 40 117 6 70 41 82 49 123 158 105 21 95 96 116 78 178 179 58 177 150 7 129 81 195 78 76 153 99 184 165 93 8 172 43 129 114 168 55 191 173 122 148 51 186 144 46 177 117 29 116 74 191 69 112 146 93 91 15 149 57 40 52 36 151 87 26 162 155 183 194 180 97 65 65 113 61 178 78 78 140 11 147\n100\n45 170 175 89 91 149 133 65 14 82 7 32 96 167 122 82 10 41 31 187 105 79 121 138 151 47 8 46 76 159 189 22 66 86 55 28 14 60 53 177 148 103 61 31 82 55 197 106 152 21 96 81 21 55 147 124 118 135 176 174 59 198 74 53 122 35 43 88 153 32 147 80 126 78 50 1 161 199 55 163 116 173 161 45 73 74 150 153 181 87 99 110 43 65 172 129 181 112 76 181\n100\n47 90 71 5 172 32 189 120 165 31 58 93 6 178 148 6 171 166 196 97 20 94 129 188 109 184 169 178 17 15 26 84 168 106 128 97 118 190 199 185 86 199 20 110 71 13 15 85 118 180 131 67 187 44 186 107 160 27 74 31 152 71 68 93 85 137 111 4 77 6 168 22 13 0 142 137 38 188 155 89 47 181 93 184 187 161 93 17 101 82 47 65 153 104 84 95 125 21 164 181\n100\n72 106 56 143 193 80 80 68 11 113 168 51 16 79 168 40 131 133 179 63 59 53 136 95 165 74 120 35 80 176 55 125 71 8 159 156 2 32 105 40 175 162 85 162 80 36 197 2 108 80 140 76 58 93 140 146 74 173 97 80 135 72 0 107 155 66 141 188 81 168 115 196 25 9 12 136 55 162 43 142 21 122 112 48 18 168 117 114 50 90 135 159 169 95 103 40 179 199 105 191\n100\n61 81 52 153 33 29 187 42 53 83 20 14 118 44 63 29 52 64 169 70 5 47 194 87 126 76 123 140 79 190 188 110 71 145 21 70 183 189 155 178 179 6 62 135 87 196 33 88 135 179 193 190 162 165 1 105 7 167 69 134 71 57 198 145 197 18 38 44 172 163 28 64 1 123 90 4 1 27 197 92 171 163 101 163 121 165 21 45 10 95 141 22 12 151 15 55 193 138 79 82\n100\n8 54 22 107 45 138 144 90 139 154 4 23 25 78 124 181 130 133 23 194 130 46 187 45 5 16 150 89 138 163 135 97 9 30 24 108 137 74 120 172 93 55 134 161 56 6 184 75 182 119 141 32 84 179 79 83 67 36 125 118 137 28 119 177 137 91 156 195 60 101 193 32 136 180 75 107 184 74 119 190 76 41 151 129 90 174 72 191 189 187 90 39 93 53 63 81 103 5 176 79\n100\n95 139 68 198 83 39 115 21 193 26 122 38 28 181 199 178 91 23 143 34 43 149 102 107 102 141 87 146 91 37 13 0 16 90 162 135 126 10 77 182 60 189 105 74 63 122 195 166 160 38 188 11 45 67 25 67 189 142 63 147 102 17 99 23 26 3 48 51 170 36 58 167 56 5 131 162 19 175 156 131 95 44 191 3 188 115 50 119 72 191 183 133 175 42 169 100 154 78 185 57\n100\n133 93 90 103 150 33 122 71 11 190 138 41 58 47 152 58 79 102 83 190 2 168 22 95 135 8 161 142 194 99 188 178 42 157 141 47 69 145 180 113 164 110 61 185 73 104 62 103 102 69 154 129 152 74 149 130 44 44 49 118 65 163 152 173 70 131 147 111 69 198 98 103 152 79 53 43 122 88 163 34 50 22 40 111 92 51 180 77 16 76 178 20 15 148 198 179 35 57 83 62\n100\n102 62 20 170 22 73 41 86 88 117 117 92 98 67 149 65 189 132 19 81 3 130 28 31 189 152 30 172 64 7 95 28 81 90 10 177 71 36 59 43 40 33 37 93 30 74 193 182 3 61 90 62 107 197 151 23 90 117 40 103 166 83 61 59 45 186 51 165 1 40 9 97 83 50 58 21 175 181 187 71 87 199 104 179 138 100 130 61 118 5 140 28 59 22 198 160 98 135 81 14\n100\n167 93 196 161 146 138 70 138 76 155 117 171 160 152 158 33 55 65 126 1 34 159 193 148 73 192 193 133 137 103 90 11 94 68 27 98 189 48 79 47 149 131 69 75 198 49 36 199 123 43 131 154 61 34 185 167 16 193 104 66 153 108 23 84 192 67 48 69 130 11 14 90 27 143 4 199 74 195 106 158 189 58 9 89 47 40 18 164 175 26 89 103 66 12 40 170 76 195 41 186\n100\n51 109 187 83 85 190 50 86 155 181 128 102 77 62 24 165 72 32 85 28 46 89 78 83 125 65 60 45 178 21 55 120 127 173 134 51 75 136 134 1 137 110 174 190 156 71 80 135 145 82 25 118 173 112 37 198 105 162 117 92 139 47 146 103 31 115 39 58 29 45 194 199 45 72 75 62 72 173 80 38 97 142 8 3 77 125 134 1 78 182 169 136 78 139 138 121 26 63 77 175\n100\n124 181 100 161 62 2 48 95 84 16 137 107 193 84 144 59 21 58 43 68 77 119 57 41 91 64 23 115 72 129 41 115 15 136 157 159 100 52 93 41 29 48 27 198 24 124 74 133 85 38 170 62 29 84 109 78 123 85 0 24 193 105 12 165 167 7 77 184 104 190 34 91 21 85 134 190 142 198 86 18 21 24 197 176 54 69 108 127 93 68 166 102 38 0 19 118 90 184 139 156\n100\n8 32 78 14 187 39 74 20 27 154 188 41 198 42 2 121 104 146 56 109 33 108 161 133 86 4 185 142 42 60 161 20 143 178 187 113 63 191 134 15 56 161 12 11 159 51 138 170 124 107 7 184 151 101 89 158 41 190 13 12 55 60 93 72 2 76 143 173 66 51 75 128 132 161 69 103 129 107 92 51 153 192 170 119 72 7 94 105 40 183 62 9 7 38 160 71 171 54 147 114\n100\n123 29 89 166 87 156 32 70 139 66 122 83 160 153 105 91 59 186 87 29 42 117 45 156 188 52 154 66 33 160 119 31 138 67 176 98 114 120 53 7 69 16 122 42 7 63 60 147 193 30 117 43 176 114 26 117 134 20 171 192 164 154 66 93 64 175 0 12 100 151 76 179 143 77 189 161 185 72 34 144 161 163 104 146 88 108 157 30 123 64 74 146 37 181 118 11 92 191 32 123\n100\n61 191 61 130 98 169 91 0 179 117 117 114 195 41 136 67 28 53 109 173 181 103 169 16 83 167 185 2 30 157 81 167 110 66 87 171 77 45 164 38 71 47 115 192 111 57 5 53 171 180 140 130 75 120 190 177 198 186 4 89 31 144 188 10 118 119 59 127 9 119 79 116 100 196 53 58 30 193 6 49 54 72 160 94 54 133 146 29 71 28 159 41 21 88 166 33 85 70 129 61\n100\n60 8 182 162 106 78 179 97 87 138 69 183 140 195 66 33 109 157 117 134 53 135 58 193 43 93 66 151 140 94 137 174 112 97 151 95 17 92 92 37 130 13 96 110 189 28 9 186 144 40 182 169 120 193 92 162 14 127 7 194 105 113 11 113 93 64 3 195 162 181 146 109 48 168 24 111 154 35 127 33 40 62 127 177 17 140 142 100 0 158 76 154 135 30 31 95 137 23 122 127\n100\n29 11 11 154 80 53 93 121 185 128 43 0 155 71 70 52 175 31 40 134 40 186 34 48 139 165 196 112 62 52 131 187 64 157 48 156 170 50 182 101 93 99 132 44 131 75 4 50 26 66 138 1 23 43 41 180 95 118 59 163 28 129 88 54 13 179 169 66 79 177 37 2 115 92 123 72 48 123 153 148 195 197 108 108 11 193 65 181 2 10 28 56 105 165 23 169 115 53 5 84\n100\n78 145 40 33 85 100 168 194 33 85 148 81 32 56 110 72 182 101 106 35 60 71 127 137 143 168 33 195 171 3 142 11 79 34 112 193 130 161 34 58 126 106 191 43 188 27 119 84 24 93 35 24 94 182 67 27 5 146 86 189 140 37 50 159 178 156 77 3 42 100 11 25 143 195 16 15 4 6 168 41 135 98 125 113 23 112 18 57 196 139 86 94 46 43 122 111 80 55 158 47\n100\n70 190 73 127 13 54 96 72 50 41 41 46 125 13 24 129 95 3 194 193 67 187 40 79 41 125 134 60 0 107 21 92 93 117 117 3 143 93 39 11 125 28 178 148 50 92 44 54 23 153 36 147 146 26 61 104 38 171 86 5 99 56 128 67 151 19 191 166 117 46 93 187 21 112 67 99 44 97 1 128 142 104 168 168 41 96 62 120 44 118 25 19 184 174 184 59 149 14 95 103\n100\n32 51 137 14 163 51 19 90 117 83 118 184 52 186 69 48 137 197 24 168 27 148 193 182 71 69 93 77 14 104 84 143 95 11 93 92 198 190 99 90 93 74 149 174 114 173 69 18 65 33 38 111 52 63 108 149 88 45 31 120 106 71 168 21 58 157 47 182 38 122 123 106 106 189 156 145 151 123 118 150 97 36 191 6 110 13 51 80 44 143 141 45 178 149 105 114 185 27 24 4\n100\n156 117 27 155 102 86 68 98 179 11 89 158 90 175 10 132 89 96 150 112 122 129 72 36 77 153 176 70 85 52 151 197 151 1 35 93 72 116 116 128 111 125 38 96 139 144 56 26 102 158 188 21 186 108 177 28 179 147 149 80 45 128 62 26 119 77 91 47 185 31 6 84 154 169 109 156 21 145 65 16 60 97 135 190 77 49 5 86 188 75 143 177 130 87 155 82 53 0 154 89\n100\n88 15 8 110 140 199 197 107 54 104 37 85 99 192 13 12 82 183 151 129 137 33 0 64 83 57 168 110 168 108 41 132 37 84 99 101 69 183 56 92 40 87 12 10 20 35 63 15 97 77 174 134 153 133 78 86 24 134 75 149 112 184 24 192 104 22 55 113 62 73 84 160 122 53 197 22 150 137 117 6 131 197 105 36 157 199 90 98 185 47 84 192 125 196 55 28 138 142 28 195\n100\n142 37 106 167 53 193 105 146 9 124 54 65 39 6 9 92 99 175 36 61 47 18 13 127 112 96 109 41 130 90 34 115 86 123 66 144 136 37 16 93 149 171 44 177 85 0 190 85 125 118 68 6 129 8 141 25 136 180 116 70 184 147 128 136 4 100 123 164 11 40 50 104 83 166 141 70 45 106 88 56 107 66 57 78 199 74 155 191 190 32 58 196 117 90 167 107 34 46 62 2\n100\n39 26 95 106 114 150 186 79 176 22 79 101 12 76 164 157 170 38 112 144 161 180 0 43 56 61 47 139 8 90 52 179 18 19 7 84 147 177 75 13 109 171 42 139 136 21 101 34 129 158 36 69 97 104 198 2 105 38 32 65 116 81 179 23 127 171 113 182 140 16 88 119 189 113 59 51 71 83 164 38 12 184 159 101 174 133 59 114 49 195 122 141 16 177 52 165 91 138 110 167\n100\n55 187 24 22 39 41 48 4 34 168 41 72 68 174 176 137 33 41 145 18 15 174 52 46 156 124 166 181 144 40 134 96 76 27 5 18 91 41 65 191 71 59 100 17 16 143 24 64 105 157 102 66 75 46 32 189 46 145 3 152 101 126 153 184 49 150 5 146 25 170 136 195 193 123 132 56 96 10 176 92 150 90 195 52 150 115 36 161 160 184 129 134 50 82 6 136 184 190 17 182\n100\n66 116 188 25 101 10 50 182 21 193 38 154 193 95 80 38 167 20 145 83 65 96 33 190 32 189 39 183 17 129 153 79 13 0 52 145 61 151 118 163 13 107 154 76 17 11 29 64 166 131 142 98 122 155 187 57 158 64 162 110 146 65 180 165 146 140 97 42 64 194 184 70 115 0 6 106 102 96 33 11 67 15 45 175 154 48 119 79 188 121 192 197 197 109 52 71 58 122 59 197\n100\n199 99 120 120 36 184 112 115 153 85 141 199 167 8 44 169 81 79 108 7 59 106 49 75 26 124 7 174 84 128 146 145 81 114 149 168 138 107 193 104 105 97 17 155 41 143 133 97 79 136 155 33 154 130 52 104 79 88 70 154 72 176 101 15 86 31 80 175 60 114 138 57 190 38 181 47 42 18 70 31 61 19 181 190 33 72 163 102 102 128 121 98 47 145 6 22 86 194 177 44\n100\n83 147 40 85 64 123 137 53 168 130 55 66 58 112 56 118 1 142 76 106 102 84 23 70 112 50 75 111 50 195 88 120 101 183 198 92 48 184 45 187 62 143 58 59 71 16 172 32 41 83 88 15 176 116 98 39 83 5 197 146 169 75 117 187 20 30 42 135 189 173 80 73 177 186 181 185 122 145 179 85 113 135 135 83 186 96 48 85 152 121 60 182 36 88 119 36 192 65 78 198\n100\n96 186 11 176 147 121 2 45 102 164 139 172 57 170 120 54 159 80 98 191 160 110 191 67 33 75 136 99 175 190 176 56 72 103 86 167 115 142 95 166 56 186 37 198 26 164 85 65 108 140 160 14 154 12 152 138 106 125 30 49 179 79 113 38 117 21 145 191 169 39 108 165 162 73 81 170 147 53 108 108 115 29 66 89 63 171 141 59 31 172 114 166 188 170 168 199 55 50 44 136\n100\n78 6 27 113 123 171 127 73 61 173 134 102 187 17 63 153 126 195 95 13 6 170 59 105 96 33 23 52 79 119 126 193 185 65 171 44 107 71 87 99 119 196 115 152 92 153 57 190 159 157 86 9 65 86 19 59 113 35 28 101 68 69 56 131 178 74 195 43 74 116 24 111 185 122 171 57 95 174 38 183 58 95 122 183 31 103 32 100 190 80 8 105 102 58 18 157 161 120 28 56\n100\n113 132 92 182 67 120 158 74 187 94 183 164 64 114 146 190 25 55 163 67 192 31 19 80 118 128 148 120 79 91 166 187 8 126 25 159 118 20 35 114 56 147 156 134 160 151 8 78 94 189 124 176 94 90 189 172 19 101 102 44 123 139 9 27 37 186 16 27 169 23 99 114 15 44 36 69 178 76 58 152 46 137 115 188 16 88 182 74 133 115 56 56 62 16 124 129 42 184 72 49\n100\n196 26 182 2 175 16 65 152 159 155 17 44 154 43 24 199 22 121 133 13 117 193 73 60 175 74 185 101 22 8 195 26 120 91 188 129 72 177 193 8 54 122 76 137 16 3 90 112 89 53 179 99 122 102 2 169 54 129 134 38 74 26 63 134 172 148 53 103 107 118 133 37 95 179 61 144 59 161 107 176 72 45 192 172 28 196 11 135 35 29 116 132 156 158 149 20 96 124 120 126\n100\n6 183 45 174 91 188 138 64 104 77 153 142 4 23 52 25 11 42 124 149 135 190 146 128 55 4 141 109 181 179 102 83 92 132 112 99 161 47 5 90 169 159 28 139 28 180 71 178 40 56 148 44 145 125 10 98 16 180 15 64 26 72 79 193 82 5 136 133 105 187 132 38 165 64 118 199 32 108 96 38 178 38 45 59 169 144 162 169 49 118 67 158 143 61 3 190 186 26 3 4\n100\n100 168 23 147 196 166 30 65 152 0 17 173 186 68 197 179 24 128 60 158 25 67 112 134 52 169 162 170 11 35 90 111 64 150 160 145 167 154 187 17 165 142 88 73 15 179 37 188 69 86 30 9 40 121 119 81 26 20 11 54 93 184 157 199 136 29 150 57 5 165 134 49 94 192 70 119 17 113 53 117 177 160 105 153 191 162 176 54 72 134 16 50 193 145 52 147 121 61 144 59\n100\n166 85 39 118 107 68 154 50 32 199 20 135 98 192 116 182 29 116 59 158 183 199 135 157 70 71 142 180 77 6 95 86 3 52 118 35 85 28 78 160 101 149 164 185 26 157 137 41 138 193 96 33 93 168 73 135 109 96 181 161 139 184 123 99 131 49 42 6 50 87 40 169 23 188 67 83 0 158 6 138 63 120 166 158 85 23 29 98 156 70 175 196 83 188 19 146 190 75 69 119\n100\n141 197 145 54 158 58 194 191 141 37 100 32 75 136 38 158 180 85 13 84 53 127 85 26 70 136 81 170 149 148 77 199 35 173 137 151 131 17 33 171 176 129 131 44 142 67 0 128 116 34 199 157 40 181 23 141 131 149 139 99 175 99 163 45 126 1 24 83 189 135 24 95 145 170 83 117 192 152 124 173 140 55 68 70 43 30 156 165 114 180 58 158 124 8 111 67 117 128 190 99\n100\n180 70 190 12 0 64 75 84 82 111 106 68 44 26 36 166 192 188 38 65 12 147 46 59 52 171 56 110 57 66 50 70 145 125 148 74 174 43 29 136 163 16 58 134 101 61 55 15 174 182 139 82 24 100 175 137 176 100 24 64 137 95 125 29 51 188 194 144 106 75 71 90 84 19 179 195 158 7 45 174 38 156 20 32 166 22 157 153 71 155 189 25 29 128 39 127 194 90 48 54\n100\n117 192 130 18 148 56 190 82 143 39 101 93 127 69 193 33 31 192 135 26 42 80 16 161 117 107 120 45 166 121 182 182 6 91 70 15 195 143 163 171 192 135 17 12 81 67 121 152 122 28 30 29 24 99 153 151 194 41 64 183 120 144 188 77 13 2 58 2 153 49 58 175 90 38 23 195 101 5 158 123 87 41 26 130 9 20 135 43 131 74 102 100 71 175 9 30 194 22 136 90\n100\n15 52 154 182 133 188 55 160 145 123 142 59 87 143 147 184 189 68 188 198 80 79 107 13 60 47 46 71 182 144 142 48 36 153 149 88 23 25 51 190 39 46 162 175 24 78 185 103 181 177 150 48 170 94 16 129 126 38 115 72 152 62 21 67 128 65 129 59 82 189 186 19 135 140 66 32 85 22 3 161 96 141 150 32 72 161 170 113 165 45 120 10 128 170 21 196 4 114 199 10\n100\n69 152 35 71 144 30 182 61 195 151 66 83 110 158 172 95 106 14 52 84 105 12 21 141 175 90 125 11 167 182 183 187 193 50 79 68 74 84 29 135 60 105 111 192 24 150 16 60 1 159 109 123 67 100 25 56 140 48 55 7 49 91 160 182 36 19 70 79 125 119 9 101 31 124 7 125 101 83 169 88 164 163 124 134 170 51 197 124 111 67 65 40 179 155 28 61 32 27 160 139\n100\n66 37 48 48 4 48 165 21 133 175 41 114 147 162 154 76 54 58 121 184 88 66 116 56 180 29 137 29 189 43 4 101 184 120 187 136 52 182 128 166 72 193 158 179 183 187 23 197 96 194 101 53 120 103 72 20 132 153 24 33 57 65 132 80 167 166 90 68 126 28 79 144 103 49 33 3 110 40 27 10 127 82 193 187 63 161 165 199 51 118 81 158 103 158 38 178 64 57 172 21\n100\n122 156 67 60 98 143 34 41 19 152 62 11 11 193 5 81 51 160 98 71 42 94 84 135 100 155 155 123 50 88 139 10 17 132 148 10 95 19 48 189 171 51 95 23 37 49 0 7 134 84 177 12 41 104 96 162 137 151 51 132 165 138 45 28 194 126 178 145 128 5 149 57 112 1 199 127 92 153 195 142 167 149 176 55 142 148 103 15 47 73 165 149 137 169 131 170 53 168 52 178\n100\n156 181 95 186 129 131 78 59 152 89 158 38 54 172 8 56 171 147 103 111 174 19 107 5 199 188 61 45 35 92 132 76 67 3 167 99 54 167 12 114 129 193 177 54 12 31 89 126 47 99 89 74 36 12 187 157 103 91 82 29 27 161 152 96 46 183 197 154 32 102 145 76 24 81 195 23 32 143 2 169 82 189 37 199 35 179 54 52 199 150 132 145 93 71 49 190 4 177 105 119\n100\n150 128 28 122 68 185 174 184 51 84 37 115 189 81 74 159 50 146 60 27 33 21 161 18 146 150 63 61 46 58 194 171 145 102 46 20 54 153 160 186 19 135 16 113 135 192 18 65 170 136 125 146 44 112 82 15 105 126 1 173 106 80 193 190 191 14 23 57 100 49 122 85 162 102 68 174 152 48 35 38 162 37 72 192 0 143 119 81 170 191 145 184 114 85 79 199 82 186 119 50\n100\n193 185 116 8 88 99 25 96 169 131 14 102 170 137 198 77 198 51 88 63 53 105 141 67 62 55 81 95 18 72 94 70 138 121 45 123 43 165 118 135 137 199 99 192 154 124 31 66 29 122 156 18 75 92 110 161 132 128 122 149 77 26 148 78 177 138 175 144 125 139 21 140 40 166 81 148 147 151 107 151 110 157 77 9 3 176 140 23 174 54 169 106 85 199 48 130 173 58 16 84\n100\n173 31 4 183 191 22 10 187 164 168 194 179 23 109 57 141 85 77 23 72 28 35 149 117 9 143 67 65 190 91 169 138 4 176 12 191 93 9 20 197 62 128 100 159 42 40 89 94 42 20 86 146 164 86 71 143 66 74 45 188 149 27 154 104 81 46 157 85 114 150 32 73 143 112 32 83 39 168 189 83 9 187 195 45 112 39 135 48 79 7 30 154 1 140 43 118 12 177 23 72\n100\n183 85 86 120 57 102 39 6 76 124 52 37 35 99 116 90 167 6 21 175 120 192 165 147 58 84 131 29 182 105 162 89 123 70 142 82 196 180 169 72 115 51 136 155 174 77 154 129 82 51 169 37 101 76 4 73 161 197 195 125 85 62 29 160 118 73 79 109 62 24 174 82 75 15 143 46 132 168 84 161 72 86 66 89 151 4 33 194 76 198 4 133 68 184 17 164 16 14 66 196\n100\n73 148 110 196 141 191 66 189 20 155 148 51 81 71 25 28 173 54 109 30 38 191 139 53 48 167 54 77 90 197 56 173 189 62 136 29 88 139 185 41 167 120 160 47 181 182 6 189 184 3 160 62 132 192 43 63 123 11 140 92 43 70 119 49 112 176 45 86 156 3 164 98 108 78 138 123 5 11 193 117 143 27 114 90 16 1 139 144 36 12 74 33 140 1 183 135 28 33 37 134\n100\n177 71 122 63 59 140 168 82 48 166 90 27 58 71 106 105 1 34 170 155 107 99 130 75 3 39 194 88 64 73 48 158 80 87 164 113 13 52 170 178 166 104 16 49 177 37 137 59 32 155 105 126 137 166 114 155 90 46 182 35 93 136 46 38 56 3 114 199 41 125 74 124 144 63 149 76 197 134 47 26 43 44 192 161 69 175 139 96 81 71 68 113 66 30 6 109 90 59 84 146\n100\n159 103 6 191 93 196 183 150 157 35 12 67 69 165 103 173 191 116 149 115 118 43 188 97 111 91 74 163 125 7 170 121 127 58 136 75 21 176 199 119 41 11 112 9 35 63 30 114 136 183 32 188 139 105 70 140 68 191 128 185 137 120 124 197 154 103 94 162 65 154 100 102 114 29 194 26 63 128 148 79 151 199 3 42 80 16 90 98 58 130 153 151 62 44 49 85 55 172 89 58\n100\n152 129 40 60 46 27 44 22 136 73 154 133 156 51 191 134 131 122 79 2 176 180 69 188 29 85 2 10 127 74 160 99 42 55 193 65 128 172 84 126 198 123 1 187 88 197 52 175 150 78 55 93 30 6 131 89 165 121 127 164 40 113 189 110 88 163 120 188 21 64 3 154 122 116 54 186 25 124 18 102 120 59 88 82 141 174 100 166 22 154 152 50 116 26 86 2 137 101 101 149\n100\n167 102 65 81 43 110 108 89 58 184 121 106 186 187 171 90 172 118 73 153 81 62 196 13 51 115 4 185 133 164 104 37 53 184 133 172 121 144 170 57 88 129 97 140 123 101 143 76 131 100 48 13 53 111 93 132 51 14 199 16 12 34 49 52 112 141 9 50 180 169 135 162 165 111 17 11 163 121 6 145 43 50 193 64 42 44 33 136 102 25 159 153 7 6 143 129 151 70 195 28\n100\n141 59 20 115 144 178 58 184 138 183 38 137 35 30 182 115 80 21 25 152 4 46 12 4 45 25 44 149 194 129 132 9 116 29 161 133 130 146 132 83 73 39 80 35 187 170 189 29 160 121 197 189 163 44 21 105 15 113 134 199 137 15 164 58 111 183 46 143 137 31 55 51 151 90 52 95 20 61 160 167 73 34 133 191 101 178 187 79 100 15 109 72 61 152 170 23 64 137 50 10\n100\n191 178 43 161 21 118 98 183 133 95 109 72 68 103 64 45 49 50 46 142 44 155 59 168 85 101 168 47 6 187 135 109 164 33 151 140 25 124 146 0 38 31 21 17 24 184 15 144 152 19 70 167 119 174 87 30 145 116 44 99 162 85 115 121 102 141 4 173 133 52 11 29 24 159 183 65 45 150 26 191 97 13 171 186 62 190 184 106 18 22 119 66 18 191 159 166 103 79 98 67\n100\n145 103 30 20 25 134 21 33 35 87 193 27 148 24 92 118 0 44 31 86 95 108 153 197 192 121 19 107 71 22 161 191 52 51 123 165 156 180 61 65 123 100 28 35 153 12 82 76 157 89 92 199 176 61 42 131 60 100 38 80 20 145 129 168 141 162 34 33 70 82 0 160 164 141 99 136 65 33 29 27 54 28 119 184 110 168 17 197 125 6 10 63 48 90 169 144 199 43 155 64\n100\n137 158 6 111 14 147 93 129 187 80 85 164 34 76 15 118 184 47 48 147 155 32 181 37 27 96 59 124 199 53 101 41 4 129 15 165 50 132 83 119 96 39 178 38 41 3 6 20 70 49 5 124 78 187 184 29 139 98 173 38 15 2 41 85 63 11 66 27 183 130 165 82 182 31 35 90 12 56 2 48 113 126 97 64 15 93 107 37 18 138 24 70 183 145 128 59 83 21 137 160\n100\n149 123 83 105 47 113 186 184 9 34 100 170 39 157 68 56 85 192 22 133 135 183 27 99 61 90 135 100 79 173 106 85 45 9 36 181 139 99 101 7 195 19 84 27 155 160 133 52 0 3 88 198 75 169 104 190 43 157 57 119 75 149 190 146 198 67 146 109 80 79 181 7 119 138 25 99 170 14 110 155 32 165 18 120 37 64 109 103 144 50 141 101 144 27 141 110 96 24 83 98\n100\n40 131 170 154 135 103 45 9 14 32 117 30 118 32 13 90 61 132 35 117 45 121 18 5 133 121 46 170 188 194 8 27 35 177 75 5 50 42 54 118 190 124 179 165 154 171 22 44 67 109 10 72 152 74 177 97 170 141 67 141 17 168 65 121 55 127 114 83 137 132 149 162 82 35 192 135 130 134 120 128 88 124 34 33 3 125 122 182 160 65 130 64 23 122 86 108 38 31 165 26\n100\n162 163 178 19 51 141 115 76 168 121 98 187 131 39 139 152 30 74 181 142 118 100 100 34 6 80 190 123 199 168 85 34 55 144 44 108 0 19 118 149 147 180 99 48 84 119 132 140 88 170 97 33 140 22 145 140 127 50 82 47 99 50 130 196 104 131 5 51 82 139 167 170 76 143 156 173 116 157 86 166 33 43 72 14 98 71 137 61 9 120 186 127 41 53 123 128 91 197 99 81\n100\n23 110 71 178 193 90 53 34 66 47 113 22 145 174 88 22 177 119 83 166 5 194 46 124 41 89 98 197 66 60 191 173 65 5 6 38 196 118 62 144 126 15 93 123 169 124 18 169 72 70 161 15 25 129 94 37 195 30 149 100 101 194 161 103 192 159 148 6 13 169 39 55 161 51 10 77 176 139 22 102 24 196 49 23 112 123 114 171 8 20 181 156 98 149 145 97 66 43 48 192\n100\n131 4 95 94 50 149 151 181 198 45 75 45 184 33 100 199 167 97 9 141 31 99 98 174 187 159 62 145 129 59 124 167 166 168 127 94 49 196 142 123 196 17 11 168 48 181 33 174 88 84 68 68 25 4 44 121 160 111 122 151 100 142 30 25 30 51 120 198 127 80 5 182 25 14 12 4 192 9 138 5 66 66 171 80 164 141 26 86 135 133 51 124 76 92 159 151 196 127 7 87\n1\n27\n100\n120 5 127 37 110 183 3 137 83 141 35 21 77 78 80 34 111 29 53 130 8 130 48 32 141 70 16 63 18 15 184 109 174 141 85 8 160 148 85 178 101 171 105 1 196 172 109 131 187 70 125 184 2 127 146 88 152 197 189 95 198 151 18 173 57 119 73 115 68 83 10 59 125 196 39 183 118 159 118 61 167 3 166 138 26 193 82 76 160 138 157 180 154 78 61 68 121 73 98 157\n100\n58 19 145 101 189 16 156 39 125 125 132 178 21 116 162 87 8 138 130 5 90 199 169 7 53 13 56 185 183 148 193 199 162 6 66 135 19 71 64 199 8 47 14 114 12 107 22 127 92 120 199 98 71 186 192 152 17 124 188 93 89 88 14 96 68 146 158 137 145 168 197 25 47 21 37 43 107 70 149 146 39 52 12 20 31 76 91 125 45 99 16 174 56 77 72 136 8 96 109 132\n100\n158 188 144 4 130 127 49 119 68 174 101 161 55 166 127 113 162 180 18 128 89 113 141 23 196 131 40 31 135 32 182 182 50 44 52 57 1 68 33 173 94 19 126 83 133 182 112 36 25 52 12 24 45 96 2 173 158 105 77 158 111 81 50 170 180 53 127 159 116 197 118 118 177 181 65 152 113 171 176 186 74 42 41 109 97 62 48 42 148 192 136 20 17 29 24 181 38 106 161 150\n100\n147 58 39 105 181 68 14 1 116 94 167 45 167 39 163 0 174 44 199 125 80 17 24 49 86 74 57 185 15 58 75 30 182 11 37 70 162 191 28 61 12 96 76 100 158 171 191 48 122 98 150 158 128 145 142 38 60 73 77 93 95 4 13 32 125 104 95 21 48 168 84 20 91 38 32 119 137 166 32 62 134 31 37 94 102 11 114 42 69 34 147 130 103 41 6 11 97 137 102 15\n100\n63 117 117 199 151 43 138 182 54 87 12 112 122 37 174 91 8 118 51 77 23 52 11 30 189 1 15 87 128 29 121 187 63 127 88 77 114 46 75 82 31 39 19 169 47 162 6 160 152 105 161 120 180 41 150 139 138 124 151 5 140 189 25 82 104 53 180 30 11 6 58 187 51 127 30 22 147 7 96 114 5 149 6 10 115 135 188 185 134 113 23 76 163 177 126 122 107 129 66 27\n100\n25 100 48 175 130 157 13 96 16 92 105 51 7 130 103 147 52 55 84 135 194 146 190 36 47 105 7 78 158 81 146 99 22 192 13 8 52 41 191 176 124 57 108 146 158 32 63 27 31 41 79 37 100 37 109 150 54 140 197 27 179 46 139 38 81 98 192 21 97 93 13 6 129 93 151 16 194 38 188 75 171 21 180 83 166 99 156 9 66 68 159 195 184 128 94 132 66 58 66 63\n100\n113 31 86 160 166 49 122 60 83 173 166 106 146 74 108 146 70 20 66 69 178 127 38 84 159 167 178 30 121 191 90 93 44 9 107 40 123 22 47 150 25 62 182 169 140 1 55 105 126 87 63 179 166 78 145 9 86 106 120 43 6 42 161 183 138 17 195 109 199 97 195 142 52 167 140 103 55 155 52 56 45 62 197 50 189 65 105 127 47 27 103 76 65 75 46 181 3 15 63 160\n100\n116 181 177 133 28 184 103 44 76 174 108 135 2 135 41 186 193 120 14 144 57 112 104 96 91 106 26 16 183 133 111 176 105 65 6 98 18 19 191 24 67 50 134 95 175 75 94 187 65 162 39 108 60 82 186 95 122 135 148 159 119 138 66 173 150 60 141 93 148 6 118 68 12 65 19 127 171 114 42 150 149 128 61 177 136 25 6 65 183 153 5 26 153 165 145 127 180 31 180 183\n100\n147 123 81 63 144 49 26 40 62 91 29 98 198 178 127 25 60 69 180 23 147 2 165 82 23 55 187 7 9 130 91 111 144 144 75 89 5 156 124 17 56 48 160 80 50 88 166 67 178 173 43 48 132 176 163 198 135 16 57 180 166 61 91 133 129 85 50 91 93 88 88 186 57 159 27 110 26 90 41 64 66 74 92 148 12 92 16 158 27 159 42 39 163 48 196 50 96 196 78 108\n100\n86 37 103 123 1 41 45 30 94 0 193 54 194 4 142 124 169 181 43 27 1 102 23 38 161 34 101 5 100 132 56 36 10 117 193 77 192 110 190 8 175 89 69 191 139 35 106 39 173 69 173 44 27 195 136 195 102 116 7 22 164 148 8 172 8 190 157 47 31 86 96 106 67 14 190 67 5 111 183 53 39 26 142 129 40 127 140 86 43 47 153 70 10 5 109 171 71 42 132 42\n100\n20 25 81 118 188 151 52 57 65 175 30 151 102 150 188 147 72 90 19 117 193 160 156 92 93 199 32 49 73 143 133 44 56 86 25 164 0 132 22 145 53 109 95 147 108 119 34 136 123 44 182 90 175 146 39 48 165 162 168 119 69 182 113 87 140 166 33 90 121 36 77 195 106 63 49 20 56 133 166 155 57 21 61 101 60 116 163 138 178 197 134 188 99 70 199 115 166 65 32 74\n100\n78 137 0 48 193 158 157 71 58 82 17 65 106 20 112 4 2 197 136 43 116 178 106 24 115 73 160 78 136 119 8 188 182 121 16 23 112 186 170 166 42 68 58 76 62 146 181 153 104 38 197 122 195 111 115 187 21 37 4 178 40 64 166 94 131 165 156 184 65 106 65 0 184 189 2 11 157 7 7 27 86 143 35 112 31 77 49 6 1 35 146 159 176 11 108 90 164 197 125 107\n100\n83 15 177 94 180 155 168 134 183 11 116 3 148 0 41 60 73 123 189 32 23 187 178 139 103 137 90 63 177 1 3 113 30 114 99 198 103 198 117 190 68 174 92 48 106 184 48 126 167 35 7 177 71 5 30 120 45 58 159 198 42 8 77 66 33 105 78 90 111 40 17 2 69 143 48 26 160 57 63 46 90 68 126 186 10 49 139 13 162 158 20 37 15 75 172 76 190 29 155 10\n100\n77 184 75 35 176 40 48 129 190 33 167 37 123 45 3 194 86 134 52 75 141 125 1 55 104 178 191 33 60 125 26 125 90 189 107 135 47 119 83 14 28 113 48 26 40 127 109 66 165 165 87 73 176 150 53 153 29 109 143 0 171 11 178 163 188 168 2 160 168 173 66 160 18 185 1 85 19 146 13 96 189 94 4 119 19 27 88 61 95 52 43 90 147 165 124 84 125 153 192 110\n100\n197 97 5 112 56 56 130 31 34 101 171 38 56 65 36 69 124 186 172 2 52 71 180 125 180 108 199 137 67 128 12 31 84 93 58 140 87 88 77 159 159 130 30 76 140 38 191 60 76 60 94 128 37 53 185 139 127 128 196 104 168 196 175 13 183 191 148 46 133 159 127 173 1 7 95 152 35 60 52 171 195 120 73 88 67 175 163 12 74 49 130 28 195 183 33 127 45 0 185 190\n100\n172 38 171 193 96 173 61 108 116 100 139 27 97 72 178 89 172 93 58 199 78 166 10 42 195 167 177 54 54 192 2 26 194 45 174 148 83 44 81 175 70 47 118 98 167 194 172 67 138 191 189 68 60 112 100 12 34 77 175 17 90 47 190 140 105 84 43 14 164 100 98 82 75 170 123 98 51 64 77 23 60 164 117 67 170 119 55 97 127 65 100 88 169 13 198 44 159 50 56 5\n100\n10 28 113 20 82 32 66 187 31 64 101 180 185 102 73 53 194 27 188 154 2 66 168 147 171 137 33 112 62 120 101 155 85 86 117 141 163 48 132 67 153 146 13 194 107 75 66 129 82 108 2 94 171 106 98 155 144 44 24 178 101 31 140 103 125 128 159 189 70 49 112 188 163 0 141 114 105 44 111 175 84 106 58 197 194 159 123 15 96 22 58 73 76 196 106 105 195 187 143 141\n100\n139 188 39 77 172 152 196 82 171 185 129 184 47 68 139 199 15 122 42 112 107 31 48 54 171 90 9 58 125 127 68 164 155 105 89 7 155 196 123 141 49 34 184 26 186 11 22 69 58 11 0 4 185 103 162 8 122 40 1 137 12 147 119 91 148 160 5 25 90 130 81 88 195 38 11 184 47 55 171 102 100 161 117 165 139 101 23 15 9 53 2 31 185 89 7 144 135 64 12 27\n100\n184 155 95 85 49 38 155 15 141 56 9 19 27 62 48 179 143 131 151 51 96 98 179 138 106 191 101 13 181 51 69 86 77 142 141 155 35 58 199 161 180 295 184 138 113 56 193 173 71 31 52 53 199 23 100 36 0 166 192 146 164 103 81 152 9 133 122 82 89 42 104 69 140 136 65 5 12 72 26 155 25 10 156 188 46 68 14 13 196 126 65 85 181 29 56 188 116 38 198 115\n100\n99 22 133 68 29 143 116 28 61 190 24 141 47 147 119 81 182 89 105 3 149 190 191 168 145 117 145 167 70 138 186 125 2 182 95 28 55 196 120 141 13 146 78 27 103 124 86 186 165 197 68 16 18 144 4 163 79 15 172 43 7 17 126 17 180 57 69 136 58 100 22 74 35 28 114 158 99 27 192 121 140 89 136 43 93 146 21 28 94 18 2 143 96 27 17 85 3 72 176 85\n100\n111 66 54 154 142 43 100 150 66 9 134 198 100 182 116 85 93 53 124 21 48 111 75 43 103 23 116 123 85 3 112 117 84 69 7 166 104 184 181 65 172 30 160 87 115 145 193 21 42 65 49 158 148 166 70 96 93 103 167 83 60 114 44 15 114 124 161 125 0 67 172 49 17 18 13 158 179 69 86 75 124 46 187 117 82 71 140 101 35 25 73 147 6 188 117 43 138 184 157 39\n100\n94 60 131 53 65 37 190 171 27 97 60 184 91 99 91 140 90 106 13 98 23 190 162 125 21 195 146 178 154 1 123 13 98 146 87 78 12 118 82 84 114 156 19 58 127 130 1 26 92 166 24 144 155 102 19 88 184 21 156 35 68 199 10 13 108 135 115 162 154 102 34 115 10 63 74 92 184 81 148 40 24 101 181 102 93 96 20 101 55 179 178 14 7 73 99 66 68 185 124 164\n100\n187 29 118 111 2 122 42 187 142 97 188 172 38 13 133 148 31 150 196 59 9 29 117 124 106 121 189 25 138 9 69 81 39 107 29 113 154 85 50 193 49 194 2 8 134 127 72 107 96 142 172 50 8 19 21 83 127 173 105 44 158 175 44 91 134 152 183 24 186 63 131 101 153 155 126 196 128 51 61 10 80 153 27 91 91 52 9 126 69 134 63 130 121 67 49 17 65 11 125 108\n",
"100\n100\n41 67 134 100 169 124 78 158 162 64 105 145 81 27 161 91 195 142 27 36 191 4 102 153 92 182 21 116 118 95 47 126 171 138 69 112 67 99 35 94 103 11 122 133 73 64 141 111 53 68 147 44 62 157 37 59 123 141 129 178 116 35 190 42 88 106 40 142 64 48 46 5 90 129 170 150 6 101 193 148 29 23 84 154 156 40 166 176 131 108 144 39 26 123 137 138 118 82 129 141\n100\n33 115 39 58 104 130 177 106 73 186 21 145 124 72 70 29 177 173 97 112 186 90 161 36 155 167 55 174 31 52 150 150 141 124 166 30 107 191 7 137 57 87 153 183 145 109 9 158 21 188 22 146 106 30 13 168 100 191 162 55 10 159 24 137 148 83 195 41 2 150 91 36 174 20 196 21 148 199 68 84 81 134 53 199 18 138 100 188 127 67 128 93 48 83 7 21 110 17 13 114\n100\n109 16 135 51 0 49 119 156 198 103 24 8 44 9 189 102 195 85 93 143 123 187 114 103 48 0 58 18 180 196 198 81 189 198 9 157 72 22 138 92 38 179 190 57 158 191 15 88 156 111 2 34 72 55 128 46 162 86 75 33 69 142 44 16 81 198 122 51 21 99 157 76 92 189 75 112 0 110 3 69 61 88 1 189 55 23 2 185 182 85 88 26 17 157 32 132 169 154 121 189\n100\n176 129 168 92 25 155 34 149 41 112 145 60 118 153 139 23 79 196 87 129 149 37 66 149 193 195 97 16 86 105 88 82 55 134 114 101 116 71 186 63 113 155 185 53 112 8 32 145 113 156 121 158 46 182 81 144 196 22 129 161 135 50 173 66 44 59 92 39 53 24 154 110 145 49 186 113 74 22 168 18 187 105 158 191 2 25 77 14 114 24 134 74 172 159 33 70 87 97 118 177\n100\n173 70 163 68 192 185 102 80 13 27 2 99 127 25 143 124 23 172 61 181 3 32 105 193 125 31 92 142 22 86 64 100 187 160 13 174 70 170 35 33 111 160 96 67 85 150 140 94 95 24 19 125 176 94 58 102 171 66 78 193 51 84 18 64 119 152 0 87 60 126 10 157 170 115 176 27 43 158 164 109 82 86 165 87 177 74 25 27 29 128 23 120 102 162 123 196 137 61 195 125\n100\n64 60 2 116 30 126 11 171 11 147 153 120 190 124 188 163 140 51 62 29 100 113 158 178 165 7 77 0 58 39 103 160 157 124 77 108 113 87 1 50 60 28 193 184 5 140 111 104 35 156 72 150 23 85 156 16 26 157 126 157 137 71 69 161 96 22 17 112 117 96 185 41 23 129 29 165 159 132 96 55 53 162 184 134 54 172 57 169 132 163 7 83 111 35 67 48 75 138 23 142\n100\n154 111 141 175 59 25 21 70 26 134 5 183 50 198 79 101 193 134 37 134 156 193 176 105 162 148 81 100 13 41 55 55 142 62 11 77 24 78 152 43 96 73 40 113 75 72 18 10 17 132 112 95 169 31 40 88 85 90 97 189 190 145 153 114 51 140 44 58 135 159 192 5 64 181 103 29 175 8 92 197 149 156 161 27 67 141 129 40 13 174 1 77 15 83 13 192 24 1 192 159\n100\n70 28 27 84 75 186 98 170 87 47 4 103 21 63 106 163 10 171 89 40 164 142 19 113 191 104 18 32 150 5 175 139 103 22 98 47 184 48 171 64 113 75 145 112 146 78 169 62 119 185 89 144 65 140 45 108 118 70 1 123 132 72 152 87 170 163 101 103 23 127 0 169 15 165 28 143 147 88 143 37 9 63 49 81 188 142 8 60 21 158 154 88 146 90 149 43 30 20 148 67\n100\n136 183 35 26 185 38 53 29 24 148 123 159 57 166 144 155 118 126 11 25 155 1 149 96 184 115 164 142 75 113 142 196 148 72 26 6 173 29 4 105 26 12 175 93 165 36 136 141 14 194 56 52 136 38 82 155 15 131 30 41 25 11 37 186 90 50 62 34 93 153 16 52 8 62 33 54 103 34 103 56 148 124 117 13 109 28 0 80 118 58 50 155 161 64 103 76 43 109 102 161\n100\n89 148 82 53 74 20 2 123 31 169 78 59 8 19 171 3 145 181 104 192 85 113 98 189 122 138 37 10 61 34 108 161 159 93 115 69 137 69 58 100 171 64 117 15 155 15 130 39 12 88 82 154 85 110 84 174 180 15 151 141 115 79 110 98 73 188 177 132 156 89 113 8 141 190 123 163 28 184 178 0 71 85 174 71 133 67 153 95 168 25 76 29 50 198 109 93 86 80 116 49\n100\n67 128 79 64 21 5 26 16 116 126 66 87 81 164 140 86 21 62 121 64 109 15 102 73 124 141 145 162 23 131 6 68 118 2 107 107 81 12 136 30 114 9 84 156 90 93 196 152 54 145 108 48 91 112 131 114 39 158 122 104 195 52 69 79 38 23 118 66 59 98 86 196 62 33 158 22 146 192 37 125 47 58 2 7 98 30 92 0 78 199 152 48 82 140 115 175 162 167 136 197\n100\n18 97 28 51 16 30 49 125 58 29 120 140 160 147 162 55 75 192 161 154 198 146 114 146 188 169 38 63 75 115 121 75 15 128 34 170 105 64 157 162 161 124 149 69 130 123 150 133 125 110 137 136 137 78 193 36 114 164 191 149 135 105 137 4 137 23 64 170 8 168 81 85 152 173 52 194 76 26 196 172 49 40 174 19 143 11 141 89 19 165 5 185 16 50 15 9 64 166 93 74\n100\n109 100 95 173 189 161 172 168 158 31 68 26 110 22 174 179 110 152 182 191 95 164 74 164 102 55 60 74 172 21 122 147 177 189 5 195 194 150 143 154 81 12 72 39 28 112 162 167 8 15 108 23 159 34 4 86 119 158 145 6 166 100 167 92 187 132 156 174 47 21 83 22 131 176 183 148 123 182 18 176 20 111 182 56 90 125 124 86 77 169 43 134 77 68 68 191 196 183 28 127\n100\n26 71 97 12 103 27 8 145 108 185 38 37 43 113 101 50 128 111 50 149 192 54 69 81 65 67 113 193 34 72 172 30 101 42 177 77 170 102 164 181 190 23 37 23 179 195 169 127 42 110 182 58 126 87 70 128 51 58 13 60 183 86 142 10 72 128 34 41 118 103 67 65 138 81 57 150 14 198 58 61 63 156 7 78 89 35 165 75 186 186 25 160 130 48 128 92 33 40 166 135\n100\n10 199 37 92 182 128 152 169 44 194 8 52 47 32 135 8 64 97 43 49 15 41 189 100 12 48 123 51 74 33 91 0 54 190 97 119 180 178 131 144 140 87 99 125 83 138 92 193 52 11 160 34 40 97 185 129 140 5 191 192 10 149 178 179 171 77 73 193 20 97 26 76 190 182 178 159 18 89 159 49 124 72 180 8 167 8 77 103 170 7 196 74 122 11 19 161 56 90 163 83\n100\n116 132 52 141 154 13 62 196 60 15 104 199 136 80 198 32 187 184 40 117 6 70 41 82 49 123 158 105 21 95 96 116 78 178 179 58 177 150 7 129 81 195 78 76 153 99 184 165 93 8 172 43 129 114 168 55 191 173 122 148 51 186 144 46 177 117 29 116 74 191 69 112 146 93 91 15 149 57 40 52 36 151 87 26 162 155 183 194 180 97 65 65 113 61 178 78 78 140 11 147\n100\n45 170 175 89 91 149 133 65 14 82 7 32 96 167 122 82 10 41 31 187 105 79 121 138 151 47 8 46 76 159 189 22 66 86 55 28 14 60 53 177 148 103 61 31 82 55 197 106 152 21 96 81 21 55 147 124 118 135 176 174 59 198 74 53 122 35 43 88 153 32 147 80 126 78 50 1 161 199 55 163 116 173 161 45 73 74 150 153 181 87 99 110 43 65 172 129 181 112 76 181\n100\n47 90 71 5 172 32 189 120 165 31 58 93 6 178 148 6 171 166 196 97 20 94 129 188 109 184 169 178 17 15 26 84 168 106 128 97 118 190 199 185 86 199 20 110 71 13 15 85 118 180 131 67 187 44 186 107 160 27 74 31 152 71 68 93 85 137 111 4 77 6 168 22 13 0 142 137 38 188 155 89 47 181 93 184 187 161 93 17 101 82 47 65 153 104 84 95 125 21 164 181\n100\n72 106 56 143 193 80 80 68 11 113 168 51 16 79 168 40 131 133 179 63 59 53 136 95 165 74 120 35 80 176 55 125 71 8 159 156 2 32 105 40 175 162 85 162 80 36 197 2 108 80 140 76 58 93 140 146 74 173 97 80 135 72 0 107 155 66 141 188 81 168 115 196 25 9 12 136 55 162 43 142 21 122 112 48 18 168 117 114 50 90 135 159 169 95 103 40 179 199 105 191\n100\n61 81 52 153 33 29 187 42 53 83 20 14 118 44 63 29 52 64 169 70 5 47 194 87 126 76 123 140 79 190 188 110 71 145 21 70 183 189 155 178 179 6 62 135 87 196 33 88 135 179 193 190 162 165 1 105 7 167 69 134 71 57 198 145 197 18 38 44 172 163 28 64 1 123 90 4 1 27 197 92 171 163 101 163 121 165 21 45 10 95 141 22 12 151 15 55 193 138 79 82\n100\n8 54 22 107 45 138 144 90 139 154 4 23 25 78 124 181 130 133 23 194 130 46 187 45 5 16 150 89 138 163 135 97 9 30 24 108 137 74 120 172 93 55 134 161 56 6 184 75 182 119 141 32 84 179 79 83 67 36 125 118 137 28 119 177 137 91 156 195 60 101 193 32 136 180 75 107 184 74 119 190 76 41 151 129 90 174 72 191 189 187 90 39 93 53 63 81 103 5 176 79\n100\n95 139 68 198 83 39 115 21 193 26 122 38 28 181 199 178 91 23 143 34 43 149 102 107 102 141 87 146 91 37 13 0 16 90 162 135 126 10 77 182 60 189 105 74 63 122 195 166 160 38 188 11 45 67 25 67 189 142 63 147 102 17 99 23 26 3 48 51 170 36 58 167 56 5 131 162 19 175 156 131 95 44 191 3 188 115 50 119 72 191 183 133 175 42 169 100 154 78 185 57\n100\n133 93 90 103 150 33 122 71 11 190 138 41 58 47 152 58 79 102 83 190 2 168 22 95 135 8 161 142 194 99 188 178 42 157 141 47 69 145 180 113 164 110 61 185 73 104 62 103 102 69 154 129 152 74 149 130 44 44 49 118 65 163 152 173 70 131 147 111 69 198 98 103 152 79 53 43 122 88 163 34 50 22 40 111 92 51 180 77 16 76 178 20 15 148 198 179 35 57 83 62\n100\n102 62 20 170 22 73 41 86 88 117 117 92 98 67 149 65 189 132 19 81 3 130 28 31 189 152 30 172 64 7 95 28 81 90 10 177 71 36 59 43 40 33 37 93 30 74 193 182 3 61 90 62 107 197 151 23 90 117 40 103 166 83 61 59 45 186 51 165 1 40 9 97 83 50 58 21 175 181 187 71 87 199 104 179 138 100 130 61 118 5 140 28 59 22 198 160 98 135 81 14\n100\n167 93 196 161 146 138 70 138 76 155 117 171 160 152 158 33 55 65 126 1 34 159 193 148 73 192 193 133 137 103 90 11 94 68 27 98 189 48 79 47 149 131 69 75 198 49 36 199 123 43 131 154 61 34 185 167 16 193 104 66 153 108 23 84 192 67 48 69 130 11 14 90 27 143 4 199 74 195 106 158 189 58 9 89 47 40 18 164 175 26 89 103 66 12 40 170 76 195 41 186\n100\n51 109 187 83 85 190 50 86 155 181 128 102 77 62 24 165 72 32 85 28 46 89 78 83 125 65 60 45 178 21 55 120 127 173 134 51 75 136 134 1 137 110 174 190 156 71 80 135 145 82 25 118 173 112 37 198 105 162 117 92 139 47 146 103 31 115 39 58 29 45 194 199 45 72 75 62 72 173 80 38 97 142 8 3 77 125 134 1 78 182 169 136 78 139 138 121 26 63 77 175\n100\n124 181 100 161 62 2 48 95 84 16 137 107 193 84 144 59 21 58 43 68 77 119 57 41 91 64 23 115 72 129 41 115 15 136 157 159 100 52 93 41 29 48 27 198 24 124 74 133 85 38 170 62 29 84 109 78 123 85 0 24 193 105 12 165 167 7 77 184 104 190 34 91 21 85 134 190 142 198 86 18 21 24 197 176 54 69 108 127 93 68 166 102 38 0 19 118 90 184 139 156\n100\n8 32 78 14 187 39 74 20 27 154 188 41 198 42 2 121 104 146 56 109 33 108 161 133 86 4 185 142 42 60 161 20 143 178 187 113 63 191 134 15 56 161 12 11 159 51 138 170 124 107 7 184 151 101 89 158 41 190 13 12 55 60 93 72 2 76 143 173 66 51 75 128 132 161 69 103 129 107 92 51 153 192 170 119 72 7 94 105 40 183 62 9 7 38 160 71 171 54 147 114\n100\n123 29 89 166 87 156 32 70 139 66 122 83 160 153 105 91 59 186 87 29 42 117 45 156 188 52 154 66 33 160 119 31 138 67 176 98 114 120 53 7 69 16 122 42 7 63 60 147 193 30 117 43 176 114 26 117 134 20 171 192 164 154 66 93 64 175 0 12 100 151 76 179 143 77 189 161 185 72 34 144 161 163 104 146 88 108 157 30 123 64 74 146 37 181 118 11 92 191 32 123\n100\n61 191 61 130 98 169 91 0 179 117 117 114 195 41 136 67 28 53 109 173 181 103 169 16 83 167 185 2 30 157 81 167 110 66 87 171 77 45 164 38 71 47 115 192 111 57 5 53 171 180 140 130 75 120 190 177 198 186 4 89 31 144 188 10 118 119 59 127 9 119 79 116 100 196 53 58 30 193 6 49 54 72 160 94 54 133 146 29 71 28 159 41 21 88 166 33 85 70 129 61\n100\n60 8 182 162 106 78 179 97 87 138 69 183 140 195 66 33 109 157 117 134 53 135 58 193 43 93 66 151 140 94 137 174 112 97 151 95 17 92 92 37 130 13 96 110 189 28 9 186 144 40 182 169 120 193 92 162 14 127 7 194 105 113 11 113 93 64 3 195 162 181 146 109 48 168 24 111 154 35 127 33 40 62 127 177 17 140 142 100 0 158 76 154 135 30 31 95 137 23 122 127\n100\n29 11 11 154 80 53 93 121 185 128 43 0 155 71 70 52 175 31 40 134 40 186 34 48 139 165 196 112 62 52 131 187 64 157 48 156 170 50 182 101 93 99 132 44 131 75 4 50 26 66 138 1 23 43 41 180 95 118 59 163 28 129 88 54 13 179 169 66 79 177 37 2 115 92 123 72 48 123 153 148 195 197 108 108 11 193 65 181 2 10 28 56 105 165 23 169 115 53 5 84\n100\n78 145 40 33 85 100 168 194 33 85 148 81 32 56 110 72 182 101 106 35 60 71 127 137 143 168 33 195 171 3 142 11 79 34 112 193 130 161 34 58 126 106 191 43 188 27 119 84 24 93 35 24 94 182 67 27 5 146 86 189 140 37 50 159 178 156 77 3 42 100 11 25 143 195 16 15 4 6 168 41 135 98 125 113 23 112 18 57 196 139 86 94 46 43 122 111 80 55 158 47\n100\n70 190 73 127 13 54 96 72 50 41 41 46 125 13 24 129 95 3 194 193 67 187 40 79 41 125 134 60 0 107 21 92 93 117 117 3 143 93 39 11 125 28 178 148 50 92 44 54 23 153 36 147 146 26 61 104 38 171 86 5 99 56 128 67 151 19 191 166 117 46 93 187 21 112 67 99 44 97 1 128 142 104 168 168 41 96 62 120 44 118 25 19 184 174 184 59 149 14 95 103\n100\n32 51 137 14 163 51 19 90 117 83 118 184 52 186 69 48 137 197 24 168 27 148 193 182 71 69 93 77 14 104 84 143 95 11 93 92 198 190 99 90 93 74 149 174 114 173 69 18 65 33 38 111 52 63 108 149 88 45 31 120 106 71 168 21 58 157 47 182 38 122 123 106 106 189 156 145 151 123 118 150 97 36 191 6 110 13 51 80 44 143 141 45 178 149 105 114 185 27 24 4\n100\n156 117 27 155 102 86 68 98 179 11 89 158 90 175 10 132 89 96 150 112 122 129 72 36 77 153 176 70 85 52 151 197 151 1 35 93 72 116 116 128 111 125 38 96 139 144 56 26 102 158 188 21 186 108 177 28 179 147 149 80 45 128 62 26 119 77 91 47 185 31 6 84 154 169 109 156 21 145 65 16 60 97 135 190 77 49 5 86 188 75 143 177 130 87 155 82 53 0 154 89\n100\n88 15 8 110 140 199 197 107 54 104 37 85 99 192 13 12 82 183 151 129 137 33 0 64 83 57 168 110 168 108 41 132 37 84 99 101 69 183 56 92 40 87 12 10 20 35 63 15 97 77 174 134 153 133 78 86 24 134 75 149 112 184 24 192 104 22 55 113 62 73 84 160 122 53 197 22 150 137 117 6 131 197 105 36 157 199 90 98 185 47 84 192 125 196 55 28 138 142 28 195\n100\n142 37 106 167 53 193 105 146 9 124 54 65 39 6 9 92 99 175 36 61 47 18 13 127 112 96 109 41 130 90 34 115 86 123 66 144 136 37 16 93 149 171 44 177 85 0 190 85 125 118 68 6 129 8 141 25 136 180 116 70 184 147 128 136 4 100 123 164 11 40 50 104 83 166 141 70 45 106 88 56 107 66 57 78 199 74 155 191 190 32 58 196 117 90 167 107 34 46 62 2\n100\n39 26 95 106 114 150 186 79 176 22 79 101 12 76 164 157 170 38 112 144 161 180 0 43 56 61 47 139 8 90 52 179 18 19 7 84 147 177 75 13 109 171 42 139 136 21 101 34 129 158 36 69 97 104 198 2 105 38 32 65 116 81 179 23 127 171 113 182 140 16 88 119 189 113 59 51 71 83 164 38 12 184 159 101 174 133 59 114 49 195 122 141 16 177 52 165 91 138 110 167\n100\n55 187 24 22 39 41 48 4 34 168 41 72 68 174 176 137 33 41 145 18 15 174 52 46 156 124 166 181 144 40 134 96 76 27 5 18 91 41 65 191 71 59 100 17 16 143 24 64 105 157 102 66 75 46 32 189 46 145 3 152 101 126 153 184 49 150 5 146 25 170 136 195 193 123 132 56 96 10 176 92 150 90 195 52 150 115 36 161 160 184 129 134 50 82 6 136 184 190 17 182\n100\n66 116 188 25 101 10 50 182 21 193 38 154 193 95 80 38 167 20 145 83 65 96 33 190 32 189 39 183 17 129 153 79 13 0 52 145 61 151 118 163 13 107 154 76 17 11 29 64 166 131 142 98 122 155 187 57 158 64 162 110 146 65 180 165 146 140 97 42 64 194 184 70 115 0 6 106 102 96 33 11 67 15 45 175 154 48 119 79 188 121 192 197 197 109 52 71 58 122 59 197\n100\n199 99 120 120 36 184 112 115 153 85 141 199 167 8 44 169 81 79 108 7 59 106 49 75 26 124 7 174 84 128 146 145 81 114 149 168 138 107 193 104 105 97 17 155 41 143 133 97 79 136 155 33 154 130 52 104 79 88 70 154 72 176 101 15 86 31 80 175 60 114 138 57 190 38 181 47 42 18 70 31 61 19 181 190 33 72 163 102 102 128 121 98 47 145 6 22 86 194 177 44\n100\n83 147 40 85 64 123 137 53 168 130 55 66 58 112 56 118 1 142 76 106 102 84 23 70 112 50 75 111 50 195 88 120 101 183 198 92 48 184 45 187 62 143 58 59 71 16 172 32 41 83 88 15 176 116 98 39 83 5 197 146 169 75 117 187 20 30 42 135 189 173 80 73 177 186 181 185 122 145 179 85 113 135 135 83 186 96 48 85 152 121 60 182 36 88 119 36 192 65 78 198\n100\n96 186 11 176 147 121 2 45 102 164 139 172 57 170 120 54 159 80 98 191 160 110 191 67 33 75 136 99 175 190 176 56 72 103 86 167 115 142 95 166 56 186 37 198 26 164 85 65 108 140 160 14 154 12 152 138 106 125 30 49 179 79 113 38 117 21 145 191 169 39 108 165 162 73 81 170 147 53 108 108 115 29 66 89 63 171 141 59 31 172 114 166 188 170 168 199 55 50 44 136\n100\n78 6 27 113 123 171 127 73 61 173 134 102 187 17 63 153 126 195 95 13 6 170 59 105 96 33 23 52 79 119 126 193 185 65 171 44 107 71 87 99 119 196 115 152 92 153 57 190 159 157 86 9 65 86 19 59 113 35 28 101 68 69 56 131 178 74 195 43 74 116 24 111 185 122 171 57 95 174 38 183 58 95 122 183 31 103 32 100 190 80 8 105 102 58 18 157 161 120 28 56\n100\n113 132 92 182 67 120 158 74 187 94 183 164 64 114 146 190 25 55 163 67 192 31 19 80 118 128 148 120 79 91 166 187 8 126 25 159 118 20 35 114 56 147 156 134 160 151 8 78 94 189 124 176 94 90 189 172 19 101 102 44 123 139 9 27 37 186 16 27 169 23 99 114 15 44 36 69 178 76 58 152 46 137 115 188 16 88 182 74 133 115 56 56 62 16 124 129 42 184 72 49\n100\n196 26 182 2 175 16 65 152 159 155 17 44 154 43 24 199 22 121 133 13 117 193 73 60 175 74 185 101 22 8 195 26 120 91 188 129 72 177 193 8 54 122 76 137 16 3 90 112 89 53 179 99 122 102 2 169 54 129 134 38 74 26 63 134 172 148 53 103 107 118 133 37 95 179 61 144 59 161 107 176 72 45 192 172 28 196 11 135 35 29 116 132 156 158 149 20 96 124 120 126\n100\n6 183 45 174 91 188 138 64 104 77 153 142 4 23 52 25 11 42 124 149 135 190 146 128 55 4 141 109 181 179 102 83 92 132 112 99 161 47 5 90 169 159 28 139 28 180 71 178 40 56 148 44 145 125 10 98 16 180 15 64 26 72 79 193 82 5 136 133 105 187 132 38 165 64 118 199 32 108 96 38 178 38 45 59 169 144 162 169 49 118 67 158 143 61 3 190 186 26 3 4\n100\n100 168 23 147 196 166 30 65 152 0 17 173 186 68 197 179 24 128 60 158 25 67 112 134 52 169 162 170 11 35 90 111 64 150 160 145 167 154 187 17 165 142 88 73 15 179 37 188 69 86 30 9 40 121 119 81 26 20 11 54 93 184 157 199 136 29 150 57 5 165 134 49 94 192 70 119 17 113 53 117 177 160 105 153 191 162 176 54 72 134 16 50 193 145 52 147 121 61 144 59\n100\n166 85 39 118 107 68 154 50 32 199 20 135 98 192 116 182 29 116 59 158 183 199 135 157 70 71 142 180 77 6 95 86 3 52 118 35 85 28 78 160 101 149 164 185 26 157 137 41 138 193 96 33 93 168 73 135 109 96 181 161 139 184 123 99 131 49 42 6 50 87 40 169 23 188 67 83 0 158 6 138 63 120 166 158 85 23 29 98 156 70 175 196 83 188 19 146 190 75 69 119\n100\n141 197 145 54 158 58 194 191 141 37 100 32 75 136 38 158 180 85 13 84 53 127 85 26 70 136 81 170 149 148 77 199 35 173 137 151 131 17 33 171 176 129 131 44 142 67 0 128 116 34 199 157 40 181 23 141 131 149 139 99 175 99 163 45 126 1 24 83 189 135 24 95 145 170 83 117 192 152 124 173 140 55 68 70 43 30 156 165 114 180 58 158 124 8 111 67 117 128 190 99\n100\n180 70 190 12 0 64 75 84 82 111 106 68 44 26 36 166 192 188 38 65 12 147 46 59 52 171 56 110 57 66 50 70 145 125 148 74 174 43 29 136 163 16 58 134 101 61 55 15 174 182 139 82 24 100 175 137 176 100 24 64 137 95 125 29 51 188 194 144 106 75 71 90 84 19 179 195 158 7 45 174 38 156 20 32 166 22 157 153 71 155 189 25 29 128 39 127 194 90 48 54\n100\n117 192 130 18 148 56 190 82 143 39 101 93 127 69 193 33 31 192 135 26 42 80 16 161 117 107 120 45 166 121 182 182 6 91 70 15 195 143 163 171 192 135 17 12 81 67 121 152 122 28 30 29 24 99 153 151 194 41 64 183 120 144 188 77 13 2 58 2 153 49 58 175 90 38 23 195 101 5 158 123 87 41 26 130 9 20 135 43 131 74 102 100 71 175 9 30 194 22 136 90\n100\n15 52 154 182 133 188 55 160 145 123 142 59 87 143 147 184 189 68 188 198 80 79 107 13 60 47 46 71 182 144 142 48 36 153 149 88 23 25 51 190 39 46 162 175 24 78 185 103 181 177 150 48 170 94 16 129 126 38 115 72 152 62 21 67 128 65 129 59 82 189 186 19 135 140 66 32 85 22 3 161 96 141 150 32 72 161 170 113 165 45 120 10 128 170 21 196 4 114 199 10\n100\n69 152 35 71 144 30 182 61 195 151 66 83 110 158 172 95 106 14 52 84 105 12 21 141 175 90 125 11 167 182 183 187 193 50 79 68 74 84 29 135 60 105 111 192 24 150 16 60 1 159 109 123 67 100 25 56 140 48 55 7 49 91 160 182 36 19 70 79 125 119 9 101 31 124 7 125 101 83 169 88 164 163 124 134 170 51 197 124 111 67 65 40 179 155 28 61 32 27 160 139\n100\n66 37 48 48 4 48 165 21 133 175 41 114 147 162 154 76 54 58 121 184 88 66 116 56 180 29 137 29 189 43 4 101 184 120 187 136 52 182 128 166 72 193 158 179 183 187 23 197 96 194 101 53 120 103 72 20 132 153 24 33 57 65 132 80 167 166 90 68 126 28 79 144 103 49 33 3 110 40 27 10 127 82 193 187 63 161 165 199 51 118 81 158 103 158 38 178 64 57 172 21\n100\n122 156 67 60 98 143 34 41 19 152 62 11 11 193 5 81 51 160 98 71 42 94 84 135 100 155 155 123 50 88 139 10 17 132 148 10 95 19 48 189 171 51 95 23 37 49 0 7 134 84 177 12 41 104 96 162 137 151 51 132 165 138 45 28 194 126 178 145 128 5 149 57 112 1 199 127 92 153 195 142 167 149 176 55 142 148 103 15 47 73 165 149 137 169 131 170 53 168 52 178\n100\n156 181 95 186 129 131 78 59 152 89 158 38 54 172 8 56 171 147 103 111 174 19 107 5 199 188 61 45 35 92 132 76 67 3 167 99 54 167 12 114 129 193 177 54 12 31 89 126 47 99 89 74 36 12 187 157 103 91 82 29 27 161 152 96 46 183 197 154 32 102 145 76 24 81 195 23 32 143 2 169 82 189 37 199 35 179 54 52 199 150 132 145 93 71 49 190 4 177 105 119\n100\n150 128 28 122 68 185 174 184 51 84 37 115 189 81 74 159 50 146 60 27 33 21 161 18 146 150 63 61 46 58 194 171 145 102 46 20 54 153 160 186 19 135 16 113 135 192 18 65 170 136 125 146 44 112 82 15 105 126 1 173 106 80 193 190 191 14 23 57 100 49 122 85 162 102 68 174 152 48 35 38 162 37 72 192 0 143 119 81 170 191 145 184 114 85 79 199 82 186 119 50\n100\n193 185 116 8 88 99 25 96 169 131 14 102 170 137 198 77 198 51 88 63 53 105 141 67 62 55 81 95 18 72 94 70 138 121 45 123 43 165 118 135 137 199 99 192 154 124 31 66 29 122 156 18 75 92 110 161 132 128 122 149 77 26 148 78 177 138 175 144 125 139 21 140 40 166 81 148 147 151 107 151 110 157 77 9 3 176 140 23 174 54 169 106 85 199 48 130 173 58 16 84\n100\n173 31 4 183 191 22 10 187 164 168 194 179 23 109 57 141 85 77 23 72 28 35 149 117 9 143 67 65 190 91 169 138 4 176 12 191 93 9 20 197 62 128 100 159 42 40 89 94 42 20 86 146 164 86 71 143 66 74 45 188 149 27 154 104 81 46 157 85 114 150 32 73 143 112 32 83 39 168 189 83 9 187 195 45 112 39 135 48 79 7 30 154 1 140 43 118 12 177 23 72\n100\n183 85 86 120 57 102 39 6 76 124 52 37 35 99 116 90 167 6 21 175 120 192 165 147 58 84 131 29 182 105 162 89 123 70 142 82 196 180 169 72 115 51 136 155 174 77 154 129 82 51 169 37 101 76 4 73 161 197 195 125 85 62 29 160 118 73 79 109 62 24 174 82 75 15 143 46 132 168 84 161 72 86 66 89 151 4 33 194 76 198 4 133 68 184 17 164 16 14 66 196\n100\n73 148 110 196 141 191 66 189 20 155 148 51 81 71 25 28 173 54 109 30 38 191 139 53 48 167 54 77 90 197 56 173 189 62 136 29 88 139 185 41 167 120 160 47 181 182 6 189 184 3 160 62 132 192 43 63 123 11 140 92 43 70 119 49 112 176 45 86 156 3 164 98 108 78 138 123 5 11 193 117 143 27 114 90 16 1 139 144 36 12 74 33 140 1 183 135 28 33 37 134\n100\n177 71 122 63 59 140 168 82 48 166 90 27 58 71 106 105 1 34 170 155 107 99 130 75 3 39 194 88 64 73 48 158 80 87 164 113 13 52 170 178 166 104 16 49 177 37 137 59 32 155 105 126 137 166 114 155 90 46 182 35 93 136 46 38 56 3 114 199 41 125 74 124 144 63 149 76 197 134 47 26 43 44 192 161 69 175 139 96 81 71 68 113 66 30 6 109 90 59 84 146\n100\n159 103 6 191 93 196 183 150 157 35 12 67 69 165 103 173 191 116 149 115 118 43 188 97 111 91 74 163 125 7 170 121 127 58 136 75 21 176 199 119 41 11 112 9 35 63 30 114 136 183 32 188 139 105 70 140 68 191 128 185 137 120 124 197 154 103 94 162 65 154 100 102 114 29 194 26 63 128 148 79 151 199 3 42 80 16 90 98 58 130 153 151 62 44 49 85 55 172 89 58\n100\n152 129 40 60 46 27 44 22 136 73 154 133 156 51 191 134 131 122 79 2 176 180 69 188 29 85 2 10 127 74 160 99 42 55 193 65 128 172 84 126 198 123 1 187 88 197 52 175 150 78 55 93 30 6 131 89 165 121 127 164 40 113 189 110 88 163 120 188 21 64 3 154 122 116 54 186 25 124 18 102 120 59 88 82 141 174 100 166 22 154 152 50 116 26 86 2 137 101 101 149\n100\n167 102 65 81 43 110 108 89 58 184 121 106 186 187 171 90 172 118 73 153 81 62 196 13 51 115 4 185 133 164 104 37 53 184 133 172 121 144 170 57 88 129 97 140 123 101 143 76 131 100 48 13 53 111 93 132 51 14 199 16 12 34 49 52 112 141 9 50 180 169 135 162 165 111 17 11 163 121 6 145 43 50 193 64 42 44 33 136 102 25 159 153 7 6 143 129 151 70 195 28\n100\n141 59 20 115 144 178 58 184 138 183 38 137 35 30 182 115 80 21 25 152 4 46 12 4 45 25 44 149 194 129 132 9 116 29 161 133 130 146 132 83 73 39 80 35 187 170 189 29 160 121 197 189 163 44 21 105 15 113 134 199 137 15 164 58 111 183 46 143 137 31 55 51 151 90 52 95 20 61 160 167 73 34 133 191 101 178 187 79 100 15 109 72 61 152 170 23 64 137 50 10\n100\n191 178 43 161 21 118 98 183 133 95 109 72 68 103 64 45 49 50 46 142 44 155 59 168 85 101 168 47 6 187 135 109 164 33 151 140 25 124 146 0 38 31 21 17 24 184 15 144 152 19 70 167 119 174 87 30 145 116 44 99 162 85 115 121 102 141 4 173 133 52 11 29 24 159 183 65 45 150 26 191 97 13 171 186 62 190 184 106 18 22 119 66 18 191 159 166 103 79 98 67\n100\n145 103 30 20 25 134 21 33 35 87 193 27 148 24 92 118 0 44 31 86 95 108 153 197 192 121 19 107 71 22 161 191 52 51 123 165 156 180 61 65 123 100 28 35 153 12 82 76 157 89 92 199 176 61 42 131 60 100 38 80 20 145 129 168 141 162 34 33 70 82 0 160 164 141 99 136 65 33 29 27 54 28 119 184 110 168 17 197 125 6 10 63 48 90 169 144 199 43 155 64\n100\n137 158 6 111 14 147 93 129 187 80 85 164 34 76 15 118 184 47 48 147 155 32 181 37 27 96 59 124 199 53 101 41 4 129 15 165 50 132 83 119 96 39 178 38 41 3 6 20 70 49 5 124 78 187 184 29 139 98 173 38 15 2 41 85 63 11 66 27 183 130 165 82 182 31 35 90 12 56 2 48 113 126 97 64 15 93 107 37 18 138 24 70 183 145 128 59 83 21 137 160\n100\n149 123 83 105 47 113 186 184 9 34 100 170 39 157 68 56 85 192 22 133 135 183 27 99 61 90 135 100 79 173 106 85 45 9 36 181 139 99 101 7 195 19 84 27 155 160 133 52 0 3 88 198 75 169 104 190 43 157 57 119 75 149 190 146 198 67 146 109 80 79 181 7 119 138 25 99 170 14 110 155 32 165 18 120 37 64 109 103 144 50 141 101 144 27 141 110 96 24 83 98\n100\n40 131 170 154 135 103 45 9 14 32 117 30 118 32 13 90 61 132 35 117 45 121 18 5 133 121 46 170 188 194 8 27 35 177 75 5 50 42 54 118 190 124 179 165 154 171 22 44 67 109 10 72 152 74 177 97 170 141 67 141 17 168 65 121 55 127 114 83 137 132 149 162 82 35 192 135 130 134 120 128 88 124 34 33 3 125 122 182 160 65 130 64 23 122 86 108 38 31 165 26\n100\n162 163 178 19 51 141 115 76 168 121 98 187 131 39 139 152 30 74 181 142 118 100 100 34 6 80 190 123 199 168 85 34 55 144 44 108 0 19 118 149 147 180 99 48 84 119 132 140 88 170 97 33 140 22 145 140 127 50 82 47 99 50 130 196 104 131 5 51 82 139 167 170 76 143 156 173 116 157 86 166 33 43 72 14 98 71 137 61 9 120 186 127 41 53 123 128 91 197 99 81\n100\n23 110 71 178 193 90 53 34 66 47 113 22 145 174 88 22 177 119 83 166 5 194 46 124 41 89 98 197 66 60 191 173 65 5 6 38 196 118 62 144 126 15 93 123 169 124 18 169 72 70 161 15 25 129 94 37 195 30 149 100 101 194 161 103 192 159 148 6 13 169 39 55 161 51 10 77 176 139 22 102 24 196 49 23 112 123 114 171 8 20 181 156 98 149 145 97 66 43 48 192\n100\n131 4 95 94 50 149 151 181 198 45 75 45 184 33 100 199 167 97 9 141 31 99 98 174 187 159 62 145 129 59 124 167 166 168 127 94 49 196 142 123 196 17 11 168 48 181 33 174 88 84 68 68 25 4 44 121 160 111 122 151 100 142 30 25 30 51 120 198 127 80 5 182 25 14 12 4 192 9 138 5 66 66 171 80 164 141 26 86 135 133 51 124 76 92 159 151 196 127 7 87\n1\n27\n100\n120 5 127 37 110 183 3 137 83 141 35 21 77 78 80 34 111 29 53 130 8 130 48 32 141 70 16 63 18 15 184 109 174 141 85 8 160 148 85 178 101 171 105 1 196 172 109 131 187 70 125 184 2 127 146 88 152 197 189 95 198 151 18 173 57 119 73 115 68 83 10 59 125 196 39 183 118 159 118 61 167 3 166 138 26 193 82 76 160 138 157 180 154 78 61 68 121 73 98 157\n100\n58 19 145 101 189 16 156 39 125 125 132 178 21 116 162 87 8 138 130 5 90 199 169 7 53 13 56 185 183 148 193 199 162 6 66 135 19 71 64 199 8 47 14 114 12 107 22 127 92 120 199 98 71 186 192 152 17 124 188 93 89 88 14 96 68 146 158 137 145 168 197 25 47 21 37 43 107 70 149 146 39 52 12 20 31 76 91 125 45 99 16 174 56 77 72 136 8 96 109 132\n100\n158 188 144 4 130 127 49 119 68 174 101 161 55 166 127 113 162 180 18 128 89 113 141 23 196 131 40 31 135 32 182 182 50 44 52 57 1 68 33 173 94 19 126 83 133 182 112 36 25 52 12 24 45 96 2 173 158 105 77 158 111 81 50 170 180 53 127 159 116 197 118 118 177 181 65 152 113 171 176 186 74 42 41 109 97 62 48 42 148 192 136 20 17 29 24 181 38 106 161 150\n100\n147 58 39 105 181 68 14 1 116 94 167 45 167 39 163 0 174 44 199 125 80 17 24 49 86 74 57 185 15 58 75 30 182 11 37 70 162 191 28 61 12 96 76 100 158 171 191 48 122 98 150 158 128 145 142 38 60 73 77 93 95 4 13 32 125 104 95 21 48 168 84 20 91 38 32 119 137 166 32 62 134 31 37 94 102 11 114 42 69 34 147 130 103 41 6 11 97 137 102 15\n100\n63 117 117 199 151 43 138 182 54 87 12 112 122 37 174 91 8 118 51 77 23 52 11 30 189 1 15 87 128 29 121 187 63 127 88 77 114 46 75 82 31 39 19 169 47 162 6 160 152 105 161 120 180 41 150 139 138 124 151 5 140 189 25 82 104 53 180 30 11 6 58 187 51 127 30 22 147 7 96 114 5 149 6 10 115 135 188 185 134 113 23 76 163 177 126 122 107 129 66 27\n100\n25 100 48 175 130 157 13 96 16 92 105 51 7 130 103 147 52 55 84 135 194 146 190 36 47 105 7 78 158 81 146 99 22 192 13 8 52 41 191 176 124 57 108 146 158 32 63 27 31 41 79 37 100 37 109 150 54 140 197 27 179 46 139 38 81 98 192 21 97 93 13 6 129 93 151 16 194 38 188 75 171 21 180 83 166 99 156 9 66 68 159 195 184 128 94 132 66 58 66 63\n100\n113 31 86 160 166 49 122 60 83 173 166 106 146 74 108 146 70 20 66 69 178 127 38 84 159 167 178 30 121 191 90 93 44 9 107 40 123 22 47 150 25 62 182 169 140 1 55 105 126 87 63 179 166 78 145 9 86 106 120 43 6 42 161 183 138 17 195 109 199 97 195 142 52 167 140 103 55 155 52 56 45 62 197 50 189 65 105 127 47 27 103 76 65 75 46 181 3 15 63 160\n100\n116 181 177 133 28 184 103 44 76 174 108 135 2 135 41 186 193 120 14 144 57 112 104 96 91 106 26 16 183 133 111 176 105 65 6 98 18 19 191 24 67 50 134 95 175 75 94 187 65 162 39 108 60 82 186 95 122 135 148 159 119 138 66 173 150 60 141 93 148 6 118 68 12 65 19 127 171 114 42 150 149 128 61 177 136 25 6 65 183 153 5 26 153 165 145 127 180 31 180 183\n100\n147 123 81 63 144 49 26 40 62 91 29 98 198 178 127 25 60 69 180 23 147 2 165 82 23 55 187 7 9 130 91 111 144 144 75 89 5 156 124 17 56 48 160 80 50 88 166 67 178 173 43 48 132 176 163 198 135 16 57 180 166 61 91 133 129 85 50 91 93 88 88 186 57 159 27 110 26 90 41 64 66 74 92 148 12 92 16 158 27 159 42 39 163 48 196 50 96 196 78 108\n100\n86 37 103 123 1 41 45 30 94 0 193 54 194 4 142 124 169 181 43 27 1 102 23 38 161 34 101 5 100 132 56 36 10 117 193 77 192 110 190 8 175 89 69 191 139 35 106 39 173 69 173 44 27 195 136 195 102 116 7 22 164 148 8 172 8 190 157 47 31 86 96 106 67 14 190 67 5 111 183 53 39 26 142 129 40 127 140 86 43 47 153 70 10 5 109 171 71 42 132 42\n100\n20 25 81 118 188 151 52 57 65 175 30 151 102 150 188 147 72 90 19 117 193 160 156 92 93 199 32 49 73 143 133 44 56 86 25 164 0 132 22 145 53 109 95 147 108 119 34 136 123 44 182 90 175 146 39 48 165 162 168 119 69 182 113 87 140 166 33 90 121 36 77 195 106 63 49 20 56 133 166 155 57 21 61 101 60 116 163 138 178 197 134 188 99 70 199 115 166 65 32 74\n100\n78 137 0 48 193 158 157 71 58 82 17 65 106 20 112 4 2 197 136 43 116 178 106 24 115 73 160 78 136 119 8 188 182 121 16 23 112 186 170 166 42 68 58 76 62 146 181 153 104 38 197 122 195 111 115 187 21 37 4 178 40 64 166 94 131 165 156 184 65 106 65 0 184 189 2 11 157 7 7 27 86 143 35 112 31 77 49 6 1 35 146 159 176 11 108 90 164 197 125 107\n100\n83 15 177 94 180 155 168 134 183 11 116 3 148 0 41 60 73 123 189 32 23 187 178 139 103 137 90 63 177 1 3 113 30 114 99 198 103 198 117 190 68 174 92 48 106 184 48 126 167 35 7 177 71 5 30 120 45 58 159 198 42 8 77 66 33 105 78 90 111 40 17 2 69 143 48 26 160 57 63 46 90 68 126 186 10 49 139 13 162 158 20 37 15 75 172 76 190 29 155 10\n100\n77 184 75 35 176 40 48 129 190 33 167 37 123 45 3 194 86 134 52 75 141 125 1 55 104 178 191 33 60 125 26 125 90 189 107 135 47 119 83 14 28 113 48 26 40 127 109 66 165 165 87 73 176 150 53 153 29 109 143 0 171 11 178 163 188 168 2 160 168 173 66 160 18 185 1 85 19 146 13 96 189 94 4 119 19 27 88 61 95 52 43 90 147 165 124 84 125 153 192 110\n100\n197 97 5 112 56 56 130 31 34 101 171 38 56 65 36 69 124 186 172 2 52 71 180 125 180 108 199 137 67 128 12 31 84 93 58 140 87 88 77 159 159 130 30 76 140 38 191 60 76 60 94 128 37 53 185 139 127 128 196 104 168 196 175 13 183 191 148 46 133 159 127 173 1 7 95 152 35 60 52 171 195 120 73 88 67 175 163 12 74 49 130 28 195 183 33 127 45 0 185 190\n100\n172 38 171 193 96 173 61 108 116 100 139 27 97 72 178 89 172 93 58 199 78 166 10 42 195 167 177 54 54 192 2 26 194 45 174 148 83 44 81 175 70 47 118 98 167 194 172 67 138 191 189 68 60 112 100 12 34 77 175 17 90 47 190 140 105 84 43 14 164 100 98 82 75 170 123 98 51 64 77 23 60 164 117 67 170 119 55 97 127 65 100 88 169 13 198 44 159 50 56 5\n100\n10 28 113 20 82 32 66 187 31 64 101 180 185 102 73 53 194 27 188 154 2 66 168 147 171 137 33 112 62 120 101 155 85 86 117 141 163 48 132 67 153 146 13 194 107 75 66 129 82 108 2 94 171 106 98 155 144 44 24 178 101 31 140 103 125 128 159 189 70 49 112 188 163 0 141 114 105 44 111 175 84 106 58 197 194 159 123 15 96 22 58 73 76 196 106 105 195 187 143 141\n100\n139 188 39 77 172 152 196 82 171 185 129 184 47 68 139 199 15 122 42 112 107 31 48 54 171 90 9 58 125 127 68 164 155 105 89 7 155 196 123 141 49 34 184 26 186 11 22 69 58 11 0 4 185 103 162 8 122 40 1 137 12 147 119 91 148 160 5 25 90 130 81 88 195 38 11 184 47 55 171 102 100 161 117 165 139 101 23 15 9 53 2 31 185 89 7 144 135 64 12 27\n100\n184 155 95 85 49 38 155 15 141 56 9 19 27 62 48 179 143 131 151 51 96 98 179 138 106 191 101 13 181 51 69 86 77 142 141 155 35 58 199 161 180 295 184 138 113 56 193 173 71 31 52 53 199 23 100 36 0 166 192 146 164 103 81 152 9 133 122 82 89 42 104 69 140 136 65 5 12 72 26 155 25 10 156 188 46 68 14 13 196 126 65 85 181 29 56 188 116 38 198 115\n100\n99 22 133 68 29 143 116 28 61 190 24 141 47 147 119 81 182 89 105 3 149 190 191 168 145 117 145 167 70 138 186 125 2 182 95 28 55 196 120 141 13 146 78 27 103 124 86 186 165 197 68 16 18 144 4 163 79 15 172 43 7 17 126 17 180 57 69 136 58 100 22 74 35 28 114 158 99 27 192 121 140 89 136 43 93 146 21 28 94 18 2 143 96 27 17 85 3 72 176 85\n100\n111 66 54 154 142 43 100 150 66 9 134 198 100 182 116 85 93 53 124 21 48 111 75 43 103 23 116 123 85 3 112 117 84 69 7 166 104 184 181 65 172 30 160 87 115 145 193 21 42 65 49 158 148 166 70 96 93 103 167 83 60 114 44 15 114 124 161 125 0 67 172 49 17 18 13 158 179 69 86 75 124 46 187 117 82 71 140 101 35 25 73 147 6 188 117 43 138 184 157 39\n100\n94 60 131 53 65 37 190 171 27 97 60 184 91 99 91 140 90 106 13 98 23 190 162 125 21 195 146 178 154 1 123 13 98 146 87 78 12 118 82 84 114 156 19 58 127 130 1 26 92 166 24 144 155 102 19 88 184 21 156 35 68 199 10 13 108 135 115 162 154 102 34 115 10 63 74 92 184 81 148 40 24 101 181 102 93 96 20 101 55 179 178 14 7 73 99 66 68 185 124 164\n100\n187 29 118 111 2 122 42 187 142 97 188 172 38 13 133 148 31 150 196 59 9 29 117 124 106 121 189 25 138 9 69 81 39 107 29 113 154 85 50 193 49 194 2 8 134 127 72 107 96 142 172 50 8 19 21 83 127 173 105 44 158 175 44 91 134 152 183 24 186 63 131 101 153 155 126 196 128 51 61 10 80 153 52 91 91 52 9 126 69 134 63 130 121 67 49 17 65 11 125 108\n",
"100\n100\n41 67 134 100 169 124 78 158 162 64 105 145 81 27 161 91 195 142 27 36 191 4 102 153 92 182 21 116 118 95 47 126 171 138 69 112 67 99 35 94 103 11 122 133 73 64 141 111 53 68 147 44 62 157 37 59 123 141 129 178 116 35 190 42 88 106 40 142 64 48 46 5 90 129 170 150 6 101 193 148 29 23 84 154 156 40 166 176 131 108 144 39 26 123 137 138 118 82 129 141\n100\n33 115 39 58 104 130 177 106 73 186 21 145 124 72 70 29 177 173 97 112 186 90 161 36 155 167 55 174 31 52 150 150 141 124 166 30 107 191 7 137 57 87 153 183 145 109 9 158 21 188 22 146 106 30 13 168 100 191 162 55 10 159 24 137 148 83 195 41 2 150 91 36 174 20 196 21 148 199 68 84 81 134 53 199 18 138 100 188 127 67 128 93 48 83 7 21 110 17 13 114\n100\n109 16 135 51 0 49 119 156 198 103 24 8 44 9 189 102 195 85 93 143 123 187 114 103 48 0 58 18 180 196 198 81 189 198 9 157 72 22 138 92 38 179 190 57 158 191 15 88 156 111 2 34 72 55 128 46 162 86 75 33 69 142 44 16 81 198 122 51 21 99 157 76 92 189 75 112 0 110 3 69 61 88 1 189 55 23 2 185 182 85 88 26 17 157 32 132 169 154 121 189\n100\n176 129 168 92 25 155 34 149 41 112 145 60 118 153 139 23 79 196 87 129 149 37 66 149 193 195 97 16 86 105 88 82 55 134 114 101 116 71 186 63 113 155 185 53 112 8 32 145 113 156 121 158 46 182 81 144 196 22 129 161 135 50 173 66 44 59 92 39 53 24 154 110 145 49 186 113 74 22 168 18 187 105 158 191 2 25 77 14 114 24 134 74 172 159 33 70 87 97 118 177\n100\n173 70 163 68 192 185 102 80 13 27 2 99 127 25 143 124 23 172 61 181 3 32 105 193 125 31 92 142 22 86 64 100 187 160 13 174 70 170 35 33 111 160 96 67 85 150 140 94 95 24 19 125 176 94 58 102 171 66 78 193 51 84 18 64 119 152 0 87 60 126 10 157 170 115 176 27 43 158 164 109 82 86 165 87 177 74 25 27 29 128 23 120 102 162 123 196 137 61 195 125\n100\n64 60 2 116 30 126 11 171 11 147 153 120 190 124 188 163 140 51 62 29 100 113 158 178 165 7 77 0 58 39 103 160 157 124 77 108 113 87 1 50 60 28 193 184 5 140 111 104 35 156 72 150 23 85 156 16 26 157 126 157 137 71 69 161 96 22 17 112 117 96 185 41 23 129 29 165 159 132 96 55 53 162 184 134 54 172 57 169 132 163 7 83 111 35 67 48 75 138 23 142\n100\n154 111 141 175 59 25 21 70 26 134 5 183 50 198 79 101 193 134 37 134 156 193 176 105 162 148 81 100 13 41 55 55 142 62 11 77 24 78 152 43 96 73 40 113 75 72 18 10 17 132 112 95 169 31 40 88 85 90 97 189 190 145 153 114 51 140 44 58 135 159 192 5 64 181 103 29 175 8 92 197 149 156 161 27 67 141 129 40 13 174 1 77 15 83 13 192 24 1 192 159\n100\n70 28 27 84 75 186 98 170 87 47 4 103 21 63 106 163 10 171 89 40 164 142 19 113 191 104 18 32 150 5 175 139 103 22 98 47 184 48 171 64 113 75 145 112 146 78 169 62 119 185 89 144 65 140 45 108 118 70 1 123 132 72 152 87 170 163 101 103 23 127 0 169 15 165 28 143 147 88 143 37 9 63 49 81 188 142 8 60 21 158 154 88 146 90 149 43 30 20 148 67\n100\n136 183 35 26 185 38 53 29 24 148 123 159 57 166 144 155 118 126 11 25 155 1 149 96 184 115 164 142 75 113 142 196 148 72 26 6 173 29 4 105 26 12 175 93 165 36 136 141 14 194 56 52 136 38 82 155 15 131 30 41 25 11 37 186 90 50 62 34 93 153 16 52 8 62 33 54 103 34 103 56 148 124 117 13 109 28 0 80 118 58 50 155 161 64 103 76 43 109 102 161\n100\n89 148 82 53 74 20 2 123 31 169 78 59 8 19 171 3 145 181 104 192 85 113 98 189 122 138 37 10 61 34 108 161 159 93 115 69 137 69 58 100 171 64 117 15 155 15 130 39 12 88 82 154 85 110 84 174 180 15 151 141 115 79 110 98 73 188 177 132 156 89 113 8 141 190 123 163 28 184 178 0 71 85 174 71 133 67 153 95 168 25 76 29 50 198 109 93 86 80 116 49\n100\n67 128 79 64 21 5 26 16 116 126 66 87 81 164 140 86 21 62 121 64 109 15 102 73 124 141 145 162 23 131 6 68 118 2 107 107 81 12 136 30 114 9 84 156 90 93 196 152 54 145 108 48 91 112 131 114 39 158 122 104 195 52 69 79 38 23 118 66 59 98 86 196 62 33 158 22 146 192 37 125 47 58 2 7 98 30 92 0 78 199 152 48 82 140 115 175 162 167 136 197\n100\n18 97 28 51 16 30 49 125 58 29 120 140 160 147 162 55 75 192 161 154 198 146 114 146 188 169 38 63 75 115 121 75 15 128 34 170 105 64 157 162 161 124 149 69 130 123 150 133 125 110 137 136 137 78 193 36 114 164 191 149 135 105 137 4 137 23 64 170 8 168 81 85 152 173 52 194 76 26 196 172 49 40 174 19 143 11 141 89 19 165 5 185 16 50 15 9 64 166 93 74\n100\n109 100 95 173 189 161 172 168 158 31 68 26 110 22 174 179 110 152 182 191 95 164 74 164 102 55 60 74 172 21 122 147 177 189 5 195 194 150 143 154 81 12 72 39 28 112 162 167 8 15 108 23 159 34 4 86 119 158 145 6 166 100 167 92 187 132 156 174 47 21 83 22 131 176 183 148 123 182 18 176 20 111 182 56 90 125 124 86 77 169 43 134 77 68 68 191 196 183 28 127\n100\n26 71 97 12 103 27 8 145 108 185 38 37 43 113 101 50 128 111 50 149 192 54 69 81 65 67 113 193 34 72 172 30 101 42 177 77 170 102 164 181 190 23 37 23 179 195 169 127 42 110 182 58 126 87 70 128 51 58 13 60 183 86 142 10 72 128 34 41 118 103 67 65 138 81 57 150 14 198 58 61 63 156 7 78 89 35 165 75 186 186 25 160 130 48 128 92 33 40 166 135\n100\n10 199 37 92 182 128 152 169 44 194 8 52 47 32 135 8 64 97 43 49 15 41 189 100 12 48 123 51 74 33 91 0 54 190 97 119 180 178 131 144 140 87 99 125 83 138 92 193 52 11 160 34 40 97 185 129 140 5 191 192 10 149 178 179 171 77 73 193 20 97 26 76 190 182 178 159 18 89 159 49 124 72 180 8 167 8 77 103 170 7 196 74 122 11 19 161 56 90 163 83\n100\n116 132 52 141 154 13 62 196 60 15 104 199 136 80 198 32 187 184 40 117 6 70 41 82 49 123 158 105 21 95 96 116 78 178 179 58 177 150 7 129 81 195 78 76 153 99 184 165 93 8 172 43 129 114 168 55 191 173 122 148 51 186 144 46 177 117 29 116 74 191 69 112 146 93 91 15 149 57 40 52 36 151 87 26 162 155 183 194 180 97 65 65 113 61 178 78 78 140 11 147\n100\n45 170 175 89 91 149 133 65 14 82 7 32 96 167 122 82 10 41 31 187 105 79 121 138 151 47 8 46 76 159 189 22 66 86 55 28 14 60 53 177 148 103 61 31 82 55 197 106 152 21 96 81 21 55 147 124 118 135 176 174 59 198 74 53 122 35 43 88 153 32 147 80 126 78 50 1 161 199 55 163 116 173 161 45 73 74 150 153 181 87 99 110 43 65 172 129 181 112 76 181\n100\n47 90 71 5 172 32 189 120 165 31 58 93 6 178 148 6 171 166 196 97 20 94 129 188 109 184 169 178 17 15 26 84 168 106 128 97 118 190 199 185 86 199 20 110 71 13 15 85 118 180 131 67 187 44 186 107 160 27 74 31 152 71 68 93 85 137 111 4 77 6 168 22 13 0 142 137 38 188 155 89 47 181 93 184 187 161 93 17 101 82 47 65 153 104 84 95 125 21 164 181\n100\n72 106 56 143 193 80 80 68 11 113 168 51 16 79 168 40 131 133 179 63 59 53 136 95 165 74 120 35 80 176 55 125 71 8 159 156 2 32 105 40 175 162 85 162 80 36 197 2 108 80 140 76 58 93 140 146 74 173 97 80 135 72 0 107 155 66 141 188 81 168 115 196 25 9 12 136 55 162 43 142 21 122 112 48 18 168 117 114 50 90 135 159 169 95 103 40 179 199 105 191\n100\n61 81 52 153 33 29 187 42 53 83 20 14 118 44 63 29 52 64 169 70 5 47 194 87 126 76 123 140 79 190 188 110 71 145 21 70 183 189 155 178 179 6 62 135 87 196 33 88 135 179 193 190 162 165 1 105 7 167 69 134 71 57 198 145 197 18 38 44 172 163 28 64 1 123 90 4 1 27 197 92 171 163 101 163 121 165 21 45 10 95 141 22 12 151 15 55 193 138 79 82\n100\n8 54 22 107 45 138 144 90 139 154 4 23 25 78 124 181 130 133 23 194 130 46 187 45 5 16 150 89 138 163 135 97 9 30 24 108 137 74 120 172 93 55 134 161 56 6 184 75 182 119 141 32 84 179 79 83 67 36 125 118 137 28 119 177 137 91 156 195 60 101 193 32 136 180 75 107 184 74 119 190 76 41 151 129 90 174 72 191 189 187 90 39 93 53 63 81 103 5 176 79\n100\n95 139 68 198 83 39 115 21 193 26 122 38 28 181 199 178 91 23 143 34 43 149 102 107 102 141 87 146 91 37 13 0 16 90 162 135 126 10 77 182 60 189 105 74 63 122 195 166 160 38 188 11 45 67 25 67 189 142 63 147 102 17 99 23 26 3 48 51 170 36 58 167 56 5 131 162 19 175 156 131 95 44 191 3 188 115 50 119 72 191 183 133 175 42 169 100 154 78 185 57\n100\n133 93 90 103 150 33 122 71 11 190 138 41 58 47 152 58 79 102 83 190 2 168 22 95 135 8 161 142 194 99 188 178 42 157 141 47 69 145 180 113 164 110 61 185 73 104 62 103 102 69 154 129 152 74 149 130 44 44 49 118 65 163 152 173 70 131 147 111 69 198 98 103 152 79 53 43 122 88 163 34 50 22 40 111 92 51 180 77 16 76 178 20 15 148 198 179 35 57 83 62\n100\n102 62 20 170 22 73 41 86 88 117 117 92 98 67 149 65 189 132 19 81 3 130 28 31 189 152 30 172 64 7 95 28 81 90 10 177 71 36 59 43 40 33 37 93 30 74 193 182 3 61 90 62 107 197 151 23 90 117 40 103 166 83 61 59 45 186 51 165 1 40 9 97 83 50 58 21 175 181 187 71 87 199 104 179 138 100 130 61 118 5 140 28 59 22 198 160 98 135 81 14\n100\n167 93 196 161 146 138 70 138 76 155 117 171 160 152 158 33 55 65 126 1 34 159 193 148 73 192 193 133 137 103 90 11 94 68 27 98 189 48 79 47 149 131 69 75 198 49 36 199 123 43 131 154 61 34 185 167 16 193 104 66 153 108 23 84 192 67 48 69 130 11 14 90 27 143 4 199 74 195 106 158 189 58 9 89 47 40 18 164 175 26 89 103 66 12 40 170 76 195 41 186\n100\n51 109 187 83 85 190 50 86 155 181 128 102 77 62 24 165 72 32 85 28 46 89 78 83 125 65 60 45 178 21 55 120 127 173 134 51 75 136 134 1 137 110 174 190 156 71 80 135 145 82 25 118 173 112 37 198 105 162 117 92 139 47 146 103 31 115 39 58 29 45 194 199 45 72 75 62 72 173 80 38 97 142 8 3 77 125 134 1 78 182 169 136 78 139 138 121 26 63 77 175\n100\n124 181 100 161 62 2 48 95 84 16 137 107 193 84 144 59 21 58 43 68 77 119 57 41 91 64 23 115 72 129 41 115 15 136 157 159 100 52 93 41 29 48 27 198 24 124 74 133 85 38 170 62 29 84 109 78 123 85 0 24 193 105 12 165 167 7 77 184 104 190 34 91 21 85 134 190 142 198 86 18 21 24 197 176 54 69 108 127 93 68 166 102 38 0 19 118 90 184 139 156\n100\n8 32 78 14 187 39 74 20 27 154 188 41 198 42 2 121 104 146 56 109 33 108 161 133 86 4 185 142 42 60 161 20 143 178 187 113 63 191 134 15 56 161 12 11 159 51 138 170 124 107 7 184 151 101 89 158 41 190 13 12 55 60 93 72 2 76 143 173 66 51 75 128 132 161 69 103 129 107 92 51 153 192 170 119 72 7 94 105 40 183 62 9 7 38 160 71 171 54 147 114\n100\n123 29 89 166 87 156 32 70 139 66 122 83 160 153 105 91 59 186 87 29 42 117 45 156 188 52 154 66 33 160 119 31 138 67 176 98 114 120 53 7 69 16 122 42 7 63 60 147 193 30 117 43 176 114 26 117 134 20 171 192 164 154 66 93 64 175 0 12 100 151 76 179 143 77 189 161 185 72 34 144 161 163 104 146 88 108 157 30 123 64 74 146 37 181 118 11 92 191 32 123\n100\n61 191 61 130 98 169 91 0 179 117 117 114 195 41 136 67 28 53 109 173 181 103 169 16 83 167 185 2 30 157 81 167 110 66 87 171 77 45 164 38 71 47 115 192 111 57 5 53 171 180 140 130 75 120 190 177 198 186 4 89 31 144 188 10 118 119 59 127 9 119 79 116 100 196 53 58 30 193 6 49 54 72 160 94 54 133 146 29 71 28 159 41 21 88 166 33 85 70 129 61\n100\n60 8 182 162 106 78 179 97 87 138 69 183 140 195 66 33 109 157 117 134 53 135 58 193 43 93 66 151 140 94 137 174 112 97 151 95 17 92 92 37 130 13 96 110 189 28 9 186 144 40 182 169 120 193 92 162 14 127 7 194 105 113 11 113 93 64 3 195 162 181 146 109 48 168 24 111 154 35 127 33 40 62 127 177 17 140 142 100 0 158 76 154 135 30 31 95 137 23 122 127\n100\n29 11 11 154 80 53 93 121 185 128 43 0 155 71 70 52 175 31 40 134 40 186 34 48 139 165 196 112 62 52 131 187 64 157 48 156 170 50 182 101 93 99 132 44 131 75 4 50 26 66 138 1 23 43 41 180 95 118 59 163 28 129 88 54 13 179 169 66 79 177 37 2 115 92 123 72 48 123 153 148 195 197 108 108 11 193 65 181 2 10 28 56 105 165 23 169 115 53 5 84\n100\n78 145 40 33 85 100 168 194 33 85 148 81 32 56 110 72 182 101 106 35 60 71 127 137 143 168 33 195 171 3 142 11 79 34 112 193 130 161 34 58 126 106 191 43 188 27 119 84 24 93 35 24 94 182 67 27 5 146 86 189 140 37 50 159 178 156 77 3 42 100 11 25 143 195 16 15 4 6 168 41 135 98 125 113 23 112 18 57 196 139 86 94 46 43 122 111 80 55 158 47\n100\n70 190 73 127 13 54 96 72 50 41 41 46 125 13 24 129 95 3 194 193 67 187 40 79 41 125 134 60 0 107 21 92 93 117 117 3 143 93 39 11 125 28 178 148 50 92 44 54 23 153 36 147 146 26 61 104 38 171 86 5 99 56 128 67 151 19 191 166 117 46 93 187 21 112 67 99 44 97 1 128 142 104 168 168 41 96 62 120 44 118 25 19 184 174 184 59 149 14 95 103\n100\n32 51 137 14 163 51 19 90 117 83 118 184 52 186 69 48 137 197 24 168 27 148 193 182 71 69 93 77 14 104 84 143 95 11 93 92 198 190 99 90 93 74 149 174 114 173 69 18 65 33 38 111 52 63 108 149 88 45 31 120 106 71 168 21 58 157 47 182 38 122 123 106 106 189 156 145 151 123 118 150 97 36 191 6 110 13 51 80 44 143 141 45 178 149 105 114 185 27 24 4\n100\n156 117 27 155 102 86 68 98 179 11 89 158 90 175 10 132 89 96 150 112 122 129 72 36 77 153 176 70 85 52 151 197 151 1 35 93 72 116 116 128 111 125 38 96 139 144 56 26 102 158 188 21 186 108 177 28 179 147 149 80 45 128 62 26 119 77 91 47 185 31 6 84 154 169 109 156 21 145 65 16 60 97 135 190 77 49 5 86 188 75 143 177 130 87 155 82 53 0 154 89\n100\n88 15 8 110 140 199 197 107 54 104 37 85 99 192 13 12 82 183 151 129 137 33 0 64 83 57 168 110 168 108 41 132 37 84 99 101 69 183 56 92 40 87 12 10 20 35 63 15 97 77 174 134 153 133 78 86 24 134 75 149 112 184 24 192 104 22 55 113 62 73 84 160 122 53 197 22 150 137 117 6 131 197 105 36 157 199 90 98 185 47 84 192 125 196 55 28 138 142 28 195\n100\n142 37 106 167 53 193 105 146 9 124 54 65 39 6 9 92 99 175 36 61 47 18 13 127 112 96 109 41 130 90 34 115 86 123 66 144 136 37 16 93 149 171 44 177 85 0 190 85 125 118 68 6 129 8 141 25 136 180 116 70 184 147 128 136 4 100 123 164 11 40 50 104 83 166 141 70 45 106 88 56 107 66 57 78 199 74 155 191 190 32 58 196 117 90 167 107 34 46 62 2\n100\n39 26 95 106 114 150 186 79 176 22 79 101 12 76 164 157 170 38 112 144 161 180 0 43 56 61 47 139 8 90 52 179 18 19 7 84 147 177 75 13 109 171 42 139 136 21 101 34 129 158 36 69 97 104 198 2 105 38 32 65 116 81 179 23 127 171 113 182 140 16 88 119 189 113 59 51 71 83 164 38 12 184 159 101 174 133 59 114 49 195 122 141 16 177 52 165 91 138 110 167\n100\n55 187 24 22 39 41 48 4 34 168 41 72 68 174 176 137 33 41 145 18 15 174 52 46 156 124 166 181 144 40 134 96 76 27 5 18 91 41 65 191 71 59 100 17 16 143 24 64 105 157 102 66 75 46 32 189 46 145 3 152 101 126 153 184 49 150 5 146 25 170 136 195 193 123 132 56 96 10 176 92 150 90 195 52 150 115 36 161 160 184 129 134 50 82 6 136 184 190 17 182\n100\n66 116 188 25 101 10 50 182 21 193 38 154 193 95 80 38 167 20 145 83 65 96 33 190 32 189 39 183 17 129 153 79 13 0 52 145 61 151 118 163 13 107 154 76 17 11 29 64 166 131 142 98 122 155 187 57 158 64 162 110 146 65 180 165 146 140 97 42 64 194 184 70 115 0 6 106 102 96 33 11 67 15 45 175 154 48 119 79 188 121 192 197 197 109 52 71 58 122 59 197\n100\n199 99 120 120 36 184 112 115 153 85 141 199 167 8 44 169 81 79 108 7 59 106 49 75 26 124 7 174 84 128 146 145 81 114 149 168 138 107 193 104 105 97 17 155 41 143 133 97 79 136 155 33 154 130 52 104 79 88 70 154 72 176 101 15 86 31 80 175 60 114 138 57 190 38 181 47 42 18 70 31 61 19 181 190 33 72 163 102 102 128 121 98 47 145 6 22 86 194 177 44\n100\n83 147 40 85 64 123 137 53 168 130 55 66 58 112 56 118 1 142 76 106 102 84 23 70 112 50 75 111 50 195 88 120 101 183 198 92 48 184 45 187 62 143 58 59 71 16 172 32 41 83 88 15 176 116 98 39 83 5 197 146 169 75 117 187 20 30 42 135 189 173 80 73 177 186 181 185 122 145 179 85 113 135 135 83 186 96 48 85 152 121 60 182 36 88 119 36 192 65 78 198\n100\n96 186 11 176 147 121 2 45 102 164 139 172 57 170 120 54 159 80 98 191 160 110 191 67 33 75 136 99 175 190 176 56 72 103 86 167 115 142 95 166 56 186 37 198 26 164 85 65 108 140 160 14 154 12 152 138 106 125 30 49 179 79 113 38 117 21 145 191 169 39 108 165 162 73 81 170 147 53 108 108 115 29 66 89 63 171 141 59 31 172 114 166 188 170 168 199 55 50 44 136\n100\n78 6 27 113 123 171 127 73 61 173 134 102 187 17 63 153 126 195 95 13 6 170 59 105 96 33 23 52 79 119 126 193 185 65 171 44 107 71 87 99 119 196 115 152 92 153 57 190 159 157 86 9 65 86 19 59 113 35 28 101 68 69 56 131 178 74 195 43 74 116 24 111 185 122 171 57 95 174 38 183 58 95 122 183 31 103 32 100 190 80 8 105 102 58 18 157 161 120 28 56\n100\n113 132 92 182 67 120 158 74 187 94 183 164 64 114 146 190 25 55 163 67 192 31 19 80 118 128 148 120 79 91 166 187 8 126 25 159 118 20 35 114 56 147 156 134 160 151 8 78 94 189 124 176 94 90 189 172 19 101 102 44 123 139 9 27 37 186 16 27 169 23 99 114 15 44 36 69 178 76 58 152 46 137 115 188 16 88 182 74 133 115 56 56 62 16 124 129 42 184 72 49\n100\n196 26 182 2 175 16 65 152 159 155 17 44 154 43 24 199 22 121 133 13 117 193 73 60 175 74 185 101 22 8 195 26 120 91 188 129 72 177 193 8 54 122 76 137 16 3 90 112 89 53 179 99 122 102 2 169 54 129 134 38 74 26 63 134 172 148 53 103 107 118 133 37 95 179 61 144 59 161 107 176 72 45 192 172 28 196 11 135 35 29 116 132 156 158 149 20 96 124 120 126\n100\n6 183 45 174 91 188 138 64 104 77 153 142 4 23 52 25 11 42 124 149 135 190 146 128 55 4 141 109 181 179 102 83 92 132 112 99 161 47 5 90 169 159 28 139 28 180 71 178 40 56 148 44 145 125 10 98 16 180 15 64 26 72 79 193 82 5 136 133 105 187 132 38 165 64 118 199 32 108 96 38 178 38 45 59 169 144 162 169 49 118 67 158 143 61 3 190 186 26 3 4\n100\n100 168 23 147 196 166 30 65 152 0 17 173 186 68 197 179 24 128 60 158 25 67 112 134 52 169 162 170 11 35 90 111 64 150 160 145 167 154 187 17 165 142 88 73 15 179 37 188 69 86 30 9 40 121 119 81 26 20 11 54 93 184 157 199 136 29 150 57 5 165 134 49 94 192 70 119 17 113 53 117 177 160 105 153 191 162 176 54 72 134 16 50 193 145 52 147 121 61 144 59\n100\n166 85 39 118 107 68 154 50 32 199 20 135 98 192 116 182 29 116 59 158 183 199 135 157 70 71 142 180 77 6 95 86 3 52 118 35 85 28 78 160 101 149 164 185 26 157 137 41 138 193 96 33 93 168 73 135 109 96 181 161 139 184 123 99 131 49 42 6 50 87 40 169 23 188 67 83 0 158 6 138 63 120 166 158 85 23 29 98 156 70 175 196 83 188 19 146 190 75 69 119\n100\n141 197 145 54 158 58 194 191 141 37 100 32 75 136 38 158 180 85 13 84 53 127 85 26 70 136 81 170 149 148 77 199 35 173 137 151 131 17 33 171 176 129 131 44 142 67 0 128 116 34 199 157 40 181 23 141 131 149 139 99 175 99 163 45 126 1 24 83 189 135 24 95 145 170 83 117 192 152 124 173 140 55 68 70 43 30 156 165 114 180 58 158 124 8 111 67 117 128 190 99\n100\n180 70 190 12 0 64 75 84 82 111 106 68 44 26 36 166 192 188 38 65 12 147 46 59 52 171 56 110 57 66 50 70 145 125 148 74 174 43 29 136 163 16 58 134 101 61 55 15 174 182 139 82 24 100 175 137 176 100 24 64 137 95 125 29 51 188 194 144 106 75 71 90 84 19 179 195 158 7 45 174 38 156 20 32 166 22 157 153 71 155 189 25 29 128 39 127 194 90 48 54\n100\n117 192 130 18 148 56 190 82 143 39 101 93 127 69 193 33 31 192 135 26 42 80 16 161 117 107 120 45 166 121 182 182 6 91 70 15 195 143 163 171 192 135 17 12 81 67 121 152 122 28 30 29 24 99 153 151 194 41 64 183 120 144 188 77 13 2 58 2 153 49 58 175 90 38 23 195 101 5 158 123 87 41 26 130 9 20 135 43 131 74 102 100 71 175 9 30 194 22 136 90\n100\n15 52 154 182 133 188 55 160 145 123 142 59 87 143 147 184 189 68 188 198 80 79 107 13 60 47 46 71 182 144 142 48 36 153 149 88 23 25 51 190 39 46 162 175 24 78 185 103 181 177 150 48 170 94 16 129 126 38 115 72 152 62 21 67 128 65 129 59 82 189 186 19 135 140 66 32 85 22 3 161 96 141 150 32 72 161 170 113 165 45 120 10 128 170 21 196 4 114 199 10\n100\n69 152 35 71 144 30 182 61 195 151 66 83 110 158 172 95 106 14 52 84 105 12 21 141 175 90 125 11 167 182 183 187 193 50 79 68 74 84 29 135 60 105 111 192 24 150 16 60 1 159 109 123 67 100 25 56 140 48 55 7 49 91 160 182 36 19 70 79 125 119 9 101 31 124 7 125 101 83 169 88 164 163 124 134 170 51 197 124 111 67 65 40 179 155 28 61 32 27 160 139\n100\n66 37 48 48 4 48 165 21 133 175 41 114 147 162 154 76 54 58 121 184 88 66 116 56 180 29 137 29 189 43 4 101 184 120 187 136 52 182 128 166 72 193 158 179 183 187 23 197 96 194 101 53 120 103 72 20 132 153 24 33 57 65 132 80 167 166 90 68 126 28 79 144 103 49 33 3 110 40 27 10 127 82 193 187 63 161 165 199 51 118 81 158 103 158 38 178 64 57 172 21\n100\n122 156 67 60 98 143 34 41 19 152 62 11 11 193 5 81 51 160 98 71 42 94 84 135 100 155 155 123 50 88 139 10 17 132 148 10 95 19 48 189 171 51 95 23 37 49 0 7 134 84 177 12 41 104 96 162 137 151 51 132 165 138 45 28 194 126 178 145 128 5 149 57 112 1 199 127 92 153 195 142 167 149 176 55 142 148 103 15 47 73 165 149 137 169 131 170 53 168 52 178\n100\n156 181 95 186 129 131 78 59 152 89 158 38 54 172 8 56 171 147 103 111 174 19 107 5 199 188 61 45 35 92 132 76 67 3 167 99 54 167 12 114 129 193 177 54 12 31 89 126 47 99 89 74 36 12 187 157 103 91 82 29 27 161 152 96 46 183 197 154 32 102 145 76 24 81 195 23 32 143 2 169 82 189 37 199 35 179 54 52 199 150 132 145 93 71 49 190 4 177 105 119\n100\n150 128 28 122 68 185 174 184 51 84 37 115 189 81 74 159 50 146 60 27 33 21 161 18 146 150 63 61 46 58 194 171 145 102 46 20 54 153 160 186 19 135 16 113 135 192 18 65 170 136 125 146 44 112 82 15 105 126 1 173 106 80 193 190 191 14 23 57 100 49 122 85 162 102 68 174 152 48 35 38 162 37 72 192 0 143 119 81 170 191 145 184 114 85 79 199 82 186 119 50\n100\n193 185 116 8 88 99 25 96 169 131 14 102 170 137 198 77 198 51 88 63 53 105 141 67 62 55 81 95 18 72 94 70 138 121 45 123 43 165 118 135 137 199 99 192 154 124 31 66 29 122 156 18 75 92 110 161 132 128 122 149 77 26 148 78 177 138 175 144 125 139 21 140 40 166 81 148 147 151 107 151 110 157 77 9 3 176 140 23 174 54 169 106 85 199 48 130 173 58 16 84\n100\n173 31 4 183 191 22 10 187 164 168 194 179 23 109 57 141 85 77 23 72 28 35 149 117 9 143 67 65 190 91 169 138 4 176 12 191 93 9 20 197 62 128 100 159 42 40 89 94 42 20 86 146 164 86 71 143 66 74 45 188 149 27 154 104 81 46 157 85 114 150 32 73 143 112 32 83 39 168 189 83 9 187 195 45 112 39 135 48 79 7 30 154 1 140 43 118 12 177 23 72\n100\n183 85 86 120 57 102 39 6 76 124 52 37 35 99 116 90 167 6 21 175 120 192 165 147 58 84 131 29 182 105 162 89 123 70 142 82 196 180 169 72 115 51 136 155 174 77 154 129 82 51 169 37 101 76 4 73 161 197 195 125 85 62 29 160 118 73 79 109 62 24 174 82 75 15 143 46 132 168 84 161 72 86 66 89 151 4 33 194 76 198 4 133 68 184 17 164 16 14 66 196\n100\n73 148 110 196 141 191 66 189 20 155 148 51 81 71 25 28 173 54 109 30 38 191 139 53 48 167 54 77 90 197 56 173 189 62 136 29 88 139 185 41 167 120 160 47 181 182 6 189 184 3 160 62 132 192 43 63 123 11 140 92 43 70 119 49 112 176 45 86 156 3 164 98 108 78 138 123 5 11 193 117 143 27 114 90 16 1 139 144 36 12 74 33 140 1 183 135 28 33 37 134\n100\n177 71 122 63 59 140 168 82 48 166 90 27 58 71 106 105 1 34 170 155 107 99 130 75 3 39 194 88 64 73 48 158 80 87 164 113 13 52 170 178 166 104 16 49 177 37 137 59 32 155 105 126 137 166 114 155 90 46 182 35 93 136 46 38 56 3 114 199 41 125 74 124 144 63 149 76 197 134 47 26 43 44 192 161 69 175 139 96 81 71 68 113 66 30 6 109 90 59 84 146\n100\n159 103 6 191 93 196 183 150 157 35 12 67 69 165 103 173 191 116 149 115 118 43 188 97 111 91 74 163 125 7 170 121 127 58 136 75 21 176 199 119 41 11 112 9 35 63 30 114 136 183 32 188 139 105 70 140 68 191 128 185 137 120 124 197 154 103 94 162 65 154 100 102 114 29 194 26 63 128 148 79 151 199 3 42 80 16 90 98 58 130 153 151 62 44 49 85 55 172 89 58\n100\n152 129 40 60 46 27 44 22 136 73 154 133 156 51 191 134 131 122 79 2 176 180 69 188 29 85 2 10 127 74 160 99 42 55 193 65 128 172 84 126 198 123 1 187 88 197 52 175 150 78 55 93 30 6 131 89 165 121 127 164 40 113 189 110 88 163 120 188 21 64 3 154 122 116 54 186 25 124 18 102 120 59 88 82 141 174 100 166 22 154 152 50 116 26 86 2 137 101 101 149\n100\n167 102 65 81 43 110 108 89 58 184 121 106 186 187 171 90 172 118 73 153 81 62 196 13 51 115 4 185 133 164 104 37 53 184 133 172 121 144 170 57 88 129 97 140 123 101 143 76 131 100 48 13 53 111 93 132 51 14 199 16 12 34 49 52 112 141 9 50 180 169 135 162 165 111 17 11 163 121 6 145 43 50 193 64 42 44 33 136 102 25 159 153 7 6 143 129 151 70 195 28\n100\n141 59 20 115 144 178 58 184 138 183 38 137 35 30 182 115 80 21 25 152 4 46 12 4 45 25 44 149 194 129 132 9 116 29 161 133 130 146 132 83 73 39 80 35 187 170 189 29 160 121 197 189 163 44 21 105 15 113 134 199 137 15 164 58 111 183 46 143 137 31 55 51 151 90 52 95 20 61 160 167 73 34 133 191 101 178 187 79 100 15 109 72 61 152 170 23 64 137 50 10\n100\n191 178 43 161 21 118 98 183 133 95 109 72 68 103 64 45 49 50 46 142 44 155 59 168 85 101 168 47 6 187 135 109 164 33 151 140 25 124 146 0 38 31 21 17 24 184 15 144 152 19 70 167 119 174 87 30 145 116 44 99 162 85 115 121 102 72 4 173 133 52 11 29 24 159 183 65 45 150 26 191 97 13 171 186 62 190 184 106 18 22 119 66 18 191 159 166 103 79 98 67\n100\n145 103 30 20 25 134 21 33 35 87 193 27 148 24 92 118 0 44 31 86 95 108 153 197 192 121 19 107 71 22 161 191 52 51 123 165 156 180 61 65 123 100 28 35 153 12 82 76 157 89 92 199 176 61 42 131 60 100 38 80 20 145 129 168 141 162 34 33 70 82 0 160 164 141 99 136 65 33 29 27 54 28 119 184 110 168 17 197 125 6 10 63 48 90 169 144 199 43 155 64\n100\n137 158 6 111 14 147 93 129 187 80 85 164 34 76 15 118 184 47 48 147 155 32 181 37 27 96 59 124 199 53 101 41 4 129 15 165 50 132 83 119 96 39 178 38 41 3 6 20 70 49 5 124 78 187 184 29 139 98 173 38 15 2 41 85 63 11 66 27 183 130 165 82 182 31 35 90 12 56 2 48 113 126 97 64 15 93 107 37 18 138 24 70 183 145 128 59 83 21 137 160\n100\n149 123 83 105 47 113 186 184 9 34 100 170 39 157 68 56 85 192 22 133 135 183 27 99 61 90 135 100 79 173 106 85 45 9 36 181 139 99 101 7 195 19 84 27 155 160 133 52 0 3 88 198 75 169 104 190 43 157 57 119 75 149 190 146 198 67 146 109 80 79 181 7 119 138 25 99 170 14 110 155 32 165 18 120 37 64 109 103 144 50 141 101 144 27 141 110 96 24 83 98\n100\n40 131 170 154 135 103 45 9 14 32 117 30 118 32 13 90 61 132 35 117 45 121 18 5 133 121 46 170 188 194 8 27 35 177 75 5 50 42 54 118 190 124 179 165 154 171 22 44 67 109 10 72 152 74 177 97 170 141 67 141 17 168 65 121 55 127 114 83 137 132 149 162 82 35 192 135 130 134 120 128 88 124 34 33 3 125 122 182 160 65 130 64 23 122 86 108 38 31 165 26\n100\n162 163 178 19 51 141 115 76 168 121 98 187 131 39 139 152 30 74 181 142 118 100 100 34 6 80 190 123 199 168 85 34 55 144 44 108 0 19 118 149 147 180 99 48 84 119 132 140 88 170 97 33 140 22 145 140 127 50 82 47 99 50 130 196 104 131 5 51 82 139 167 170 76 143 156 173 116 157 86 166 33 43 72 14 98 71 137 61 9 120 186 127 41 53 123 128 91 197 99 81\n100\n23 110 71 178 193 90 53 34 66 47 113 22 145 174 88 22 177 119 83 166 5 194 46 124 41 89 98 197 66 60 191 173 65 5 6 38 196 118 62 144 126 15 93 123 169 124 18 169 72 70 161 15 25 129 94 37 195 30 149 100 101 194 161 103 192 159 148 6 13 169 39 55 161 51 10 77 176 139 22 102 24 196 49 23 112 123 114 171 8 20 181 156 98 149 145 97 66 43 48 192\n100\n131 4 95 94 50 149 151 181 198 45 75 45 184 33 100 199 167 97 9 141 31 99 98 174 187 159 62 145 129 59 124 167 166 168 127 94 49 196 142 123 196 17 11 168 48 181 33 174 88 84 68 68 25 4 44 121 160 111 122 151 100 142 30 25 30 51 120 198 127 80 5 182 25 14 12 4 192 9 138 5 66 66 171 80 164 141 26 86 135 133 51 124 76 92 159 151 196 127 7 87\n1\n27\n100\n120 5 127 37 110 183 3 137 83 141 35 21 77 78 80 34 111 29 53 130 8 130 48 32 141 70 16 63 18 15 184 109 174 141 85 8 160 148 85 178 101 171 105 1 196 172 109 131 187 70 125 184 2 127 146 88 152 197 189 95 198 151 18 173 57 119 73 115 68 83 10 59 125 196 39 183 118 159 118 61 167 3 166 138 26 193 82 76 160 138 157 180 154 78 61 68 121 73 98 157\n100\n58 19 145 101 189 16 156 39 125 125 132 178 21 116 162 87 8 138 130 5 90 199 169 7 53 13 56 185 183 148 193 199 162 6 66 135 19 71 64 199 8 47 14 114 12 107 22 127 92 120 199 98 71 186 192 152 17 124 188 93 89 88 14 96 68 146 158 137 145 168 197 25 47 21 37 43 107 70 149 146 39 52 12 20 31 76 91 125 45 99 16 174 56 77 72 136 8 96 109 132\n100\n158 188 144 4 130 127 49 119 68 174 101 161 55 166 127 113 162 180 18 128 89 113 141 23 196 131 40 31 135 32 182 182 50 44 52 57 1 68 33 173 94 19 126 83 133 182 112 36 25 52 12 24 45 96 2 173 158 105 77 158 111 81 50 170 180 53 127 159 116 197 118 118 177 181 65 152 113 171 176 186 74 42 41 109 97 62 48 42 148 192 136 20 17 29 24 181 38 106 161 150\n100\n147 58 39 105 181 68 14 1 116 94 167 45 167 39 163 0 174 44 199 125 80 17 24 49 86 74 57 185 15 58 75 30 182 11 37 70 162 191 28 61 12 96 76 100 158 171 191 48 122 98 150 158 128 145 142 38 60 73 77 93 95 4 13 32 125 104 95 21 48 168 84 20 91 38 32 119 137 166 32 62 134 31 37 94 102 11 114 42 69 34 147 130 103 41 6 11 97 137 102 15\n100\n63 117 117 199 151 43 138 182 54 87 12 112 122 37 174 91 8 118 51 77 23 52 11 30 189 1 15 87 128 29 121 187 63 127 88 77 114 46 75 82 31 39 19 169 47 162 6 160 152 105 161 120 180 41 150 139 138 124 151 5 140 189 25 82 104 53 180 30 11 6 58 187 51 127 30 22 147 7 96 114 5 149 6 10 115 135 188 185 134 113 23 76 163 177 126 122 107 129 66 27\n100\n25 100 48 175 130 157 13 96 16 92 105 51 7 130 103 147 52 55 84 135 194 146 190 36 47 105 7 78 158 81 146 99 22 192 13 8 52 41 191 176 124 57 108 146 158 32 63 27 31 41 79 37 100 37 109 150 54 140 197 27 179 46 139 38 81 98 192 21 97 93 13 6 129 93 151 16 194 38 188 75 171 21 180 83 166 99 156 9 66 68 159 195 184 128 94 132 66 58 66 63\n100\n113 31 86 160 166 49 122 60 83 173 166 106 146 74 108 146 70 20 66 69 178 127 38 84 159 167 178 30 121 191 90 93 44 9 107 40 123 22 47 150 25 62 182 169 140 1 55 105 126 87 63 179 166 78 145 9 86 106 120 43 6 42 161 183 138 17 195 109 199 97 195 142 52 167 140 103 55 155 52 56 45 62 197 50 189 65 105 127 47 27 103 76 65 75 46 181 3 15 63 160\n100\n116 181 177 133 28 184 103 44 76 174 108 135 2 135 41 186 193 120 14 144 57 112 104 96 91 106 26 16 183 133 111 176 105 65 6 98 18 19 191 24 67 50 134 95 175 75 94 187 65 162 39 108 60 82 186 95 122 135 148 159 119 138 66 173 150 60 141 93 148 6 118 68 12 65 19 127 171 114 42 150 149 128 61 177 136 25 6 65 183 153 5 26 153 165 145 127 180 31 180 183\n100\n147 123 81 63 144 49 26 40 62 91 29 98 198 178 127 25 60 69 180 23 147 2 165 82 23 55 187 7 9 130 91 111 144 144 75 89 5 156 124 17 56 48 160 80 50 88 166 67 178 173 43 48 132 176 163 198 135 16 57 180 166 61 91 133 129 85 50 91 93 88 88 186 57 159 27 110 26 90 41 64 66 74 92 148 12 92 16 158 27 159 42 39 163 48 196 50 96 196 78 108\n100\n86 37 103 123 1 41 45 30 94 0 193 54 194 4 142 124 169 181 43 27 1 102 23 38 161 34 101 5 100 132 56 36 10 117 193 77 192 110 190 8 175 89 69 191 139 35 106 39 173 69 173 44 27 195 136 195 102 116 7 22 164 148 8 172 8 190 157 47 31 86 96 106 67 14 190 67 5 111 183 53 39 26 142 129 40 127 140 86 43 47 153 70 10 5 109 171 71 42 132 42\n100\n20 25 81 118 188 151 52 57 65 175 30 151 102 150 188 147 72 90 19 117 193 160 156 92 93 199 32 49 73 143 133 44 56 86 25 164 0 132 22 145 53 109 95 147 108 119 34 136 123 44 182 90 175 146 39 48 165 162 168 119 69 182 113 87 140 166 33 90 121 36 77 195 106 63 49 20 56 133 166 155 57 21 61 101 60 116 163 138 178 197 134 188 99 70 199 115 166 65 32 74\n100\n78 137 0 48 193 158 157 71 58 82 17 65 106 20 112 4 2 197 136 43 116 178 106 24 115 73 160 78 136 119 8 188 182 121 16 23 112 186 170 166 42 68 58 76 62 146 181 153 104 38 197 122 195 111 115 187 21 37 4 178 40 64 166 94 131 165 156 184 65 106 65 0 184 189 2 11 157 7 7 27 86 143 35 112 31 77 49 6 1 35 146 159 176 11 108 90 164 197 125 107\n100\n83 15 177 94 180 155 168 134 183 11 116 3 148 0 41 60 73 123 189 32 23 187 178 139 103 137 90 63 177 1 3 113 30 114 99 198 103 198 117 190 68 174 92 48 106 184 48 126 167 35 7 177 71 5 30 120 45 58 159 198 42 8 77 66 33 105 78 90 111 40 17 2 69 143 48 26 160 57 63 46 90 68 126 186 10 49 139 13 162 158 20 37 15 75 172 76 190 29 155 10\n100\n77 184 75 35 176 40 48 129 190 33 167 37 123 45 3 194 86 134 52 75 141 125 1 55 104 178 191 33 60 125 26 125 90 189 107 135 47 119 83 14 28 113 48 26 40 127 109 66 165 165 87 73 176 150 53 153 29 109 143 0 171 11 178 163 188 168 2 160 168 173 66 160 18 185 1 85 19 146 13 96 189 94 4 119 19 27 88 61 95 52 43 90 147 165 124 84 125 153 192 110\n100\n197 97 5 112 56 56 130 31 34 101 171 38 56 65 36 69 124 186 172 2 52 71 180 125 180 108 199 137 67 128 12 31 84 93 58 140 87 88 77 159 159 130 30 76 140 38 191 60 76 60 94 128 37 53 185 139 127 128 196 104 168 196 175 13 183 191 148 46 133 159 127 173 1 7 95 152 35 60 52 171 195 120 73 88 67 175 163 12 74 49 130 28 195 183 33 127 45 0 185 190\n100\n172 38 171 193 96 173 61 108 116 100 139 27 97 72 178 89 172 93 58 199 78 166 10 42 195 167 177 54 54 192 2 26 194 45 174 148 83 44 81 175 70 47 118 98 167 194 172 67 138 191 189 68 60 112 100 12 34 77 175 17 90 47 190 140 105 84 43 14 164 100 98 82 75 170 123 98 51 64 77 23 60 164 117 67 170 119 55 97 127 65 100 88 169 13 198 44 159 50 56 5\n100\n10 28 113 20 82 32 66 187 31 64 101 180 185 102 73 53 194 27 188 154 2 66 168 147 171 137 33 112 62 120 101 155 85 86 117 141 163 48 132 67 153 146 13 194 107 75 66 129 82 108 2 94 171 106 98 155 144 44 24 178 101 31 140 103 125 128 159 189 70 49 112 188 163 0 141 114 105 44 111 175 84 106 58 197 194 159 123 15 96 22 58 73 76 196 106 105 195 187 143 141\n100\n139 188 39 77 172 152 196 82 171 185 129 184 47 68 139 199 15 122 42 112 107 31 48 54 171 90 9 58 125 127 68 164 155 105 89 7 155 196 123 141 49 34 184 26 186 11 22 69 58 11 0 4 185 103 162 8 122 40 1 137 12 147 119 91 148 160 5 25 90 130 81 88 195 38 11 184 47 55 171 102 100 161 117 165 139 101 23 15 9 53 2 31 185 89 7 144 135 64 12 27\n100\n184 155 95 85 49 38 155 15 141 56 9 19 27 62 48 179 143 131 151 51 96 98 179 138 106 191 101 13 181 51 69 86 77 142 141 155 35 58 199 161 180 295 184 138 113 56 193 173 71 31 52 53 199 23 100 36 0 166 192 146 164 103 81 152 9 133 122 82 89 42 104 69 140 136 65 5 12 72 26 155 25 10 156 188 46 68 14 13 196 126 65 85 181 29 56 188 116 38 198 115\n100\n99 22 133 68 29 143 116 28 61 190 24 141 47 147 119 81 182 89 105 3 149 190 191 168 145 117 145 167 70 138 186 125 2 182 95 28 55 196 120 141 13 146 78 27 103 124 86 186 165 197 68 16 18 144 4 163 79 15 172 43 7 17 126 17 180 57 69 136 58 100 22 74 35 28 114 158 99 27 192 121 140 89 136 43 93 146 21 28 94 18 2 143 96 27 17 85 3 72 176 85\n100\n111 66 54 154 142 43 100 150 66 9 134 198 100 182 116 85 93 53 124 21 48 111 75 43 103 23 116 123 85 3 112 117 84 69 7 166 104 184 181 65 172 30 160 87 115 145 193 21 42 65 49 158 148 166 70 96 93 103 167 83 60 114 44 15 114 124 161 125 0 67 172 49 17 18 13 158 179 69 86 75 124 46 187 117 82 71 140 101 35 25 73 147 6 188 117 43 138 184 157 39\n100\n94 60 131 53 65 37 190 171 27 97 60 184 91 99 91 140 90 106 13 98 23 190 162 125 21 195 146 178 154 1 123 13 98 146 87 78 12 118 82 84 114 156 19 58 127 130 1 26 92 166 24 144 155 102 19 88 184 21 156 35 68 199 10 13 108 135 115 162 154 102 34 115 10 63 74 92 184 81 148 40 24 101 181 102 93 96 20 101 55 179 178 14 7 73 99 66 68 185 124 164\n100\n187 29 118 111 2 122 42 187 142 97 188 172 38 13 133 148 31 150 196 59 9 29 117 124 106 121 189 25 138 9 69 81 39 107 29 113 154 85 50 193 49 194 2 8 134 127 72 107 96 142 172 50 8 19 21 83 127 173 105 44 158 175 44 91 134 152 183 24 186 63 131 101 153 155 126 196 128 51 61 10 80 153 52 91 91 52 9 126 69 134 63 130 121 67 49 17 65 11 125 108\n",
"100\n100\n41 67 134 100 169 124 78 158 162 64 105 145 81 27 161 91 195 142 27 36 191 4 102 153 92 182 21 116 118 95 47 126 171 138 69 112 67 99 35 94 103 11 122 133 73 64 141 111 53 68 147 44 62 157 37 59 123 141 129 178 116 35 190 42 88 106 40 142 64 48 46 5 90 129 170 150 6 101 193 148 29 23 84 154 156 40 166 176 131 108 144 39 26 123 137 138 118 82 129 141\n100\n33 115 39 58 104 130 177 106 73 186 21 145 124 72 70 29 177 173 97 112 186 90 161 36 155 167 55 174 31 52 150 150 141 124 166 30 107 191 7 137 57 87 153 183 145 109 9 158 21 188 22 146 106 30 13 168 100 191 162 55 10 159 24 137 148 83 195 41 2 150 91 36 174 20 196 21 148 199 68 84 81 134 53 199 18 138 100 188 127 67 128 93 48 83 7 21 110 17 13 114\n100\n109 16 135 51 0 49 119 156 198 103 24 8 44 9 189 102 195 85 93 143 123 187 114 103 48 0 58 18 180 196 198 81 189 198 9 157 72 22 138 92 38 179 190 57 158 191 15 88 156 111 2 34 72 55 128 46 162 86 75 33 69 142 44 16 81 198 122 51 21 99 157 76 92 189 75 112 0 110 3 69 61 88 1 189 55 23 2 185 182 85 88 26 17 157 32 132 169 154 121 189\n100\n176 129 168 92 25 155 34 149 41 112 145 60 118 153 139 23 79 196 87 129 149 37 66 149 193 195 97 16 86 105 88 82 55 134 114 101 116 71 186 63 113 155 185 53 112 8 32 145 113 156 121 158 46 182 81 144 196 22 129 161 135 50 173 66 44 59 92 39 53 24 154 110 145 49 186 113 74 22 168 18 187 105 158 191 2 25 77 14 114 24 134 74 172 159 33 70 87 97 118 177\n100\n173 70 163 68 192 185 102 80 13 27 2 99 127 25 143 124 23 172 61 181 3 32 105 193 125 31 92 142 22 86 64 100 187 160 13 174 70 170 35 33 111 160 96 67 85 150 140 94 95 24 19 125 176 94 58 102 171 66 78 193 51 84 18 64 119 152 0 87 60 126 10 157 170 115 176 27 43 158 164 109 82 86 165 87 177 74 25 27 29 128 23 120 102 162 123 196 137 61 195 125\n100\n64 60 2 116 30 126 11 171 11 147 153 120 190 124 188 163 140 51 62 29 100 113 158 178 165 7 77 0 58 39 103 160 157 124 77 108 113 87 1 50 60 28 193 184 5 140 111 104 35 156 72 150 23 85 156 16 26 157 126 157 137 71 69 161 96 22 17 112 117 96 185 41 23 129 29 165 159 132 96 55 53 162 184 134 54 172 57 169 132 163 7 83 111 35 67 48 75 138 23 142\n100\n154 111 141 175 59 25 21 70 26 134 5 183 50 198 79 101 193 134 37 134 156 193 176 105 162 148 81 100 13 41 55 55 142 62 11 77 24 78 152 43 96 73 40 113 75 72 18 10 17 132 112 95 169 31 40 88 85 90 97 189 190 145 153 114 51 140 44 58 135 159 192 5 64 181 103 29 175 8 92 197 149 156 161 27 67 141 129 40 13 174 1 77 15 83 13 192 24 1 192 159\n100\n70 28 27 84 75 186 98 170 87 47 4 103 21 63 106 163 10 171 89 40 164 142 19 113 191 104 18 32 150 5 175 139 103 22 98 47 184 48 171 64 113 75 145 112 146 78 169 62 119 185 89 144 65 140 45 108 118 70 1 123 132 72 152 87 170 163 101 103 23 127 0 169 15 165 28 143 147 88 143 37 9 63 49 81 188 142 8 60 21 158 154 88 146 90 149 43 30 20 148 67\n100\n136 183 35 26 185 38 53 29 24 148 123 159 57 166 144 155 118 126 11 25 155 1 149 96 184 115 164 142 75 113 142 196 148 72 26 6 173 29 4 105 26 12 175 93 165 36 136 141 14 194 56 52 136 38 82 155 15 131 30 41 25 11 37 186 90 50 62 34 93 153 16 52 8 62 33 54 103 34 103 56 148 124 117 13 109 28 0 80 118 58 50 155 161 64 103 76 43 109 102 161\n100\n89 148 82 53 74 20 2 123 31 169 78 59 8 19 171 3 145 181 104 192 85 113 98 189 122 138 37 10 61 34 108 161 159 93 115 69 137 69 58 100 171 64 117 15 155 15 130 39 12 88 82 154 85 110 84 174 180 15 151 141 115 79 110 98 73 188 177 132 156 89 113 8 141 190 123 163 28 184 178 0 71 85 174 71 133 67 153 95 168 25 76 29 50 198 109 93 86 80 116 49\n100\n67 128 79 64 21 5 26 16 116 126 66 87 81 164 140 86 21 62 121 64 109 15 102 73 124 141 145 162 23 131 6 68 118 2 107 107 81 12 136 30 114 9 84 156 90 93 196 152 54 145 108 48 91 112 131 114 39 158 122 104 195 52 69 79 38 23 118 66 59 98 86 196 62 33 158 22 146 192 37 125 47 58 2 7 98 30 92 0 78 199 152 48 82 140 115 175 162 167 136 197\n100\n18 97 28 51 16 30 49 125 58 29 120 140 160 147 162 55 75 192 161 154 198 146 114 146 188 169 38 63 75 115 121 75 15 128 34 170 105 64 157 162 161 124 149 69 130 123 150 133 125 110 137 136 137 78 193 36 114 164 191 149 135 105 137 4 137 23 64 170 8 168 81 85 152 173 52 194 76 26 196 172 49 40 174 19 143 11 141 89 19 165 5 185 16 50 15 9 64 166 93 74\n100\n109 100 95 173 189 161 172 168 158 31 68 26 110 22 174 179 110 152 182 191 95 164 74 164 102 55 60 74 172 21 122 147 177 189 5 195 194 150 143 154 81 12 72 39 28 112 162 167 8 15 108 23 159 34 4 86 119 158 145 6 166 100 167 92 187 132 156 174 47 21 83 22 131 176 183 148 123 182 18 176 20 111 182 56 90 125 124 86 77 169 43 134 77 68 68 191 196 183 28 127\n100\n26 71 97 12 103 27 8 145 108 185 38 37 43 113 101 50 128 111 50 149 192 54 69 81 65 67 113 193 34 72 172 30 101 42 177 77 170 102 164 181 190 23 37 23 179 195 169 127 42 110 182 58 126 87 70 128 51 58 13 60 183 86 142 10 72 128 34 41 118 103 67 65 138 81 57 150 14 198 58 61 63 156 7 78 89 35 165 75 186 186 25 160 130 48 128 92 33 40 166 135\n100\n10 199 37 92 182 128 152 169 44 194 8 52 47 32 135 8 64 97 43 49 15 41 189 100 12 48 123 51 74 33 91 0 54 190 97 119 180 178 131 144 140 87 99 125 83 138 92 193 52 11 160 34 40 97 185 129 140 5 191 192 10 149 178 179 171 77 73 193 20 97 26 76 190 182 178 159 18 89 159 49 124 72 180 8 167 8 77 103 170 7 196 74 122 11 19 161 56 90 163 83\n100\n116 132 52 141 154 13 62 196 60 15 104 199 136 80 198 32 187 184 40 117 6 70 41 82 49 123 158 105 21 95 96 116 78 178 179 58 177 150 7 129 81 195 78 76 153 99 184 165 93 8 172 43 129 114 168 55 191 173 122 148 51 186 144 46 177 117 29 116 74 191 69 112 146 93 91 15 149 57 40 52 36 151 87 26 162 155 183 194 180 97 65 65 113 61 178 78 78 140 11 147\n100\n45 170 175 89 91 149 133 65 14 82 7 32 96 167 122 82 10 41 31 187 105 79 121 138 151 47 8 46 76 159 189 22 66 86 55 28 14 60 53 177 148 103 61 31 82 55 197 106 152 21 96 81 21 55 147 124 118 135 176 174 59 198 74 53 122 35 43 88 153 32 147 80 126 78 50 1 161 199 55 163 116 173 161 45 73 74 150 153 181 87 99 110 43 65 172 129 181 112 76 181\n100\n47 90 71 5 172 32 189 120 165 31 58 93 6 178 148 6 171 166 196 97 20 94 129 188 109 184 169 178 17 15 26 84 168 106 128 97 118 190 199 185 86 199 20 110 71 13 15 85 118 180 131 67 187 44 186 107 160 27 74 31 152 71 68 93 85 137 111 4 77 6 168 22 13 0 142 137 38 188 155 89 47 181 93 184 187 161 93 17 101 82 47 65 153 104 84 95 125 21 164 181\n100\n72 106 56 143 193 80 80 68 11 113 168 51 16 79 168 40 131 133 179 63 59 53 136 95 165 74 120 35 80 176 55 125 71 8 159 156 2 32 105 40 175 162 85 162 80 36 197 2 108 80 140 76 58 93 140 146 74 173 97 80 135 72 0 107 155 66 141 188 81 168 115 196 25 9 12 136 55 162 43 142 21 122 112 48 18 168 117 114 50 90 135 159 169 95 103 40 179 199 105 191\n100\n61 81 52 153 33 29 187 42 53 83 20 14 118 44 63 29 52 64 169 70 5 47 194 87 126 76 123 140 79 190 188 110 71 145 21 70 183 189 155 178 179 6 62 135 87 196 33 88 135 179 193 190 162 165 1 105 7 167 69 134 71 57 198 145 197 18 38 44 172 163 28 64 1 123 90 4 1 27 197 92 171 163 101 163 121 165 21 45 10 95 141 22 12 151 15 55 193 138 79 82\n100\n8 54 22 107 45 138 144 90 139 154 4 23 25 78 124 181 130 133 23 194 130 46 187 45 5 16 150 89 138 163 135 97 9 30 24 108 137 74 120 172 93 55 134 161 56 6 184 75 182 119 141 32 84 179 79 83 67 36 125 118 137 28 119 177 137 91 156 195 60 101 193 32 136 180 75 107 184 74 119 190 76 41 151 129 90 174 72 191 189 187 90 39 93 53 63 81 103 5 176 79\n100\n95 139 68 198 83 39 115 21 193 26 122 38 28 181 199 178 91 23 143 34 43 149 102 107 102 141 87 146 91 37 13 0 16 90 162 135 126 10 77 182 60 189 105 74 63 122 195 166 160 38 188 11 45 67 25 67 189 142 63 147 102 17 99 23 26 3 48 51 170 36 58 167 56 5 131 162 19 175 156 131 95 44 191 3 188 115 50 119 72 191 183 133 175 42 169 100 154 78 185 57\n100\n133 93 90 103 150 33 122 71 11 190 138 41 58 47 152 58 79 102 83 190 2 168 22 95 135 8 161 142 194 99 188 178 42 157 141 47 69 145 180 113 164 110 61 185 73 104 62 103 102 69 154 129 152 74 149 130 44 44 49 118 65 163 152 173 70 131 147 111 69 198 98 103 152 79 53 43 122 88 163 34 50 22 40 111 92 51 180 77 16 76 178 20 15 148 198 179 35 57 83 62\n100\n102 62 20 170 22 73 41 86 88 117 117 92 98 67 149 65 189 132 19 81 3 130 28 31 189 152 30 172 64 7 95 28 81 90 10 177 71 36 59 43 40 33 37 93 30 74 193 182 3 61 90 62 107 197 151 23 90 117 40 103 166 83 61 59 45 186 51 165 1 40 9 97 83 50 58 21 175 181 187 71 87 199 104 179 138 100 130 61 118 5 140 28 59 22 198 160 98 135 81 14\n100\n167 93 196 161 146 138 70 138 76 155 117 171 160 152 158 33 55 65 126 1 34 159 193 148 73 192 193 133 137 103 90 11 94 68 27 98 189 48 79 47 149 131 69 75 198 49 36 199 123 43 131 154 61 34 185 167 16 193 104 66 153 108 23 84 192 67 48 69 130 11 14 90 27 143 4 199 74 195 106 158 189 58 9 89 47 40 18 164 175 26 89 103 66 12 40 170 76 195 41 186\n100\n51 109 187 83 85 190 50 86 155 181 128 102 77 62 24 165 72 32 85 28 46 89 78 83 125 65 60 45 178 21 55 120 127 173 134 51 75 136 134 1 137 110 174 190 156 71 80 135 145 82 25 118 173 112 37 198 105 162 117 92 139 47 146 103 31 115 39 58 29 45 194 199 45 72 75 62 72 173 80 38 97 142 8 3 77 125 134 1 78 182 169 136 78 139 138 121 26 63 77 175\n100\n124 181 100 161 62 2 48 95 84 16 137 107 193 84 144 59 21 58 43 68 77 119 57 41 91 64 23 115 72 129 41 115 15 136 157 159 100 52 93 41 29 48 27 198 24 124 74 133 85 38 170 62 29 84 109 78 123 85 0 24 193 105 12 165 167 7 77 184 104 190 34 91 21 85 134 190 142 198 86 18 21 24 197 176 54 69 108 127 93 68 166 102 38 0 19 118 90 184 139 156\n100\n8 32 78 14 187 39 74 20 27 154 188 41 198 42 2 121 104 146 56 109 33 108 161 133 86 4 185 142 42 60 161 20 143 178 187 113 63 191 134 15 56 161 12 11 159 51 138 170 124 107 7 184 151 101 89 158 41 190 13 12 55 60 93 72 2 76 143 173 66 51 75 128 132 161 69 103 129 107 92 51 153 192 170 119 72 7 94 105 40 183 62 9 7 38 160 71 171 54 147 114\n100\n123 29 89 166 87 156 32 70 139 66 122 83 160 153 105 91 59 186 87 29 42 117 45 156 188 52 154 66 33 160 119 31 138 67 176 98 114 120 53 7 69 16 122 42 7 63 60 147 193 30 117 43 176 114 26 117 134 20 171 192 164 154 66 93 64 175 0 12 100 151 76 179 143 77 189 161 185 72 34 144 161 163 104 146 88 108 157 30 123 64 74 146 37 181 118 11 92 191 32 123\n100\n61 191 61 130 98 169 91 0 179 117 117 114 195 41 136 67 28 53 109 173 181 103 169 16 83 167 185 2 30 157 81 167 110 66 87 171 77 45 164 38 71 47 115 192 111 57 5 53 171 180 140 130 75 120 190 177 198 186 4 89 31 144 188 10 118 119 59 127 9 119 79 116 100 196 53 58 30 193 6 49 54 72 160 94 54 133 146 29 71 28 159 41 21 88 166 33 85 70 129 61\n100\n60 8 182 162 106 78 179 97 87 138 69 183 140 195 66 33 109 157 117 134 53 135 58 193 43 93 66 151 140 94 137 174 112 97 151 95 17 92 92 37 130 13 96 110 189 28 9 186 144 40 182 169 120 193 92 162 14 127 7 194 105 113 11 113 93 64 3 195 162 181 146 109 48 168 24 111 154 35 127 33 40 62 127 177 17 140 142 100 0 158 76 154 135 30 31 95 137 23 122 127\n100\n29 11 11 154 80 53 93 121 185 128 43 0 155 71 70 52 175 31 40 134 40 186 34 48 139 165 196 112 62 52 131 187 64 157 48 156 170 50 182 101 93 99 132 44 131 75 4 50 26 66 138 1 23 43 41 180 95 118 59 163 28 129 88 54 13 179 169 66 79 177 37 2 115 92 123 72 48 123 153 148 195 197 108 108 11 193 65 181 2 10 28 56 105 165 23 169 115 53 5 84\n100\n78 145 40 33 85 100 168 194 33 85 148 81 32 56 110 72 182 101 106 35 60 71 127 137 143 168 33 195 171 3 142 11 79 34 112 193 130 161 34 58 126 106 191 43 188 27 119 84 24 93 35 24 94 182 67 27 5 146 86 189 140 37 50 159 178 156 77 3 42 100 11 25 143 195 16 15 4 6 168 41 135 98 125 113 23 112 18 57 196 139 86 94 46 43 122 111 80 55 158 47\n100\n70 190 73 127 13 54 96 72 50 41 41 46 125 13 24 129 95 3 194 193 67 187 40 79 41 125 134 60 0 107 21 92 93 117 117 3 143 93 39 11 125 28 178 148 50 92 44 54 23 153 36 147 146 26 61 104 38 171 86 5 99 56 128 67 151 19 191 166 117 46 93 187 21 112 67 99 44 97 1 128 142 104 168 168 41 96 62 120 44 118 25 19 184 174 184 59 149 14 95 103\n100\n32 51 137 14 163 51 19 90 117 83 118 184 52 186 69 48 137 197 24 168 27 148 193 182 71 69 93 77 14 104 84 143 95 11 93 92 198 190 99 90 93 74 149 174 114 173 69 18 65 33 38 111 52 63 108 149 88 45 31 120 106 71 168 21 58 157 47 182 38 122 123 106 106 189 156 145 151 123 118 150 97 36 191 6 110 13 51 80 44 143 141 45 178 149 105 114 185 27 24 4\n100\n156 117 27 155 102 86 68 98 179 11 89 158 90 175 10 132 89 96 150 112 122 129 72 36 77 153 176 70 85 52 151 197 151 1 35 93 72 116 116 128 111 125 38 96 139 144 56 26 102 158 188 21 186 108 177 28 179 147 149 80 45 128 62 26 119 77 91 47 185 31 6 84 154 169 109 156 21 145 65 16 60 97 135 190 77 49 5 86 188 75 143 177 130 87 155 82 53 0 154 89\n100\n88 15 8 110 140 199 197 107 54 104 37 85 99 192 13 12 82 183 151 129 137 33 0 64 83 57 168 110 168 108 41 132 37 84 99 101 69 183 56 92 40 87 12 10 20 35 63 15 97 77 174 134 153 133 78 86 24 134 75 149 112 184 24 192 104 22 55 113 62 73 84 160 122 53 197 22 150 137 117 6 131 197 105 36 157 199 90 98 185 47 84 192 125 196 55 28 138 142 28 195\n100\n142 37 106 167 53 193 105 146 9 124 54 65 39 6 9 92 99 175 36 61 47 18 13 127 112 96 109 41 130 90 34 115 86 123 66 144 136 37 16 93 149 171 44 177 85 0 190 85 125 118 68 6 129 8 141 25 136 180 116 70 184 147 128 136 4 100 123 164 11 40 50 104 83 166 141 70 45 106 88 56 107 66 57 78 199 74 155 191 190 32 58 196 117 90 167 107 34 46 62 2\n100\n39 26 95 106 114 150 186 79 176 22 79 101 12 76 164 157 170 38 112 144 161 180 0 43 56 61 47 139 8 90 52 179 18 19 7 84 147 177 75 13 109 171 42 139 136 21 101 34 129 158 36 69 97 104 198 2 105 38 32 65 116 81 179 23 127 171 113 182 140 16 88 119 189 113 59 51 71 83 164 38 12 184 159 101 174 133 59 114 49 195 122 141 16 177 52 165 91 138 110 167\n100\n55 187 24 22 39 41 48 4 34 168 41 72 68 174 176 137 33 41 145 18 15 174 52 46 156 124 166 181 144 40 134 96 76 27 5 18 91 41 65 191 71 59 100 17 16 143 24 64 105 157 102 66 75 46 32 189 46 145 3 152 101 126 153 184 49 150 5 146 25 170 136 195 193 123 132 56 96 10 176 92 150 90 195 52 150 115 36 161 160 184 129 134 50 82 6 136 184 190 17 182\n100\n66 116 188 25 101 10 50 182 21 193 38 154 193 95 80 38 167 20 145 83 65 96 33 190 32 189 39 183 17 129 153 79 13 0 52 145 61 151 118 163 13 107 154 76 17 11 29 64 166 131 142 98 122 155 187 57 158 64 162 110 146 65 180 165 146 140 97 42 64 194 184 70 115 0 6 106 102 96 33 11 67 15 45 175 154 48 119 79 188 121 192 197 197 109 52 71 58 122 59 197\n100\n199 99 120 120 36 184 112 115 153 85 141 199 167 8 44 169 81 79 108 7 59 106 49 75 26 124 7 174 84 128 146 145 81 114 149 168 138 107 193 104 105 97 17 155 41 143 133 97 79 136 155 33 154 130 52 104 79 88 70 154 72 176 101 15 86 31 80 175 60 114 138 57 190 38 181 47 42 18 70 31 61 19 181 190 33 72 163 102 102 128 121 98 47 145 6 22 86 194 177 44\n100\n83 147 40 85 64 123 137 53 168 130 55 66 58 112 56 118 1 142 76 106 102 84 23 70 112 50 75 111 50 195 88 120 101 183 198 92 48 184 45 187 62 143 58 59 71 16 172 32 41 83 88 15 176 116 98 39 83 5 197 146 169 75 117 187 20 30 42 135 189 173 80 73 177 186 181 185 122 145 179 85 113 135 135 83 186 96 48 85 152 121 60 182 36 88 119 36 192 65 78 198\n100\n96 186 11 176 147 121 2 45 102 164 139 172 57 170 120 54 159 80 98 191 160 110 191 67 33 75 136 99 175 190 176 56 72 103 86 167 115 142 95 166 56 186 37 198 26 164 85 65 108 140 160 14 154 12 152 138 106 125 30 49 179 79 113 38 117 21 145 191 169 39 108 165 162 73 81 170 147 53 108 108 115 29 66 89 63 171 141 59 31 172 114 166 188 170 168 199 55 50 44 136\n100\n78 6 27 113 123 171 127 73 61 173 134 102 187 17 63 153 126 195 95 13 6 170 59 105 96 33 23 52 79 119 126 193 185 65 171 44 107 71 87 99 119 196 115 152 92 153 57 190 159 157 86 9 65 86 19 59 113 35 28 101 68 69 56 131 178 74 195 43 74 116 24 111 185 122 171 57 95 174 38 183 58 95 122 183 31 103 32 100 190 80 8 105 102 58 18 157 161 120 28 56\n100\n113 132 92 182 67 120 158 74 187 94 183 164 64 114 146 190 25 55 163 67 192 31 19 80 118 128 148 120 79 91 166 187 8 126 25 159 118 20 35 114 56 147 156 134 160 151 8 78 94 189 124 176 94 90 189 172 19 101 102 44 123 139 9 27 37 186 16 27 169 23 99 114 15 44 36 69 178 76 58 152 46 137 115 188 16 88 182 74 133 115 56 56 62 16 124 129 42 184 72 49\n100\n196 26 182 2 175 16 65 152 159 155 17 44 154 43 24 199 22 121 133 13 117 193 73 60 175 74 185 101 22 8 195 26 120 91 188 129 72 177 193 8 54 122 76 137 16 3 90 112 89 53 179 99 122 102 2 169 54 129 134 38 74 26 63 134 172 148 53 103 107 118 133 37 95 179 61 144 59 161 107 176 72 45 192 172 28 196 11 135 35 29 116 132 156 158 149 20 96 124 120 126\n100\n6 183 45 174 91 188 138 64 104 77 153 142 4 23 52 25 11 42 124 149 135 190 146 128 55 4 141 109 181 179 102 83 92 132 112 99 161 47 5 90 169 159 28 139 28 180 71 178 40 56 148 44 145 125 10 98 16 180 15 64 26 72 79 193 82 5 136 133 105 187 132 38 165 64 118 199 32 108 96 38 178 38 45 59 169 144 162 169 49 118 67 158 143 61 3 190 186 26 3 4\n100\n100 168 23 147 196 166 30 65 152 0 17 173 186 68 197 179 24 128 60 158 25 67 112 134 52 169 162 170 11 35 90 111 64 150 160 145 167 154 187 17 165 142 88 73 15 179 37 188 69 86 30 9 40 121 119 81 26 20 11 54 93 184 157 199 136 29 150 57 5 165 134 49 94 192 70 119 17 113 53 117 177 160 105 153 191 162 176 54 72 134 16 50 193 145 52 147 121 61 144 59\n100\n166 85 39 118 107 68 154 50 32 199 20 135 98 192 116 182 29 116 59 158 183 199 135 157 70 71 142 180 77 6 95 86 3 52 118 35 85 28 78 160 101 149 164 185 26 157 137 41 138 193 96 33 93 168 73 135 109 96 181 161 139 184 123 99 131 49 42 6 50 87 40 169 23 188 67 83 0 158 6 138 63 120 166 158 85 23 29 98 156 70 175 196 83 188 19 146 190 75 69 119\n100\n141 197 145 54 158 58 194 191 141 37 100 32 75 136 38 158 180 85 13 84 53 127 85 26 70 136 81 170 149 148 77 199 35 173 137 151 131 17 33 171 176 129 131 44 142 67 0 128 116 34 199 157 40 181 23 141 131 149 139 99 175 99 163 45 126 1 24 83 189 135 24 95 145 170 83 117 192 152 124 173 140 55 68 70 43 30 156 165 114 180 58 158 124 8 111 67 117 128 190 99\n100\n180 70 190 12 0 64 75 84 82 111 106 68 44 26 36 166 192 188 38 65 12 147 46 59 52 171 56 110 57 66 50 70 145 125 148 74 174 43 29 136 163 16 58 134 101 61 55 15 174 182 139 82 24 100 175 137 176 100 24 64 137 95 125 29 51 188 194 144 106 75 71 90 84 19 179 195 158 7 45 174 38 156 20 32 166 22 157 153 71 155 189 25 29 128 39 127 194 90 48 54\n100\n117 192 130 18 148 56 190 82 143 39 101 93 127 69 193 33 31 192 135 26 42 80 16 161 117 107 120 45 166 121 182 182 6 91 70 15 195 143 163 171 192 135 17 12 81 67 121 152 122 28 30 29 24 99 153 151 194 41 64 183 120 144 188 77 13 2 58 2 153 49 58 175 90 38 23 195 101 5 158 123 87 41 26 130 9 20 135 43 131 74 102 100 71 175 9 30 194 22 136 90\n100\n15 52 154 182 133 188 55 160 145 123 142 59 87 143 147 184 189 68 188 198 80 79 107 13 60 47 46 71 182 144 142 48 36 153 149 88 23 25 51 190 39 46 162 175 24 78 185 103 181 177 150 48 170 94 16 129 126 38 115 72 152 62 21 67 128 65 129 59 82 189 186 19 135 140 66 32 85 22 3 161 96 141 150 32 72 161 170 113 165 45 120 10 128 170 21 196 4 114 199 10\n100\n69 152 35 71 144 30 182 61 195 151 66 83 110 158 172 95 106 14 52 84 105 12 21 141 175 90 125 11 167 182 183 187 193 50 79 68 74 84 29 135 60 105 111 192 24 150 16 60 1 159 109 123 67 100 25 56 140 48 55 7 49 91 160 182 36 19 70 79 125 119 9 101 31 124 7 125 101 83 169 88 164 163 124 134 170 51 197 124 111 67 65 40 179 155 28 61 32 27 160 139\n100\n66 37 48 48 4 48 165 21 133 175 41 114 147 162 154 76 54 58 121 184 88 66 116 56 180 29 137 29 189 43 4 101 184 120 187 136 52 182 128 166 72 193 158 179 183 187 23 197 96 194 101 53 120 103 72 20 132 153 24 33 57 65 132 80 167 166 90 68 126 28 79 144 103 49 33 3 110 40 27 10 127 82 193 187 63 161 165 199 51 118 81 158 103 158 38 178 64 57 172 21\n100\n122 156 67 60 98 143 34 41 19 152 62 11 11 193 5 81 51 160 98 71 42 94 84 135 100 155 155 123 50 88 139 10 17 132 148 10 95 19 48 189 171 51 95 23 37 49 0 7 134 84 177 12 41 104 96 162 137 151 51 132 165 138 45 28 194 126 178 145 128 5 149 57 112 1 199 127 92 153 195 142 167 149 176 55 142 148 103 15 47 73 165 149 137 169 131 170 53 168 52 178\n100\n156 181 95 186 129 131 78 59 152 89 158 38 54 172 8 56 171 147 103 111 174 19 107 5 199 188 61 45 35 92 132 76 67 3 167 99 54 167 12 114 129 193 177 54 12 31 89 126 47 99 89 74 36 12 187 157 103 91 82 29 27 161 152 96 46 183 197 154 32 102 145 76 24 81 195 23 32 143 2 169 82 189 37 199 35 179 54 52 199 150 132 145 93 71 49 190 4 177 105 119\n100\n150 128 28 122 68 185 174 184 51 84 37 115 189 81 74 159 50 146 60 27 33 21 161 18 146 150 63 61 46 58 194 171 145 102 46 20 54 153 160 186 19 135 16 113 135 192 18 65 170 136 125 146 44 112 82 15 105 126 1 173 106 80 193 190 191 14 23 57 100 49 122 85 162 102 68 174 152 48 35 38 162 37 72 192 0 143 119 81 170 191 145 184 114 85 79 199 82 186 119 50\n100\n193 185 116 8 88 99 25 96 169 131 14 102 170 137 198 77 198 51 88 63 53 105 141 67 62 55 81 95 18 72 94 70 138 121 45 123 43 165 118 135 137 199 99 192 154 124 31 66 29 122 156 18 75 92 110 161 132 128 122 149 77 26 148 78 177 138 175 144 125 139 21 140 40 166 81 148 147 151 107 151 110 157 77 9 3 176 140 23 174 54 169 106 85 199 48 130 173 58 16 84\n100\n173 31 4 183 191 22 10 187 164 168 194 179 23 109 57 141 85 77 23 72 28 35 149 117 9 143 67 65 190 91 169 138 4 176 12 191 93 9 20 197 62 128 100 159 42 40 89 94 42 20 86 146 164 86 71 143 66 74 45 188 149 27 154 104 81 46 157 85 114 150 32 73 143 112 32 83 39 168 189 83 9 187 195 45 112 39 135 48 79 7 30 154 1 140 43 118 12 177 23 72\n100\n183 85 86 120 57 102 39 6 76 124 52 37 35 99 116 90 167 6 21 175 120 192 165 147 58 84 131 29 182 105 162 89 123 70 142 82 196 180 169 72 115 51 136 155 174 77 154 129 82 51 169 37 101 76 4 73 161 197 195 125 85 62 29 160 118 73 79 109 62 24 174 82 75 15 143 46 132 168 84 161 72 86 66 89 151 4 33 194 76 198 4 133 68 184 17 164 16 14 66 196\n100\n73 148 110 196 141 191 66 189 20 155 148 51 81 71 25 28 173 54 109 30 38 191 139 53 48 167 54 77 90 197 56 173 189 62 136 29 88 139 185 41 167 120 160 47 181 182 6 189 184 3 160 62 132 192 43 63 123 11 140 92 43 70 119 49 112 176 45 86 156 3 164 98 108 78 138 123 5 11 193 117 143 27 114 90 16 1 139 144 36 12 74 33 140 1 183 135 28 33 37 134\n100\n177 71 122 63 59 140 168 82 48 166 90 27 58 71 106 105 1 34 170 155 107 99 130 75 3 39 194 88 64 73 48 158 80 87 164 113 13 52 170 178 166 104 16 49 177 37 137 59 32 155 105 126 137 166 114 155 90 46 182 35 93 136 46 38 56 3 114 199 41 125 74 124 144 63 149 76 197 134 47 26 43 44 192 161 69 175 139 96 81 71 68 113 66 30 6 109 90 59 84 146\n100\n159 103 6 191 93 196 183 150 157 35 12 67 69 165 103 173 191 116 149 115 118 43 188 97 111 91 74 163 125 7 170 121 127 58 136 75 21 176 199 119 41 11 112 9 35 63 30 114 136 183 32 188 139 105 70 140 68 191 128 185 137 120 124 197 154 103 94 162 65 154 100 102 114 29 194 26 63 128 148 79 151 199 3 42 80 16 90 98 58 130 153 151 62 44 49 85 55 172 89 58\n100\n152 129 40 60 46 27 44 22 136 73 154 133 156 51 191 134 131 122 79 2 176 180 69 188 29 85 2 10 127 74 160 99 42 55 193 65 128 172 84 126 198 123 1 187 88 197 52 175 150 78 55 93 30 6 131 89 165 121 127 164 40 113 189 110 88 163 120 188 21 64 3 154 122 116 54 186 25 124 18 102 120 59 88 82 141 174 100 166 22 154 152 50 116 26 86 2 137 101 101 149\n100\n167 102 65 81 43 110 108 89 58 184 121 106 186 187 171 90 172 118 73 153 81 62 196 13 51 115 4 185 133 164 104 37 53 184 133 172 121 144 170 57 88 129 97 140 123 101 143 76 131 100 48 13 53 111 93 132 51 14 199 16 12 34 49 52 112 141 9 50 180 169 135 162 165 111 17 11 163 121 6 145 43 50 193 64 42 44 33 136 102 25 159 153 7 6 143 129 151 70 195 28\n100\n141 59 20 115 144 178 58 184 138 183 38 137 35 30 182 115 80 21 25 152 4 46 12 4 45 25 44 149 194 129 132 9 116 29 161 133 130 146 132 83 73 39 80 35 187 170 189 29 160 121 197 189 163 44 21 105 15 113 134 199 137 15 164 58 111 183 46 143 137 31 55 51 151 90 52 95 20 61 160 167 73 34 133 191 101 178 187 79 100 15 109 72 61 152 170 23 64 137 50 10\n100\n191 178 43 161 21 118 98 183 133 95 109 72 68 103 64 45 49 50 46 142 44 155 59 168 85 101 168 47 6 187 135 109 164 33 151 140 25 124 146 0 38 31 21 17 24 184 15 144 152 19 70 167 119 174 87 30 145 116 44 99 162 85 115 121 102 72 4 173 133 52 11 29 24 159 183 65 45 150 26 191 97 13 171 186 62 190 184 106 18 22 119 66 18 191 159 166 103 79 98 67\n100\n145 103 30 20 25 134 21 33 35 87 193 27 148 24 92 118 0 44 31 86 95 108 153 197 192 121 19 107 71 22 161 191 52 51 123 165 156 180 61 65 123 100 28 35 153 12 82 76 157 89 92 199 176 61 42 131 60 100 38 80 20 145 129 168 141 162 34 33 70 82 0 160 164 141 99 136 65 33 29 27 54 28 119 184 110 168 17 197 125 6 10 63 48 90 169 144 199 43 155 64\n100\n137 158 6 111 14 147 93 129 187 80 85 164 34 76 15 118 184 47 48 147 155 32 181 37 27 96 59 124 199 53 101 41 4 129 15 165 50 132 83 119 96 39 178 38 41 3 6 20 70 49 5 124 78 187 184 29 139 98 173 38 15 2 41 85 63 11 66 27 183 130 165 82 182 31 35 90 12 56 2 48 113 126 97 64 15 93 107 37 18 138 24 70 183 145 128 59 83 21 137 160\n100\n149 123 83 105 47 113 186 184 9 34 100 170 39 157 68 56 85 192 22 133 135 183 27 99 61 90 135 100 79 173 106 85 45 9 36 181 139 99 101 7 195 19 84 27 155 160 133 52 0 3 88 198 75 169 104 190 43 157 57 119 75 149 190 146 198 67 146 109 80 79 181 7 119 138 25 99 170 14 110 155 32 165 18 120 37 64 109 103 144 50 141 101 144 27 141 110 96 24 83 98\n100\n40 131 170 154 135 103 45 9 14 32 117 30 118 32 13 90 61 132 35 117 45 121 18 5 133 121 46 170 188 194 8 27 35 177 75 5 50 42 54 118 190 124 179 165 154 171 22 44 67 109 10 72 152 74 177 97 170 141 67 141 17 168 65 121 55 127 114 83 137 132 149 162 82 35 192 135 130 134 120 128 88 124 34 33 3 125 122 182 160 65 130 64 23 122 86 108 38 31 165 26\n100\n162 163 178 19 51 141 115 76 168 121 98 187 131 39 139 152 30 74 181 142 118 100 100 34 6 80 190 123 199 168 85 34 55 144 44 108 0 19 118 149 147 180 99 48 84 119 132 140 88 170 97 33 140 22 145 140 127 50 82 47 99 50 130 196 104 131 5 51 82 139 167 170 76 143 156 173 116 157 86 166 33 43 72 14 98 71 137 61 9 120 186 127 41 53 123 128 91 197 99 81\n100\n23 110 71 178 193 90 53 34 66 47 113 22 145 174 88 22 177 119 83 166 5 194 46 124 41 89 98 197 66 60 191 173 65 5 6 38 196 118 62 144 126 15 93 123 169 124 18 169 72 70 161 15 25 129 94 37 195 30 149 100 101 194 161 103 192 159 148 6 13 169 39 55 161 51 10 77 176 139 22 102 24 196 49 23 112 123 114 171 8 20 181 156 98 149 145 97 66 43 48 192\n100\n131 4 95 94 50 149 151 181 198 45 75 45 184 33 100 199 167 97 9 141 31 99 98 174 187 159 62 145 129 59 124 167 166 168 127 94 49 196 142 123 196 17 11 168 48 181 33 174 88 84 68 68 25 4 44 121 160 111 122 151 100 142 30 25 30 51 120 198 127 80 5 182 25 14 12 4 192 9 138 5 66 66 171 80 164 141 26 86 135 133 51 124 76 92 159 151 196 127 7 87\n1\n27\n100\n120 5 127 37 110 183 3 137 83 141 35 21 77 78 80 34 111 29 53 130 8 130 48 32 141 70 16 63 18 15 184 109 174 141 85 8 160 148 85 178 101 171 105 1 196 172 109 131 187 70 125 184 2 127 146 88 152 197 189 95 198 151 18 173 57 119 73 115 68 83 10 59 125 196 39 183 118 159 118 61 167 3 166 138 26 193 82 76 160 138 157 180 154 78 61 68 121 73 98 157\n100\n58 19 145 101 189 16 156 39 125 125 132 178 21 116 162 87 8 138 130 5 90 199 169 7 53 13 56 185 183 148 193 199 162 6 66 135 19 71 64 199 8 47 14 114 12 107 22 127 92 120 199 98 71 186 192 152 17 124 188 93 89 88 14 96 68 146 158 137 145 168 197 25 47 21 37 43 107 70 149 146 39 52 12 20 31 76 91 125 45 99 16 174 56 77 72 136 8 96 109 132\n100\n158 188 144 4 130 127 49 119 68 174 101 161 55 166 127 113 162 180 18 128 89 113 141 23 196 131 40 31 135 32 182 182 50 44 52 57 1 68 33 173 94 19 126 83 133 182 112 36 25 52 12 24 45 96 2 173 158 105 77 158 111 81 50 170 180 53 127 159 116 197 118 118 177 181 65 152 113 171 176 186 74 42 41 109 97 62 48 42 148 192 136 20 17 29 24 181 38 106 161 150\n100\n147 58 39 105 181 68 14 1 116 94 167 45 167 39 163 0 174 44 199 125 80 17 24 49 86 74 57 185 15 58 75 30 182 11 37 70 162 191 28 61 12 96 76 100 158 171 191 48 122 98 150 158 128 145 142 38 60 73 77 93 95 4 13 32 125 104 95 21 48 168 84 20 91 38 32 119 137 166 32 62 134 31 37 94 102 11 114 42 69 34 147 130 103 41 6 11 97 137 102 15\n100\n63 117 117 199 151 43 138 182 54 87 12 112 122 37 174 91 8 118 51 77 23 52 11 30 189 1 15 87 128 29 121 187 63 127 88 77 114 46 75 82 31 39 19 169 47 162 6 160 152 105 161 120 180 41 150 139 138 124 151 5 140 189 25 82 104 53 180 30 11 6 58 187 51 127 30 22 147 7 96 114 5 149 6 10 115 135 188 185 134 113 23 76 163 177 126 122 107 129 66 27\n100\n25 100 48 175 130 157 13 96 16 92 105 51 7 130 103 147 52 55 84 135 194 146 190 36 47 105 7 78 158 81 146 99 22 192 13 8 52 41 191 176 124 57 108 146 158 32 63 27 31 41 79 37 100 37 109 150 54 140 197 27 179 46 139 38 81 98 192 21 97 93 13 6 129 93 151 16 194 38 188 75 171 21 180 83 166 99 156 9 66 68 159 195 184 128 94 132 66 58 66 63\n100\n113 31 86 160 166 49 122 60 83 173 166 106 146 74 108 146 70 20 66 69 178 127 38 84 159 167 178 30 121 191 90 93 44 9 107 40 123 22 47 150 25 62 182 169 140 1 55 105 126 87 63 179 166 78 145 9 86 106 120 43 6 42 161 183 138 17 195 109 199 97 195 142 52 167 140 103 55 155 52 56 45 62 197 50 189 65 105 127 47 27 103 76 65 75 46 181 3 15 63 160\n100\n116 181 177 133 28 184 103 44 76 174 108 135 2 135 41 186 193 120 14 144 57 112 104 96 91 106 26 16 183 133 111 176 105 65 6 98 18 19 191 24 67 50 134 95 175 75 94 187 65 162 39 108 60 82 186 95 122 135 148 159 119 138 66 173 150 60 141 93 148 6 118 68 12 65 19 127 171 114 42 150 149 128 61 177 136 25 6 65 183 153 5 26 153 165 145 127 180 31 180 183\n100\n147 123 81 63 144 49 26 40 62 91 29 98 198 178 127 25 60 69 180 23 147 2 165 82 23 55 187 7 9 130 91 111 144 144 75 89 5 156 124 17 56 48 160 80 50 88 166 67 178 173 43 48 132 176 163 198 135 16 57 180 166 61 91 133 129 85 50 91 93 88 88 186 57 159 27 110 26 90 41 64 66 74 92 148 12 92 16 158 27 159 42 39 163 48 196 50 96 196 78 108\n100\n86 37 103 123 1 41 45 30 94 0 193 54 194 4 142 124 169 181 43 27 1 102 23 38 161 34 101 5 100 132 56 36 10 117 193 77 192 110 190 8 175 89 69 191 139 35 106 39 173 69 173 44 27 195 136 195 102 116 7 22 164 148 8 172 8 190 157 47 31 86 96 106 67 14 190 67 5 111 183 53 39 26 142 129 40 127 140 86 43 47 153 70 10 5 109 171 71 42 132 42\n100\n20 25 81 118 188 151 52 57 65 175 30 151 102 150 188 147 72 90 19 117 193 160 156 92 93 199 32 49 73 143 133 44 56 86 25 164 0 132 22 145 53 109 95 147 108 119 34 136 123 44 182 90 175 146 39 48 165 162 168 119 69 182 113 87 140 166 33 90 121 36 77 195 106 63 49 20 56 133 166 155 57 21 61 101 60 116 163 138 178 197 134 188 99 70 199 115 166 65 32 74\n100\n78 137 0 48 193 158 157 71 58 82 17 65 106 20 112 4 2 197 136 43 116 178 106 24 115 73 160 78 136 119 8 188 182 121 16 23 112 186 170 166 42 68 58 76 62 146 181 153 104 38 197 122 195 111 115 187 21 37 4 178 40 64 166 94 131 165 156 184 65 106 65 0 184 189 2 11 157 7 7 27 86 143 35 112 31 77 49 6 1 35 146 159 176 11 108 90 164 197 125 107\n100\n83 15 177 94 180 155 168 134 183 11 116 3 148 0 41 60 73 123 189 32 23 187 178 139 103 137 90 63 177 1 3 113 30 114 99 198 103 198 117 190 68 174 92 48 106 184 48 126 167 35 7 177 71 5 30 120 45 58 159 198 42 8 77 66 33 105 78 90 111 40 17 2 69 143 48 26 160 57 63 46 90 68 126 186 10 49 139 13 162 158 20 37 15 75 172 76 190 29 155 10\n100\n77 184 75 35 176 40 48 129 190 33 167 37 123 45 3 194 86 134 52 75 141 125 1 55 104 178 191 33 60 125 26 125 90 189 107 135 47 119 83 14 28 113 48 26 40 127 109 66 165 165 87 73 176 150 53 153 29 109 143 0 171 11 178 163 188 168 2 160 168 173 66 160 18 185 1 85 19 146 13 96 189 94 4 119 19 27 88 61 95 52 43 90 147 165 124 84 125 153 192 110\n100\n197 97 5 112 56 56 130 31 34 101 171 38 56 65 36 69 124 186 172 2 52 71 180 125 180 108 199 137 67 128 12 31 84 93 58 140 87 88 77 159 159 130 30 76 140 38 191 60 76 60 94 128 37 53 185 139 127 128 196 104 168 196 175 13 183 191 148 46 133 159 127 173 1 7 95 152 35 60 52 171 195 120 73 88 67 175 163 12 74 49 130 28 195 183 33 127 45 0 185 190\n100\n172 38 171 193 96 173 61 108 116 100 139 27 97 72 178 89 172 93 58 199 78 166 10 42 195 167 177 54 54 192 2 26 194 45 174 148 83 44 81 175 70 47 118 98 167 194 172 67 138 191 189 68 60 112 100 12 34 77 175 17 90 47 190 140 105 84 43 14 164 100 98 82 75 170 123 98 51 64 77 23 60 164 117 67 170 119 55 97 127 65 100 88 169 13 198 44 159 50 56 5\n100\n10 28 113 20 82 32 66 187 31 64 101 180 185 102 73 53 194 27 188 154 2 66 168 147 171 137 33 112 62 120 101 155 85 86 117 141 163 48 132 67 153 146 13 194 107 75 66 129 82 108 2 94 171 106 98 155 144 44 24 178 101 31 140 103 125 128 159 189 70 49 112 188 163 0 141 114 105 44 111 175 84 106 58 197 194 159 123 15 96 22 58 73 76 196 106 105 195 187 143 141\n100\n139 188 39 77 172 152 196 82 171 185 129 184 47 68 139 199 15 122 42 112 107 31 48 54 171 90 9 58 125 127 68 164 155 105 89 7 155 196 123 141 49 34 184 26 186 11 22 69 58 11 0 4 185 103 162 8 122 40 1 137 12 147 119 91 148 160 5 25 90 130 81 88 195 38 11 184 47 55 171 102 100 161 117 165 139 101 23 15 9 53 2 31 185 89 7 144 135 64 12 27\n100\n184 155 95 85 49 38 155 15 141 56 9 19 27 62 48 179 143 131 151 51 96 98 179 138 106 191 101 13 181 51 69 86 77 142 141 155 35 58 199 161 180 295 184 138 113 56 193 173 71 31 52 53 199 23 100 36 0 166 192 146 164 103 81 152 9 133 122 82 89 42 104 69 140 136 65 5 12 72 26 155 25 10 156 188 46 68 14 13 196 126 65 85 181 29 56 188 116 38 198 115\n100\n99 22 133 68 29 143 116 28 61 190 24 141 47 147 119 81 182 89 30 3 149 190 191 168 145 117 145 167 70 138 186 125 2 182 95 28 55 196 120 141 13 146 78 27 103 124 86 186 165 197 68 16 18 144 4 163 79 15 172 43 7 17 126 17 180 57 69 136 58 100 22 74 35 28 114 158 99 27 192 121 140 89 136 43 93 146 21 28 94 18 2 143 96 27 17 85 3 72 176 85\n100\n111 66 54 154 142 43 100 150 66 9 134 198 100 182 116 85 93 53 124 21 48 111 75 43 103 23 116 123 85 3 112 117 84 69 7 166 104 184 181 65 172 30 160 87 115 145 193 21 42 65 49 158 148 166 70 96 93 103 167 83 60 114 44 15 114 124 161 125 0 67 172 49 17 18 13 158 179 69 86 75 124 46 187 117 82 71 140 101 35 25 73 147 6 188 117 43 138 184 157 39\n100\n94 60 131 53 65 37 190 171 27 97 60 184 91 99 91 140 90 106 13 98 23 190 162 125 21 195 146 178 154 1 123 13 98 146 87 78 12 118 82 84 114 156 19 58 127 130 1 26 92 166 24 144 155 102 19 88 184 21 156 35 68 199 10 13 108 135 115 162 154 102 34 115 10 63 74 92 184 81 148 40 24 101 181 102 93 96 20 101 55 179 178 14 7 73 99 66 68 185 124 164\n100\n187 29 118 111 2 122 42 187 142 97 188 172 38 13 133 148 31 150 196 59 9 29 117 124 106 121 189 25 138 9 69 81 39 107 29 113 154 85 50 193 49 194 2 8 134 127 72 107 96 142 172 50 8 19 21 83 127 173 105 44 158 175 44 91 134 152 183 24 186 63 131 101 153 155 126 196 128 51 61 10 80 153 52 91 91 52 9 126 69 134 63 130 121 67 49 17 65 11 125 108\n",
"100\n100\n41 67 134 100 169 124 78 158 162 64 105 145 81 27 161 91 195 142 27 36 191 4 102 153 92 182 21 116 118 95 47 126 171 138 69 112 67 99 35 94 103 11 122 133 73 64 141 111 53 68 147 44 62 157 37 59 123 141 129 178 116 35 190 42 88 106 40 142 64 48 46 5 90 129 170 150 6 101 193 148 29 23 84 154 156 40 166 176 131 108 144 39 26 123 137 138 118 82 129 141\n100\n33 115 39 58 104 130 177 106 73 186 21 145 124 72 70 29 177 173 97 112 186 90 161 36 155 167 55 174 31 52 150 150 141 124 166 30 107 191 7 137 57 87 153 183 145 109 9 158 21 188 22 146 106 30 13 168 100 191 162 55 10 159 24 137 148 83 195 41 2 150 91 36 174 20 196 21 148 199 68 84 81 134 53 199 18 138 100 188 127 67 128 93 48 83 7 21 110 17 13 114\n100\n109 16 135 51 0 49 119 156 198 103 24 8 44 9 189 102 195 85 93 143 123 187 114 103 48 0 58 18 180 196 198 81 189 198 9 157 72 22 138 92 38 179 190 57 158 191 15 88 156 111 2 34 72 55 128 46 162 86 75 33 69 142 44 16 81 198 122 51 21 99 157 76 92 189 75 112 0 110 3 69 61 88 1 189 55 23 2 185 182 85 88 26 17 157 32 132 169 154 121 189\n100\n176 129 168 92 25 155 34 149 41 112 145 60 118 153 139 23 79 196 87 129 149 37 66 149 193 195 97 16 86 105 88 82 55 134 114 101 116 71 186 63 113 155 185 53 112 8 32 145 113 156 121 158 46 182 81 144 196 22 129 161 135 50 173 66 44 59 92 39 53 24 154 110 145 49 186 113 74 22 168 18 187 105 158 191 2 25 77 14 114 24 134 74 172 159 33 70 87 97 118 177\n100\n173 70 163 68 192 185 102 80 13 27 2 99 127 25 143 124 23 172 61 181 3 32 105 193 125 31 92 142 22 86 64 100 187 160 13 174 70 170 35 33 111 160 96 67 85 150 140 94 95 24 19 125 176 94 58 102 171 66 78 193 51 84 18 64 119 152 0 87 60 126 10 157 170 115 176 27 43 158 164 109 82 86 165 87 177 74 25 27 29 128 23 120 102 162 123 196 137 61 195 125\n100\n64 60 2 116 30 126 11 171 11 147 153 120 190 124 188 163 140 51 62 29 100 113 158 178 165 7 77 0 58 39 103 160 157 124 77 108 113 87 1 50 60 28 193 184 5 140 111 104 35 156 72 150 23 85 156 16 26 157 126 157 137 71 69 161 96 22 17 112 117 96 185 41 23 129 29 165 159 132 96 55 53 162 184 134 54 172 57 169 132 163 7 83 111 35 67 48 75 138 23 142\n100\n154 111 141 175 59 25 21 70 26 134 5 183 50 198 79 101 193 134 37 134 156 193 176 105 162 148 81 100 13 41 55 55 142 62 11 77 24 78 152 43 96 73 40 113 75 72 18 10 17 132 112 95 169 31 40 88 85 90 97 189 190 145 153 114 51 140 44 58 135 159 192 5 64 181 103 29 175 8 92 197 149 156 161 27 67 141 129 40 13 174 1 77 15 83 13 192 24 1 192 159\n100\n70 28 27 84 75 186 98 170 87 47 4 103 21 63 106 163 10 171 89 40 164 142 19 113 191 104 18 32 150 5 175 139 103 22 98 47 184 48 171 64 113 75 145 112 146 78 169 62 119 185 89 144 65 140 45 108 118 70 1 123 132 72 152 87 170 163 101 103 23 127 0 169 15 165 28 143 147 88 143 37 9 63 49 81 188 142 8 60 21 158 154 88 146 90 149 43 30 20 148 67\n100\n136 183 35 26 185 38 53 29 24 148 123 159 57 166 144 155 118 126 11 25 155 1 149 96 184 115 164 142 75 113 142 196 148 72 26 6 173 29 4 105 26 12 175 93 165 36 136 141 14 194 56 52 136 38 82 155 15 131 30 41 25 11 37 186 90 50 62 34 93 153 16 52 8 62 33 54 103 34 103 56 148 124 117 13 109 28 0 80 118 58 50 155 161 64 103 76 43 109 102 161\n100\n89 148 82 53 74 20 2 123 31 169 78 59 8 19 171 3 145 181 104 192 85 113 98 189 122 138 37 10 61 34 108 161 159 93 115 69 137 69 58 100 171 64 117 15 155 15 130 39 12 88 82 154 85 110 84 174 180 15 151 141 115 79 110 98 73 188 177 132 156 89 113 8 141 190 123 163 28 184 178 0 71 85 174 71 133 67 153 95 168 25 76 29 50 198 109 93 86 80 116 49\n100\n67 128 79 64 21 5 26 16 116 126 66 87 81 164 140 86 21 62 121 64 109 15 102 73 124 141 145 162 23 131 6 68 118 2 107 107 81 12 136 30 114 9 84 156 90 93 196 152 54 145 108 48 91 112 131 114 39 158 122 104 195 52 69 79 38 23 118 66 59 98 86 196 62 33 158 22 146 192 37 125 47 58 2 7 98 30 92 0 78 199 152 48 82 140 115 175 162 167 136 197\n100\n18 97 28 51 16 30 49 125 58 29 120 140 160 147 162 55 75 192 161 154 198 146 114 146 188 169 38 63 75 115 121 75 15 128 34 170 105 64 157 162 161 124 149 69 130 123 150 133 125 110 137 136 137 78 193 36 114 164 191 149 135 105 137 4 137 23 64 170 8 168 81 85 152 173 52 194 76 26 196 172 49 40 174 19 143 11 141 89 19 165 5 185 16 50 15 9 64 166 93 74\n100\n109 100 95 173 189 161 172 168 158 31 68 26 110 22 174 179 110 152 182 191 95 164 74 164 102 55 60 74 172 21 122 147 177 189 5 195 194 150 143 154 81 12 72 39 28 112 162 167 8 15 108 23 159 34 4 86 119 158 145 6 166 100 167 92 187 132 156 174 47 21 83 22 131 176 183 148 123 182 18 176 20 111 182 56 90 125 124 86 77 169 43 134 77 68 68 191 196 183 28 127\n100\n26 71 97 12 103 27 8 145 108 185 38 37 43 113 101 50 128 111 50 149 192 54 69 81 65 67 113 193 34 72 172 30 101 42 177 77 170 102 164 181 190 23 37 23 179 195 169 127 42 110 182 58 126 87 70 128 51 58 13 60 183 86 142 10 72 128 34 41 118 103 67 65 138 81 57 150 14 198 58 61 63 156 7 78 89 35 165 75 186 186 25 160 130 48 128 92 33 40 166 135\n100\n10 199 37 92 182 128 152 169 44 194 8 52 47 32 135 8 64 97 43 49 15 41 189 100 12 48 123 51 74 33 91 0 54 190 97 119 180 178 131 144 140 87 99 125 83 138 92 193 52 11 160 34 40 97 185 129 140 5 191 192 10 149 178 179 171 77 73 193 20 97 26 76 190 182 178 159 18 89 159 49 124 72 180 8 167 8 77 103 170 7 196 74 122 11 19 161 56 90 163 83\n100\n116 132 52 141 154 13 62 196 60 15 104 199 136 80 198 32 187 184 40 117 6 70 41 82 49 123 158 105 21 95 96 116 78 178 179 58 177 150 7 129 81 195 78 76 153 99 184 165 93 8 172 43 129 114 168 55 191 173 122 148 51 186 144 46 177 117 29 116 74 191 69 112 146 93 91 15 149 57 40 52 36 151 87 26 162 155 183 194 180 97 65 65 113 61 178 78 78 140 11 147\n100\n45 170 175 89 91 149 133 65 14 82 7 32 96 167 122 82 10 41 31 187 105 79 121 138 151 47 8 46 76 159 189 22 66 86 55 28 14 60 53 177 148 103 61 31 82 55 197 106 152 21 96 81 21 55 147 124 118 135 176 174 59 198 74 53 122 35 43 88 153 32 147 80 126 78 50 1 161 199 55 163 116 173 161 45 73 74 150 153 181 87 99 110 43 65 172 129 181 112 76 181\n100\n47 90 71 5 172 32 189 120 165 31 58 93 6 178 148 6 171 166 196 97 20 94 129 188 109 184 169 178 17 15 26 84 168 106 128 97 118 190 199 185 86 199 20 110 71 13 15 85 118 180 131 67 187 44 186 107 160 27 74 31 152 71 68 93 85 137 111 4 77 6 168 22 13 0 142 137 38 188 155 89 47 181 93 184 187 161 93 17 101 82 47 65 153 104 84 95 125 21 164 181\n100\n72 106 56 143 193 80 80 68 11 113 168 51 16 79 168 40 131 133 179 63 59 53 136 95 165 74 120 35 80 176 55 125 71 8 159 156 2 32 105 40 175 162 85 162 80 36 197 2 108 80 140 76 58 93 140 146 74 173 97 80 135 72 0 107 155 66 141 188 81 168 115 196 25 9 12 136 55 162 43 142 21 122 112 48 18 168 117 114 50 90 135 159 169 95 103 40 179 199 105 191\n100\n61 81 52 153 33 29 187 42 53 83 20 14 118 44 63 29 52 64 169 70 5 47 194 87 126 76 123 140 79 190 188 110 71 145 21 70 183 189 155 178 179 6 62 135 87 196 33 88 135 179 193 190 162 165 1 105 7 167 69 134 71 57 198 145 197 18 38 44 172 163 28 64 1 123 90 4 1 27 197 92 171 163 101 163 121 165 21 45 10 95 141 22 12 151 15 55 193 138 79 82\n100\n8 54 22 107 45 138 144 90 139 154 4 23 25 78 124 181 130 133 23 194 130 46 187 45 5 16 150 89 138 163 135 97 9 30 24 108 137 74 120 172 93 55 134 161 56 6 184 75 182 119 141 32 84 179 79 83 67 36 125 118 137 28 119 177 137 91 156 195 60 101 193 32 136 180 75 107 184 74 119 190 76 41 151 129 90 174 72 191 189 187 90 39 93 53 63 81 103 5 176 79\n100\n95 139 68 198 83 39 115 21 193 26 122 38 28 181 199 178 91 23 143 34 43 149 102 107 102 141 87 146 91 37 13 0 16 90 162 135 126 10 77 182 60 189 105 74 63 122 195 166 160 38 188 11 45 67 25 67 189 142 63 147 102 17 99 23 26 3 48 51 170 36 58 167 56 5 131 162 19 175 156 131 95 44 191 3 188 115 50 119 72 191 183 133 175 42 169 100 154 78 185 57\n100\n133 93 90 103 150 33 122 71 11 190 138 41 58 47 152 58 79 102 83 190 2 168 22 95 135 8 161 142 194 99 188 178 42 157 141 47 69 145 180 113 164 110 61 185 73 104 62 103 102 69 154 129 152 74 149 130 44 44 49 118 65 163 152 173 70 131 147 111 69 198 98 103 152 79 53 43 122 88 163 34 50 22 40 111 92 51 180 77 16 76 178 20 15 148 198 179 35 57 83 62\n100\n102 62 20 170 22 73 41 86 88 117 117 92 98 67 149 65 189 132 19 81 3 130 28 31 189 152 30 172 64 7 95 28 81 90 10 177 71 36 59 43 40 33 37 93 30 74 193 182 3 61 90 62 107 197 151 23 90 117 40 103 166 83 61 59 45 186 51 165 1 40 9 97 83 50 58 21 175 181 187 71 87 199 104 179 138 100 130 61 118 5 140 28 59 22 198 160 98 135 81 14\n100\n167 93 196 161 146 138 70 138 76 155 117 171 160 152 158 33 55 65 126 1 34 159 193 148 73 192 193 133 137 103 90 11 94 68 27 98 189 48 79 47 149 131 69 75 198 49 36 199 123 43 131 154 61 34 185 167 16 193 104 66 153 108 23 84 192 67 48 69 130 11 14 90 27 143 4 199 74 195 106 158 189 58 9 89 47 40 18 164 175 26 89 103 66 12 40 170 76 195 41 186\n100\n51 109 187 83 85 190 50 86 155 181 128 102 77 62 24 165 72 32 85 28 46 89 78 83 125 65 60 45 178 21 55 120 127 173 134 51 75 136 134 1 137 110 174 190 156 71 80 135 145 82 25 118 173 112 37 198 105 162 117 92 139 47 146 103 31 115 39 58 29 45 194 199 45 72 75 62 72 173 80 38 97 142 8 3 77 125 134 1 78 182 169 136 78 139 138 121 26 63 77 175\n100\n124 181 100 161 62 2 48 95 84 16 137 107 193 84 144 59 21 58 43 68 77 119 57 41 91 64 23 115 72 129 41 115 15 136 157 159 100 52 93 41 29 48 27 198 24 124 74 133 85 38 170 62 29 84 109 78 123 85 0 24 193 105 12 165 167 7 77 184 104 190 34 91 21 85 134 190 142 198 86 18 21 24 197 176 54 69 108 127 93 68 166 102 38 0 19 118 90 184 139 156\n100\n8 32 78 14 187 39 74 20 27 154 188 41 198 42 2 121 104 146 56 109 33 108 161 133 86 4 185 142 42 60 161 20 143 178 187 113 63 191 134 15 56 161 12 11 159 51 138 170 124 107 7 184 151 101 89 158 41 190 13 12 55 60 93 72 2 76 143 173 66 51 75 128 132 161 69 103 129 107 92 51 153 192 170 119 72 7 94 105 40 183 62 9 7 38 160 71 171 54 147 114\n100\n123 29 89 166 87 156 32 70 139 66 122 83 160 153 105 91 59 186 87 29 42 117 45 156 188 52 154 66 33 160 119 31 138 67 176 98 114 120 53 7 69 16 122 42 7 63 60 147 193 30 117 43 176 114 26 117 134 20 171 192 164 154 66 93 64 175 0 12 100 151 76 179 143 77 189 161 185 72 34 144 161 163 104 146 88 108 157 30 123 64 74 146 37 181 118 11 92 191 32 123\n100\n61 191 61 130 98 169 91 0 179 117 117 114 195 41 136 67 28 53 109 173 181 103 169 16 83 167 185 2 30 157 81 167 110 66 87 171 77 45 164 38 71 47 115 192 111 57 5 53 171 180 140 130 75 120 190 177 198 186 4 89 31 144 188 10 118 119 59 127 9 119 79 116 100 196 53 58 30 193 6 49 54 72 160 94 54 133 146 29 71 28 159 41 21 88 166 33 85 70 129 61\n100\n60 8 182 162 106 78 179 97 87 138 69 183 140 195 66 33 109 157 117 134 53 135 58 193 43 93 66 151 140 94 137 174 112 97 151 95 17 92 92 37 130 13 96 110 189 28 9 186 144 40 182 169 120 193 92 162 14 127 7 194 105 113 11 113 93 64 3 195 162 181 146 109 48 168 24 111 154 35 127 33 40 62 127 177 17 140 142 100 0 158 76 154 135 30 31 95 137 23 122 127\n100\n29 11 11 154 80 53 93 121 185 128 43 0 155 71 70 52 175 31 40 134 40 186 34 48 139 165 196 112 62 52 131 187 64 157 48 156 170 50 182 101 93 99 132 44 131 75 4 50 26 66 138 1 23 43 41 180 95 118 59 163 28 129 88 54 13 179 169 66 79 177 37 2 115 92 123 72 48 123 153 148 195 197 108 108 11 193 65 181 2 10 28 56 105 165 23 169 115 53 5 84\n100\n78 145 40 33 85 100 168 194 33 85 148 81 32 56 110 72 182 101 106 35 60 71 127 137 143 168 33 195 171 3 142 11 79 34 112 193 130 161 34 58 126 106 191 43 188 27 119 84 24 93 35 24 94 182 67 27 5 146 86 189 140 37 50 159 178 156 77 3 42 100 11 25 143 195 16 15 4 6 168 41 135 98 125 113 23 112 18 57 196 139 86 94 46 43 122 111 80 55 158 47\n100\n70 190 73 127 13 54 96 72 50 41 41 46 125 13 24 129 95 3 194 193 67 187 40 79 41 125 134 60 0 107 21 92 93 117 117 3 143 93 39 11 125 28 178 148 50 92 44 54 23 153 36 147 146 26 61 104 38 171 86 5 99 56 128 67 151 19 191 166 117 46 93 187 21 112 67 99 44 97 1 128 142 104 168 168 41 96 62 120 44 118 25 19 184 174 184 59 149 14 95 103\n100\n32 51 137 14 163 51 19 90 117 83 118 184 52 186 69 48 137 197 24 168 27 148 193 182 71 69 93 77 14 104 84 143 95 11 93 92 198 190 99 90 93 74 149 174 114 173 69 18 65 33 38 111 52 63 108 149 88 45 31 120 106 71 168 21 58 157 47 182 38 122 123 106 106 189 156 145 151 123 118 150 97 36 191 6 110 13 51 80 44 143 141 45 178 149 105 114 185 27 24 4\n100\n156 117 27 155 102 86 68 98 179 11 89 158 90 175 10 132 89 96 150 112 122 129 72 36 77 153 176 70 85 52 151 197 151 1 35 93 72 116 116 128 111 125 38 96 139 144 56 26 102 158 188 21 186 108 177 28 179 147 149 80 45 128 62 26 119 77 91 47 185 31 6 84 154 169 109 156 21 145 65 16 60 97 135 190 77 49 5 86 188 75 143 177 130 87 155 82 53 0 154 89\n100\n88 15 8 110 140 199 197 107 54 104 37 85 99 192 13 12 82 183 151 129 137 33 0 64 83 57 168 110 168 108 41 132 37 84 99 101 69 183 56 92 40 87 12 10 20 35 63 15 97 77 174 134 153 133 78 86 24 134 75 149 112 184 24 192 104 22 55 113 62 73 84 160 122 53 197 22 150 137 117 6 131 197 105 36 157 199 90 98 185 47 84 192 125 196 55 28 138 142 28 195\n100\n142 37 106 167 53 193 105 146 9 124 54 65 39 6 9 92 99 175 36 61 47 18 13 127 112 96 109 41 130 90 34 115 86 123 66 144 136 37 16 93 149 171 44 177 85 0 190 85 125 118 68 6 129 8 141 25 136 180 116 70 184 147 128 136 4 100 123 164 11 40 50 104 83 166 141 70 45 106 88 56 107 66 57 78 199 74 155 191 190 32 58 196 117 90 167 107 34 46 62 2\n100\n39 26 95 106 114 150 186 79 176 22 79 101 12 76 164 157 170 38 112 144 161 180 0 43 56 61 47 139 8 90 52 179 18 19 7 84 147 177 75 13 109 171 42 139 136 21 101 34 129 158 36 69 97 104 198 2 105 38 32 65 116 81 179 23 127 171 113 182 140 16 88 119 189 113 59 51 71 83 164 38 12 184 159 101 174 133 59 114 49 195 122 141 16 177 52 165 91 138 110 167\n100\n55 187 24 22 39 41 48 4 34 168 41 72 68 174 176 137 33 41 145 18 15 174 52 46 156 124 166 181 144 40 134 96 76 27 5 18 91 41 65 191 71 59 100 17 16 143 24 64 105 157 102 66 75 46 32 189 46 145 3 152 101 126 153 184 49 150 5 146 25 170 136 195 193 123 132 56 96 10 176 92 150 90 195 52 150 115 36 161 160 184 129 134 50 82 6 136 184 190 17 182\n100\n66 116 188 25 101 10 50 182 21 193 38 154 193 95 80 38 167 20 145 83 65 96 33 190 32 189 39 183 17 129 153 79 13 0 52 145 61 151 118 163 13 107 154 76 17 11 29 64 166 131 142 98 122 155 187 57 158 64 162 110 146 65 180 165 146 140 97 42 64 194 184 70 115 0 6 106 102 96 33 11 67 15 45 175 154 48 119 79 188 121 192 197 197 109 52 71 58 122 59 197\n100\n199 99 120 120 36 184 112 115 153 85 141 199 167 8 44 169 81 79 108 7 59 106 49 75 26 124 7 174 84 128 146 145 81 114 149 168 138 107 193 104 105 97 17 155 41 143 133 97 79 136 155 33 154 130 52 104 79 88 70 154 72 176 101 15 86 31 80 175 60 114 138 57 190 38 181 47 42 18 70 31 61 19 181 190 33 72 163 102 102 128 121 98 47 145 6 22 86 194 177 44\n100\n83 147 40 85 64 123 137 53 168 130 55 66 58 112 56 118 1 142 76 106 102 84 23 70 112 50 75 111 50 195 88 120 101 183 198 92 48 184 45 187 62 143 58 59 71 16 172 32 41 83 88 15 176 116 98 39 83 5 197 146 169 75 117 187 20 30 42 135 189 173 80 73 177 186 181 185 122 145 179 85 113 135 135 83 186 96 48 85 152 121 60 182 36 88 119 36 192 65 78 198\n100\n96 186 11 176 147 121 2 45 102 164 139 172 57 170 120 54 159 80 98 191 160 110 191 67 33 75 136 99 175 190 176 56 72 103 86 167 115 142 95 166 56 186 37 198 26 164 85 65 108 140 160 14 154 12 152 138 106 125 30 49 179 79 113 38 117 21 145 191 169 39 108 165 162 73 81 170 147 53 108 108 115 29 66 89 63 171 141 59 31 172 114 166 188 170 168 199 55 50 44 136\n100\n78 6 27 113 123 171 127 73 61 173 134 102 187 17 63 153 126 195 95 13 6 170 59 105 96 33 23 52 79 119 126 193 185 65 171 44 107 71 87 99 119 196 115 152 92 153 57 190 159 157 86 9 65 86 19 59 113 35 28 101 68 69 56 131 178 74 195 43 74 116 24 111 185 122 171 57 95 174 38 183 58 95 122 183 31 103 32 100 190 80 8 105 102 58 18 157 161 120 28 56\n100\n113 132 92 182 67 120 158 74 187 94 183 164 64 114 146 190 25 55 163 67 192 31 19 80 118 128 148 120 79 91 166 187 8 126 25 159 118 20 35 114 56 147 156 134 160 151 8 78 94 189 124 176 94 90 189 172 19 101 102 44 123 139 9 27 37 186 16 27 169 23 99 114 15 44 36 69 178 76 58 152 46 137 115 188 16 88 182 74 133 115 56 56 62 16 124 129 42 184 72 49\n100\n196 26 182 2 175 16 65 152 159 155 17 44 154 43 24 199 22 121 133 13 117 193 73 60 175 74 185 101 22 8 195 26 120 91 188 129 72 177 193 8 54 122 76 137 16 3 90 112 89 53 179 99 122 102 2 169 54 129 134 38 74 26 63 134 172 148 53 103 107 118 133 37 95 179 61 144 59 161 107 176 72 45 192 172 28 196 11 135 35 29 116 132 156 158 149 20 96 124 120 126\n100\n6 183 45 174 91 188 138 64 104 77 153 142 4 23 52 25 11 42 124 149 135 190 146 128 55 4 141 109 181 179 102 83 92 132 112 99 161 47 5 90 169 159 28 139 28 180 71 178 40 56 148 44 145 125 10 98 16 180 15 64 26 72 79 193 82 5 136 133 105 187 132 38 165 64 118 199 32 108 96 38 178 38 45 59 169 144 162 169 49 118 67 158 143 61 3 190 186 26 3 4\n100\n100 168 23 147 196 166 30 65 152 0 17 173 186 68 197 179 24 128 60 158 25 67 112 134 52 169 162 170 11 35 90 111 64 150 160 145 167 154 187 17 165 142 88 73 15 179 37 188 69 86 30 9 40 121 119 81 26 20 11 54 93 184 157 199 136 29 150 57 5 165 134 49 94 192 70 119 17 113 53 117 177 160 105 153 191 162 176 54 72 134 16 50 193 145 52 147 121 61 144 59\n100\n166 85 39 118 107 68 154 50 32 199 20 135 98 192 116 182 29 116 59 158 183 199 135 157 70 71 142 180 77 6 95 86 3 52 118 35 85 28 78 160 101 149 164 185 26 157 137 41 138 193 96 33 93 168 73 135 109 96 181 161 139 184 123 99 131 49 42 6 50 87 40 169 23 188 67 83 0 158 6 138 63 120 166 158 85 23 29 98 156 70 175 196 83 188 19 146 190 75 69 119\n100\n141 197 145 54 158 58 194 191 141 37 100 32 75 136 38 158 180 85 13 84 53 127 85 26 70 136 81 170 149 148 77 199 35 173 137 151 131 17 33 171 176 129 131 44 142 67 0 128 116 34 199 157 40 181 23 141 131 149 139 99 175 99 163 45 126 1 24 83 189 135 24 95 145 170 83 117 192 152 124 173 140 55 68 70 43 30 156 165 114 180 58 158 124 8 111 67 117 128 190 99\n100\n180 70 190 12 0 64 75 84 82 111 106 68 44 26 36 166 192 188 38 65 12 147 46 59 52 171 56 110 57 66 50 70 145 125 148 74 174 43 29 136 163 16 58 134 101 61 55 15 174 182 139 82 24 100 175 137 176 100 24 64 137 95 125 29 51 188 194 144 106 75 71 90 84 19 179 195 158 7 45 174 38 156 20 32 166 22 157 153 71 155 189 25 29 128 39 127 194 90 48 54\n100\n117 192 130 18 148 56 190 82 143 39 101 93 127 69 193 33 31 192 135 26 42 80 16 161 117 107 120 45 166 121 182 182 6 91 70 15 195 143 163 171 192 135 17 12 81 67 121 152 122 28 30 29 24 99 153 151 194 41 64 183 120 144 188 77 13 2 58 2 153 49 58 175 90 38 23 195 101 5 158 123 87 41 26 130 9 20 135 43 131 74 102 100 71 175 9 30 194 22 136 90\n100\n15 52 154 182 133 188 55 160 145 123 142 59 87 143 147 184 189 68 188 198 80 79 107 13 60 47 46 71 182 144 142 48 36 153 149 88 23 25 51 190 39 46 162 175 24 78 185 103 181 177 150 48 170 94 16 129 126 38 115 72 152 62 21 67 128 65 129 59 82 189 186 19 135 140 66 32 85 22 3 161 96 141 150 32 72 161 170 113 165 45 120 10 128 170 21 196 4 114 199 10\n100\n69 152 35 71 144 30 182 61 195 151 66 83 110 158 172 95 106 14 52 84 105 12 21 141 175 90 125 11 167 182 183 187 193 50 79 68 74 84 29 135 60 105 111 192 24 150 16 60 1 159 109 123 67 100 25 56 140 48 55 7 49 91 160 182 36 19 70 79 125 119 9 101 31 124 7 125 101 83 169 88 164 163 124 134 170 51 197 124 111 67 65 40 179 155 28 61 32 27 160 139\n100\n66 37 48 48 4 48 165 21 133 175 41 114 147 162 154 76 54 58 121 184 88 66 116 56 180 29 137 29 189 43 4 101 184 120 187 136 52 182 128 166 72 193 158 179 183 187 23 197 96 194 101 53 120 103 72 20 132 153 24 33 57 65 132 80 167 166 90 68 126 28 79 144 103 49 33 3 110 40 27 10 127 82 193 187 63 161 165 199 51 118 81 158 103 158 38 178 64 57 172 21\n100\n122 156 67 60 98 143 34 41 19 152 62 11 11 193 5 81 51 160 98 71 42 94 84 135 100 155 155 123 50 88 139 10 17 132 148 10 95 19 48 189 171 51 95 23 37 49 0 7 134 84 177 12 41 104 96 162 137 151 51 132 165 138 45 28 194 126 178 145 128 5 149 57 112 1 199 127 92 153 195 142 167 149 176 55 142 148 103 15 47 73 165 149 137 169 131 170 53 168 52 178\n100\n156 181 95 186 129 131 78 59 152 89 158 38 54 172 8 56 171 147 103 111 174 19 107 5 199 188 61 45 35 92 132 76 67 3 167 99 54 167 12 114 129 193 177 54 12 31 89 126 47 99 89 74 36 12 187 157 103 91 82 29 27 161 152 96 46 183 197 154 32 102 145 76 24 81 195 23 32 143 2 169 82 189 37 199 35 179 54 52 199 150 132 145 93 71 49 190 4 177 105 119\n100\n150 128 28 122 68 185 174 184 51 84 37 115 189 81 74 159 50 146 60 27 33 21 161 18 146 150 63 61 46 58 194 171 145 102 46 20 54 153 160 186 19 135 16 113 135 192 18 65 170 136 125 146 44 112 82 15 105 126 1 173 106 80 193 190 191 14 23 57 100 49 122 85 162 102 68 174 152 48 35 38 162 37 72 192 0 143 119 81 170 191 145 184 114 85 79 199 82 186 119 50\n100\n193 185 116 8 88 99 25 96 169 131 14 102 170 137 198 77 198 51 88 63 53 105 141 67 62 55 81 95 18 72 94 70 138 121 45 123 43 165 118 135 137 199 99 192 154 124 31 66 29 122 156 18 75 92 110 161 132 128 122 149 77 26 148 78 177 138 175 144 125 139 21 140 40 166 81 148 147 151 107 151 110 157 77 9 3 176 140 23 174 54 169 106 85 199 48 130 173 58 16 84\n100\n173 31 4 183 191 22 10 187 164 168 194 179 23 109 57 141 85 77 23 72 28 35 149 117 9 143 67 65 190 91 169 138 4 176 12 191 93 9 20 197 62 128 100 159 42 40 89 94 42 20 86 146 164 86 71 143 66 74 45 188 149 27 154 104 81 46 157 85 114 150 32 73 143 112 32 83 39 168 189 83 9 187 195 45 112 39 135 48 79 7 30 154 1 140 43 118 12 177 23 72\n100\n183 85 86 120 57 102 39 6 76 124 52 37 35 99 116 90 167 6 21 175 120 192 165 147 58 84 131 29 182 105 162 89 123 70 142 82 196 180 169 72 115 51 136 155 174 77 154 129 82 51 169 37 101 76 4 73 161 197 195 125 85 62 29 160 118 73 79 109 62 24 174 82 75 15 143 46 132 168 84 161 72 86 66 89 151 4 33 194 76 198 4 133 68 184 17 164 16 14 66 196\n100\n73 148 110 196 141 191 66 189 20 155 148 51 81 71 25 28 173 54 109 30 38 191 139 53 48 167 54 77 90 197 56 173 189 62 136 29 88 139 185 41 167 120 160 47 181 182 6 189 184 3 160 62 132 192 43 63 123 11 140 92 43 70 119 49 112 176 45 86 156 3 164 98 108 78 138 123 5 11 193 117 143 27 114 90 16 1 139 144 36 12 74 33 140 1 183 135 28 33 37 134\n100\n177 71 122 63 59 140 168 82 48 166 90 27 58 71 106 105 1 34 170 155 107 99 130 75 3 39 194 88 64 73 48 158 80 87 164 113 13 52 170 178 166 104 16 49 177 37 137 59 32 155 105 126 137 166 114 155 90 46 182 35 93 136 46 38 56 3 114 199 41 125 74 124 144 63 149 76 197 134 47 26 43 44 192 161 69 175 139 96 81 71 68 113 66 30 6 109 90 59 84 146\n100\n159 103 6 191 93 196 183 150 157 35 12 67 69 165 103 173 191 116 149 115 118 43 188 97 111 91 74 163 125 7 170 121 127 58 136 75 21 176 199 119 41 11 112 9 35 63 30 114 136 183 32 188 139 105 70 140 68 191 128 185 137 120 124 197 154 103 94 162 65 154 100 102 114 29 194 26 63 128 148 79 151 199 3 42 80 16 90 98 58 130 153 151 62 44 49 85 55 172 89 58\n100\n152 129 40 60 46 27 44 22 136 73 154 133 156 51 191 134 131 122 79 2 176 180 69 188 29 85 2 10 127 74 160 99 42 55 193 65 128 172 84 126 198 123 1 187 88 197 52 175 150 78 55 93 30 6 131 89 165 121 127 164 40 113 189 110 88 163 120 188 21 64 3 154 122 116 54 186 25 124 18 102 120 59 88 82 141 174 100 166 22 154 152 50 116 26 86 2 137 101 101 149\n100\n167 102 65 81 43 110 108 89 58 184 121 106 186 187 171 90 172 118 73 153 81 62 196 13 51 115 4 185 133 164 104 37 53 184 133 172 121 144 170 57 88 129 97 140 123 101 143 76 131 100 48 13 53 111 93 132 51 14 199 16 12 34 49 52 112 141 9 50 180 169 135 162 165 111 17 11 163 121 6 145 43 50 193 64 42 44 33 136 102 25 159 153 7 6 143 129 151 70 195 28\n100\n141 59 20 115 144 178 58 184 138 183 38 137 35 30 182 115 80 21 25 152 4 46 12 4 45 25 44 149 194 129 132 9 116 29 161 133 130 146 132 83 73 39 80 35 187 170 189 29 160 121 197 189 163 44 21 105 15 113 134 199 137 15 164 58 111 183 46 143 137 31 55 51 151 90 52 95 20 61 160 167 73 34 133 191 101 178 187 79 100 15 109 72 61 152 170 23 64 137 50 10\n100\n191 178 43 161 21 118 98 183 133 95 109 72 68 103 64 45 49 50 46 142 44 155 59 168 85 101 168 47 6 187 135 109 164 33 151 140 25 124 146 0 38 31 21 17 24 184 15 144 152 19 70 167 119 174 87 30 145 116 44 99 162 85 115 121 102 72 4 173 133 52 11 29 24 159 183 65 45 150 26 191 97 13 171 186 62 190 184 106 18 22 119 66 18 191 159 166 103 79 98 67\n100\n145 103 30 20 25 134 21 33 35 87 193 27 148 24 92 118 0 44 31 86 95 108 153 197 192 121 19 107 71 22 161 191 52 51 123 165 156 180 61 65 123 100 28 35 153 12 82 76 157 89 92 199 176 61 42 131 60 100 38 80 20 145 129 168 141 162 34 33 70 82 0 160 164 141 99 136 65 33 29 27 54 28 119 184 110 168 17 197 125 6 10 63 48 90 169 144 199 43 155 64\n100\n137 158 6 111 14 147 93 129 187 80 85 164 34 76 15 118 184 47 48 147 155 32 181 37 27 96 59 124 199 53 101 41 4 129 15 165 50 132 83 119 96 39 178 38 41 3 6 20 70 49 5 124 78 187 184 29 139 98 173 38 15 2 41 85 63 11 66 27 183 130 165 82 182 31 35 90 12 56 2 48 113 126 97 64 15 93 107 37 18 138 24 70 183 145 128 59 83 21 137 160\n100\n149 123 83 105 47 113 186 184 9 34 100 170 39 157 68 56 85 192 22 133 135 183 27 99 61 90 135 100 79 173 106 85 45 9 36 181 139 99 101 7 195 19 84 27 155 160 133 52 0 3 88 198 75 169 104 190 43 157 57 119 75 149 190 146 198 67 146 109 80 79 181 7 119 138 25 99 170 14 110 155 32 165 18 120 37 64 109 103 144 50 141 101 144 27 141 110 96 24 83 98\n100\n40 131 170 154 135 103 45 9 14 32 117 30 118 32 13 90 61 132 35 117 45 121 18 5 133 121 46 170 188 194 8 27 35 177 75 5 50 42 54 118 190 124 179 165 154 171 22 44 67 109 10 72 152 74 177 97 170 141 67 141 17 168 65 121 55 127 114 83 137 132 149 162 82 35 192 135 130 134 120 128 88 124 34 33 3 125 122 182 160 65 130 64 23 122 86 108 38 31 165 26\n100\n162 163 178 19 51 141 115 76 168 121 98 187 131 39 139 152 30 74 181 142 118 100 100 34 6 80 190 123 199 168 85 34 55 144 44 108 0 19 118 149 147 180 99 48 84 119 132 140 88 170 97 33 140 22 145 140 127 50 82 47 99 50 130 196 104 131 5 51 82 139 167 170 76 143 156 173 116 157 86 166 33 43 72 14 98 71 137 61 9 120 186 127 41 53 123 128 91 197 99 81\n100\n23 110 71 178 193 90 53 34 66 47 113 22 145 174 88 22 177 119 83 166 5 194 46 124 41 89 98 197 66 60 191 173 65 5 6 38 196 118 62 144 126 15 93 123 169 124 18 169 72 70 161 15 25 129 94 37 195 30 149 100 101 194 161 103 192 159 148 6 13 169 39 55 161 51 10 77 176 139 22 102 24 196 49 23 112 123 114 171 8 20 181 156 98 149 145 97 66 43 48 192\n100\n131 4 95 94 50 149 151 181 198 45 75 45 184 33 100 199 167 97 9 141 31 99 98 174 187 159 62 145 129 59 124 167 166 168 127 94 49 196 142 123 196 17 11 168 48 181 33 174 88 84 68 68 25 4 44 121 160 111 122 151 100 142 30 25 30 51 120 198 127 80 5 182 25 14 12 4 192 9 138 5 66 66 171 80 164 141 26 86 135 133 51 124 76 92 159 151 196 127 7 87\n1\n27\n100\n120 5 127 37 110 183 3 137 83 141 35 21 77 78 80 34 111 29 53 130 8 130 48 32 141 70 16 63 18 15 184 109 174 141 85 8 160 148 85 178 101 171 105 1 196 172 109 131 187 70 125 184 2 127 146 88 152 197 189 95 198 151 18 173 57 119 73 115 68 83 10 59 125 196 39 183 118 159 118 61 167 3 166 138 26 193 82 76 160 138 157 180 154 78 61 68 121 73 98 157\n100\n58 19 145 101 189 16 156 39 125 125 132 178 21 116 162 87 8 138 130 5 90 199 169 7 53 13 56 185 183 148 193 199 162 6 66 135 19 71 64 199 8 47 14 114 12 107 22 127 92 120 199 98 71 186 192 152 17 124 188 93 89 88 14 96 68 146 158 137 145 168 197 25 47 21 37 43 107 70 149 146 39 52 12 20 31 76 91 125 45 99 16 174 56 77 72 136 8 96 109 132\n100\n158 188 144 4 130 127 49 119 68 174 101 161 55 166 127 113 162 180 18 128 89 113 141 23 196 131 40 31 135 32 182 182 50 44 52 57 1 68 33 173 94 19 126 83 133 182 112 36 25 52 12 24 45 96 2 173 158 105 77 158 111 81 50 170 180 53 127 159 116 197 118 118 177 181 65 152 113 171 176 186 74 42 41 109 97 62 48 42 148 192 136 20 17 29 24 181 38 106 161 150\n100\n147 58 39 105 181 68 14 1 116 94 167 45 167 39 163 0 174 44 199 125 80 17 24 49 86 74 57 185 15 58 75 30 182 11 37 70 162 191 28 61 12 96 76 100 158 171 191 48 122 98 150 158 128 145 142 38 60 73 77 93 95 4 13 32 125 104 95 21 48 168 84 20 91 38 32 119 137 166 32 62 134 31 37 94 102 11 114 42 69 34 147 130 103 41 6 11 97 137 102 15\n100\n63 117 117 199 151 43 138 182 54 87 12 112 122 37 174 91 8 118 51 77 23 52 11 30 189 1 15 87 128 29 121 187 63 127 88 77 114 46 75 82 31 39 19 169 47 162 6 160 152 105 161 120 180 41 150 139 138 124 151 5 140 189 25 82 104 53 180 30 11 6 58 187 51 127 30 22 147 7 96 114 5 149 6 10 115 135 188 185 134 113 23 76 163 177 126 122 107 129 66 27\n100\n25 100 48 175 130 157 13 96 16 92 105 51 7 130 103 147 52 55 84 135 194 146 190 36 47 105 7 78 158 81 146 99 22 192 13 8 52 41 191 176 124 57 108 146 158 32 63 27 31 41 79 37 100 37 109 150 54 140 197 27 179 46 139 38 81 98 192 21 97 93 13 6 129 93 151 16 194 38 188 75 171 21 180 83 166 99 156 9 66 68 159 195 184 128 94 132 66 58 66 63\n100\n113 31 86 160 166 49 122 60 83 173 166 106 146 74 108 146 70 20 66 69 178 127 38 84 159 167 178 30 121 191 90 93 44 9 107 40 123 22 47 150 25 62 182 169 140 1 55 105 126 87 63 179 166 78 145 9 86 106 120 43 6 42 161 183 138 17 195 109 199 97 195 142 52 167 140 103 55 155 52 56 45 62 197 50 189 65 105 127 47 27 103 76 65 75 46 181 3 15 63 160\n100\n116 181 177 133 28 184 103 44 76 174 108 135 2 135 41 186 193 120 14 144 57 112 104 96 91 106 26 16 183 133 111 176 105 65 6 98 18 19 191 24 67 50 134 95 175 75 94 187 65 162 39 108 60 82 186 95 122 135 148 159 119 138 66 173 150 60 141 93 148 6 118 68 12 65 19 127 171 114 42 150 149 128 61 177 136 25 6 65 183 153 5 26 153 165 145 127 180 31 180 183\n100\n147 123 81 63 144 49 26 40 62 91 29 98 198 178 127 25 60 69 180 23 147 2 165 82 23 55 187 7 9 130 91 111 144 144 75 89 5 156 124 17 56 48 160 80 50 88 166 67 178 173 43 48 132 176 163 198 135 16 57 180 166 61 91 133 129 85 50 91 93 88 88 186 57 159 27 110 26 90 41 64 66 74 92 148 12 92 16 158 27 159 42 39 163 48 196 50 96 196 78 108\n100\n86 37 103 123 1 41 45 30 94 0 193 54 194 4 142 124 169 181 43 27 1 102 23 38 161 34 101 5 100 132 56 36 10 117 193 77 192 110 190 8 175 89 69 191 139 35 106 39 173 69 173 44 27 195 136 195 102 116 7 22 164 148 8 172 8 190 157 47 31 86 96 106 67 14 190 67 5 111 183 53 39 26 142 129 40 127 140 86 43 47 153 70 10 5 109 171 71 42 132 42\n100\n20 25 81 118 188 151 52 57 65 175 30 151 102 150 188 147 72 90 19 117 193 160 156 92 93 199 32 49 73 143 133 44 56 86 25 164 0 132 22 145 53 109 95 147 108 119 34 136 123 44 182 90 175 146 39 48 165 162 168 119 69 182 113 87 140 166 33 90 121 36 77 195 106 63 49 20 56 133 166 155 57 21 61 101 60 116 163 138 178 197 134 188 99 70 199 115 166 65 32 74\n100\n78 137 0 48 193 158 157 71 58 82 17 65 106 20 112 4 2 197 136 43 116 178 106 24 115 73 160 78 136 119 8 188 182 121 16 23 112 186 170 166 42 68 58 76 62 146 181 153 104 38 197 122 195 111 115 187 21 37 4 178 40 64 166 94 131 165 156 184 65 106 65 0 184 189 2 11 157 7 7 27 86 143 35 112 31 77 49 6 1 35 146 159 176 11 108 90 164 197 125 107\n100\n83 15 177 94 180 155 168 134 183 11 116 3 148 0 41 60 73 123 189 32 23 187 178 139 103 137 90 63 177 1 3 113 30 114 99 198 103 198 117 190 68 174 92 48 106 184 48 126 167 35 7 177 71 5 30 120 45 58 159 198 42 8 77 66 33 105 78 90 111 40 17 2 69 143 48 26 160 57 63 46 90 68 126 186 10 49 139 13 162 158 20 37 15 75 172 76 190 29 155 10\n100\n77 184 75 35 176 40 48 129 190 33 167 37 123 45 3 194 86 134 52 75 141 125 1 55 104 178 191 33 60 125 26 125 90 189 107 135 47 119 83 14 28 113 48 26 40 127 109 66 165 165 87 73 176 150 53 153 29 109 143 0 266 11 178 163 188 168 2 160 168 173 66 160 18 185 1 85 19 146 13 96 189 94 4 119 19 27 88 61 95 52 43 90 147 165 124 84 125 153 192 110\n100\n197 97 5 112 56 56 130 31 34 101 171 38 56 65 36 69 124 186 172 2 52 71 180 125 180 108 199 137 67 128 12 31 84 93 58 140 87 88 77 159 159 130 30 76 140 38 191 60 76 60 94 128 37 53 185 139 127 128 196 104 168 196 175 13 183 191 148 46 133 159 127 173 1 7 95 152 35 60 52 171 195 120 73 88 67 175 163 12 74 49 130 28 195 183 33 127 45 0 185 190\n100\n172 38 171 193 96 173 61 108 116 100 139 27 97 72 178 89 172 93 58 199 78 166 10 42 195 167 177 54 54 192 2 26 194 45 174 148 83 44 81 175 70 47 118 98 167 194 172 67 138 191 189 68 60 112 100 12 34 77 175 17 90 47 190 140 105 84 43 14 164 100 98 82 75 170 123 98 51 64 77 23 60 164 117 67 170 119 55 97 127 65 100 88 169 13 198 44 159 50 56 5\n100\n10 28 113 20 82 32 66 187 31 64 101 180 185 102 73 53 194 27 188 154 2 66 168 147 171 137 33 112 62 120 101 155 85 86 117 141 163 48 132 67 153 146 13 194 107 75 66 129 82 108 2 94 171 106 98 155 144 44 24 178 101 31 140 103 125 128 159 189 70 49 112 188 163 0 141 114 105 44 111 175 84 106 58 197 194 159 123 15 96 22 58 73 76 196 106 105 195 187 143 141\n100\n139 188 39 77 172 152 196 82 171 185 129 184 47 68 139 199 15 122 42 112 107 31 48 54 171 90 9 58 125 127 68 164 155 105 89 7 155 196 123 141 49 34 184 26 186 11 22 69 58 11 0 4 185 103 162 8 122 40 1 137 12 147 119 91 148 160 5 25 90 130 81 88 195 38 11 184 47 55 171 102 100 161 117 165 139 101 23 15 9 53 2 31 185 89 7 144 135 64 12 27\n100\n184 155 95 85 49 38 155 15 141 56 9 19 27 62 48 179 143 131 151 51 96 98 179 138 106 191 101 13 181 51 69 86 77 142 141 155 35 58 199 161 180 295 184 138 113 56 193 173 71 31 52 53 199 23 100 36 0 166 192 146 164 103 81 152 9 133 122 82 89 42 104 69 140 136 65 5 12 72 26 155 25 10 156 188 46 68 14 13 196 126 65 85 181 29 56 188 116 38 198 115\n100\n99 22 133 68 29 143 116 28 61 190 24 141 47 147 119 81 182 89 30 3 149 190 191 168 145 117 145 167 70 138 186 125 2 182 95 28 55 196 120 141 13 146 78 27 103 124 86 186 165 197 68 16 18 144 4 163 79 15 172 43 7 17 126 17 180 57 69 136 58 100 22 74 35 28 114 158 99 27 192 121 140 89 136 43 93 146 21 28 94 18 2 143 96 27 17 85 3 72 176 85\n100\n111 66 54 154 142 43 100 150 66 9 134 198 100 182 116 85 93 53 124 21 48 111 75 43 103 23 116 123 85 3 112 117 84 69 7 166 104 184 181 65 172 30 160 87 115 145 193 21 42 65 49 158 148 166 70 96 93 103 167 83 60 114 44 15 114 124 161 125 0 67 172 49 17 18 13 158 179 69 86 75 124 46 187 117 82 71 140 101 35 25 73 147 6 188 117 43 138 184 157 39\n100\n94 60 131 53 65 37 190 171 27 97 60 184 91 99 91 140 90 106 13 98 23 190 162 125 21 195 146 178 154 1 123 13 98 146 87 78 12 118 82 84 114 156 19 58 127 130 1 26 92 166 24 144 155 102 19 88 184 21 156 35 68 199 10 13 108 135 115 162 154 102 34 115 10 63 74 92 184 81 148 40 24 101 181 102 93 96 20 101 55 179 178 14 7 73 99 66 68 185 124 164\n100\n187 29 118 111 2 122 42 187 142 97 188 172 38 13 133 148 31 150 196 59 9 29 117 124 106 121 189 25 138 9 69 81 39 107 29 113 154 85 50 193 49 194 2 8 134 127 72 107 96 142 172 50 8 19 21 83 127 173 105 44 158 175 44 91 134 152 183 24 186 63 131 101 153 155 126 196 128 51 61 10 80 153 52 91 91 52 9 126 69 134 63 130 121 67 49 17 65 11 125 108\n",
"100\n100\n41 67 134 100 169 124 78 158 162 64 105 145 81 27 161 91 195 142 27 36 191 4 102 153 92 182 21 116 118 95 47 126 171 138 69 112 67 99 35 94 103 11 122 133 73 64 141 111 53 68 147 44 62 157 37 59 123 141 129 178 116 35 190 42 88 106 40 142 64 48 46 5 90 129 170 150 6 101 193 148 29 23 84 154 156 40 166 176 131 108 144 39 26 123 137 138 118 82 129 141\n100\n33 115 39 58 104 130 177 106 73 186 21 145 124 72 70 29 177 173 97 112 186 90 161 36 155 167 55 174 31 52 150 150 141 124 166 30 107 191 7 137 57 87 153 183 145 109 9 158 21 188 22 146 106 30 13 168 100 191 162 55 10 159 24 137 148 83 195 41 2 150 91 36 174 20 196 21 148 199 68 84 81 134 53 199 18 138 100 188 127 67 128 93 48 83 7 21 110 17 13 114\n100\n109 16 135 51 0 49 119 156 198 103 24 8 44 9 189 102 195 85 93 143 123 187 114 103 48 0 58 18 180 196 198 81 189 198 9 157 72 22 138 92 38 179 190 57 158 191 15 88 156 111 2 34 72 55 128 46 162 86 75 33 69 142 44 16 81 198 122 51 21 99 157 76 92 189 75 112 0 110 3 69 61 88 1 189 55 23 2 185 182 85 88 26 17 157 32 132 169 154 121 189\n100\n176 129 168 92 25 155 34 149 41 112 145 60 118 153 139 23 79 196 87 129 149 37 66 149 193 195 97 16 86 105 88 82 55 134 114 101 116 71 186 63 113 155 185 53 112 8 32 145 113 156 121 158 46 182 81 144 196 22 129 161 135 50 173 66 44 59 92 39 53 24 154 110 145 49 186 113 74 22 168 18 187 105 158 191 2 25 77 14 114 24 134 74 172 159 33 70 87 97 118 177\n100\n173 70 163 68 192 185 102 80 13 27 2 99 127 25 143 124 23 172 61 181 3 32 105 193 125 31 92 142 22 86 64 100 187 160 13 174 70 170 35 33 111 160 96 67 85 150 140 94 95 24 19 125 176 94 58 102 171 66 78 193 51 84 18 64 119 152 0 87 60 126 10 157 170 115 176 27 43 158 164 109 82 86 165 87 177 74 25 27 29 128 23 120 102 162 123 196 137 61 195 125\n100\n64 60 2 116 30 126 11 171 11 147 153 120 190 124 188 163 140 51 62 29 100 113 158 178 165 7 77 0 58 39 103 160 157 124 77 108 113 87 1 50 60 28 193 184 5 140 111 104 35 156 72 150 23 85 156 16 26 157 126 157 137 71 69 161 96 22 17 112 117 96 185 41 23 129 29 165 159 132 96 55 53 162 184 134 54 172 57 169 132 163 7 83 111 35 67 48 75 138 23 142\n100\n154 111 141 175 59 25 21 70 26 134 5 183 50 198 79 101 193 134 37 134 156 193 176 105 162 148 81 100 13 41 55 55 142 62 11 77 24 78 152 43 96 73 40 113 75 72 18 10 17 132 112 95 169 31 40 88 85 90 97 189 190 145 153 114 51 140 44 58 135 159 192 5 64 181 103 29 175 8 92 197 149 156 161 27 67 141 129 40 13 174 1 77 15 83 13 192 24 1 192 159\n100\n70 28 27 84 75 186 98 170 87 47 4 103 21 63 106 163 10 171 89 40 164 142 19 113 191 104 18 32 150 5 175 139 103 22 98 47 184 48 171 64 113 75 145 112 146 78 169 62 119 185 89 144 65 140 45 108 118 70 1 123 132 72 152 87 170 163 101 103 23 127 0 169 15 165 28 143 147 88 143 37 9 63 49 81 188 142 8 60 21 158 154 88 146 90 149 43 30 20 148 67\n100\n136 183 35 26 185 38 53 29 24 148 123 159 57 166 144 155 118 126 11 25 155 1 149 96 184 115 164 142 75 113 142 196 148 72 26 6 173 29 4 105 26 12 175 93 165 36 136 141 14 194 56 52 136 38 82 155 15 131 30 41 25 11 37 186 90 50 62 34 93 153 16 52 8 62 33 54 103 34 103 56 148 124 117 13 109 28 0 80 118 58 50 155 161 64 103 76 43 109 102 161\n100\n89 148 82 53 74 20 2 123 31 169 78 59 8 19 171 3 145 181 104 192 85 113 98 189 122 138 37 10 61 34 108 161 159 93 115 69 137 69 58 100 171 64 117 15 155 15 130 39 12 88 82 154 85 110 84 174 180 15 151 141 115 79 110 98 73 188 177 132 156 89 113 8 141 190 123 163 28 184 178 0 71 85 174 71 133 67 153 95 168 25 76 29 50 198 109 93 86 80 116 49\n100\n67 128 79 64 21 5 26 16 116 126 66 87 81 164 140 86 21 62 121 64 109 15 102 73 124 141 145 162 23 131 6 68 118 2 107 107 81 12 136 30 114 9 84 156 90 93 196 152 54 145 108 48 91 112 131 114 39 158 122 104 195 52 69 79 38 23 118 66 59 98 86 196 62 33 158 22 146 192 37 125 47 58 2 7 98 30 92 0 78 199 152 48 82 140 115 175 162 167 136 197\n100\n18 97 28 51 16 30 49 125 58 29 120 140 160 147 162 55 75 192 161 154 198 146 114 146 188 169 38 63 75 115 121 75 15 128 34 170 105 64 157 162 161 124 149 69 130 123 150 133 125 110 137 136 137 78 193 36 114 164 191 149 135 105 137 4 137 23 64 170 8 168 81 85 152 173 52 194 76 26 196 172 49 40 174 19 143 11 141 89 19 165 5 185 16 50 15 9 64 166 93 74\n100\n109 100 95 173 189 161 172 168 158 31 68 26 110 22 174 179 110 152 182 191 95 164 74 164 102 55 60 74 172 21 122 147 177 189 5 195 194 150 143 154 81 12 72 39 28 112 162 167 8 15 108 23 159 34 4 86 119 158 145 6 166 100 167 92 187 132 156 174 47 21 83 22 131 176 183 148 123 182 18 176 20 111 182 56 90 125 124 86 77 169 43 134 77 68 68 191 196 183 28 127\n100\n26 71 97 12 103 27 8 145 108 185 38 37 43 113 101 50 128 111 50 149 192 54 69 81 65 67 113 193 34 72 172 30 101 42 177 77 170 102 164 181 190 23 37 23 179 195 169 127 42 110 182 58 126 87 70 128 51 58 13 60 183 86 142 10 72 128 34 41 118 103 67 65 138 81 57 150 14 198 58 61 63 156 7 78 89 35 165 75 186 186 25 160 130 48 128 92 33 40 166 135\n100\n10 199 37 92 182 128 152 169 44 194 8 52 47 32 135 8 64 97 43 49 15 41 189 100 12 48 123 51 74 33 91 0 54 190 97 119 180 178 131 144 140 87 99 125 83 138 92 193 52 11 160 34 40 97 185 129 140 5 191 192 10 149 178 179 171 77 73 193 20 97 26 76 190 182 178 159 18 89 159 49 124 72 180 8 167 8 77 103 170 7 196 74 122 11 19 161 56 90 163 83\n100\n116 132 52 141 154 13 62 196 60 15 104 199 136 80 198 32 187 184 40 117 6 70 41 82 49 123 158 105 21 95 96 116 78 178 179 58 177 150 7 129 81 195 78 76 153 99 184 165 93 8 172 43 129 114 168 55 191 173 122 148 51 186 144 46 177 117 29 116 74 191 69 112 146 93 91 15 149 57 40 52 36 151 87 26 162 155 183 194 180 97 65 65 113 61 178 78 78 140 11 147\n100\n45 170 175 89 91 149 133 65 14 82 7 32 96 167 122 82 10 41 31 187 105 79 121 138 151 47 8 46 76 159 189 22 66 86 55 28 14 60 53 177 148 103 61 31 82 55 197 106 152 21 96 81 21 55 147 124 118 135 176 174 59 198 74 53 122 35 43 88 153 32 147 80 126 78 50 1 161 199 55 163 116 173 161 45 73 74 150 153 181 87 99 110 43 65 172 129 181 112 76 181\n100\n47 90 71 5 172 32 189 120 165 31 58 93 6 178 148 6 171 166 196 97 20 94 129 188 109 184 169 178 17 15 26 84 168 106 128 97 118 190 199 185 86 199 20 110 71 13 15 85 118 180 131 67 187 44 186 107 160 27 74 31 152 71 68 93 85 137 111 4 77 6 168 22 13 0 142 137 38 188 155 89 47 181 93 184 187 161 93 17 101 82 47 65 153 104 84 95 125 21 164 181\n100\n72 106 56 143 193 80 80 68 11 113 168 51 16 79 168 40 131 133 179 63 59 53 136 95 165 74 120 35 80 176 55 125 71 8 159 156 2 32 105 40 175 162 85 162 80 36 197 2 108 80 140 76 58 93 140 146 74 173 97 80 135 72 0 107 155 66 141 188 81 168 115 196 25 9 12 136 55 162 43 142 21 122 112 48 18 168 117 114 50 90 135 159 169 95 103 40 179 199 105 191\n100\n61 81 52 153 33 29 187 42 53 83 20 14 118 44 63 29 52 64 169 70 5 47 194 87 126 76 123 140 79 190 188 110 71 145 21 70 183 189 155 178 179 6 62 135 87 196 33 88 135 179 193 190 162 165 1 105 7 167 69 134 71 57 198 145 197 18 38 44 172 163 28 64 1 123 90 4 1 27 197 92 171 163 101 163 121 165 21 45 10 95 141 22 12 151 15 55 193 138 79 82\n100\n8 54 22 107 45 138 144 90 139 154 4 23 25 78 124 181 130 133 23 194 130 46 187 45 5 16 150 89 138 163 135 97 9 30 24 108 137 74 120 172 93 55 134 161 56 6 184 75 182 119 141 32 84 179 79 83 67 36 125 118 137 28 119 177 137 91 156 195 60 101 193 32 136 180 75 107 184 74 119 190 76 41 151 129 90 174 72 191 189 187 90 39 93 53 63 81 103 5 176 79\n100\n95 139 68 198 83 39 115 21 193 26 122 38 28 181 199 178 91 23 143 34 43 149 102 107 102 141 87 146 91 37 13 0 16 90 162 135 126 10 77 182 60 189 105 74 63 122 195 166 160 38 188 11 45 67 25 67 189 142 63 147 102 17 99 23 26 3 48 51 170 36 58 167 56 5 131 162 19 175 156 131 95 44 191 3 188 115 50 119 72 191 183 133 175 42 169 100 154 78 185 57\n100\n133 93 90 103 150 33 122 71 11 190 138 41 58 47 152 58 79 102 83 190 2 168 22 95 135 8 161 142 194 99 188 178 42 157 141 47 69 145 180 113 164 110 61 185 73 104 62 103 102 69 154 129 152 74 149 130 44 44 49 118 65 163 152 173 70 131 147 111 69 198 98 103 152 79 53 43 122 88 163 34 50 22 40 111 92 51 180 77 16 76 178 20 15 148 198 179 35 57 83 62\n100\n102 62 20 170 22 73 41 86 88 117 117 92 98 67 149 65 189 132 19 81 3 130 28 31 189 152 30 172 64 7 95 28 81 90 10 177 71 36 59 43 40 33 37 93 30 74 193 182 3 61 90 62 107 197 151 23 90 117 40 103 166 83 61 59 45 186 51 165 1 40 9 97 83 50 58 21 175 181 187 71 87 199 104 179 138 100 130 61 118 5 140 28 59 22 198 160 98 135 81 14\n100\n167 93 196 161 146 138 70 138 76 155 117 171 160 152 158 33 55 65 126 1 34 159 193 148 73 192 193 133 137 103 90 11 94 68 27 98 189 48 79 47 149 131 69 75 198 49 36 199 123 43 131 154 61 34 185 167 16 193 104 66 153 108 23 84 192 67 48 69 130 11 14 90 27 143 4 199 74 195 106 158 189 58 9 89 47 40 18 164 175 26 89 103 66 12 40 170 76 195 41 186\n100\n51 109 187 83 85 190 50 86 155 181 128 102 77 62 24 165 72 32 85 28 46 89 78 83 125 65 60 45 178 21 55 120 127 173 134 51 75 136 134 1 137 110 174 190 156 71 80 135 145 82 25 118 173 112 37 198 105 162 117 92 139 47 146 103 31 115 39 58 29 45 194 199 45 72 75 62 72 173 80 38 97 142 8 3 77 125 134 1 78 182 169 136 78 139 138 121 26 63 77 175\n100\n124 181 100 161 62 2 48 95 84 16 137 107 193 84 144 59 21 58 43 68 77 119 57 41 91 64 23 115 72 129 41 115 15 136 157 159 100 52 93 41 29 48 27 198 24 124 74 133 85 38 170 62 29 84 109 78 123 85 0 24 193 105 12 165 167 7 77 184 104 190 34 91 21 85 134 190 142 198 86 18 21 24 197 176 54 69 108 127 93 68 166 102 38 0 19 118 90 184 139 156\n100\n8 32 78 14 187 39 74 20 27 154 188 41 198 42 2 121 104 146 56 109 33 108 161 133 86 4 185 142 42 60 161 20 143 178 187 113 63 191 134 15 56 161 12 11 159 51 138 170 124 107 7 184 151 101 89 158 41 190 13 12 55 60 93 72 2 76 143 173 66 51 75 128 132 161 69 103 129 107 92 51 153 192 170 119 72 7 94 105 40 183 62 9 7 38 160 71 171 54 147 114\n100\n123 29 89 166 87 156 32 70 139 66 122 83 160 153 105 91 59 186 87 29 42 117 45 156 188 52 154 66 33 160 119 31 138 67 176 98 114 120 53 7 69 16 122 42 7 63 60 147 193 30 117 43 176 114 26 117 134 20 171 192 164 154 66 93 64 175 0 12 100 151 76 179 143 77 189 161 185 72 34 144 161 163 104 146 88 108 157 30 123 64 74 146 37 181 118 11 92 191 32 123\n100\n61 191 61 130 98 169 91 0 179 117 117 114 195 41 136 67 28 53 109 173 181 103 169 16 83 167 185 2 30 157 81 167 110 66 87 171 77 45 164 38 71 47 115 192 111 57 5 53 171 180 140 130 75 120 190 177 198 186 4 89 31 144 188 10 118 119 59 127 9 119 79 116 100 196 53 58 30 193 6 49 54 72 160 94 54 133 146 29 71 28 159 41 21 88 166 33 85 70 129 61\n100\n60 8 182 162 106 78 179 97 87 138 69 183 140 195 66 33 61 157 117 134 53 135 58 193 43 93 66 151 140 94 137 174 112 97 151 95 17 92 92 37 130 13 96 110 189 28 9 186 144 40 182 169 120 193 92 162 14 127 7 194 105 113 11 113 93 64 3 195 162 181 146 109 48 168 24 111 154 35 127 33 40 62 127 177 17 140 142 100 0 158 76 154 135 30 31 95 137 23 122 127\n100\n29 11 11 154 80 53 93 121 185 128 43 0 155 71 70 52 175 31 40 134 40 186 34 48 139 165 196 112 62 52 131 187 64 157 48 156 170 50 182 101 93 99 132 44 131 75 4 50 26 66 138 1 23 43 41 180 95 118 59 163 28 129 88 54 13 179 169 66 79 177 37 2 115 92 123 72 48 123 153 148 195 197 108 108 11 193 65 181 2 10 28 56 105 165 23 169 115 53 5 84\n100\n78 145 40 33 85 100 168 194 33 85 148 81 32 56 110 72 182 101 106 35 60 71 127 137 143 168 33 195 171 3 142 11 79 34 112 193 130 161 34 58 126 106 191 43 188 27 119 84 24 93 35 24 94 182 67 27 5 146 86 189 140 37 50 159 178 156 77 3 42 100 11 25 143 195 16 15 4 6 168 41 135 98 125 113 23 112 18 57 196 139 86 94 46 43 122 111 80 55 158 47\n100\n70 190 73 127 13 54 96 72 50 41 41 46 125 13 24 129 95 3 194 193 67 187 40 79 41 125 134 60 0 107 21 92 93 117 117 3 143 93 39 11 125 28 178 148 50 92 44 54 23 153 36 147 146 26 61 104 38 171 86 5 99 56 128 67 151 19 191 166 117 46 93 187 21 112 67 99 44 97 1 128 142 104 168 168 41 96 62 120 44 118 25 19 184 174 184 59 149 14 95 103\n100\n32 51 137 14 163 51 19 90 117 83 118 184 52 186 69 48 137 197 24 168 27 148 193 182 71 69 93 77 14 104 84 143 95 11 93 92 198 190 99 90 93 74 149 174 114 173 69 18 65 33 38 111 52 63 108 149 88 45 31 120 106 71 168 21 58 157 47 182 38 122 123 106 106 189 156 145 151 123 118 150 97 36 191 6 110 13 51 80 44 143 141 45 178 149 105 114 185 27 24 4\n100\n156 117 27 155 102 86 68 98 179 11 89 158 90 175 10 132 89 96 150 112 122 129 72 36 77 153 176 70 85 52 151 197 151 1 35 93 72 116 116 128 111 125 38 96 139 144 56 26 102 158 188 21 186 108 177 28 179 147 149 80 45 128 62 26 119 77 91 47 185 31 6 84 154 169 109 156 21 145 65 16 60 97 135 190 77 49 5 86 188 75 143 177 130 87 155 82 53 0 154 89\n100\n88 15 8 110 140 199 197 107 54 104 37 85 99 192 13 12 82 183 151 129 137 33 0 64 83 57 168 110 168 108 41 132 37 84 99 101 69 183 56 92 40 87 12 10 20 35 63 15 97 77 174 134 153 133 78 86 24 134 75 149 112 184 24 192 104 22 55 113 62 73 84 160 122 53 197 22 150 137 117 6 131 197 105 36 157 199 90 98 185 47 84 192 125 196 55 28 138 142 28 195\n100\n142 37 106 167 53 193 105 146 9 124 54 65 39 6 9 92 99 175 36 61 47 18 13 127 112 96 109 41 130 90 34 115 86 123 66 144 136 37 16 93 149 171 44 177 85 0 190 85 125 118 68 6 129 8 141 25 136 180 116 70 184 147 128 136 4 100 123 164 11 40 50 104 83 166 141 70 45 106 88 56 107 66 57 78 199 74 155 191 190 32 58 196 117 90 167 107 34 46 62 2\n100\n39 26 95 106 114 150 186 79 176 22 79 101 12 76 164 157 170 38 112 144 161 180 0 43 56 61 47 139 8 90 52 179 18 19 7 84 147 177 75 13 109 171 42 139 136 21 101 34 129 158 36 69 97 104 198 2 105 38 32 65 116 81 179 23 127 171 113 182 140 16 88 119 189 113 59 51 71 83 164 38 12 184 159 101 174 133 59 114 49 195 122 141 16 177 52 165 91 138 110 167\n100\n55 187 24 22 39 41 48 4 34 168 41 72 68 174 176 137 33 41 145 18 15 174 52 46 156 124 166 181 144 40 134 96 76 27 5 18 91 41 65 191 71 59 100 17 16 143 24 64 105 157 102 66 75 46 32 189 46 145 3 152 101 126 153 184 49 150 5 146 25 170 136 195 193 123 132 56 96 10 176 92 150 90 195 52 150 115 36 161 160 184 129 134 50 82 6 136 184 190 17 182\n100\n66 116 188 25 101 10 50 182 21 193 38 154 193 95 80 38 167 20 145 83 65 96 33 190 32 189 39 183 17 129 153 79 13 0 52 145 61 151 118 163 13 107 154 76 17 11 29 64 166 131 142 98 122 155 187 57 158 64 162 110 146 65 180 165 146 140 97 42 64 194 184 70 115 0 6 106 102 96 33 11 67 15 45 175 154 48 119 79 188 121 192 197 197 109 52 71 58 122 59 197\n100\n199 99 120 120 36 184 112 115 153 85 141 199 167 8 44 169 81 79 108 7 59 106 49 75 26 124 7 174 84 128 146 145 81 114 149 168 138 107 193 104 105 97 17 155 41 143 133 97 79 136 155 33 154 130 52 104 79 88 70 154 72 176 101 15 86 31 80 175 60 114 138 57 190 38 181 47 42 18 70 31 61 19 181 190 33 72 163 102 102 128 121 98 47 145 6 22 86 194 177 44\n100\n83 147 40 85 64 123 137 53 168 130 55 66 58 112 56 118 1 142 76 106 102 84 23 70 112 50 75 111 50 195 88 120 101 183 198 92 48 184 45 187 62 143 58 59 71 16 172 32 41 83 88 15 176 116 98 39 83 5 197 146 169 75 117 187 20 30 42 135 189 173 80 73 177 186 181 185 122 145 179 85 113 135 135 83 186 96 48 85 152 121 60 182 36 88 119 36 192 65 78 198\n100\n96 186 11 176 147 121 2 45 102 164 139 172 57 170 120 54 159 80 98 191 160 110 191 67 33 75 136 99 175 190 176 56 72 103 86 167 115 142 95 166 56 186 37 198 26 164 85 65 108 140 160 14 154 12 152 138 106 125 30 49 179 79 113 38 117 21 145 191 169 39 108 165 162 73 81 170 147 53 108 108 115 29 66 89 63 171 141 59 31 172 114 166 188 170 168 199 55 50 44 136\n100\n78 6 27 113 123 171 127 73 61 173 134 102 187 17 63 153 126 195 95 13 6 170 59 105 96 33 23 52 79 119 126 193 185 65 171 44 107 71 87 99 119 196 115 152 92 153 57 190 159 157 86 9 65 86 19 59 113 35 28 101 68 69 56 131 178 74 195 43 74 116 24 111 185 122 171 57 95 174 38 183 58 95 122 183 31 103 32 100 190 80 8 105 102 58 18 157 161 120 28 56\n100\n113 132 92 182 67 120 158 74 187 94 183 164 64 114 146 190 25 55 163 67 192 31 19 80 118 128 148 120 79 91 166 187 8 126 25 159 118 20 35 114 56 147 156 134 160 151 8 78 94 189 124 176 94 90 189 172 19 101 102 44 123 139 9 27 37 186 16 27 169 23 99 114 15 44 36 69 178 76 58 152 46 137 115 188 16 88 182 74 133 115 56 56 62 16 124 129 42 184 72 49\n100\n196 26 182 2 175 16 65 152 159 155 17 44 154 43 24 199 22 121 133 13 117 193 73 60 175 74 185 101 22 8 195 26 120 91 188 129 72 177 193 8 54 122 76 137 16 3 90 112 89 53 179 99 122 102 2 169 54 129 134 38 74 26 63 134 172 148 53 103 107 118 133 37 95 179 61 144 59 161 107 176 72 45 192 172 28 196 11 135 35 29 116 132 156 158 149 20 96 124 120 126\n100\n6 183 45 174 91 188 138 64 104 77 153 142 4 23 52 25 11 42 124 149 135 190 146 128 55 4 141 109 181 179 102 83 92 132 112 99 161 47 5 90 169 159 28 139 28 180 71 178 40 56 148 44 145 125 10 98 16 180 15 64 26 72 79 193 82 5 136 133 105 187 132 38 165 64 118 199 32 108 96 38 178 38 45 59 169 144 162 169 49 118 67 158 143 61 3 190 186 26 3 4\n100\n100 168 23 147 196 166 30 65 152 0 17 173 186 68 197 179 24 128 60 158 25 67 112 134 52 169 162 170 11 35 90 111 64 150 160 145 167 154 187 17 165 142 88 73 15 179 37 188 69 86 30 9 40 121 119 81 26 20 11 54 93 184 157 199 136 29 150 57 5 165 134 49 94 192 70 119 17 113 53 117 177 160 105 153 191 162 176 54 72 134 16 50 193 145 52 147 121 61 144 59\n100\n166 85 39 118 107 68 154 50 32 199 20 135 98 192 116 182 29 116 59 158 183 199 135 157 70 71 142 180 77 6 95 86 3 52 118 35 85 28 78 160 101 149 164 185 26 157 137 41 138 193 96 33 93 168 73 135 109 96 181 161 139 184 123 99 131 49 42 6 50 87 40 169 23 188 67 83 0 158 6 138 63 120 166 158 85 23 29 98 156 70 175 196 83 188 19 146 190 75 69 119\n100\n141 197 145 54 158 58 194 191 141 37 100 32 75 136 38 158 180 85 13 84 53 127 85 26 70 136 81 170 149 148 77 199 35 173 137 151 131 17 33 171 176 129 131 44 142 67 0 128 116 34 199 157 40 181 23 141 131 149 139 99 175 99 163 45 126 1 24 83 189 135 24 95 145 170 83 117 192 152 124 173 140 55 68 70 43 30 156 165 114 180 58 158 124 8 111 67 117 128 190 99\n100\n180 70 190 12 0 64 75 84 82 111 106 68 44 26 36 166 192 188 38 65 12 147 46 59 52 171 56 110 57 66 50 70 145 125 148 74 174 43 29 136 163 16 58 134 101 61 55 15 174 182 139 82 24 100 175 137 176 100 24 64 137 95 125 29 51 188 194 144 106 75 71 90 84 19 179 195 158 7 45 174 38 156 20 32 166 22 157 153 71 155 189 25 29 128 39 127 194 90 48 54\n100\n117 192 130 18 148 56 190 82 143 39 101 93 127 69 193 33 31 192 135 26 42 80 16 161 117 107 120 45 166 121 182 182 6 91 70 15 195 143 163 171 192 135 17 12 81 67 121 152 122 28 30 29 24 99 153 151 194 41 64 183 120 144 188 77 13 2 58 2 153 49 58 175 90 38 23 195 101 5 158 123 87 41 26 130 9 20 135 43 131 74 102 100 71 175 9 30 194 22 136 90\n100\n15 52 154 182 133 188 55 160 145 123 142 59 87 143 147 184 189 68 188 198 80 79 107 13 60 47 46 71 182 144 142 48 36 153 149 88 23 25 51 190 39 46 162 175 24 78 185 103 181 177 150 48 170 94 16 129 126 38 115 72 152 62 21 67 128 65 129 59 82 189 186 19 135 140 66 32 85 22 3 161 96 141 150 32 72 161 170 113 165 45 120 10 128 170 21 196 4 114 199 10\n100\n69 152 35 71 144 30 182 61 195 151 66 83 110 158 172 95 106 14 52 84 105 12 21 141 175 90 125 11 167 182 183 187 193 50 79 68 74 84 29 135 60 105 111 192 24 150 16 60 1 159 109 123 67 100 25 56 140 48 55 7 49 91 160 182 36 19 70 79 125 119 9 101 31 124 7 125 101 83 169 88 164 163 124 134 170 51 197 124 111 67 65 40 179 155 28 61 32 27 160 139\n100\n66 37 48 48 4 48 165 21 133 175 41 114 147 162 154 76 54 58 121 184 88 66 116 56 180 29 137 29 189 43 4 101 184 120 187 136 52 182 128 166 72 193 158 179 183 187 23 197 96 194 101 53 120 103 72 20 132 153 24 33 57 65 132 80 167 166 90 68 126 28 79 144 103 49 33 3 110 40 27 10 127 82 193 187 63 161 165 199 51 118 81 158 103 158 38 178 64 57 172 21\n100\n122 156 67 60 98 143 34 41 19 152 62 11 11 193 5 81 51 160 98 71 42 94 84 135 100 155 155 123 50 88 139 10 17 132 148 10 95 19 48 189 171 51 95 23 37 49 0 7 134 84 177 12 41 104 96 162 137 151 51 132 165 138 45 28 194 126 178 145 128 5 149 57 112 1 199 127 92 153 195 142 167 149 176 55 142 148 103 15 47 73 165 149 137 169 131 170 53 168 52 178\n100\n156 181 95 186 129 131 78 59 152 89 158 38 54 172 8 56 171 147 103 111 174 19 107 5 199 188 61 45 35 92 132 76 67 3 167 99 54 167 12 114 129 193 177 54 12 31 89 126 47 99 89 74 36 12 187 157 103 91 82 29 27 161 152 96 46 183 197 154 32 102 145 76 24 81 195 23 32 143 2 169 82 189 37 199 35 179 54 52 199 150 132 145 93 71 49 190 4 177 105 119\n100\n150 128 28 122 68 185 174 184 51 84 37 115 189 81 74 159 50 146 60 27 33 21 161 18 146 150 63 61 46 58 194 171 145 102 46 20 54 153 160 186 19 135 16 113 135 192 18 65 170 136 125 146 44 112 82 15 105 126 1 173 106 80 193 190 191 14 23 57 100 49 122 85 162 102 68 174 152 48 35 38 162 37 72 192 0 143 119 81 170 191 145 184 114 85 79 199 82 186 119 50\n100\n193 185 116 8 88 99 25 96 169 131 14 102 170 137 198 77 198 51 88 63 53 105 141 67 62 55 81 95 18 72 94 70 138 121 45 123 43 165 118 135 137 199 99 192 154 124 31 66 29 122 156 18 75 92 110 161 132 128 122 149 77 26 148 78 177 138 175 144 125 139 21 140 40 166 81 148 147 151 107 151 110 157 77 9 3 176 140 23 174 54 169 106 85 199 48 130 173 58 16 84\n100\n173 31 4 183 191 22 10 187 164 168 194 179 23 109 57 141 85 77 23 72 28 35 149 117 9 143 67 65 190 91 169 138 4 176 12 191 93 9 20 197 62 128 100 159 42 40 89 94 42 20 86 146 164 86 71 143 66 74 45 188 149 27 154 104 81 46 157 85 114 150 32 73 143 112 32 83 39 168 189 83 9 187 195 45 112 39 135 48 79 7 30 154 1 140 43 118 12 177 23 72\n100\n183 85 86 120 57 102 39 6 76 124 52 37 35 99 116 90 167 6 21 175 120 192 165 147 58 84 131 29 182 105 162 89 123 70 142 82 196 180 169 72 115 51 136 155 174 77 154 129 82 51 169 37 101 76 4 73 161 197 195 125 85 62 29 160 118 73 79 109 62 24 174 82 75 15 143 46 132 168 84 161 72 86 66 89 151 4 33 194 76 198 4 133 68 184 17 164 16 14 66 196\n100\n73 148 110 196 141 191 66 189 20 155 148 51 81 71 25 28 173 54 109 30 38 191 139 53 48 167 54 77 90 197 56 173 189 62 136 29 88 139 185 41 167 120 160 47 181 182 6 189 184 3 160 62 132 192 43 63 123 11 140 92 43 70 119 49 112 176 45 86 156 3 164 98 108 78 138 123 5 11 193 117 143 27 114 90 16 1 139 144 36 12 74 33 140 1 183 135 28 33 37 134\n100\n177 71 122 63 59 140 168 82 48 166 90 27 58 71 106 105 1 34 170 155 107 99 130 75 3 39 194 88 64 73 48 158 80 87 164 113 13 52 170 178 166 104 16 49 177 37 137 59 32 155 105 126 137 166 114 155 90 46 182 35 93 136 46 38 56 3 114 199 41 125 74 124 144 63 149 76 197 134 47 26 43 44 192 161 69 175 139 96 81 71 68 113 66 30 6 109 90 59 84 146\n100\n159 103 6 191 93 196 183 150 157 35 12 67 69 165 103 173 191 116 149 115 118 43 188 97 111 91 74 163 125 7 170 121 127 58 136 75 21 176 199 119 41 11 112 9 35 63 30 114 136 183 32 188 139 105 70 140 68 191 128 185 137 120 124 197 154 103 94 162 65 154 100 102 114 29 194 26 63 128 148 79 151 199 3 42 80 16 90 98 58 130 153 151 62 44 49 85 55 172 89 58\n100\n152 129 40 60 46 27 44 22 136 73 154 133 156 51 191 134 131 122 79 2 176 180 69 188 29 85 2 10 127 74 160 99 42 55 193 65 128 172 84 126 198 123 1 187 88 197 52 175 150 78 55 93 30 6 131 89 165 121 127 164 40 113 189 110 88 163 120 188 21 64 3 154 122 116 54 186 25 124 18 102 120 59 88 82 141 174 100 166 22 154 152 50 116 26 86 2 137 101 101 149\n100\n167 102 65 81 43 110 108 89 58 184 121 106 186 187 171 90 172 118 73 153 81 62 196 13 51 115 4 185 133 164 104 37 53 184 133 172 121 144 170 57 88 129 97 140 123 101 143 76 131 100 48 13 53 111 93 132 51 14 199 16 12 34 49 52 112 141 9 50 180 169 135 162 165 111 17 11 163 121 6 145 43 50 193 64 42 44 33 136 102 25 159 153 7 6 143 129 151 70 195 28\n100\n141 59 20 115 144 178 58 184 138 183 38 137 35 30 182 115 80 21 25 152 4 46 12 4 45 25 44 149 194 129 132 9 116 29 161 133 130 146 132 83 73 39 80 35 187 170 189 29 160 121 197 189 163 44 21 105 15 113 134 199 137 15 164 58 111 183 46 143 137 31 55 51 151 90 52 95 20 61 160 167 73 34 133 191 101 178 187 79 100 15 109 72 61 152 170 23 64 137 50 10\n100\n191 178 43 161 21 118 98 183 133 95 109 72 68 103 64 45 49 50 46 142 44 155 59 168 85 101 168 47 6 187 135 109 164 33 151 140 25 124 146 0 38 31 21 17 24 184 15 144 152 19 70 167 119 174 87 30 145 116 44 99 162 85 115 121 102 72 4 173 133 52 11 29 24 159 183 65 45 150 26 191 97 13 171 186 62 190 184 106 18 22 119 66 18 191 159 166 103 79 98 67\n100\n145 103 30 20 25 134 21 33 35 87 193 27 148 24 92 118 0 44 31 86 95 108 153 197 192 121 19 107 71 22 161 191 52 51 123 165 156 180 61 65 123 100 28 35 153 12 82 76 157 89 92 199 176 61 42 131 60 100 38 80 20 145 129 168 141 162 34 33 70 82 0 160 164 141 99 136 65 33 29 27 54 28 119 184 110 168 17 197 125 6 10 63 48 90 169 144 199 43 155 64\n100\n137 158 6 111 14 147 93 129 187 80 85 164 34 76 15 118 184 47 48 147 155 32 181 37 27 96 59 124 199 53 101 41 4 129 15 165 50 132 83 119 96 39 178 38 41 3 6 20 70 49 5 124 78 187 184 29 139 98 173 38 15 2 41 85 63 11 66 27 183 130 165 82 182 31 35 90 12 56 2 48 113 126 97 64 15 93 107 37 18 138 24 70 183 145 128 59 83 21 137 160\n100\n149 123 83 105 47 113 186 184 9 34 100 170 39 157 68 56 85 192 22 133 135 183 27 99 61 90 135 100 79 173 106 85 45 9 36 181 139 99 101 7 195 19 84 27 155 160 133 52 0 3 88 198 75 169 104 190 43 157 57 119 75 149 190 146 198 67 146 109 80 79 181 7 119 138 25 99 170 14 110 155 32 165 18 120 37 64 109 103 144 50 141 101 144 27 141 110 96 24 83 98\n100\n40 131 170 154 135 103 45 9 14 32 117 30 118 32 13 90 61 132 35 117 45 121 18 5 133 121 46 170 188 194 8 27 35 177 75 5 50 42 54 118 190 124 179 165 154 171 22 44 67 109 10 72 152 74 177 97 170 141 67 141 17 168 65 121 55 127 114 83 137 132 149 162 82 35 192 135 130 134 120 128 88 124 34 33 3 125 122 182 160 65 130 64 23 122 86 108 38 31 165 26\n100\n162 163 178 19 51 141 115 76 168 121 98 187 131 39 139 152 30 74 181 142 118 100 100 34 6 80 190 123 199 168 85 34 55 144 44 108 0 19 118 149 147 180 99 48 84 119 132 140 88 170 97 33 140 22 145 140 127 50 82 47 99 50 130 196 104 131 5 51 82 139 167 170 76 143 156 173 116 157 86 166 33 43 72 14 98 71 137 61 9 120 186 127 41 53 123 128 91 197 99 81\n100\n23 110 71 178 193 90 53 34 66 47 113 22 145 174 88 22 177 119 83 166 5 194 46 124 41 89 98 197 66 60 191 173 65 5 6 38 196 118 62 144 126 15 93 123 169 124 18 169 72 70 161 15 25 129 94 37 195 30 149 100 101 194 161 103 192 159 148 6 13 169 39 55 161 51 10 77 176 139 22 102 24 196 49 23 112 123 114 171 8 20 181 156 98 149 145 97 66 43 48 192\n100\n131 4 95 94 50 149 151 181 198 45 75 45 184 33 100 199 167 97 9 141 31 99 98 174 187 159 62 145 129 59 124 167 166 168 127 94 49 196 142 123 196 17 11 168 48 181 33 174 88 84 68 68 25 4 44 121 160 111 122 151 100 142 30 25 30 51 120 198 127 80 5 182 25 14 12 4 192 9 138 5 66 66 171 80 164 141 26 86 135 133 51 124 76 92 159 151 196 127 7 87\n1\n27\n100\n120 5 127 37 110 183 3 137 83 141 35 21 77 78 80 34 111 29 53 130 8 130 48 32 141 70 16 63 18 15 184 109 174 141 85 8 160 148 85 178 101 171 105 1 196 172 109 131 187 70 125 184 2 127 146 88 152 197 189 95 198 151 18 173 57 119 73 115 68 83 10 59 125 196 39 183 118 159 118 61 167 3 166 138 26 193 82 76 160 138 157 180 154 78 61 68 121 73 98 157\n100\n58 19 145 101 189 16 156 39 125 125 132 178 21 116 162 87 8 138 130 5 90 199 169 7 53 13 56 185 183 148 193 199 162 6 66 135 19 71 64 199 8 47 14 114 12 107 22 127 92 120 199 98 71 186 192 152 17 124 188 93 89 88 14 96 68 146 158 137 145 168 197 25 47 21 37 43 107 70 149 146 39 52 12 20 31 76 91 125 45 99 16 174 56 77 72 136 8 96 109 132\n100\n158 188 144 4 130 127 49 119 68 174 101 161 55 166 127 113 162 180 18 128 89 113 141 23 196 131 40 31 135 32 182 182 50 44 52 57 1 68 33 173 94 19 126 83 133 182 112 36 25 52 12 24 45 96 2 173 158 105 77 158 111 81 50 170 180 53 127 159 116 197 118 118 177 181 65 152 113 171 176 186 74 42 41 109 97 62 48 42 148 192 136 20 17 29 24 181 38 106 161 150\n100\n147 58 39 105 181 68 14 1 116 94 167 45 167 39 163 0 174 44 199 125 80 17 24 49 86 74 57 185 15 58 75 30 182 11 37 70 162 191 28 61 12 96 76 100 158 171 191 48 122 98 150 158 128 145 142 38 60 73 77 93 95 4 13 32 125 104 95 21 48 168 84 20 91 38 32 119 137 166 32 62 134 31 37 94 102 11 114 42 69 34 147 130 103 41 6 11 97 137 102 15\n100\n63 117 117 199 151 43 138 182 54 87 12 112 122 37 174 91 8 118 51 77 23 52 11 30 189 1 15 87 128 29 121 187 63 127 88 77 114 46 75 82 31 39 19 169 47 162 6 160 152 105 161 120 180 41 150 139 138 124 151 5 140 189 25 82 104 53 180 30 11 6 58 187 51 127 30 22 147 7 96 114 5 149 6 10 115 135 188 185 134 113 23 76 163 177 126 122 107 129 66 27\n100\n25 100 48 175 130 157 13 96 16 92 105 51 7 130 103 147 52 55 84 135 194 146 190 36 47 105 7 78 158 81 146 99 22 192 13 8 52 41 191 176 124 57 108 146 158 32 63 27 31 41 79 37 100 37 109 150 54 140 197 27 179 46 139 38 81 98 192 21 97 93 13 6 129 93 151 16 194 38 188 75 171 21 180 83 166 99 156 9 66 68 159 195 184 128 94 132 66 58 66 63\n100\n113 31 86 160 166 49 122 60 83 173 166 106 146 74 108 146 70 20 66 69 178 127 38 84 159 167 178 30 121 191 90 93 44 9 107 40 123 22 47 150 25 62 182 169 140 1 55 105 126 87 63 179 166 78 145 9 86 106 120 43 6 42 161 183 138 17 195 109 199 97 195 142 52 167 140 103 55 155 52 56 45 62 197 50 189 65 105 127 47 27 103 76 65 75 46 181 3 15 63 160\n100\n116 181 177 133 28 184 103 44 76 174 108 135 2 135 41 186 193 120 14 144 57 112 104 96 91 106 26 16 183 133 111 176 105 65 6 98 18 19 191 24 67 50 134 95 175 75 94 187 65 162 39 108 60 82 186 95 122 135 148 159 119 138 66 173 150 60 141 93 148 6 118 68 12 65 19 127 171 114 42 150 149 128 61 177 136 25 6 65 183 153 5 26 153 165 145 127 180 31 180 183\n100\n147 123 81 63 144 49 26 40 62 91 29 98 198 178 127 25 60 69 180 23 147 2 165 82 23 55 187 7 9 130 91 111 144 144 75 89 5 156 124 17 56 48 160 80 50 88 166 67 178 173 43 48 132 176 163 198 135 16 57 180 166 61 91 133 129 85 50 91 93 88 88 186 57 159 27 110 26 90 41 64 66 74 92 148 12 92 16 158 27 159 42 39 163 48 196 50 96 196 78 108\n100\n86 37 103 123 1 41 45 30 94 0 193 54 194 4 142 124 169 181 43 27 1 102 23 38 161 34 101 5 100 132 56 36 10 117 193 77 192 110 190 8 175 89 69 191 139 35 106 39 173 69 173 44 27 195 136 195 102 116 7 22 164 148 8 172 8 190 157 47 31 86 96 106 67 14 190 67 5 111 183 53 39 26 142 129 40 127 140 86 43 47 153 70 10 5 109 171 71 42 132 42\n100\n20 25 81 118 188 151 52 57 65 175 30 151 102 150 188 147 72 90 19 117 193 160 156 92 93 199 32 49 73 143 133 44 56 86 25 164 0 132 22 145 53 109 95 147 108 119 34 136 123 44 182 90 175 146 39 48 165 162 168 119 69 182 113 87 140 166 33 90 121 36 77 195 106 63 49 20 56 133 166 155 57 21 61 101 60 116 163 138 178 197 134 188 99 70 199 115 166 65 32 74\n100\n78 137 0 48 193 158 157 71 58 82 17 65 106 20 112 4 2 197 136 43 116 178 106 24 115 73 160 78 136 119 8 188 182 121 16 23 112 186 170 166 42 68 58 76 62 146 181 153 104 38 197 122 195 111 115 187 21 37 4 178 40 64 166 94 131 165 156 184 65 106 65 0 184 189 2 11 157 7 7 27 86 143 35 112 31 77 49 6 1 35 146 159 176 11 108 90 164 197 125 107\n100\n83 15 177 94 180 155 168 134 183 11 116 3 148 0 41 60 73 123 189 32 23 187 178 139 103 137 90 63 177 1 3 113 30 114 99 198 103 198 117 190 68 174 92 48 106 184 48 126 167 35 7 177 71 5 30 120 45 58 159 198 42 8 77 66 33 105 78 90 111 40 17 2 69 143 48 26 160 57 63 46 90 68 126 186 10 49 139 13 162 158 20 37 15 75 172 76 190 29 155 10\n100\n77 184 75 35 176 40 48 129 190 33 167 37 123 45 3 194 86 134 52 75 141 125 1 55 104 178 191 33 60 125 26 125 90 189 107 135 47 119 83 14 28 113 48 26 40 127 109 66 165 165 87 73 176 150 53 153 29 109 143 0 266 11 178 163 188 168 2 160 168 173 66 160 18 185 1 85 19 146 13 96 189 94 4 119 19 27 88 61 95 52 43 90 147 165 124 84 125 153 192 110\n100\n197 97 5 112 56 56 130 31 34 101 171 38 56 65 36 69 124 186 172 2 52 71 180 125 180 108 199 137 67 128 12 31 84 93 58 140 87 88 77 159 159 130 30 76 140 38 191 60 76 60 94 128 37 53 185 139 127 128 196 104 168 196 175 13 183 191 148 46 133 159 127 173 1 7 95 152 35 60 52 171 195 120 73 88 67 175 163 12 74 49 130 28 195 183 33 127 45 0 185 190\n100\n172 38 171 193 96 173 61 108 116 100 139 27 97 72 178 89 172 93 58 199 78 166 10 42 195 167 177 54 54 192 2 26 194 45 174 148 83 44 81 175 70 47 118 98 167 194 172 67 138 191 189 68 60 112 100 12 34 77 175 17 90 47 190 140 105 84 43 14 164 100 98 82 75 170 123 98 51 64 77 23 60 164 117 67 170 119 55 97 127 65 100 88 169 13 198 44 159 50 56 5\n100\n10 28 113 20 82 32 66 187 31 64 101 180 185 102 73 53 194 27 188 154 2 66 168 147 171 137 33 112 62 120 101 155 85 86 117 141 163 48 132 67 153 146 13 194 107 75 66 129 82 108 2 94 171 106 98 155 144 44 24 178 101 31 140 103 125 128 159 189 70 49 112 188 163 0 141 114 105 44 111 175 84 106 58 197 194 159 123 15 96 22 58 73 76 196 106 105 195 187 143 141\n100\n139 188 39 77 172 152 196 82 171 185 129 184 47 68 139 199 15 122 42 112 107 31 48 54 171 90 9 58 125 127 68 164 155 105 89 7 155 196 123 141 49 34 184 26 186 11 22 69 58 11 0 4 185 103 162 8 122 40 1 137 12 147 119 91 148 160 5 25 90 130 81 88 195 38 11 184 47 55 171 102 100 161 117 165 139 101 23 15 9 53 2 31 185 89 7 144 135 64 12 27\n100\n184 155 95 85 49 38 155 15 141 56 9 19 27 62 48 179 143 131 151 51 96 98 179 138 106 191 101 13 181 51 69 86 77 142 141 155 35 58 199 161 180 295 184 138 113 56 193 173 71 31 52 53 199 23 100 36 0 166 192 146 164 103 81 152 9 133 122 82 89 42 104 69 140 136 65 5 12 72 26 155 25 10 156 188 46 68 14 13 196 126 65 85 181 29 56 188 116 38 198 115\n100\n99 22 133 68 29 143 116 28 61 190 24 141 47 147 119 81 182 89 30 3 149 190 191 168 145 117 145 167 70 138 186 125 2 182 95 28 55 196 120 141 13 146 78 27 103 124 86 186 165 197 68 16 18 144 4 163 79 15 172 43 7 17 126 17 180 57 69 136 58 100 22 74 35 28 114 158 99 27 192 121 140 89 136 43 93 146 21 28 94 18 2 143 96 27 17 85 3 72 176 85\n100\n111 66 54 154 142 43 100 150 66 9 134 198 100 182 116 85 93 53 124 21 48 111 75 43 103 23 116 123 85 3 112 117 84 69 7 166 104 184 181 65 172 30 160 87 115 145 193 21 42 65 49 158 148 166 70 96 93 103 167 83 60 114 44 15 114 124 161 125 0 67 172 49 17 18 13 158 179 69 86 75 124 46 187 117 82 71 140 101 35 25 73 147 6 188 117 43 138 184 157 39\n100\n94 60 131 53 65 37 190 171 27 97 60 184 91 99 91 140 90 106 13 98 23 190 162 125 21 195 146 178 154 1 123 13 98 146 87 78 12 118 82 84 114 156 19 58 127 130 1 26 92 166 24 144 155 102 19 88 184 21 156 35 68 199 10 13 108 135 115 162 154 102 34 115 10 63 74 92 184 81 148 40 24 101 181 102 93 96 20 101 55 179 178 14 7 73 99 66 68 185 124 164\n100\n187 29 118 111 2 122 42 187 142 97 188 172 38 13 133 148 31 150 196 59 9 29 117 124 106 121 189 25 138 9 69 81 39 107 29 113 154 85 50 193 49 194 2 8 134 127 72 107 96 142 172 50 8 19 21 83 127 173 105 44 158 175 44 91 134 152 183 24 186 63 131 101 153 155 126 196 128 51 61 10 80 153 52 91 91 52 9 126 69 134 63 130 121 67 49 17 65 11 125 108\n"
] |
[
"0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n27\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n",
"0\n0\n",
"0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n5\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n",
"0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n27\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n",
"0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n27\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n",
"0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n27\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n",
"0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n27\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n",
"0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n27\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n",
"0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n27\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n",
"0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n27\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n"
] |
CodeContests
|
On a large chess board, there are N ants, each numbered from 1 to N. As shown in the figure, the chess board is a rectangle consisting of H × W squares, with the northwest corner as white, and white squares and black squares are arranged alternately.
<image>
Initially, every ant is in a chessboard square, facing east or south. There can never be more than one ant in a square.
Now the ants are moving all at once. All ants move one to the square in the direction facing one unit of time. However, if the destination is outside the chess board, it will fall and disappear from the chess board.
When two ants enter the same square on the chess board, they behave as follows:
* If the color of the square is white, ants traveling eastward will turn southward, and ants traveling southward will turn eastward.
* If the square is black, each ant keeps its direction.
Create a program that reports the number of ants in the order in which they fall, given the size of the chess board and information on the ants. However, if multiple ants fall at the same time, the one with the smaller number will be reported first.
Input
The input is given in the following format.
W H N
x1 y1 d1
x2 y2 d2
::
xN yN dN
The first line gives the number of squares in the east-west direction of the chess board W, the number of squares in the north-south direction H (2 ≤ W, H ≤ 109), and the number of ants N (1 ≤ N ≤ 200000). On the next N line, the east-west position xi (1 ≤ xi ≤ W) of the i-th ant, the north-south position yi (1 ≤ yi ≤ H), the orientation letter di ("E" for east, south In the case of orientation, "S") is given. Here, the square at the northwest corner of the chess board is (1,1), the direction in which x increases is east, and the direction in which y increases is south.
Output
The ant numbers are output line by line in the order of falling.
Examples
Input
3 3 3
2 1 S
1 2 E
2 2 E
Output
3
1
2
Input
5 4 3
3 1 S
2 2 E
1 3 E
Output
2
3
1
|
stdin
| null | 1,816
| 1
|
[
"3 3 3\n2 1 S\n1 2 E\n2 2 E\n",
"5 4 3\n3 1 S\n2 2 E\n1 3 E\n"
] |
[
"3\n1\n2\n",
"2\n3\n1\n"
] |
[
"3 3 3\n2 1 S\n1 2 E\n3 2 E\n",
"3 3 1\n2 1 S\n1 2 E\n3 2 E\n",
"5 4 3\n3 1 S\n2 3 E\n1 3 E\n",
"3 3 3\n2 1 S\n1 1 E\n1 2 E\n",
"3 5 2\n2 1 S\n2 2 E\n6 2 E\n",
"3 3 3\n2 0 S\n1 2 E\n2 2 E\n",
"5 4 2\n3 1 S\n2 3 E\n2 3 E\n",
"3 3 3\n2 2 S\n1 2 E\n2 2 E\n",
"3 3 1\n2 1 S\n2 2 E\n3 2 E\n",
"3 2 1\n2 1 S\n2 2 E\n3 2 E\n"
] |
[
"3\n1\n2\n",
"1\n",
"2\n3\n1\n",
"1\n2\n3\n",
"2\n1\n",
"3\n2\n1\n",
"1\n2\n",
"1\n3\n2\n",
"1\n",
"1\n"
] |
CodeContests
|
There are N people, conveniently numbered 1 through N. They were standing in a row yesterday, but now they are unsure of the order in which they were standing. However, each person remembered the following fact: the absolute difference of the number of the people who were standing to the left of that person, and the number of the people who were standing to the right of that person. According to their reports, the difference above for person i is A_i.
Based on these reports, find the number of the possible orders in which they were standing. Since it can be extremely large, print the answer modulo 10^9+7. Note that the reports may be incorrect and thus there may be no consistent order. In such a case, print 0.
Constraints
* 1≦N≦10^5
* 0≦A_i≦N-1
Input
The input is given from Standard Input in the following format:
N
A_1 A_2 ... A_N
Output
Print the number of the possible orders in which they were standing, modulo 10^9+7.
Examples
Input
5
2 4 4 0 2
Output
4
Input
7
6 4 0 2 4 0 2
Output
0
Input
8
7 5 1 1 7 3 5 3
Output
16
|
stdin
| null | 537
| 1
|
[
"8\n7 5 1 1 7 3 5 3\n",
"7\n6 4 0 2 4 0 2\n",
"5\n2 4 4 0 2\n"
] |
[
"16\n",
"0\n",
"4\n"
] |
[
"8\n7 5 1 2 7 3 5 3\n",
"7\n6 4 0 2 4 0 4\n",
"5\n0 4 4 0 2\n",
"7\n6 4 0 2 4 -1 4\n",
"5\n0 4 4 0 1\n",
"7\n6 4 0 2 8 -1 4\n",
"5\n0 4 1 0 1\n",
"7\n6 4 0 2 8 0 4\n",
"5\n0 4 0 0 1\n",
"7\n6 4 1 2 8 0 4\n"
] |
[
"0\n",
"0\n",
"0\n",
"0\n",
"0\n",
"0\n",
"0\n",
"0\n",
"0\n",
"0\n"
] |
CodeContests
|
Given is a three-digit integer N. Does N contain the digit 7?
If so, print `Yes`; otherwise, print `No`.
Constraints
* 100 \leq N \leq 999
Input
Input is given from Standard Input in the following format:
N
Output
If N contains the digit 7, print `Yes`; otherwise, print `No`.
Examples
Input
117
Output
Yes
Input
123
Output
No
Input
777
Output
Yes
|
stdin
| null | 3,631
| 1
|
[
"777\n",
"123\n",
"117\n"
] |
[
"Yes\n",
"No\n",
"Yes\n"
] |
[
"1413\n",
"187\n",
"68\n",
"1760\n",
"89\n",
"144\n",
"2610\n",
"151\n",
"91\n",
"3439\n"
] |
[
"No\n",
"Yes\n",
"No\n",
"Yes\n",
"No\n",
"No\n",
"No\n",
"No\n",
"No\n",
"No\n"
] |
CodeContests
|
Today Oz is playing a new game. He has an array arr[] of N distinct integers . In each turn he is will follow two actions -
1) He select a random number from arr[]. Say value of this element is X.
2) He will remove X from arr[]. if X-1 is present in arr[] then he will remove it. if X+1 is present in arr[] then he will remove it.
Oz will make turns until arr[] becomes empty. Oz loves this game so he wants to make maximum number of possible turns. Help Oz to make maximum number of possible turns.
Input :
The first line contains the number of test cases - T . Each test case consist of two lines. First line will contain a integer N - number of elements in arr[]. Second line will contain N space separated integers.
Output :
For each test case output maximum number of possible turns that Oz can make.
Constraints :
1 ≤ T ≤ 100
1 ≤ N ≤ 100
1 ≤ each element of arr[] ≤ 1000
SAMPLE INPUT
1
6
291 292 295 297 298 299
SAMPLE OUTPUT
4
Explanation
One of the possible way to make 4 turns is by choosing the following elements in each turn: 297, 299, 295, 292.
|
stdin
| null | 4,063
| 1
|
[
"1\n6\n291 292 295 297 298 299\n\nSAMPLE\n"
] |
[
"4\n"
] |
[
"1\n6\n291 292 295 297 158 299\n\nSAMPLE\n",
"1\n6\n559 292 295 297 158 299\n\nSAMPLE\n",
"1\n6\n291 292 529 297 298 299\n\nSAMPLE\n",
"1\n6\n559 292 295 297 158 115\n\nSAMPLE\n",
"1\n6\n559 292 295 297 158 115\n\nPAMSLE\n",
"1\n6\n559 292 295 297 120 115\n\nPAMSLE\n",
"1\n6\n559 292 295 297 120 212\n\nPAMSLE\n",
"1\n6\n89 292 295 297 120 212\n\nPAMSLE\n",
"1\n6\n79 292 295 297 120 212\n\nPAMSLE\n",
"1\n6\n79 292 295 297 180 212\n\nPAMSLE\n"
] |
[
"5\n",
"6\n",
"4\n",
"6\n",
"6\n",
"6\n",
"6\n",
"6\n",
"6\n",
"6\n"
] |
CodeContests
|
The postal system in the area where Masa lives has changed a bit. In this area, each post office is numbered consecutively from 1 to a different number, and mail delivered to a post office is intended from that post office via several post offices. Delivered to the post office. Mail "forwarding" is only done between specific post offices. However, the transfer is bidirectional between the post offices where the transfer is performed.
If there are multiple routes for forwarding mail from a post office to the destination, use the route that minimizes the distance to the destination. Therefore, the forwarding destination will be the next post office on such a shortest path. If there are multiple routes with the shortest total distance, the postal office number that is the direct transfer destination is transferred to the younger one.
<image> <image>
By the way, the region is suffering from a serious labor shortage, and each post office has only one transfer person to transfer between post offices. They are doing their best to go back and forth. Of course, if the forwarding agent belonging to a post office has paid the mail when the mail arrives at that post office, the forwarding from that post office will be temporarily stopped.
When they are at their post office, they depart immediately if there is mail that has not been forwarded from that post office, and return immediately after delivering it to the forwarding destination. When he returns from the destination post office, he will not carry the mail that will be forwarded to his post office, even if it is at that post office (the mail will be forwarded to that mail). It is the job of the post office transferman).
If multiple mail items are collected at the time of forwarding, the mail that was delivered to the post office earliest is transferred first. Here, if there are multiple mail items that arrived at the same time, the mail is forwarded from the one with the youngest post office number that is the direct forwarding destination. If there is mail that has the same forwarding destination, it will also be forwarded together. Also, if the mail that should be forwarded to the same post office arrives at the same time as the forwarding agent's departure time, it will also be forwarded. It should be noted that they all take 1 time to travel a distance of 1.
You will be given information about the transfer between post offices and a list of the times when the mail arrived at each post office. At this time, simulate the movement of the mail and report the time when each mail arrived at the destination post office. It can be assumed that all the times required during the simulation of the problem are in the range 0 or more and less than 231.
Input
The input consists of multiple datasets, and the end of the input is represented by a single line with only 0 0. The format of each dataset is as follows.
The first line of the dataset is given the integers n (2 <= n <= 32) and m (1 <= m <= 496), separated by a single character space. n represents the total number of post offices and m represents the number of direct forwarding routes between post offices. There can never be more than one direct forwarding route between two post offices.
On the next m line, three integers containing information on the direct transfer route between stations are written. The first and second are the postal numbers (1 or more and n or less) at both ends of the transfer route, and the last integer represents the distance between the two stations. The distance is greater than or equal to 1 and less than 10000.
The next line contains the integer l (1 <= l <= 1000), which represents the number of mail items to process, followed by the l line, which contains the details of each piece of mail. Three integers are written at the beginning of each line. These are, in order, the sender's postal office number, the destination postal office number, and the time of arrival at the sender's postal office. At the end of the line, a string representing the label of the mail is written. This label must be between 1 and 50 characters in length and consists only of letters, numbers, hyphens ('-'), and underscores ('_'). Information on each of these mail items is written in chronological order of arrival at the post office of the sender. At the same time, the order is not specified. In addition, there is no mail with the same label, mail with the same origin and destination, or mail without a delivery route.
Each number or string in the input line is separated by a single character space.
Output
Output l lines for each dataset. Each output follows the format below.
For each mail, the time when the mail arrived is output on one line. On that line, first print the label of the mail, then with a one-character space, and finally print the time when the mail arrived at the destination post office. These are output in order of arrival time. If there are multiple mails arriving at the same time, the ASCII code of the label is output in ascending order.
A blank line is inserted between the outputs corresponding to each dataset.
Example
Input
4 5
1 2 10
1 3 15
2 3 5
2 4 3
3 4 10
2
1 4 10 LoveLetter
2 3 20 Greetings
3 3
1 2 1
2 3 1
3 1 1
3
1 2 1 BusinessMailC
2 3 1 BusinessMailB
3 1 1 BusinessMailA
0 0
Output
Greetings 25
LoveLetter 33
BusinessMailA 2
BusinessMailB 2
BusinessMailC 2
|
stdin
| null | 2,895
| 1
|
[
"4 5\n1 2 10\n1 3 15\n2 3 5\n2 4 3\n3 4 10\n2\n1 4 10 LoveLetter\n2 3 20 Greetings\n3 3\n1 2 1\n2 3 1\n3 1 1\n3\n1 2 1 BusinessMailC\n2 3 1 BusinessMailB\n3 1 1 BusinessMailA\n0 0\n"
] |
[
"Greetings 25\nLoveLetter 33\n\nBusinessMailA 2\nBusinessMailB 2\nBusinessMailC 2\n"
] |
[
"4 5\n1 2 10\n1 3 15\n2 3 5\n2 4 3\n3 4 10\n2\n1 4 10 LoveLetter\n2 3 13 Greetings\n3 3\n1 2 1\n2 3 1\n3 1 1\n3\n1 2 1 BusinessMailC\n2 3 1 BusinessMailB\n3 1 1 BusinessMailA\n0 0\n",
"4 5\n1 2 10\n2 3 15\n2 3 5\n2 4 3\n3 4 10\n2\n1 4 10 LoveLetter\n2 3 13 Greetings\n3 3\n1 2 1\n2 3 1\n3 1 1\n3\n1 2 1 BusinesrMailC\n2 3 1 BusinessMailB\n3 1 1 BusinessMailA\n0 0\n",
"4 5\n1 2 10\n1 3 15\n2 3 5\n2 4 4\n3 4 10\n2\n1 4 10 LoveLetter\n2 3 13 Greetings\n3 3\n1 2 1\n2 3 1\n3 1 1\n3\n1 2 1 BusinessMailC\n2 3 1 BusinessMailB\n3 1 1 BusinessMailA\n0 0\n",
"4 5\n1 2 10\n2 3 18\n2 3 5\n2 4 3\n3 4 10\n2\n1 4 17 LoveLetter\n2 3 13 Greetings\n3 3\n1 2 1\n2 3 1\n3 1 1\n3\n1 2 1 BusinesrMailC\n2 3 1 BusinessMailB\n3 1 1 BusinessMailA\n0 0\n",
"4 5\n1 2 10\n2 3 18\n2 3 5\n2 4 3\n3 4 10\n2\n1 4 17 LoveLetter\n2 3 13 Greetings\n6 3\n1 2 1\n2 3 1\n3 1 0\n3\n1 2 1 BusinesrMailC\n2 3 1 BusinessMailB\n3 1 1 BusinessMailA\n0 0\n",
"4 5\n1 2 10\n2 3 18\n2 3 5\n2 4 3\n3 4 10\n2\n1 4 17 LoveLetter\n2 3 13 Gseetings\n6 3\n1 2 1\n2 3 1\n3 1 0\n3\n1 2 1 BusinesrMailC\n2 3 1 BusinessMailB\n3 1 1 BusinessMailA\n0 0\n",
"4 5\n1 2 10\n2 3 15\n2 3 5\n2 4 3\n3 4 10\n2\n1 4 10 LoveLetter\n2 3 13 Greetings\n3 3\n1 2 1\n2 3 1\n3 1 1\n3\n1 2 1 BusinesrMailC\n2 3 1 BusinessMailB\n3 1 2 BusinessMailA\n0 0\n",
"4 5\n1 2 15\n2 3 18\n2 3 5\n2 4 3\n3 4 10\n2\n1 4 17 LoveLetter\n2 3 13 Greetings\n3 3\n1 2 1\n2 3 1\n3 1 1\n3\n1 2 1 BusinesrMailC\n2 3 1 BusinessMailB\n3 1 1 BusinessMailA\n0 0\n",
"4 5\n1 2 10\n2 3 18\n2 3 5\n2 4 3\n3 4 10\n2\n1 4 17 LoveLetter\n2 3 13 Greetings\n6 3\n1 2 1\n2 3 1\n3 1 1\n3\n1 2 1 BusinesrMailC\n2 3 0 BusinessMailB\n3 1 1 BusinessMailA\n0 0\n",
"4 5\n1 2 10\n2 3 18\n2 3 5\n2 4 3\n3 4 10\n2\n1 4 17 LoveLetter\n2 3 13 Gseetings\n6 3\n1 2 1\n2 3 1\n3 1 0\n3\n1 2 1 CliaMrsenisuB\n2 3 1 BusinessMailB\n3 1 1 BusinessMailA\n0 0\n"
] |
[
"Greetings 18\nLoveLetter 26\n\nBusinessMailA 2\nBusinessMailB 2\nBusinessMailC 2\n",
"Greetings 18\nLoveLetter 26\n\nBusinesrMailC 2\nBusinessMailA 2\nBusinessMailB 2\n",
"Greetings 18\nLoveLetter 27\n\nBusinessMailA 2\nBusinessMailB 2\nBusinessMailC 2\n",
"Greetings 18\nLoveLetter 30\n\nBusinesrMailC 2\nBusinessMailA 2\nBusinessMailB 2\n",
"Greetings 18\nLoveLetter 30\n\nBusinessMailA 1\nBusinesrMailC 2\nBusinessMailB 3\n",
"Gseetings 18\nLoveLetter 30\n\nBusinessMailA 1\nBusinesrMailC 2\nBusinessMailB 3\n",
"Greetings 18\nLoveLetter 26\n\nBusinesrMailC 2\nBusinessMailB 2\nBusinessMailA 3\n",
"Greetings 18\nLoveLetter 35\n\nBusinesrMailC 2\nBusinessMailA 2\nBusinessMailB 2\n",
"Greetings 18\nLoveLetter 30\n\nBusinessMailB 1\nBusinesrMailC 2\nBusinessMailA 2\n",
"Gseetings 18\nLoveLetter 30\n\nBusinessMailA 1\nCliaMrsenisuB 2\nBusinessMailB 3\n"
] |
CodeContests
|
There is a grid with H rows and W columns.
The square at the i-th row and j-th column contains a string S_{i,j} of length 5.
The rows are labeled with the numbers from 1 through H, and the columns are labeled with the uppercase English letters from `A` through the W-th letter of the alphabet.
<image>
Exactly one of the squares in the grid contains the string `snuke`. Find this square and report its location.
For example, the square at the 6-th row and 8-th column should be reported as `H6`.
Constraints
* 1≦H, W≦26
* The length of S_{i,j} is 5.
* S_{i,j} consists of lowercase English letters (`a`-`z`).
* Exactly one of the given strings is equal to `snuke`.
Input
The input is given from Standard Input in the following format:
H W
S_{1,1} S_{1,2} ... S_{1,W}
S_{2,1} S_{2,2} ... S_{2,W}
:
S_{H,1} S_{H,2} ... S_{H,W}
Output
Print the labels of the row and the column of the square containing the string `snuke`, with no space inbetween.
Examples
Input
15 10
snake snake snake snake snake snake snake snake snake snake
snake snake snake snake snake snake snake snake snake snake
snake snake snake snake snake snake snake snake snake snake
snake snake snake snake snake snake snake snake snake snake
snake snake snake snake snake snake snake snake snake snake
snake snake snake snake snake snake snake snuke snake snake
snake snake snake snake snake snake snake snake snake snake
snake snake snake snake snake snake snake snake snake snake
snake snake snake snake snake snake snake snake snake snake
snake snake snake snake snake snake snake snake snake snake
snake snake snake snake snake snake snake snake snake snake
snake snake snake snake snake snake snake snake snake snake
snake snake snake snake snake snake snake snake snake snake
snake snake snake snake snake snake snake snake snake snake
snake snake snake snake snake snake snake snake snake snake
Output
H6
Input
1 1
snuke
Output
A1
|
stdin
| null | 3,560
| 1
|
[
"15 10\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snuke snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\n",
"1 1\nsnuke\n"
] |
[
"H6\n",
"A1\n"
] |
[
"15 10\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snuke snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake ekans snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\n",
"15 10\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snuke snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snakf snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\n",
"15 10\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snuke snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake ekans snake\nsnake snake snake snake snaje snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\n",
"15 10\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snuke snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snakf snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake ekans snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\n",
"15 10\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake sneka snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snuke snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake ekans snake\nsnake snake snake snake snaje snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\n",
"15 10\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake ekans snake\nsnake snake snake snake snake snake snake snuke snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snakf snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake ekans snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\n",
"15 10\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake ekans snake snake snake sneka snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snuke snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake ekans snake\nsnake snake snake snake snaje snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\n",
"15 10\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake ekans snake snake snake sneka snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snuke snake snake\nsnakd snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake ekans snake\nsnake snake snake snake snaje snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\n",
"15 10\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake ekans snake snake snale sneka snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snuke snake snake\nsnakd snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake ekans snake\nsnake snake snake snake snaje snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\n",
"15 10\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake ekans snake snake snale sneka snake snake snake\nsnake snake snake snaek snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snuke snake snake\nsnakd snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\nsnake snake snake snake snake snake snake snake ekans snake\nsnake snake snake snake snaje snake snake snake snake snake\nsnake snake snake snake snake snake snake snake snake snake\n"
] |
[
"H6\n",
"H6\n",
"H6\n",
"H6\n",
"H6\n",
"H6\n",
"H6\n",
"H6\n",
"H6\n",
"H6\n"
] |
CodeContests
|
Would you want to fight against bears riding horses?
Me neither.
Limak is a grizzly bear.
He is a general of the dreadful army of Bearland.
The most important part of an army is the cavalry of course.
The cavalry of Bearland consists of N warriors and N horses, both numbered 1 through N.
Limak knows the strength of each warrior W1, W2, ..., WN and the strength of each horse H1, H2, ..., HN.
A warrior together with his horse is called a unit.
The strength of a unit is equal to the multiplied strengths of a warrior and a horse.
General Limak must assign all horses to warriors, one horse per warrior.
The cavalry will consist of N units then.
The first warrior (the one with the strength W1) is called Bravebeart.
He is always the first to charge the enemy.
Limak decided that Bravebeart deserves some respect and his unit must be the strongest one, with no ties allowed.
But is it possible?
Help Limak and check whether there is an assignment of horses to warriors for which the Bravebeart's unit is strictly stronger than any other unit.
Print "YES" or "NO".
Input format
You are given multiple test cases.
The first line of input contains a single integer T, denoting the number of test cases.
For each test case the first line contains a single integer N.
The second line contains N integer numbers W1, W2, ..., WN, denoting the strengths of warriors.
The first of the numbers is the strength of Bravebeart.
The third line contains N integers H1, H2, ..., HN, denoting the strengths of the horses.
Output format
For each test case find the answer and print it in a separate line.
Print "YES" (without the quotes) if there is an assignment where the strength of the Bravebeart's unit is strictly greater than the strength of any other unit.
Otherwise, print "NO" (without the quotes).
Constraints
1 ≤ T ≤ 50
2 ≤ N ≤ 42
1 ≤ Wi, Hi ≤ 1000
SAMPLE INPUT
2
6
12 9 7 1 20 10
3 6 4 7 5 5
4
5 17 10 1
200 400 800 600
SAMPLE OUTPUT
YES
NO
Explanation
In the first test case Bravebeart can take a horse of strength 6 to get the unit strength 12*6=72.
One of the ways to assign other horses to warriors is (9, 7), (7, 5), (1, 5), (20, 3), (10, 4).
Indeed, the Bravebeart's unit is stronger than any other unit then.
In the second test case it's impossible to assign horses to warriors to satisfy the given condition.
|
stdin
| null | 3,623
| 1
|
[
"2\n6\n12 9 7 1 20 10\n3 6 4 7 5 5\n4\n5 17 10 1\n200 400 800 600\n\nSAMPLE\n"
] |
[
"YES\nNO\n"
] |
[
"50\n4\n100 785 393 616 \n2 45 586 236 \n4\n200 448 825 664 \n905 570 664 402 \n8\n500 536 971 937 162 289 63 442 \n845 427 269 921 860 259 298 8 \n12\n700 42 623 44 87 560 631 398 8 807 413 264 \n376 76 665 682 964 987 970 125 275 32 918 471 \n13\n500 539 743 669 797 393 28 839 434 651 234 872 562 \n864 622 921 670 386 185 398 814 201 431 777 188 400 \n15\n1000 814 784 170 285 593 708 27 614 504 771 641 694 205 643 \n279 428 205 494 401 477 516 139 661 913 952 214 695 728 401 \n20\n1 980 566 229 149 202 174 209 581 787 64 351 779 110 907 422 388 687 978 234 \n439 454 749 577 467 13 528 680 707 255 432 152 586 349 733 87 551 258 295 131 \n22\n495 358 833 174 467 740 947 207 426 924 440 864 730 540 441 548 552 320 227 610 575 10 \n113 512 358 845 598 260 102 892 742 849 602 575 23 68 314 969 626 91 245 65 306 974 \n23\n623 98 521 507 418 99 116 344 460 229 207 169 425 805 429 527 48 170 375 649 744 749 69 \n409 70 694 851 314 111 509 639 714 606 511 221 375 961 688 70 420 916 277 588 341 433 16 \n42\n1 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 1 1 1 1 1 1 1 1 1 1 \n1 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 1 1 1 1 1 1 1 1 1 1 \n28\n400 480 538 945 129 281 46 549 42 115 242 892 780 352 752 418 418 358 280 990 84 240 677 506 11 593 134 598 \n285 566 966 855 397 503 799 525 135 196 425 176 310 667 420 89 370 171 858 787 880 137 776 316 728 805 173 738 \n35\n80 5 724 115 586 294 850 254 161 26 983 109 215 814 127 199 94 574 328 222 151 338 505 788 453 37 993 379 137 466 887 113 46 33 920 \n72 713 213 88 324 784 819 123 219 623 829 902 245 30 525 84 125 283 154 76 566 633 159 91 99 477 142 743 447 190 800 335 657 81 361 \n35\n423 583 388 853 489 810 825 932 839 668 742 960 49 952 582 407 305 159 74 335 100 617 200 184 532 121 92 157 538 971 350 713 905 737 565 \n393 898 389 325 736 57 66 696 457 369 629 215 673 139 640 359 590 256 910 774 787 30 217 295 919 187 644 983 443 380 548 835 277 288 159 \n42\n7 47 288 241 12 17 18 8 7 885 331 499 118 12 560 14 553 76 13 459 10 26 25 695 9 947 49 517 314 342 12 898 430 969 66 10 15 28 8 9 153 192 \n27 96 864 33 18 41 22 746 134 12 222 439 19 7 6 615 249 623 497 13 362 696 671 12 7 524 128 506 20 236 9 54 453 792 11 12 906 14 400 6 334 83 \n42\n30 995 769 868 37 453 593 13 193 40 535 45 99 98 736 807 15 160 156 59 68 42 312 48 76 208 57 940 44 133 209 30 55 32 802 316 397 104 39 880 218 86 \n759 154 992 31 191 37 541 136 504 223 40 142 663 303 33 346 975 36 981 436 388 50 647 143 615 976 95 94 7 301 38 74 913 65 185 55 732 34 516 286 794 718 \n42\n11 990 210 16 12 601 39 20 47 714 416 15 142 11 275 677 33 56 258 139 19 823 875 415 561 301 11 21 337 785 630 63 666 907 750 183 12 12 509 13 27 480 \n360 458 210 797 252 12 33 23 11 10 54 17 14 10 887 156 13 36 15 13 20 792 23 767 29 47 14 515 905 16 299 38 12 655 19 52 588 70 71 863 486 754 \n42\n353 553 217 544 270 957 627 137 386 855 675 325 894 380 525 104 454 17 93 657 421 226 234 567 346 891 427 644 79 219 591 69 124 807 965 393 763 591 882 500 797 556 \n825 690 287 349 793 93 366 238 749 138 463 334 704 161 225 131 804 655 701 394 76 824 552 40 569 666 982 450 166 778 357 990 468 644 690 612 736 55 201 836 544 664 \n42\n30 50 686 624 311 458 37 290 425 431 45 92 42 33 76 799 103 88 44 626 49 357 801 979 406 51 784 965 176 79 117 857 663 48 559 99 546 160 879 83 177 38 \n43 578 47 320 102 353 766 653 285 149 54 584 95 68 884 64 371 30 704 597 299 613 168 37 30 34 37 47 386 662 33 253 334 53 185 73 37 44 83 988 69 801 \n42\n10 817 15 29 483 662 13 39 43 10 34 106 710 67 524 240 131 525 20 646 19 39 453 565 3 11 23 13 234 176 197 363 841 494 328 18 447 54 912 536 63 224 \n231 693 28 610 390 41 19 70 472 18 684 38 46 270 1 39 211 775 922 25 10 12 236 17 145 170 11 52 136 509 20 13 870 17 17 14 912 86 441 20 16 312 \n42\n280 787 531 597 926 173 495 348 359 990 221 866 339 177 253 412 964 733 984 498 820 544 685 323 556 182 303 617 501 647 306 365 433 836 313 358 360 807 57 718 797 629 \n583 487 157 187 898 121 919 881 970 90 424 654 412 331 187 67 947 687 713 604 403 145 439 67 854 150 874 262 867 22 891 801 508 47 988 757 519 258 989 488 348 764 \n42\n265 759 94 680 825 40 367 889 643 121 385 433 188 238 934 413 852 152 434 94 952 293 140 291 401 11 901 389 498 248 152 343 358 245 23 535 636 741 423 630 861 808 \n414 48 397 347 812 600 498 597 693 801 241 185 92 641 195 992 29 44 591 532 387 948 128 409 834 763 149 257 744 9 416 157 409 164 855 220 764 352 169 456 153 409 \n42\n1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 \n1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 \n42\n200 596 50 186 939 430 230 529 314 616 828 441 376 14 556 524 270 299 884 37 808 644 200 662 216 315 14 384 771 518 792 762 465 193 948 403 623 529 283 936 144 462 \n376 519 475 283 394 96 582 629 132 741 273 684 402 840 998 767 223 120 636 366 234 100 559 181 854 181 709 136 468 204 598 195 74 424 478 819 520 411 447 651 151 719 \n42\n14 552 66 26 238 17 20 37 62 18 98 634 26 37 73 636 210 22 645 323 94 888 30 836 23 890 14 391 187 48 34 970 822 15 409 803 788 28 535 47 63 933 \n517 286 363 203 281 21 33 72 519 56 214 183 41 217 20 15 473 720 928 600 655 764 964 862 13 64 32 143 21 34 356 16 16 137 437 25 24 14 17 574 16 15 \n42\n4 686 9 418 21 4 4 617 8 109 13 5 1 58 9 855 716 282 408 13 607 939 5 7 7 169 5 258 777 407 763 109 5 25 917 4 692 347 43 33 8 5 \n35 744 981 9 15 9 808 289 4 903 6 181 5 4 660 397 13 516 35 973 433 118 90 9 676 11 709 4 5 6 5 6 431 859 740 465 23 5 292 5 67 156 \n42\n21 40 59 31 149 448 96 412 923 21 24 760 93 729 66 23 314 484 131 792 37 26 92 908 215 22 12 984 21 881 279 304 628 24 50 600 41 988 122 958 429 802 \n897 33 46 536 300 2 22 25 41 207 48 44 22 833 479 71 500 27 164 21 530 401 93 153 218 134 8 956 66 26 931 31 886 340 772 63 214 635 789 850 20 1000 \n42\n34 206 122 47 58 144 84 301 496 180 91 61 508 266 745 56 46 528 337 76 941 897 197 464 277 632 219 814 40 311 846 676 219 141 187 43 37 529 736 608 188 105 \n49 41 112 234 369 579 276 238 63 180 68 714 546 786 37 994 164 399 441 66 154 729 16 108 179 154 73 595 100 171 319 53 45 45 187 122 39 64 56 127 901 833 \n42\n5 890 985 8 5 89 713 32 12 41 517 492 808 58 597 652 6 198 296 14 919 6 949 760 212 18 887 791 15 9 5 5 5 81 277 5 571 7 122 858 171 26 \n334 522 151 187 6 5 591 5 723 6 5 23 29 55 25 921 327 5 898 940 8 9 13 8 10 6 834 61 399 85 7 6 17 5 679 40 5 119 5 993 955 264 \n42\n24 730 130 37 904 158 71 59 401 592 40 683 786 620 158 779 989 51 30 26 187 321 373 214 5 80 277 905 33 58 659 885 958 827 48 103 952 49 47 72 363 60 \n216 33 743 36 380 279 546 454 24 376 24 369 309 438 667 55 25 850 269 30 27 23 28 33 464 591 37 171 469 61 119 18 104 312 69 141 141 878 931 28 59 23 \n42\n28 957 460 70 76 35 44 33 477 833 661 292 338 146 37 548 49 32 63 3 862 917 844 49 879 30 381 36 744 1000 168 40 813 114 80 929 814 890 573 227 361 676 \n990 122 687 361 50 32 83 31 41 560 559 773 41 624 748 72 34 817 971 165 911 28 60 48 447 58 392 344 94 3 32 242 847 30 76 33 189 37 34 754 31 29 \n42\n16 279 607 182 985 683 24 64 901 20 669 18 582 416 921 35 167 33 1 569 23 772 182 112 66 41 16 23 242 857 997 18 744 106 21 99 447 932 419 27 74 212 \n28 477 26 160 20 17 240 61 17 87 883 23 23 16 18 654 996 590 150 6 970 38 27 57 992 75 38 454 846 689 241 142 65 675 730 215 87 380 786 35 21 17 \n42\n9 540 10 133 262 567 739 10 10 8 84 969 53 698 44 325 618 508 865 376 42 244 711 10 16 445 836 39 12 17 419 18 94 830 14 455 19 12 567 10 329 970 \n12 9 844 10 500 988 21 33 473 15 27 459 822 19 17 15 875 10 16 36 94 225 10 66 555 593 23 799 987 105 168 851 27 12 15 211 19 710 200 9 12 848 \n42\n3 662 204 281 834 659 715 27 767 3 490 4 47 9 801 5 5 888 8 232 136 517 6 411 760 3 412 590 207 948 19 4 3 8 8 114 5 4 6 63 463 381 \n60 13 10 3 447 2 666 45 6 692 20 4 346 149 740 544 6 6 3 3 6 5 307 4 878 12 4 337 3 317 13 946 698 492 541 7 24 3 5 787 3 105 \n42\n25 95 277 126 833 452 38 838 309 76 694 657 664 989 174 607 44 746 114 420 805 120 87 26 172 438 588 267 574 231 904 26 34 718 714 57 51 129 78 203 31 61 \n32 30 42 198 968 108 436 380 145 9 935 43 327 287 143 93 29 320 37 123 219 486 57 90 38 782 27 37 41 657 562 735 31 80 1000 406 193 33 208 261 35 55 \n42\n24 273 545 798 37 63 244 32 323 26 52 44 282 120 374 641 27 30 25 28 476 905 406 925 188 115 443 961 611 526 30 47 134 33 52 42 846 147 24 170 91 729 \n787 127 39 746 24 567 710 37 959 85 54 992 59 207 45 458 902 633 178 26 29 500 380 163 25 32 30 50 263 200 74 793 835 141 64 858 1000 459 539 98 45 87 \n42\n36 389 570 77 58 56 201 666 925 223 483 978 327 159 89 52 60 113 57 465 162 354 616 74 35 114 49 354 82 57 114 723 43 954 67 47 308 497 44 248 38 877 \n523 634 223 717 312 672 480 62 159 588 100 35 38 433 314 806 219 40 913 176 76 108 57 297 74 115 610 460 822 623 961 987 143 50 91 398 100 742 71 614 37 53 \n42\n6 448 752 246 8 11 30 809 10 7 986 747 6 6 23 526 26 12 54 585 9 23 42 11 99 138 735 139 6 7 410 12 887 15 543 617 225 938 15 8 13 16 \n142 224 24 674 259 26 14 534 548 686 7 6 10 995 606 472 784 60 976 10 9 484 42 441 197 903 8 259 973 43 397 409 7 6 354 6 109 812 14 503 8 11 \n35\n80 206 186 344 263 548 11 39 621 85 326 506 92 412 672 722 844 104 81 132 715 180 150 274 392 161 314 110 327 409 591 306 588 120 97 \n257 595 118 241 986 241 505 715 128 806 383 192 155 134 438 93 251 133 424 408 967 143 201 525 191 652 74 910 487 128 957 287 109 229 826 \n42\n200 272 993 818 741 555 350 543 220 444 60 816 695 254 797 789 803 22 407 137 525 995 897 850 818 708 78 525 423 97 508 310 720 501 127 812 407 476 355 626 919 414 \n793 613 668 590 753 822 611 159 958 487 505 207 337 323 914 414 199 688 862 707 997 933 559 475 745 317 302 99 294 220 864 87 184 531 28 288 705 990 446 14 476 951 \n42\n20 879 39 476 562 592 635 324 28 181 34 741 23 86 255 27 811 71 224 226 594 24 50 21 101 72 717 994 179 69 22 882 32 415 485 58 55 30 807 45 120 614 \n622 277 12 341 35 737 41 22 78 33 165 996 24 26 398 88 111 880 88 110 33 17 928 24 509 276 32 649 437 711 571 27 197 846 41 47 362 801 61 31 231 287 \n42\n10 12 670 49 13 630 265 14 16 74 16 605 19 50 243 158 626 357 10 266 713 947 16 37 479 182 731 12 24 60 175 875 19 778 54 72 901 17 16 28 10 408 \n15 504 24 620 15 205 14 164 56 622 738 906 62 606 54 136 133 699 16 519 13 241 9 264 11 580 37 195 989 761 13 20 28 12 27 37 40 595 10 398 774 10 \n42\n290 674 802 900 921 654 648 228 902 750 354 101 82 181 308 660 859 51 253 24 261 605 545 888 432 281 952 747 228 769 506 191 442 659 442 714 664 89 942 566 190 647 \n18 271 827 325 283 37 375 535 413 636 491 957 875 922 589 178 21 816 946 878 7 739 537 800 453 200 889 394 117 430 392 134 701 219 458 983 607 185 869 19 172 359 \n42\n326 632 915 223 4 731 168 882 89 906 770 888 358 969 128 103 438 558 495 571 610 65 381 592 671 917 812 42 88 522 368 133 153 283 707 509 13 226 390 453 131 159 \n340 841 479 468 295 916 377 789 839 986 205 571 929 228 487 740 269 574 261 636 58 765 270 764 625 634 989 14 86 471 524 426 311 3 245 606 270 621 746 460 958 303 \n42\n337 530 868 977 798 441 237 785 850 353 55 613 978 688 601 343 774 424 867 551 734 221 147 691 842 119 789 654 76 443 35 961 972 903 937 121 695 525 905 545 229 959 \n509 206 999 462 901 124 885 119 26 970 339 172 13 532 290 153 185 365 595 220 677 566 474 965 686 520 841 942 64 69 253 925 627 251 386 527 726 270 645 751 591 335 \n42\n285 866 563 755 403 279 349 974 955 266 447 271 303 966 111 597 382 531 849 306 157 451 691 35 176 312 31 278 902 717 199 857 935 113 611 337 391 312 662 697 929 460 \n967 232 777 429 828 158 311 28 815 468 478 857 854 5 520 237 282 422 953 832 630 239 944 592 927 686 903 588 382 832 47 700 415 824 480 594 333 790 621 148 609 450 \n42\n227 806 876 51 87 649 355 270 278 594 565 869 520 250 124 460 983 307 506 682 73 681 161 666 14 950 638 513 559 439 220 373 244 95 423 682 95 777 951 372 722 515 \n593 594 116 716 53 98 22 558 779 446 591 291 111 604 240 100 468 150 538 687 522 133 134 296 814 228 425 764 952 146 630 544 739 97 611 791 194 984 701 324 429 291 \n42\n11 990 24 17 405 633 225 30 557 11 218 14 659 306 11 131 920 17 74 523 530 391 28 11 27 12 850 451 12 19 967 21 55 712 13 20 15 547 754 14 141 214 \n446 12 628 50 20 48 947 383 24 705 11 27 955 9 50 358 613 901 35 15 146 715 11 992 522 26 503 83 198 804 16 759 550 404 758 19 918 77 17 20 854 19 \n42\n200 423 921 881 796 514 721 684 235 438 773 439 462 742 915 940 280 494 285 787 90 527 519 688 225 371 897 170 753 238 817 569 661 738 450 808 603 170 492 837 959 616 \n276 772 710 190 711 989 35 347 775 124 874 294 163 450 664 60 620 768 649 436 689 661 525 490 469 128 11 312 964 321 927 239 93 636 428 803 976 814 502 751 937 375 \n42\n7 367 992 389 8 15 82 700 13 10 7 845 23 755 7 151 7 57 407 9 16 23 96 724 15 16 14 863 28 26 646 347 11 8 494 10 545 10 317 17 123 237 \n10 18 7 7 589 12 631 451 245 120 13 411 433 797 298 55 29 19 288 489 21 16 9 871 385 425 9 503 847 83 892 45 9 8 256 17 71 668 984 652 1 697 \n42\n20 149 578 282 558 179 31 94 892 33 113 146 47 27 26 45 23 315 58 248 4 92 99 379 57 68 549 39 686 436 702 75 367 985 863 653 975 21 36 29 528 211 \n30 63 678 23 777 175 216 136 729 111 416 36 45 343 289 5 210 23 29 54 35 94 20 591 349 996 553 266 857 34 52 70 510 28 37 133 951 201 80 918 442 625\n",
"50\n4\n100 741 882 242 \n13 759 22 941 \n4\n200 744 875 144 \n718 505 697 763 \n8\n500 449 699 260 868 353 810 34 \n728 580 170 505 142 177 434 308 \n12\n700 315 901 281 425 922 222 961 666 448 456 735 \n952 152 498 844 601 548 455 820 901 264 205 980 \n13\n500 726 484 689 902 270 996 171 936 248 451 361 521 \n24 321 186 823 128 273 774 279 122 970 231 669 424 \n15\n1000 921 40 606 900 235 683 736 923 585 357 270 107 292 517 \n909 652 37 285 324 575 107 451 199 881 82 320 850 664 340 \n20\n1 66 261 664 23 512 250 706 599 172 642 955 793 100 247 661 8 250 50 292 \n926 976 399 728 174 631 161 493 832 825 832 456 890 444 472 264 308 721 321 906 \n22\n495 962 213 389 61 811 50 69 60 99 712 337 74 110 65 599 92 225 91 923 401 274 \n731 290 70 202 906 377 274 226 282 870 540 494 259 600 304 660 20 716 758 84 404 183 \n23\n623 468 781 637 45 223 911 445 848 641 87 917 194 344 293 820 569 927 689 108 772 299 60 \n428 958 431 495 715 514 898 249 59 718 381 47 114 955 957 910 803 598 996 71 143 691 716 \n42\n1 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 1 1 1 1 1 1 1 1 1 1 \n1 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 1 1 1 1 1 1 1 1 1 1 \n28\n400 612 642 3 719 765 301 130 192 259 913 686 325 426 584 926 836 653 306 882 766 613 839 675 415 788 23 837 \n930 713 552 244 324 545 246 395 310 898 876 853 156 788 891 833 214 474 758 401 478 415 283 243 27 121 917 793 \n35\n80 195 84 646 961 67 73 159 96 320 91 448 913 264 612 219 192 388 702 122 112 137 970 86 888 909 54 782 395 92 556 4 475 108 268 \n990 993 827 142 707 201 87 499 937 970 648 47 993 981 122 204 862 101 871 177 113 248 296 129 167 89 149 300 578 413 6 917 87 733 362 \n35\n423 299 596 537 565 762 230 606 202 162 257 605 730 143 937 664 563 160 746 713 107 371 719 154 900 549 770 552 784 56 590 322 354 537 210 \n271 299 791 876 852 952 132 808 34 626 744 697 189 903 442 253 362 812 971 867 63 872 989 967 655 44 556 328 749 92 537 19 742 328 247 \n42\n7 647 102 105 79 9 8 820 959 7 8 11 16 12 13 177 898 714 135 13 434 42 19 329 290 564 101 7 21 111 14 487 167 546 843 83 454 62 17 352 12 211 \n8 83 619 9 12 7 39 495 14 32 348 493 427 68 19 41 502 111 948 21 319 67 791 12 947 66 990 7 406 87 15 163 62 10 15 9 858 555 51 725 551 24 \n42\n30 96 68 993 774 66 301 274 554 522 771 620 38 169 347 769 501 668 233 50 50 123 721 816 785 41 170 107 100 908 182 387 64 32 142 624 43 941 28 55 389 78 \n432 76 174 56 240 36 107 538 162 53 592 981 98 32 173 47 38 200 38 305 677 38 586 377 85 59 37 47 905 127 766 44 461 76 295 705 986 41 31 445 274 20 \n42\n11 738 32 34 671 388 15 11 126 45 971 137 22 14 17 17 307 624 139 211 139 9 991 29 535 11 922 12 14 60 779 31 21 206 17 515 27 853 86 1000 568 285 \n625 17 27 18 868 10 740 37 77 479 34 14 592 20 175 327 950 3 496 599 13 51 19 123 894 12 310 388 947 236 50 76 366 15 11 84 698 966 340 716 10 76 \n42\n353 409 140 568 185 639 963 547 743 499 872 638 794 34 632 381 310 85 452 440 527 633 853 936 720 386 786 696 150 480 414 104 240 554 671 776 544 633 674 638 484 545 \n628 629 930 611 9 240 695 461 31 221 445 235 508 517 620 646 212 122 125 625 577 364 530 247 492 425 232 165 63 715 710 42 343 991 652 352 230 346 164 261 918 608 \n42\n30 41 235 88 34 859 241 118 722 107 83 968 593 635 938 44 71 215 168 31 9 77 775 932 91 36 60 971 43 140 49 323 502 899 490 37 384 607 103 47 80 39 \n46 33 369 121 924 31 58 276 636 310 321 36 342 355 266 655 727 605 30 837 74 240 471 48 39 686 29 949 316 132 44 118 777 56 30 576 29 894 169 88 758 162 \n42\n10 400 13 72 15 362 925 30 11 45 14 432 682 554 156 11 511 217 621 10 12 24 16 49 753 20 956 44 306 88 11 848 25 689 71 289 10 683 143 168 65 49 \n200 136 324 725 15 887 14 151 11 111 830 983 600 34 771 197 13 58 45 63 678 19 386 27 22 68 950 483 955 10 138 17 637 406 24 14 32 222 10 14 869 217 \n42\n280 335 849 182 229 567 391 145 809 225 367 379 545 854 914 217 726 570 12 886 12 475 439 897 908 654 823 17 482 860 231 812 194 432 345 775 350 735 271 158 311 638 \n536 856 843 802 424 569 723 436 806 734 910 245 631 169 898 805 538 731 664 768 543 210 551 887 336 900 974 606 409 284 595 945 491 438 98 915 358 820 702 163 553 611 \n42\n265 535 132 9 691 669 739 707 788 633 916 339 872 603 590 197 208 999 480 803 295 323 592 392 589 949 211 290 463 115 252 222 2 735 582 692 755 320 398 543 305 665 \n233 176 267 174 372 475 172 203 629 466 877 220 209 465 520 419 106 982 534 358 555 887 92 136 578 847 808 328 741 112 344 325 639 611 498 10 437 22 564 417 487 793 \n42\n1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 \n1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 \n42\n200 48 257 155 466 363 488 351 72 43 237 515 178 167 361 337 846 453 877 189 129 86 151 627 447 939 648 363 355 486 155 342 533 763 848 351 125 336 53 548 378 290 \n63 907 808 775 244 653 580 43 841 708 481 344 334 927 282 333 641 637 171 795 330 55 558 178 405 34 865 458 934 594 99 996 500 906 122 95 910 701 490 750 409 970 \n42\n14 14 549 48 31 90 232 62 84 16 28 53 43 22 17 143 865 218 47 327 765 155 118 34 18 15 3 31 222 43 386 211 462 966 529 15 24 299 51 14 935 544 \n256 46 444 14 324 786 63 984 975 26 917 29 614 25 440 930 30 220 487 116 65 265 291 14 874 284 35 908 764 98 153 15 42 97 59 163 18 554 401 957 62 25 \n42\n35 757 388 431 40 47 49 380 214 45 99 811 95 272 73 107 603 53 152 68 38 42 62 36 469 956 40 708 250 150 97 37 284 776 546 58 46 846 128 44 227 133 \n139 92 64 360 272 128 806 856 768 862 163 509 74 123 595 741 999 46 57 49 352 36 752 911 81 937 232 41 43 229 959 365 154 665 90 262 555 825 713 46 478 326 \n42\n12 13 552 927 15 22 423 768 47 19 174 229 147 54 34 523 16 544 26 17 123 517 575 788 22 703 14 29 626 135 351 30 841 12 13 38 12 33 1 390 355 23 \n13 487 349 215 306 15 18 700 94 21 86 390 50 247 437 898 22 862 22 33 79 27 12 20 650 908 954 342 16 383 13 591 529 530 29 21 792 14 973 771 173 921 \n42\n6 99 13 159 241 16 7 28 612 469 53 682 271 41 24 8 22 4 9 19 7 920 551 31 711 856 7 501 463 44 276 335 70 447 9 635 8 739 19 139 407 11 \n109 12 42 24 650 7 306 264 358 9 680 6 21 140 83 237 17 529 9 36 735 21 917 14 10 13 130 204 673 59 759 183 776 9 12 974 443 594 12 8 6 297 \n42\n22 33 44 423 315 79 29 64 23 262 49 764 291 837 899 480 636 28 580 42 575 31 33 50 126 24 91 29 35 49 623 54 138 50 77 278 720 25 207 986 57 788 \n35 341 174 761 736 37 998 75 437 159 439 401 522 491 106 736 704 27 69 45 648 664 282 440 78 22 852 83 241 28 24 276 34 383 944 30 51 26 895 448 626 38 \n42\n4 103 16 794 164 447 265 5 976 419 9 592 267 60 267 10 8 4 4 373 237 329 20 4 985 888 668 38 12 50 638 13 371 5 295 598 7 101 583 182 10 4 \n6 888 14 23 9 185 456 16 237 38 99 11 10 379 5 37 544 677 391 771 3 13 821 3 6 790 14 14 961 6 4 4 313 284 10 21 736 76 6 64 371 8 \n42\n18 18 22 135 59 35 328 881 252 19 61 227 94 258 18 835 25 63 976 26 144 164 659 238 686 64 392 111 732 229 516 653 41 263 815 49 32 794 263 463 187 374 \n22 490 26 38 676 784 931 68 359 74 67 699 77 53 186 277 70 275 21 34 294 107 26 67 21 21 158 122 423 44 288 130 952 25 94 47 539 900 25 76 979 18 \n42\n40 63 572 721 438 315 77 107 258 846 54 604 403 978 37 561 985 122 203 45 121 351 49 299 115 97 67 150 87 47 729 320 115 60 87 828 58 639 511 597 928 57 \n55 411 154 344 78 47 695 41 265 126 66 133 520 91 48 346 455 196 16 71 662 329 627 458 997 325 62 832 799 98 54 588 124 372 679 42 940 69 874 726 66 113 \n42\n28 491 43 244 643 35 95 641 803 752 772 51 600 128 17 40 8 335 408 932 151 957 44 67 32 948 145 867 102 87 351 318 46 29 538 56 71 36 63 152 307 94 \n488 188 42 537 267 385 776 77 213 753 289 86 937 925 647 429 406 851 977 29 34 112 950 313 42 50 180 678 67 55 11 5 81 36 291 609 583 89 35 45 179 31 \n42\n15 622 998 122 560 657 711 793 37 516 26 49 51 39 16 173 96 298 182 20 25 389 19 672 60 36 64 15 640 864 160 892 287 27 20 28 14 98 434 63 524 24 \n22 699 720 514 554 48 27 238 25 118 23 553 872 89 83 891 399 923 711 944 50 514 16 228 222 364 146 33 386 37 288 20 592 520 960 79 18 21 21 149 281 16 \n42\n15 416 677 25 347 17 59 12 710 273 48 16 28 22 31 44 23 56 869 511 17 428 28 50 155 255 19 329 276 963 318 232 662 363 19 574 40 34 115 952 34 991 \n949 40 63 260 35 34 572 976 290 424 620 94 22 429 28 850 14 754 246 654 16 20 46 326 42 822 15 21 903 302 732 53 57 15 25 127 44 506 360 472 520 53 \n42\n12 519 12 81 873 9 793 28 266 15 15 13 437 710 42 999 35 867 13 36 331 18 17 18 320 39 972 194 27 770 23 134 13 572 385 22 798 860 82 15 598 128 \n790 15 301 13 988 61 771 146 88 791 875 16 44 22 538 30 92 13 14 981 20 928 329 862 276 19 642 27 4 12 439 410 13 331 35 144 499 14 37 14 697 682 \n42\n35 64 769 312 352 878 18 53 591 56 249 722 825 73 106 801 240 41 908 568 86 133 43 49 75 320 94 398 847 986 398 117 45 1 164 184 661 152 39 66 893 267 \n37 180 37 947 201 249 58 29 759 383 736 494 135 39 670 217 124 614 311 455 40 501 50 36 94 103 511 591 45 41 912 43 56 83 41 351 106 83 912 133 281 850 \n42\n4 815 18 9 624 4 685 542 75 467 45 926 961 10 317 10 12 604 731 6 856 200 952 693 4 475 5 11 813 6 8 874 33 355 4 503 15 26 4 8 396 435 \n4 4 581 52 865 435 7 780 217 11 991 8 10 4 19 932 144 5 4 6 4 393 366 5 460 7 793 9 933 384 601 6 483 5 330 87 5 120 334 12 262 4 \n35\n80 265 94 848 232 15 169 998 797 25 821 990 86 756 227 486 994 664 87 443 158 151 34 551 742 363 100 672 498 183 154 604 93 378 107 \n487 52 703 446 81 136 169 199 113 63 154 124 39 285 72 881 324 873 101 99 410 331 859 474 100 752 800 29 151 806 498 207 941 895 906 \n42\n200 843 500 783 150 973 700 314 952 803 43 902 38 339 291 20 829 517 836 726 39 52 943 720 636 449 770 141 619 415 179 132 609 678 266 110 650 965 423 953 119 465 \n855 156 803 497 527 632 13 362 357 403 765 651 123 753 451 244 893 69 10 71 552 618 749 817 728 750 133 502 703 251 967 909 758 121 405 285 752 769 998 460 171 115 \n42\n20 60 509 81 355 45 637 31 394 28 850 929 25 676 27 107 897 37 45 31 176 570 26 317 371 65 269 734 261 760 36 524 86 813 29 58 584 822 201 21 147 34 \n230 1 62 185 39 554 637 641 135 34 24 99 757 22 31 26 50 689 917 56 304 344 332 27 38 23 998 537 736 440 411 113 24 35 244 53 443 585 76 29 673 787 \n42\n10 267 18 11 2 20 864 141 406 28 463 999 170 618 29 58 23 563 63 350 746 147 12 16 10 915 231 263 766 38 103 659 21 795 188 128 11 452 15 41 522 37 \n493 170 11 78 58 764 13 78 18 12 2 37 16 528 21 10 37 268 12 67 28 354 608 989 52 470 15 240 881 907 640 355 886 24 17 295 156 384 21 42 4 96 \n42\n266 618 770 277 720 845 573 495 494 9 231 236 221 933 512 503 388 680 793 414 889 626 943 401 573 264 607 698 361 594 206 890 563 975 518 282 819 90 129 664 450 711 \n251 671 996 762 525 383 442 317 796 682 942 90 82 867 706 41 564 418 634 769 659 548 744 176 182 914 266 310 930 67 372 180 737 367 942 262 749 735 578 545 416 872 \n42\n295 738 691 889 653 460 522 774 118 422 517 294 603 782 911 264 711 977 635 243 66 2 536 327 750 270 256 646 685 479 632 533 568 674 422 221 134 295 994 603 68 862 \n896 670 995 158 933 58 135 920 300 552 921 835 878 22 104 485 20 140 316 3 24 883 676 797 455 161 444 800 764 511 13 11 533 8 169 817 65 655 736 716 206 8 \n42\n319 30 5 271 401 496 938 403 519 821 430 668 627 591 111 427 706 973 791 68 505 798 588 322 214 594 409 281 151 417 830 937 798 186 208 550 681 145 952 552 317 381 \n219 944 323 681 722 28 653 512 448 510 662 35 183 227 629 591 508 779 359 689 716 508 875 275 57 907 771 8 458 88 741 28 383 63 708 456 443 713 319 890 222 332 \n42\n386 559 552 346 418 683 57 458 398 916 684 24 973 591 794 332 400 881 72 780 615 487 487 422 929 551 741 818 124 72 741 527 982 645 225 751 327 633 209 76 548 892 \n99 872 834 892 204 234 125 627 13 91 113 851 513 41 754 253 210 877 676 303 756 658 947 980 760 625 964 968 52 511 860 502 383 45 745 938 278 221 564 642 312 29 \n42\n350 421 598 428 631 474 455 933 229 464 231 560 224 207 523 191 258 34 402 111 768 447 855 705 76 76 620 718 387 648 914 562 69 511 341 699 336 795 983 565 259 213 \n124 834 419 999 376 28 384 778 138 151 576 344 207 651 419 826 720 157 474 985 70 894 495 762 592 831 557 926 747 167 138 870 1000 908 220 375 287 603 504 776 753 431 \n42\n11 100 21 16 206 51 96 33 17 984 523 13 138 34 91 752 16 16 11 815 318 49 906 23 898 123 261 37 806 168 14 588 856 93 12 138 675 370 24 82 423 418 \n12 213 902 325 114 34 956 759 13 13 12 26 133 648 65 2 16 79 120 638 79 29 996 14 18 292 20 446 475 810 12 319 89 41 223 117 672 25 53 109 499 674 \n42\n200 953 930 607 155 223 981 570 669 447 998 990 817 777 412 754 380 327 271 101 310 912 730 220 164 901 810 41 846 823 192 444 775 121 50 930 695 382 851 363 180 848 \n705 348 977 116 102 356 442 724 808 103 635 537 674 798 789 483 190 635 305 381 430 432 502 831 361 548 212 563 911 392 762 615 739 738 730 192 445 523 915 604 625 902 \n42\n7 213 62 793 655 955 122 13 350 562 494 7 12 8 50 96 278 10 901 766 893 33 14 10 203 12 519 681 724 33 164 26 15 25 441 9 18 972 16 40 8 8 \n963 24 908 70 41 13 758 749 791 55 11 8 551 9 7 7 200 510 10 26 652 9 430 257 15 31 108 6 553 7 168 134 361 679 7 453 199 620 268 19 402 12 \n42\n20 25 299 35 378 28 22 32 43 334 929 625 773 592 227 104 647 48 66 75 556 26 282 258 821 29 3 758 45 41 80 745 9 210 22 835 867 198 132 23 149 223 \n87 411 22 101 30 77 59 77 26 66 132 52 25 70 89 562 189 100 926 13 850 988 891 877 31 436 458 671 149 474 24 746 686 606 23 35 782 926 94 26 33 295\n",
"2\n6\n12 9 7 1 20 10\n3 6 4 7 5 5\n4\n5 17 6 1\n200 400 800 600\n",
"2\n6\n12 9 7 1 5 10\n3 6 4 7 5 5\n4\n5 17 10 1\n200 400 800 600\n\nSAMPLE\n",
"50\n4\n100 785 393 616 \n2 45 586 236 \n4\n200 448 825 664 \n905 570 664 402 \n8\n500 536 971 937 162 289 63 442 \n845 427 269 921 860 259 298 8 \n12\n700 42 623 44 87 560 631 398 8 807 413 264 \n376 76 665 682 964 987 970 125 275 32 918 471 \n13\n500 539 743 669 797 393 28 839 434 651 234 1715 562 \n864 622 921 670 386 185 398 814 201 431 777 188 400 \n15\n1000 814 784 170 285 593 708 27 614 504 771 641 694 205 643 \n279 428 205 494 401 477 516 139 661 913 952 214 695 728 401 \n20\n1 980 566 229 149 202 174 209 581 787 64 351 779 110 907 422 388 687 978 234 \n439 454 749 577 467 13 528 680 707 255 432 152 586 349 733 87 551 258 295 131 \n22\n495 358 833 174 467 740 947 207 426 924 440 864 730 540 441 548 552 320 227 610 575 10 \n113 512 358 845 598 260 102 892 742 849 602 575 23 68 314 969 626 91 245 65 306 974 \n23\n623 98 521 507 418 99 116 344 460 229 207 169 425 805 429 527 48 170 375 649 744 749 69 \n409 70 694 851 314 111 509 639 714 606 511 221 375 961 688 70 420 916 277 588 341 433 16 \n42\n1 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 1 1 1 1 1 1 1 1 1 1 \n1 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 1 1 1 1 1 1 1 1 1 1 \n28\n400 480 538 945 129 281 46 549 42 115 242 892 780 352 752 418 418 358 280 990 84 240 677 506 11 593 134 598 \n285 566 966 855 397 503 799 525 135 196 425 176 310 667 420 89 370 171 858 787 880 137 776 316 728 805 173 738 \n35\n80 5 724 115 586 294 850 254 161 26 983 109 215 814 127 199 94 574 328 222 151 338 505 788 453 37 993 379 137 466 887 113 46 33 920 \n72 713 213 88 324 784 819 123 219 623 829 902 245 30 525 84 125 283 154 76 566 633 159 91 99 477 142 743 447 190 800 335 657 81 361 \n35\n423 583 388 853 489 810 825 932 839 668 742 960 49 952 582 407 305 159 74 335 100 617 200 184 532 121 92 157 538 971 350 713 905 737 565 \n393 898 389 325 736 57 66 696 457 369 629 215 673 139 640 359 590 256 910 774 787 30 217 295 919 187 644 983 443 380 548 835 277 288 159 \n42\n7 47 288 241 12 17 18 8 7 885 331 499 118 12 560 14 553 76 13 459 10 26 25 695 9 947 49 517 314 342 12 898 430 969 66 10 15 28 8 9 153 192 \n27 96 864 33 18 41 22 746 134 12 222 439 19 7 6 615 249 623 497 13 362 696 671 12 7 524 128 506 20 236 9 54 453 792 11 12 906 14 400 6 334 83 \n42\n30 995 769 868 37 453 593 13 193 40 535 45 99 98 736 807 15 160 156 59 68 42 312 48 76 208 57 940 44 133 209 30 55 32 802 316 397 104 39 880 218 86 \n759 154 992 31 191 37 541 136 504 223 40 142 663 303 33 346 975 36 981 436 388 50 647 143 615 976 95 94 7 301 38 74 913 65 185 55 732 34 516 286 794 718 \n42\n11 990 210 16 12 601 39 20 47 714 416 15 142 11 275 677 33 56 258 139 19 823 875 415 561 301 11 21 337 785 630 63 666 907 750 183 12 12 509 13 27 480 \n360 458 210 797 252 12 33 23 11 10 54 17 14 10 887 156 13 36 15 13 20 792 23 767 29 47 14 515 905 16 299 38 12 655 19 52 588 70 71 863 486 754 \n42\n353 553 217 544 270 957 627 137 386 855 675 325 894 380 525 104 454 17 93 657 421 226 234 567 346 891 427 644 79 219 591 69 124 807 965 393 763 591 882 500 797 556 \n825 690 287 349 793 93 366 238 749 138 463 334 704 161 225 131 804 655 701 394 76 824 552 40 569 666 982 450 166 778 357 990 468 644 690 612 736 55 201 836 544 664 \n42\n30 50 686 624 311 458 37 290 425 431 45 92 42 33 76 799 103 88 44 626 49 357 801 979 406 51 784 965 176 79 117 857 663 48 559 99 546 160 879 83 177 38 \n43 578 47 320 102 353 766 653 285 149 54 584 95 68 884 64 371 30 704 597 299 613 168 37 30 34 37 47 386 662 33 253 334 53 185 73 37 44 83 988 69 801 \n42\n10 817 15 29 483 662 13 39 43 10 34 106 710 67 524 240 131 525 20 646 19 39 453 565 3 11 23 13 234 176 197 363 841 494 328 18 447 54 912 536 63 224 \n231 693 28 610 390 41 19 70 472 18 684 38 46 270 1 39 211 775 922 25 10 12 236 17 145 170 11 52 136 509 20 13 870 17 17 14 912 86 441 20 16 312 \n42\n280 787 531 597 926 173 495 348 359 990 221 866 339 177 253 412 964 733 984 498 820 544 685 323 556 182 303 617 501 647 306 365 433 836 313 358 360 807 57 718 797 629 \n583 487 157 187 898 121 919 881 970 90 424 654 412 331 187 67 947 687 713 604 403 145 439 67 854 150 874 262 867 22 891 801 508 47 988 757 519 258 989 488 348 764 \n42\n265 759 94 680 825 40 367 889 643 121 385 433 188 238 934 413 852 152 434 94 952 293 140 291 401 11 901 389 498 248 152 343 358 245 23 535 636 741 423 630 861 808 \n414 48 397 347 812 600 498 597 693 801 241 185 92 641 195 992 29 44 591 532 387 948 128 409 834 763 149 257 744 9 416 157 409 164 855 220 764 352 169 456 153 409 \n42\n1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1001 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 \n1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 \n42\n200 596 50 186 939 430 230 529 314 616 828 441 376 14 556 524 270 299 884 37 808 644 200 662 216 315 14 384 771 518 792 762 465 193 948 403 623 529 283 936 144 462 \n376 519 475 283 394 96 582 629 132 741 273 684 402 296 998 767 223 120 636 366 234 100 559 181 854 181 709 136 468 204 598 195 74 424 478 819 520 411 447 651 151 719 \n42\n14 552 66 26 238 17 20 37 62 18 98 634 26 37 73 636 210 22 645 323 94 888 30 836 23 890 14 391 187 48 34 970 822 15 409 803 788 28 535 47 63 933 \n517 286 363 203 281 21 33 72 519 56 214 183 41 217 20 15 473 720 928 600 655 764 964 862 13 64 32 143 21 34 356 16 16 137 437 25 24 14 17 574 16 15 \n42\n4 686 9 582 21 4 4 617 8 109 13 5 1 58 9 855 716 282 408 13 607 939 5 7 7 169 5 258 777 407 763 109 5 25 917 4 692 347 43 33 8 5 \n35 744 981 9 15 9 808 289 4 903 6 181 5 4 660 397 13 516 35 973 433 118 90 9 676 11 709 4 5 6 5 6 431 859 740 465 23 5 292 5 67 156 \n42\n21 40 59 31 149 448 96 412 923 21 24 760 93 729 66 23 314 484 131 792 37 26 92 908 215 22 12 984 21 881 279 304 628 24 50 600 41 988 122 958 429 802 \n897 33 46 536 300 2 22 25 41 207 48 44 22 833 479 71 500 27 164 21 530 401 93 153 218 134 8 956 66 26 931 31 886 340 772 63 214 635 789 850 20 1000 \n42\n34 206 122 47 58 144 84 301 496 180 91 61 508 266 745 56 46 528 337 76 941 897 197 464 277 632 219 814 40 311 846 676 219 141 187 43 37 529 736 608 188 105 \n49 41 112 234 369 579 276 238 63 180 68 714 546 786 37 994 164 399 441 66 154 729 16 108 179 154 73 595 100 171 319 53 45 45 187 122 39 64 56 127 901 833 \n42\n5 890 985 8 5 89 713 32 12 41 517 492 808 58 597 652 6 198 296 14 919 6 949 760 212 18 887 791 15 9 5 5 5 81 277 5 571 7 122 858 171 26 \n334 522 151 187 6 5 591 5 723 6 5 23 29 55 25 921 327 5 898 940 8 9 13 8 10 6 834 61 399 85 7 6 17 5 679 40 5 119 5 993 955 264 \n42\n24 730 130 37 904 158 71 59 401 592 40 683 786 620 158 779 989 51 30 26 187 321 373 214 5 80 277 905 33 58 659 885 958 827 48 103 952 49 47 72 363 60 \n216 33 743 36 380 279 546 454 24 376 24 369 309 438 667 55 25 850 269 30 27 23 28 33 464 591 37 171 469 61 119 18 104 312 69 141 141 878 931 28 59 23 \n42\n28 957 460 70 76 35 44 33 477 833 661 292 338 146 37 548 49 32 63 3 862 917 844 49 879 30 381 36 744 1000 168 40 813 114 80 929 814 890 573 227 361 676 \n990 122 687 361 50 32 83 31 41 560 559 773 41 624 748 72 34 817 971 165 911 28 60 48 447 58 392 344 94 3 32 242 847 30 76 33 189 37 34 754 31 29 \n42\n16 279 607 182 985 683 24 64 901 20 669 18 582 416 921 35 312 33 1 569 23 772 182 112 66 41 16 23 242 857 997 18 744 106 21 99 447 932 419 27 74 212 \n28 477 26 160 20 17 240 61 17 87 883 23 23 16 18 654 996 590 150 6 970 38 27 57 992 75 38 454 846 689 241 142 65 675 730 215 87 380 786 35 21 17 \n42\n9 540 10 133 262 567 739 10 10 8 84 969 53 698 44 325 618 508 865 376 42 244 711 10 16 445 836 39 12 17 419 18 94 830 14 455 19 12 567 10 329 970 \n12 9 844 10 500 988 21 33 473 15 27 459 822 19 17 15 875 10 16 36 94 225 10 66 555 593 23 799 987 105 168 851 27 12 15 211 19 710 200 9 12 848 \n42\n3 662 204 281 834 659 715 27 767 3 490 4 47 9 801 5 5 888 8 232 136 517 6 411 760 3 412 590 207 948 19 4 3 8 8 114 5 4 6 63 463 381 \n60 13 10 3 447 2 666 45 6 692 20 4 346 149 740 544 6 6 3 3 6 5 307 4 878 12 4 337 3 317 13 946 698 492 541 7 24 3 5 787 3 105 \n42\n25 95 277 126 833 452 38 838 309 76 694 657 664 989 174 607 44 746 114 420 805 120 87 26 172 438 588 267 574 231 904 26 34 718 714 57 51 129 78 203 31 61 \n32 30 42 198 968 108 436 380 145 9 935 43 327 287 143 93 29 320 37 123 219 486 57 90 38 782 27 37 41 657 562 735 31 80 1000 406 193 33 208 261 35 55 \n42\n24 273 545 798 37 63 244 32 323 26 52 44 282 120 374 641 27 30 25 28 476 905 406 925 188 115 443 961 611 526 30 47 134 33 52 42 846 147 24 170 91 729 \n787 127 39 746 24 567 710 37 959 85 54 992 59 207 45 458 902 633 178 26 29 500 380 163 25 32 30 50 263 200 74 793 835 141 64 858 1000 459 539 98 45 87 \n42\n36 389 570 77 58 56 201 666 925 223 483 978 327 159 89 52 60 113 57 465 162 354 616 74 35 114 49 354 82 57 114 723 43 954 67 47 308 497 44 248 38 877 \n523 634 223 717 312 672 480 62 159 588 100 35 38 433 314 806 219 40 913 176 76 108 57 297 74 115 610 460 822 623 961 987 143 50 91 398 100 742 71 614 37 53 \n42\n6 448 752 246 8 11 30 809 10 7 986 747 6 6 23 526 26 12 54 585 9 23 42 11 99 138 735 139 6 7 410 12 887 15 543 617 225 938 15 8 13 16 \n142 224 24 674 259 26 14 534 548 686 7 6 10 995 606 472 784 60 976 10 9 484 42 441 197 903 8 259 973 43 397 409 7 6 354 6 109 812 14 503 8 11 \n35\n80 206 186 344 263 548 11 39 621 85 326 506 92 412 672 722 844 104 81 132 715 180 150 274 392 161 314 110 327 409 591 306 588 120 97 \n257 595 118 241 986 241 505 715 128 806 383 192 155 134 438 93 251 133 424 408 967 143 201 525 191 652 74 910 487 128 957 287 109 229 826 \n42\n200 272 993 818 741 555 350 543 220 444 60 816 695 254 797 789 803 22 407 137 525 995 897 850 818 708 78 525 423 97 508 310 720 501 127 812 407 476 355 626 919 414 \n793 613 668 590 753 822 611 159 958 487 505 207 337 323 914 414 199 688 862 707 997 933 559 475 745 317 302 99 294 220 864 87 184 531 28 288 705 990 446 14 476 951 \n42\n20 879 39 476 562 592 635 324 28 181 34 741 23 86 255 27 811 71 224 226 594 24 50 21 101 72 717 994 179 69 22 882 32 415 485 58 55 30 807 45 120 614 \n622 277 12 341 35 737 41 22 78 33 165 996 24 26 398 88 111 880 88 110 33 17 928 24 509 276 32 649 437 711 571 27 197 846 41 47 362 801 61 31 231 287 \n42\n10 12 670 49 13 630 265 14 16 74 16 605 19 50 243 158 626 357 10 266 713 947 16 37 479 182 731 12 24 60 175 875 19 778 54 72 901 17 16 28 10 408 \n15 504 24 620 15 205 14 164 56 622 738 906 62 606 54 136 133 699 16 519 13 241 9 264 11 580 37 195 989 761 13 20 28 12 27 37 40 595 10 398 774 10 \n42\n290 674 802 900 921 654 648 228 902 750 354 101 82 181 308 660 859 51 253 24 261 605 545 888 432 281 952 747 228 769 506 191 442 659 442 714 664 89 942 566 190 647 \n18 271 827 325 283 37 375 535 413 636 491 957 875 922 589 178 21 816 946 878 7 739 537 800 453 200 889 394 117 430 392 134 701 219 458 983 607 185 869 19 172 359 \n42\n326 632 915 223 4 731 168 882 89 906 770 888 358 969 128 103 438 558 495 571 610 65 381 592 671 917 812 42 88 522 368 133 153 283 707 509 13 226 390 453 131 159 \n340 841 479 468 295 916 377 789 839 986 205 571 929 228 487 740 269 574 261 636 58 765 270 764 625 634 989 14 86 471 524 426 311 3 245 606 270 621 746 460 958 303 \n42\n337 530 868 977 798 441 237 785 850 353 55 613 978 688 601 343 774 424 867 551 734 221 147 691 842 119 789 654 76 443 35 961 972 903 937 121 695 525 905 545 229 959 \n509 206 999 462 901 124 885 119 26 970 339 172 13 532 290 153 185 365 595 220 677 566 474 965 686 520 841 942 64 51 253 925 627 251 386 527 726 270 645 751 591 335 \n42\n285 866 563 755 403 279 349 974 955 266 447 271 303 966 111 597 382 531 849 306 157 451 691 35 176 312 31 278 902 717 199 857 935 113 611 337 391 312 662 697 929 460 \n967 232 777 429 828 158 311 28 815 468 478 857 854 5 520 237 282 422 953 832 630 239 944 592 927 686 903 588 382 832 47 700 415 824 480 594 333 790 621 148 609 450 \n42\n227 806 876 51 87 649 355 270 278 594 565 869 520 250 124 460 983 307 506 682 73 681 161 666 14 950 638 513 559 439 220 373 244 95 423 682 95 777 951 372 722 515 \n593 594 116 716 53 98 22 558 779 446 591 291 111 604 240 100 468 150 538 687 522 133 134 296 814 228 425 764 952 146 630 544 739 97 611 791 194 984 701 324 429 291 \n42\n11 990 24 17 405 633 225 30 557 11 218 14 659 306 11 131 920 17 74 523 530 391 28 11 27 12 850 451 12 19 967 21 55 712 13 20 15 547 754 14 141 214 \n446 12 628 50 20 48 947 383 24 705 11 27 955 9 50 358 613 901 35 15 146 715 11 992 522 26 503 83 198 804 16 759 550 404 758 19 918 77 17 20 854 19 \n42\n200 423 921 881 796 514 721 684 235 438 773 439 462 742 915 940 280 494 285 787 90 527 519 688 225 371 897 170 753 238 817 569 661 738 450 808 603 170 492 837 959 616 \n276 772 710 190 711 989 35 347 775 124 874 294 163 450 664 60 620 768 649 436 689 661 525 490 469 128 11 312 964 321 927 239 93 636 428 803 976 814 502 751 937 375 \n42\n7 367 992 389 8 15 82 700 13 10 7 845 23 755 7 151 7 57 407 9 16 23 96 724 15 16 14 863 28 26 646 347 11 8 494 10 545 10 317 17 123 237 \n10 18 7 7 589 12 631 451 245 120 13 411 433 797 298 55 29 19 288 489 21 16 9 871 385 425 9 503 847 83 892 45 9 8 256 17 71 668 984 652 1 697 \n42\n20 149 578 282 558 179 31 94 892 33 113 146 47 27 26 45 23 315 58 248 4 92 99 379 57 68 549 39 686 436 702 75 367 985 863 653 975 21 36 29 528 211 \n30 63 678 23 777 175 216 136 729 111 416 36 45 343 289 5 210 23 29 54 35 94 20 591 349 996 553 266 857 34 52 70 510 28 37 133 951 201 80 918 442 625\n",
"2\n6\n3 8 7 0 5 10\n3 5 4 7 5 5\n3\n9 17 10 0\n200 400 800 600\n\nSAMPLE\n",
"50\n4\n100 785 393 616 \n2 45 586 236 \n4\n200 448 825 664 \n905 570 664 402 \n8\n500 536 971 937 162 289 63 442 \n845 427 269 921 860 259 298 8 \n12\n700 42 623 44 87 560 631 398 8 807 413 264 \n376 76 665 682 964 987 970 125 275 32 918 471 \n13\n500 539 743 669 797 393 28 839 434 651 234 1715 562 \n864 622 921 670 386 185 398 814 201 431 777 188 400 \n15\n1000 814 784 170 285 593 708 27 614 504 771 641 694 205 643 \n279 428 205 494 401 477 516 139 661 913 952 214 695 728 401 \n20\n1 980 566 229 149 202 174 209 581 787 64 351 779 110 907 422 388 687 978 234 \n439 454 749 577 467 13 528 680 707 255 432 152 586 349 733 87 551 258 295 131 \n22\n495 358 833 174 467 740 947 207 426 924 440 864 730 540 441 548 552 320 227 610 575 10 \n113 512 358 845 598 260 102 892 742 849 602 575 23 68 314 969 626 91 245 65 306 974 \n23\n623 98 521 507 418 99 116 344 460 229 207 169 425 805 429 527 48 170 375 649 744 749 69 \n409 70 694 851 314 111 509 639 714 606 511 221 375 961 688 70 420 916 277 588 341 433 16 \n42\n1 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 1 1 1 1 1 1 1 1 1 1 \n1 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 1 1 1 1 1 1 1 1 1 1 \n28\n400 480 538 945 129 281 46 549 42 115 242 892 780 352 752 418 418 358 280 990 84 240 677 506 11 593 134 598 \n285 566 966 855 397 503 799 525 135 196 425 176 310 667 420 89 370 171 858 787 880 137 776 316 728 805 173 738 \n35\n80 5 724 115 586 294 850 254 161 26 983 109 215 814 127 199 94 574 328 222 151 338 505 788 453 37 993 379 137 466 887 113 46 33 920 \n72 713 213 88 324 784 819 123 219 623 829 902 245 30 525 84 125 283 154 76 566 633 159 91 99 477 142 743 447 190 800 335 657 81 361 \n35\n423 583 388 853 489 810 825 932 839 668 742 960 49 952 582 407 305 159 74 335 100 617 200 184 532 121 92 157 538 971 350 713 905 737 565 \n393 898 389 325 736 57 66 696 457 369 629 215 673 139 640 359 590 256 910 774 787 30 217 295 919 187 644 983 443 380 548 835 277 288 159 \n42\n7 47 288 241 12 17 18 8 7 885 331 499 118 12 560 14 553 76 13 459 10 26 25 695 9 947 49 517 314 342 12 898 430 969 66 10 15 28 8 9 153 192 \n27 96 864 33 18 41 22 746 134 12 222 439 19 7 6 615 249 623 497 13 362 696 671 12 7 524 128 506 20 236 9 54 453 792 11 12 906 14 400 6 334 83 \n42\n30 995 769 868 37 453 593 13 193 40 535 45 99 98 736 807 15 160 156 59 68 42 312 48 76 208 57 940 44 133 209 30 55 32 802 316 397 104 39 880 218 86 \n759 154 992 31 191 37 541 136 504 223 40 142 663 303 33 346 975 36 981 436 388 50 647 143 615 976 95 94 7 301 38 74 913 65 185 55 732 34 516 286 794 718 \n42\n11 990 210 16 12 601 39 20 47 714 416 15 142 11 275 677 33 56 258 139 19 823 875 605 561 301 11 21 337 785 630 63 666 907 750 183 12 12 509 13 27 480 \n360 458 210 797 252 12 33 23 11 10 54 17 14 10 887 156 13 36 15 13 20 792 23 767 29 47 14 515 905 16 299 38 12 655 19 52 588 70 71 863 486 754 \n42\n353 553 217 544 270 957 627 137 386 855 675 325 894 380 525 104 454 17 93 657 421 226 234 567 346 891 427 644 79 219 591 69 124 807 965 393 763 591 882 500 797 556 \n825 690 287 349 793 93 366 238 749 138 463 334 704 161 225 131 804 655 701 394 76 824 552 40 569 666 982 450 166 778 357 990 468 644 690 612 736 55 201 836 544 664 \n42\n30 50 686 624 311 458 37 290 425 431 45 92 42 33 76 799 103 88 44 626 49 357 801 979 406 51 784 965 176 79 117 857 663 48 559 99 546 160 879 83 177 38 \n43 578 47 320 102 353 766 653 285 149 54 584 95 68 884 64 371 30 704 597 299 613 168 37 30 34 37 47 386 662 33 253 334 53 185 73 37 44 83 988 69 801 \n42\n10 817 15 29 483 662 13 39 43 10 34 106 710 67 524 240 131 525 20 646 19 39 453 565 3 11 23 13 234 176 197 363 841 494 328 18 447 54 912 536 63 224 \n231 693 28 610 390 41 19 70 472 18 684 38 46 270 1 39 211 775 922 25 10 12 236 17 145 170 11 52 136 509 20 13 870 17 17 14 912 86 441 20 16 312 \n42\n280 787 531 597 926 173 495 348 359 990 221 866 339 177 253 412 964 733 984 498 820 544 685 323 556 182 303 617 501 647 306 365 433 836 313 358 360 807 57 718 797 629 \n583 487 157 187 898 121 919 881 970 90 424 654 412 331 187 67 947 687 713 604 403 145 439 67 854 150 874 262 867 22 891 801 508 47 988 757 519 258 989 488 348 764 \n42\n265 759 94 680 825 40 367 889 643 121 385 433 188 238 934 413 852 152 434 94 952 293 140 291 401 11 901 389 498 248 152 343 358 245 23 535 636 741 423 630 861 808 \n414 48 397 347 812 600 498 597 693 801 241 185 92 641 195 992 29 44 591 532 387 948 128 409 834 763 149 257 744 9 416 157 409 164 855 220 764 352 169 456 153 409 \n42\n1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1001 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 \n1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 \n42\n200 596 50 186 939 430 230 529 314 616 828 441 376 14 556 524 270 299 884 37 808 644 200 662 216 315 14 384 771 518 792 762 465 193 948 403 623 529 283 936 144 462 \n376 519 475 283 394 96 582 629 132 741 273 684 402 296 998 767 223 120 636 366 234 100 559 181 854 181 709 136 468 204 598 195 74 424 478 819 520 411 447 651 151 719 \n42\n14 552 66 26 238 17 20 37 62 18 98 634 26 37 73 636 210 22 645 323 94 888 30 836 23 890 14 391 187 48 34 970 822 15 409 803 788 28 535 47 63 933 \n517 286 363 203 281 21 33 72 519 56 214 183 41 217 20 15 473 720 928 600 655 764 964 862 13 64 32 143 21 34 356 16 16 137 437 25 24 14 17 574 16 15 \n42\n4 686 9 582 21 4 4 617 8 109 13 5 1 58 9 855 716 282 408 13 607 939 5 7 7 169 5 258 777 407 763 109 5 25 917 4 692 347 43 33 8 5 \n35 744 981 9 15 9 808 289 4 903 6 181 5 4 660 397 13 516 35 973 433 118 90 9 676 11 709 4 5 6 5 6 431 859 740 465 23 5 292 5 67 156 \n42\n21 40 59 31 149 448 96 412 923 21 24 760 93 729 66 23 314 484 131 792 37 26 92 908 215 22 12 984 21 881 279 304 628 24 50 600 41 988 122 958 429 802 \n897 33 46 536 300 2 22 25 41 207 48 44 22 833 479 71 500 27 164 21 530 401 93 153 218 134 8 956 66 26 931 31 886 340 772 63 214 635 789 850 20 1000 \n42\n34 206 122 47 58 144 84 301 496 180 91 61 508 266 745 56 46 528 337 76 941 897 197 464 277 632 219 814 40 311 846 676 219 141 187 43 37 529 736 608 188 105 \n49 41 112 234 369 579 276 238 63 180 68 714 546 786 37 994 164 399 441 66 154 729 16 108 179 154 73 595 100 171 319 53 45 45 187 122 39 64 56 127 901 833 \n42\n5 890 985 8 5 89 713 32 12 41 517 492 808 58 597 652 6 198 296 14 919 6 949 760 212 18 887 791 15 9 5 5 5 81 277 5 571 7 122 858 171 26 \n334 522 151 187 6 5 591 5 723 6 5 23 29 55 25 921 327 5 898 940 8 9 13 8 10 6 834 61 399 85 7 6 17 5 679 40 5 119 5 993 955 264 \n42\n24 730 130 37 904 158 71 59 401 592 40 683 786 620 158 779 989 51 30 26 187 321 373 214 5 80 277 905 33 58 659 885 958 827 48 103 952 49 47 72 363 60 \n216 33 743 36 380 279 546 454 24 376 24 369 309 438 667 55 25 850 269 30 27 23 28 33 464 591 37 171 469 61 119 18 104 312 69 141 141 878 931 28 59 23 \n42\n28 957 460 70 76 35 44 33 477 833 661 292 338 146 37 548 49 32 63 3 862 917 844 49 879 30 381 36 744 1000 168 40 813 114 80 929 814 890 573 227 361 676 \n990 122 687 361 50 32 83 31 41 560 559 773 41 624 748 72 34 817 971 165 911 28 60 48 447 58 392 344 94 3 32 242 847 30 76 33 189 37 34 754 31 29 \n42\n16 279 607 182 985 683 24 64 901 20 669 18 582 416 921 35 312 33 1 569 23 772 182 112 66 41 16 23 242 857 997 18 744 106 21 99 447 932 419 27 74 212 \n28 477 26 160 20 17 240 61 17 87 883 23 23 16 18 654 996 590 150 6 970 38 27 57 992 75 38 454 846 689 241 142 65 675 730 215 87 380 786 35 21 17 \n42\n9 540 10 133 262 567 739 10 10 8 84 969 53 698 44 325 618 508 865 376 42 244 711 10 16 445 836 39 12 17 419 18 94 830 14 455 19 12 567 10 329 970 \n12 9 844 10 500 988 21 33 473 15 27 459 822 19 17 15 875 10 16 36 94 225 10 66 555 593 23 799 987 105 168 851 27 12 15 211 19 710 200 9 12 848 \n42\n3 662 204 281 834 659 715 27 767 3 490 4 47 9 801 5 5 888 8 232 136 517 6 411 760 3 412 590 207 948 19 4 3 8 8 114 5 4 6 63 463 381 \n60 13 10 3 447 2 666 45 6 692 20 4 346 149 740 544 6 6 3 3 6 5 307 4 878 12 4 337 3 317 13 946 698 492 541 7 24 3 5 787 3 105 \n42\n25 95 277 126 833 452 38 838 309 76 694 657 664 989 174 607 44 746 114 420 805 120 87 26 172 438 588 267 574 231 904 26 34 718 714 57 51 129 78 203 31 61 \n32 30 42 198 968 108 436 380 145 9 935 43 327 287 143 93 29 320 37 123 219 486 57 90 38 782 27 37 41 657 562 735 31 80 1000 406 193 33 208 261 35 55 \n42\n24 273 545 798 37 63 244 32 323 26 52 44 282 120 374 641 27 30 25 28 476 905 406 925 188 115 443 961 611 526 30 47 134 33 52 42 846 147 24 170 91 729 \n787 127 39 746 24 567 710 37 959 85 54 992 59 207 45 458 902 633 178 26 29 500 380 163 25 32 30 50 263 200 74 793 835 141 64 858 1000 459 539 98 45 87 \n42\n36 389 570 77 58 56 201 666 925 223 483 978 327 159 89 51 60 113 57 465 162 354 616 74 35 114 49 354 82 57 114 723 43 954 67 47 308 497 44 248 38 877 \n523 634 223 717 312 672 480 62 159 588 100 35 38 433 314 806 219 40 913 176 76 108 57 297 74 115 610 460 822 623 961 987 143 50 91 398 100 742 71 614 37 53 \n42\n6 448 752 246 8 11 30 809 10 7 986 747 6 6 23 526 26 12 54 585 9 23 42 11 99 138 735 139 6 7 410 12 887 15 543 617 225 938 15 8 13 16 \n142 224 24 674 259 26 14 534 548 686 7 6 10 995 606 472 784 60 976 10 9 484 42 441 197 903 8 259 973 43 397 409 7 6 354 6 109 812 14 503 8 11 \n35\n80 206 186 344 263 548 11 39 621 85 326 506 92 412 672 722 844 104 81 132 715 180 150 274 392 161 314 110 327 409 591 306 588 120 97 \n257 595 118 241 986 241 505 715 128 806 383 192 155 134 438 93 251 133 424 408 967 143 201 525 191 652 74 910 487 128 957 287 109 229 826 \n42\n200 272 993 818 741 555 350 543 220 444 60 816 695 254 797 789 803 22 407 137 525 995 897 850 818 708 78 525 423 97 508 310 720 501 127 36 407 476 355 626 919 414 \n793 613 668 590 753 822 611 159 958 487 505 207 337 323 914 414 199 688 862 707 997 933 559 475 745 317 302 99 294 220 864 87 184 531 28 288 705 990 446 14 476 951 \n42\n20 879 39 476 562 592 635 324 28 181 34 741 23 86 255 27 811 71 224 226 594 24 50 21 101 72 717 994 179 69 22 882 32 415 485 58 55 30 807 45 120 614 \n622 277 12 341 35 737 41 22 78 33 165 996 24 26 398 88 111 880 88 110 33 17 928 24 509 276 32 649 437 711 571 27 197 846 41 47 362 801 61 31 231 287 \n42\n10 12 670 49 13 630 265 14 16 74 16 605 19 50 243 158 626 357 10 266 713 947 16 37 479 182 731 12 24 60 175 875 19 778 54 72 901 17 16 28 10 408 \n15 504 24 620 15 205 14 164 56 622 738 906 62 606 54 136 133 699 16 519 13 241 9 264 11 580 37 195 989 761 13 20 28 12 27 37 40 595 10 398 774 10 \n42\n290 674 802 900 921 654 648 228 902 750 354 101 82 181 308 660 859 51 253 24 261 605 545 888 432 281 952 747 228 769 506 191 442 659 442 714 664 89 942 566 190 647 \n18 271 827 325 283 37 375 535 413 636 491 957 875 922 589 178 21 816 946 878 7 739 537 800 453 200 889 394 117 430 392 134 701 219 458 983 607 185 869 19 172 359 \n42\n326 632 915 223 4 731 168 882 89 906 770 888 358 969 128 103 438 558 495 571 610 65 381 318 671 917 812 42 88 522 368 133 153 283 707 509 13 226 390 453 131 159 \n340 841 479 468 295 916 377 789 839 986 205 571 929 228 487 740 269 574 261 636 58 765 270 764 625 634 989 14 86 471 524 426 311 3 245 606 270 621 746 460 958 303 \n42\n337 530 868 977 798 441 237 785 850 353 55 613 978 688 601 343 774 424 867 551 734 221 147 691 842 119 789 654 76 443 35 961 972 903 937 121 695 525 905 545 229 959 \n509 206 999 462 901 124 885 119 26 970 339 172 13 532 290 153 185 365 595 220 677 566 474 965 686 520 841 942 64 51 253 925 627 251 386 527 726 270 645 751 591 335 \n42\n285 866 563 755 403 279 349 974 955 266 447 271 303 966 111 597 382 531 849 306 157 451 691 35 176 312 31 278 902 717 199 857 935 113 611 337 391 312 662 697 929 460 \n967 232 777 429 828 158 311 28 815 468 478 857 854 5 520 237 282 422 953 832 630 239 944 592 927 686 903 588 382 832 47 700 415 824 480 594 333 790 621 148 609 450 \n42\n227 806 876 51 87 649 355 270 278 594 565 869 520 250 124 460 983 307 506 682 73 681 161 666 14 950 638 513 559 439 220 373 244 95 423 682 95 777 951 372 722 515 \n593 594 116 716 53 98 22 558 779 446 591 291 111 604 240 100 468 150 538 687 522 133 134 296 814 228 425 764 952 146 630 544 739 97 611 791 194 984 701 324 429 291 \n42\n11 990 24 17 405 633 225 30 557 11 218 14 659 306 11 131 920 17 74 523 530 391 28 11 27 12 850 451 12 19 967 21 55 712 13 20 15 547 754 14 141 214 \n446 12 628 50 20 48 947 383 24 705 11 27 955 9 50 358 613 901 35 15 146 715 11 992 522 26 503 83 198 804 16 759 550 404 758 19 918 77 17 20 854 19 \n42\n200 423 921 881 796 514 721 684 235 438 773 439 462 742 915 940 280 494 285 787 90 527 519 688 225 371 897 170 753 238 817 569 661 738 450 808 603 170 492 837 959 616 \n276 772 710 190 711 989 35 347 775 124 874 294 163 450 664 60 620 768 649 436 689 661 525 490 469 128 11 312 964 321 927 239 93 636 428 803 976 814 502 751 937 375 \n42\n7 367 992 389 8 15 82 700 13 10 7 845 23 755 7 151 7 57 407 9 16 23 96 724 15 16 14 863 28 26 646 347 11 8 494 10 545 10 317 17 123 237 \n10 18 7 7 589 12 631 451 245 120 13 411 433 797 298 55 29 19 288 489 21 16 9 871 385 425 9 503 847 83 892 45 9 8 256 17 71 668 984 652 1 697 \n42\n20 149 578 282 558 179 31 94 892 33 113 146 47 27 26 45 23 315 58 248 4 92 99 379 57 68 549 39 686 436 702 75 367 985 863 653 975 21 36 29 528 211 \n30 63 678 23 777 175 216 136 729 111 416 36 45 343 289 5 210 23 29 54 35 94 20 591 349 996 553 266 857 34 52 70 510 28 37 133 951 201 80 918 442 625\n",
"50\n4\n100 785 393 616 \n2 45 486 236 \n4\n200 448 825 664 \n905 570 664 402 \n8\n500 536 971 937 162 289 63 442 \n845 427 269 921 860 259 298 8 \n12\n700 42 623 44 87 560 631 398 8 807 413 264 \n376 76 665 682 964 987 970 125 275 32 918 471 \n13\n500 539 743 669 797 393 28 839 434 651 234 1715 562 \n864 622 921 670 386 185 398 814 201 431 777 188 400 \n15\n1000 814 784 170 285 593 708 27 614 504 771 641 694 205 643 \n279 428 205 494 401 477 516 139 661 913 952 214 695 728 401 \n20\n1 980 566 229 149 202 174 209 581 787 64 351 779 110 907 422 388 687 978 234 \n439 454 749 577 467 13 528 680 707 255 432 152 586 349 733 87 551 258 295 131 \n22\n495 358 833 174 467 740 947 207 426 924 440 864 730 540 441 548 552 320 227 610 575 10 \n113 512 358 845 598 260 102 892 742 849 602 575 23 68 314 969 626 91 245 65 306 974 \n23\n623 98 521 507 418 99 116 344 460 229 207 169 425 805 429 527 48 170 375 649 744 749 69 \n409 70 694 851 314 111 509 639 714 606 511 221 375 961 688 70 420 916 277 588 341 433 16 \n42\n1 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 1 1 1 1 1 1 1 1 1 1 \n1 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 1 1 1 1 1 1 1 1 1 1 \n28\n400 480 538 945 129 281 46 549 42 115 242 892 780 352 752 418 418 358 280 990 84 240 677 506 11 593 134 598 \n285 566 966 855 397 503 799 525 135 196 425 176 310 667 420 89 370 171 858 787 880 137 776 316 728 805 173 738 \n35\n80 5 724 115 586 294 850 254 161 26 983 109 215 814 127 199 94 574 328 222 151 338 505 788 453 37 993 379 137 466 887 113 46 33 920 \n72 713 213 88 324 784 819 123 219 623 829 902 245 30 525 84 125 283 154 76 566 633 159 91 99 477 142 743 447 190 800 335 657 81 361 \n35\n423 583 388 853 489 810 825 932 839 668 742 960 49 952 582 407 305 159 74 335 100 617 200 184 532 121 92 157 538 971 350 713 905 737 565 \n393 898 389 325 736 57 66 696 457 369 629 215 673 139 640 359 590 256 910 774 787 30 217 295 919 187 644 983 443 380 548 835 277 288 159 \n42\n7 47 288 241 12 17 18 8 7 885 331 499 118 12 560 14 553 76 13 459 10 26 25 695 9 947 49 517 314 342 12 898 430 969 66 10 15 28 8 9 153 192 \n27 96 864 33 18 41 22 746 134 12 222 439 19 7 6 615 249 623 497 13 362 696 671 12 7 524 128 506 20 236 9 54 453 792 11 12 906 14 400 6 334 83 \n42\n30 995 769 868 37 453 593 13 193 40 535 45 99 98 736 807 15 160 156 59 68 42 312 48 76 208 57 940 44 133 209 30 55 32 802 316 397 104 39 880 218 86 \n759 154 992 31 191 37 541 136 504 223 40 142 663 303 33 346 975 36 981 436 388 50 647 143 615 976 95 94 7 301 38 74 913 65 185 55 732 34 516 286 794 718 \n42\n11 990 210 16 12 601 39 20 47 714 416 15 142 11 275 677 33 56 258 139 19 823 875 605 561 301 11 21 337 785 630 63 666 907 750 183 12 12 509 13 27 480 \n360 458 210 797 252 12 33 23 11 10 54 17 14 10 887 156 13 36 15 13 20 792 23 767 29 47 14 515 905 16 299 38 12 655 19 52 588 70 71 863 486 754 \n42\n353 553 217 544 270 957 627 137 386 855 675 325 894 380 525 104 454 17 93 657 421 226 234 567 346 891 427 644 79 219 591 69 124 807 965 393 763 591 882 500 797 556 \n825 690 287 349 793 93 366 238 749 138 463 334 704 161 225 131 804 655 701 394 76 824 552 40 569 666 982 450 166 778 357 990 468 644 690 612 736 55 201 836 544 664 \n42\n30 50 686 624 311 458 37 290 425 431 45 92 42 33 76 799 103 88 44 626 49 357 801 979 406 51 784 965 176 79 117 857 663 48 559 99 546 160 879 83 177 38 \n43 578 47 320 102 353 766 653 285 149 54 584 95 68 884 64 371 30 704 597 299 613 168 37 30 34 37 47 386 662 33 253 334 53 185 73 37 44 83 988 69 801 \n42\n10 817 15 29 483 662 13 39 43 10 34 106 710 67 524 240 131 525 20 646 19 39 453 565 3 11 23 13 234 176 197 363 841 494 328 18 447 54 912 536 63 224 \n231 693 28 610 390 41 19 70 472 18 684 38 46 270 1 39 211 775 922 25 10 12 236 17 145 170 11 52 136 509 20 13 870 17 17 14 912 86 441 20 16 312 \n42\n280 787 531 597 926 173 495 348 359 990 221 866 339 177 253 412 964 733 984 498 820 544 685 323 556 182 303 617 501 647 306 365 433 836 313 358 360 807 57 718 797 629 \n583 487 157 187 898 121 919 881 970 90 424 654 412 331 187 67 947 687 713 604 403 145 439 67 854 150 874 262 867 22 891 801 508 47 988 757 519 258 989 488 348 764 \n42\n265 759 94 680 825 40 367 889 643 121 385 433 188 238 934 413 852 152 434 94 952 293 140 291 401 11 901 389 498 248 152 343 358 245 23 535 636 741 423 630 861 808 \n414 48 397 347 812 600 498 597 693 801 241 185 92 641 195 992 29 44 591 532 387 948 128 409 834 763 149 257 744 9 416 157 409 164 855 220 764 352 169 456 153 409 \n42\n1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1001 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 \n1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 \n42\n200 596 50 186 939 430 230 529 314 616 828 441 376 14 556 524 270 299 884 37 808 644 200 662 216 315 14 384 771 518 792 762 465 193 948 403 623 529 283 936 144 462 \n376 519 475 283 394 96 582 629 132 741 273 684 402 296 998 767 223 120 636 366 234 100 559 181 854 181 709 136 468 204 598 195 74 424 478 819 520 411 447 651 151 719 \n42\n14 552 66 26 238 17 20 37 62 18 98 634 26 37 73 636 210 22 645 323 94 888 30 836 23 890 14 632 187 48 34 970 822 15 409 803 788 28 535 47 63 933 \n517 286 363 203 281 21 33 72 519 56 214 183 41 217 20 15 473 720 928 600 655 764 964 862 13 64 32 143 21 34 356 16 16 137 437 25 24 14 17 574 16 15 \n42\n4 686 9 582 21 4 4 617 8 109 13 5 1 58 9 855 716 282 408 13 607 939 5 7 7 169 5 258 777 407 763 109 5 25 917 4 692 347 43 33 8 5 \n35 744 981 9 15 9 808 289 4 903 6 181 5 4 660 397 13 516 35 973 433 118 90 9 676 11 709 4 5 6 5 6 431 859 740 465 23 5 292 5 67 156 \n42\n21 40 59 31 149 448 96 412 923 21 24 760 93 729 66 23 314 484 131 792 37 26 92 908 215 22 12 984 21 881 279 304 628 24 50 600 41 988 122 958 429 802 \n897 33 46 536 300 2 22 25 41 207 48 44 22 833 479 71 500 27 164 21 530 401 93 153 218 134 8 956 66 26 931 31 886 340 772 63 214 635 789 850 20 1000 \n42\n34 206 122 47 58 144 84 301 496 180 91 61 508 266 745 56 46 528 337 76 941 897 197 464 277 632 219 814 40 311 846 676 219 141 187 43 37 529 736 608 188 105 \n49 41 112 234 369 579 276 238 63 180 68 714 546 786 37 994 164 399 441 66 154 729 16 108 179 154 73 595 100 171 319 53 45 45 187 122 39 64 56 127 901 833 \n42\n5 890 985 8 5 89 713 32 12 41 517 492 808 58 597 652 6 198 296 14 919 6 949 760 212 18 887 791 15 9 5 5 5 81 277 5 571 7 122 858 171 26 \n334 522 151 187 6 5 591 5 723 6 5 23 29 55 25 921 327 5 898 940 8 9 13 8 10 6 834 61 399 85 7 6 17 5 679 40 5 119 5 993 955 264 \n42\n24 730 130 37 904 158 71 59 401 592 40 683 786 620 158 779 989 51 30 26 187 321 373 214 5 80 277 905 33 58 659 885 958 827 48 103 952 49 47 72 363 60 \n216 33 743 36 380 279 546 454 24 376 24 369 309 438 667 55 25 850 269 30 27 23 28 33 464 591 37 171 469 61 119 18 104 312 69 141 141 878 931 28 59 23 \n42\n28 957 460 70 76 35 44 33 477 833 661 292 338 146 37 548 49 32 63 3 862 917 844 49 879 30 381 36 744 1000 168 40 813 114 80 929 814 890 573 227 361 676 \n990 122 687 361 50 32 83 31 41 560 559 773 41 624 748 72 34 817 971 165 911 28 60 48 447 58 392 344 94 3 32 242 847 30 76 33 189 37 34 754 31 29 \n42\n16 279 607 182 985 683 24 64 901 20 669 18 582 416 921 35 312 33 1 569 23 772 182 112 66 41 16 23 242 857 997 18 744 106 21 99 447 932 419 27 74 212 \n28 477 26 160 20 17 240 61 17 87 883 23 23 16 18 654 996 590 150 6 970 38 27 57 992 75 38 454 846 689 241 142 65 675 730 215 87 380 786 35 21 17 \n42\n9 540 10 133 262 567 739 10 10 8 84 969 53 698 44 325 618 508 865 376 42 244 711 10 16 445 836 39 12 17 419 18 94 830 14 455 19 12 567 10 329 970 \n12 9 844 10 500 988 21 33 473 15 27 459 822 19 17 15 875 10 16 36 94 225 10 66 555 593 23 799 987 105 168 851 27 12 15 211 19 710 200 9 12 848 \n42\n3 662 204 281 834 659 715 27 767 3 490 4 47 9 801 5 5 888 8 232 136 517 6 411 760 3 412 590 207 948 19 4 3 8 8 114 5 4 6 63 463 381 \n60 13 10 3 447 2 666 45 6 692 20 4 346 149 740 544 6 6 3 3 6 5 307 4 878 12 4 337 3 317 13 946 698 492 541 7 24 3 5 787 3 105 \n42\n25 95 277 126 833 452 38 838 309 76 694 657 664 989 174 607 44 746 114 420 805 120 87 26 172 438 588 267 574 231 904 26 34 718 714 57 51 129 78 203 31 61 \n32 30 42 198 968 108 436 380 145 9 935 43 327 287 143 93 29 320 37 123 219 486 57 90 38 782 27 37 41 657 562 735 31 80 1000 406 193 33 208 261 35 55 \n42\n24 273 545 798 37 63 244 32 323 26 52 44 282 120 374 641 27 30 25 28 476 905 406 925 188 115 443 961 611 526 30 47 134 33 52 42 846 147 24 170 91 729 \n787 127 39 746 24 567 710 37 959 85 54 992 59 207 45 458 902 633 178 26 29 500 380 163 25 32 30 50 263 200 74 793 835 141 64 858 1000 459 539 98 45 87 \n42\n36 389 570 77 58 56 201 666 925 223 483 978 327 159 89 51 60 113 57 465 162 354 616 74 35 114 49 354 82 57 114 723 43 954 67 47 308 497 44 248 38 877 \n523 634 223 717 312 672 480 62 159 588 100 35 38 433 314 806 219 40 913 176 76 108 57 297 74 115 610 460 822 623 961 987 143 50 91 398 100 742 71 614 37 53 \n42\n6 448 752 246 8 11 30 809 10 7 986 747 6 6 23 526 26 12 54 585 9 23 42 11 99 138 735 139 6 7 410 12 887 15 543 617 225 938 15 8 13 16 \n142 224 24 674 259 26 14 534 548 686 7 6 10 995 606 472 784 60 976 10 9 484 42 441 197 903 8 259 973 43 397 409 7 6 354 6 109 812 14 503 8 11 \n35\n80 206 186 344 263 548 11 39 621 85 326 506 92 412 672 722 844 104 81 132 715 180 150 274 392 161 314 110 327 409 591 306 588 120 97 \n257 595 118 241 986 241 505 715 128 806 383 192 155 134 438 93 251 133 424 408 967 143 201 525 191 652 74 910 487 128 957 287 109 229 826 \n42\n200 272 993 818 741 555 350 543 220 444 60 816 695 254 797 789 803 22 407 137 525 995 897 850 818 708 78 525 423 97 508 310 720 501 127 36 407 476 355 626 919 414 \n793 613 668 590 753 822 611 159 958 487 505 207 337 323 914 414 199 688 862 707 997 933 559 475 745 317 302 99 294 220 864 87 184 531 28 288 705 990 446 14 476 951 \n42\n20 879 39 476 562 592 635 324 28 181 34 741 23 86 255 27 811 71 224 226 594 24 50 21 101 72 717 994 179 69 22 882 32 415 485 58 55 30 807 45 120 614 \n622 277 12 341 35 737 41 22 78 33 165 996 24 26 398 88 111 880 88 110 33 17 928 24 509 276 32 649 437 711 571 27 197 846 41 47 362 801 61 31 231 287 \n42\n10 12 670 49 13 630 265 14 16 74 16 605 19 50 243 158 626 357 10 266 713 947 16 37 479 182 731 12 24 60 175 875 19 778 54 72 901 17 16 28 10 408 \n15 504 24 620 15 205 14 164 56 622 738 906 62 606 54 136 133 699 16 519 13 241 9 264 11 580 37 195 989 761 13 20 28 12 27 37 40 595 10 398 774 10 \n42\n290 674 802 900 921 654 648 228 902 750 354 101 82 181 308 660 859 51 253 24 261 605 545 888 432 281 952 747 228 769 506 191 442 659 442 714 664 89 942 566 190 647 \n18 271 827 325 283 37 375 535 413 636 491 957 875 922 589 178 21 816 946 878 7 739 537 800 453 200 889 394 117 430 392 134 701 219 458 983 607 185 869 19 172 359 \n42\n326 632 915 223 4 731 168 882 89 906 770 888 358 969 128 103 438 558 495 571 610 65 381 318 671 917 812 42 88 522 368 133 153 283 707 509 13 226 390 453 131 159 \n340 841 479 468 295 916 377 789 839 986 205 571 929 228 487 740 269 574 261 636 58 765 270 764 625 634 989 14 86 471 524 426 311 3 245 606 270 621 746 460 958 303 \n42\n337 530 868 977 798 441 237 785 850 353 55 613 978 688 601 343 774 424 867 551 734 221 147 691 842 119 789 654 76 443 35 961 972 903 937 121 695 525 905 545 229 959 \n509 206 999 462 901 124 885 119 26 970 339 172 13 532 290 153 185 365 595 220 677 566 474 965 686 520 841 942 64 51 253 925 627 251 386 527 726 270 645 751 591 335 \n42\n285 866 563 755 403 279 349 974 955 266 447 271 303 966 111 597 382 531 849 306 157 451 691 35 176 312 31 278 902 717 199 857 935 113 611 337 391 312 662 697 929 460 \n967 232 777 429 828 158 311 28 815 468 478 857 854 5 520 237 282 422 953 832 630 239 944 592 927 686 903 588 382 832 47 700 415 824 480 594 333 790 621 148 609 450 \n42\n227 806 876 51 87 649 355 270 278 594 565 869 520 250 124 460 983 307 506 682 73 681 161 666 14 950 638 513 559 439 220 373 244 95 423 682 95 777 951 372 722 515 \n593 594 116 716 53 98 22 558 779 446 591 291 111 604 240 100 468 150 538 687 522 133 134 296 814 228 425 764 952 146 630 544 739 97 611 791 194 984 701 324 429 291 \n42\n11 990 24 17 405 633 225 30 557 11 218 14 659 306 11 131 920 17 74 523 530 391 28 11 27 12 850 451 12 19 967 21 55 712 13 20 15 547 754 14 141 214 \n446 12 628 50 20 48 947 383 24 705 11 27 955 9 50 358 613 901 35 15 146 715 11 992 522 26 503 83 198 804 16 759 550 404 758 19 918 77 17 20 854 19 \n42\n200 423 921 881 796 514 721 684 235 438 773 439 462 742 915 940 280 494 285 787 90 527 519 688 225 371 897 170 753 238 817 569 661 738 450 808 603 170 492 837 959 616 \n276 772 710 190 711 989 35 347 775 124 874 576 163 450 664 60 620 768 649 436 689 661 525 490 469 128 11 312 964 321 927 239 93 636 428 803 976 814 502 751 937 375 \n42\n7 367 992 389 8 15 82 700 13 10 7 845 23 755 7 151 7 57 407 9 16 23 96 724 15 16 14 863 28 26 646 347 11 8 494 10 545 10 317 17 123 237 \n10 18 7 7 589 12 631 451 245 120 13 411 433 797 298 55 29 19 288 489 21 16 9 871 385 425 9 503 847 83 892 45 9 8 256 17 71 668 984 652 1 697 \n42\n20 149 578 282 558 179 31 94 892 33 113 146 47 27 26 45 23 315 58 248 4 92 99 379 57 68 549 39 686 436 702 75 367 985 863 653 975 21 36 29 528 211 \n30 63 678 23 777 175 216 136 729 111 416 36 45 343 289 5 210 23 29 54 35 94 20 591 349 996 553 266 857 34 52 70 510 28 37 133 951 201 80 918 442 625\n",
"50\n4\n100 785 393 616 \n2 45 486 236 \n4\n200 448 825 664 \n905 570 664 402 \n8\n500 536 971 937 162 289 63 442 \n845 427 269 921 860 259 298 8 \n12\n700 42 623 44 87 560 631 398 8 807 413 264 \n376 76 665 682 964 987 970 125 275 32 918 471 \n13\n500 539 743 669 797 393 28 839 434 651 234 1715 562 \n864 622 921 670 386 185 398 814 201 431 777 188 400 \n15\n1000 814 784 170 285 593 708 27 614 504 771 641 694 205 643 \n279 428 205 494 401 477 516 139 661 913 952 214 695 728 401 \n20\n1 980 566 229 149 202 174 209 581 787 64 351 779 110 907 422 388 687 978 234 \n439 454 749 577 467 13 528 680 707 255 432 152 586 349 733 87 551 258 295 131 \n22\n495 358 833 174 467 740 947 207 426 924 440 864 730 540 441 548 552 320 227 610 575 10 \n113 512 358 845 598 260 102 892 742 849 602 575 23 68 314 969 626 91 245 65 306 974 \n23\n623 98 521 507 418 99 116 344 460 229 207 169 425 805 429 527 48 170 375 649 744 749 69 \n409 70 694 851 314 111 509 639 714 606 511 221 375 961 688 70 420 916 277 588 341 433 16 \n42\n1 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 1 1 1 1 1 1 1 1 1 1 \n1 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 1 2 1 1 1 1 1 1 1 1 \n28\n400 480 538 945 129 281 46 549 42 115 242 892 780 352 752 418 418 358 280 990 84 240 677 506 11 593 134 598 \n285 566 966 855 397 503 799 525 135 196 425 176 310 667 420 89 370 171 858 787 880 137 776 316 728 805 173 738 \n35\n80 5 724 115 586 294 850 254 161 26 983 109 215 814 127 199 94 574 328 222 151 338 505 788 453 37 993 379 137 466 887 113 46 33 920 \n72 713 213 88 324 784 819 123 219 623 829 902 245 30 525 84 125 283 154 76 566 633 159 91 99 477 142 743 447 190 800 335 657 81 361 \n35\n423 583 388 853 489 810 825 932 839 668 742 960 30 952 582 407 305 159 74 335 100 617 200 184 532 121 92 157 538 971 350 713 905 737 565 \n393 898 389 325 736 57 66 696 457 369 629 215 673 139 640 359 590 256 910 774 787 30 217 295 919 187 644 983 443 380 548 835 277 288 159 \n42\n7 47 288 241 12 17 18 8 7 885 331 499 118 12 560 14 553 76 13 459 10 26 25 695 9 947 49 517 314 342 12 898 430 969 66 10 15 28 8 9 153 192 \n27 96 864 33 18 41 22 746 134 12 222 439 19 7 6 615 249 623 497 13 362 696 671 12 7 524 128 506 20 236 9 54 453 792 11 12 906 14 400 6 334 83 \n42\n30 995 769 868 37 453 593 13 193 40 535 45 99 98 736 807 15 160 156 59 68 42 312 48 76 208 57 940 44 133 209 30 55 32 802 316 397 104 39 880 218 86 \n759 154 992 31 191 37 541 136 504 223 40 142 663 303 33 346 975 36 981 436 388 50 647 143 615 976 95 94 7 301 38 74 913 65 185 55 732 34 516 286 794 718 \n42\n11 990 210 16 12 601 39 20 47 714 416 15 142 11 275 677 33 56 258 139 19 823 875 605 561 301 11 21 337 785 630 63 666 907 750 183 12 12 509 13 27 480 \n360 458 210 797 252 12 33 23 11 10 54 17 14 10 887 156 13 36 15 13 20 792 23 767 29 47 14 515 905 16 299 38 12 655 19 52 588 70 71 863 486 754 \n42\n353 553 217 544 270 957 627 137 386 855 675 325 894 380 525 104 454 17 93 657 421 226 234 567 346 891 427 644 79 219 591 69 124 807 965 393 763 591 882 500 797 556 \n825 690 287 349 793 93 366 238 749 138 463 334 704 161 225 131 804 655 701 394 76 824 552 40 569 666 982 450 166 778 357 990 468 644 690 612 736 55 201 836 544 664 \n42\n30 50 686 624 311 458 37 290 425 431 45 92 42 33 76 799 103 88 44 626 49 357 801 979 406 51 784 965 176 79 117 857 663 48 559 99 546 160 879 83 177 38 \n43 578 47 320 102 353 766 653 285 149 54 584 95 68 884 64 371 30 704 597 299 613 168 37 30 34 37 47 386 662 33 253 334 53 185 73 37 44 83 988 69 801 \n42\n10 817 15 29 483 662 13 39 43 10 34 106 710 67 524 240 131 525 20 646 19 39 453 565 3 11 23 13 234 176 197 363 841 494 328 18 447 54 912 536 63 224 \n231 693 28 610 390 41 19 70 472 18 684 38 46 270 1 39 211 775 922 25 10 12 236 17 145 170 11 52 136 509 20 13 870 17 17 14 912 86 441 20 16 312 \n42\n280 787 531 597 926 173 495 348 359 990 221 866 339 177 253 412 964 733 984 498 820 544 685 323 556 182 303 617 501 647 306 365 433 836 313 358 360 807 57 718 797 629 \n583 487 157 187 898 121 919 881 970 90 424 654 412 331 187 67 947 687 713 604 403 145 439 67 854 150 874 262 867 22 891 801 508 47 988 757 519 258 989 488 348 764 \n42\n265 759 94 680 825 40 367 889 643 121 385 433 188 238 934 413 852 152 434 94 952 293 140 291 401 11 901 389 498 248 152 343 358 245 23 535 636 741 423 630 861 808 \n414 48 397 347 812 600 498 597 693 801 241 185 92 641 195 992 29 44 591 532 387 948 128 409 834 763 149 257 744 9 416 157 409 164 855 220 764 352 169 456 153 409 \n42\n1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1001 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 \n1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 \n42\n200 596 50 186 939 430 230 529 314 616 828 441 376 14 556 524 270 299 884 37 808 644 200 662 216 315 14 384 771 518 792 762 465 193 948 403 623 529 283 936 144 462 \n376 519 475 283 394 96 582 629 132 741 273 684 402 296 998 767 223 120 636 366 234 100 559 181 854 181 709 136 468 204 598 195 74 424 478 819 520 411 447 651 151 719 \n42\n14 552 66 26 238 17 20 37 62 18 98 634 26 37 73 636 210 22 645 323 94 888 30 836 23 890 14 632 187 48 34 970 822 15 409 803 788 28 535 47 63 933 \n517 286 363 203 281 21 33 72 519 56 214 183 41 217 20 15 473 720 928 600 655 764 964 862 13 64 32 143 21 34 356 16 16 137 437 25 24 14 17 574 16 15 \n42\n4 686 9 582 21 4 4 617 8 109 13 5 1 58 9 855 716 282 408 13 607 939 5 7 7 169 5 258 777 407 763 109 5 25 917 4 692 347 43 33 8 5 \n35 744 981 9 15 9 808 289 4 903 6 181 5 4 660 397 13 516 35 973 433 118 90 9 676 11 709 4 5 6 5 6 431 859 740 465 23 5 292 5 67 156 \n42\n21 40 59 31 149 448 96 412 923 21 24 760 93 729 66 23 314 484 131 792 37 26 92 908 215 22 12 984 21 881 279 304 628 24 50 600 41 988 122 958 429 802 \n897 33 46 536 300 2 22 25 41 207 48 44 22 833 479 71 500 27 164 21 530 401 93 153 218 134 8 956 66 26 931 31 886 340 772 63 214 635 789 850 20 1000 \n42\n34 206 122 47 58 144 84 301 496 180 91 61 508 266 745 56 46 528 337 76 941 897 197 464 277 632 219 814 40 311 846 676 219 141 187 43 37 529 736 608 188 105 \n49 41 112 234 369 579 276 238 63 180 68 714 546 786 37 994 164 399 441 66 154 729 16 108 179 154 73 595 100 171 319 53 45 45 187 122 39 64 56 127 901 833 \n42\n5 890 985 8 5 89 713 32 12 41 517 492 808 58 597 652 6 198 296 14 919 6 949 760 212 18 887 791 15 9 5 5 5 81 277 5 571 7 122 858 171 26 \n334 522 151 187 6 5 591 5 723 6 5 23 29 55 25 921 327 5 898 940 8 9 13 8 10 6 834 61 399 85 7 6 17 5 679 40 5 119 5 993 955 264 \n42\n24 730 130 37 904 158 71 59 401 592 40 683 786 620 158 779 989 51 30 26 187 321 373 214 5 80 277 905 33 58 659 885 958 827 48 103 952 49 47 72 363 60 \n216 33 743 36 380 279 546 454 24 376 24 369 309 438 667 55 25 850 269 30 27 23 28 33 464 591 37 171 469 61 119 18 104 312 69 141 141 878 931 28 59 23 \n42\n28 957 460 70 76 35 44 33 477 833 661 292 338 146 37 548 49 32 63 3 862 917 844 49 879 30 381 36 744 1000 168 40 813 114 80 929 814 890 573 227 361 676 \n990 122 687 361 50 32 83 31 41 560 559 773 41 624 748 72 34 817 971 165 911 28 60 48 447 58 392 344 94 3 32 242 847 30 76 33 189 37 34 754 31 29 \n42\n16 279 607 182 985 683 24 64 901 20 669 18 582 416 921 35 312 33 1 569 23 772 182 112 66 41 16 23 242 857 997 18 744 106 21 99 447 932 419 27 74 212 \n28 477 26 160 20 17 240 61 17 87 883 23 23 16 18 654 996 590 150 6 970 38 27 57 992 75 38 454 846 689 241 142 65 675 730 215 87 380 786 35 21 17 \n42\n9 540 10 133 262 567 739 10 10 8 84 969 53 698 44 325 618 508 865 376 42 244 711 10 16 445 836 39 12 17 419 18 94 830 14 455 19 12 567 10 329 970 \n12 9 844 10 500 988 21 33 473 15 27 459 822 19 17 15 875 10 16 36 94 225 10 66 555 593 23 799 987 105 168 851 27 12 15 211 19 710 200 9 12 848 \n42\n3 662 204 281 834 659 715 27 767 3 490 4 47 9 801 5 5 888 8 232 136 517 6 411 760 3 412 590 207 948 19 4 3 8 8 114 5 4 6 63 463 381 \n60 13 10 3 447 2 666 45 6 692 20 4 346 149 740 544 6 6 3 3 6 5 307 4 878 12 4 337 3 317 13 946 698 492 541 7 24 3 5 787 3 105 \n42\n25 95 277 126 833 452 38 838 309 76 694 657 664 989 174 607 44 746 114 420 406 120 87 26 172 438 588 267 574 231 904 26 34 718 714 57 51 129 78 203 31 61 \n32 30 42 198 968 108 436 380 145 9 935 43 327 287 143 93 29 320 37 123 219 486 57 90 38 782 27 37 41 657 562 735 31 80 1000 406 193 33 208 261 35 55 \n42\n24 273 545 798 37 63 244 32 323 26 52 44 282 120 374 641 27 30 25 28 476 905 406 925 188 115 443 961 611 526 30 47 134 33 52 42 846 147 24 170 91 729 \n787 127 39 746 24 567 710 37 959 85 54 992 59 207 45 458 902 633 178 26 29 500 380 163 25 32 30 50 263 200 74 793 835 141 64 858 1000 459 539 98 45 87 \n42\n36 389 570 77 58 56 201 666 925 223 483 978 327 159 89 51 60 113 57 465 162 354 616 74 35 114 49 354 82 57 114 723 43 954 67 47 308 497 44 248 38 877 \n523 634 223 717 312 672 480 62 159 588 100 35 38 433 314 806 219 40 913 176 76 108 57 297 74 115 610 460 822 623 961 987 143 50 91 398 100 742 71 614 37 53 \n42\n6 448 752 246 8 11 30 809 10 7 986 747 6 6 23 526 26 12 54 585 9 23 42 11 99 138 735 139 6 7 410 12 887 15 543 617 225 938 15 8 13 16 \n142 224 24 674 259 26 14 534 548 686 7 6 10 995 606 472 784 60 976 10 9 484 42 441 197 903 8 259 973 43 397 409 7 6 354 6 109 812 14 503 8 11 \n35\n80 206 186 344 263 548 11 39 621 85 326 506 92 412 672 722 844 104 81 132 715 180 150 274 392 161 314 110 327 409 591 306 588 120 97 \n257 595 118 241 986 241 505 715 128 806 383 192 155 134 438 93 251 133 424 408 967 143 201 525 191 652 74 910 487 128 957 287 109 229 826 \n42\n200 272 993 818 741 555 350 543 220 444 60 816 695 254 797 789 803 22 407 137 525 995 897 850 818 708 78 525 423 97 508 310 720 501 127 36 407 476 355 626 919 414 \n793 613 668 590 753 822 611 159 958 487 505 207 337 323 914 414 199 688 862 707 997 933 559 475 745 317 302 99 294 220 864 87 184 531 28 288 705 990 446 14 476 951 \n42\n20 879 39 476 562 592 635 324 28 181 34 741 23 86 255 27 811 71 224 226 594 24 50 21 101 72 717 994 179 69 22 882 32 415 485 58 55 30 807 45 120 614 \n622 277 12 341 35 737 41 22 78 33 165 996 24 26 398 88 111 880 88 110 33 17 928 24 509 276 32 649 437 711 571 27 197 846 41 47 362 801 61 31 231 287 \n42\n10 12 670 49 13 630 265 14 16 74 16 605 19 50 243 158 626 357 10 266 713 947 16 37 479 182 731 12 24 60 175 875 19 778 54 72 901 17 16 28 10 408 \n15 504 24 620 15 205 14 164 56 622 738 906 62 606 54 136 133 699 16 519 13 241 9 264 11 580 37 195 989 761 13 20 28 12 27 37 40 595 10 398 774 10 \n42\n290 674 802 900 921 654 648 228 902 750 354 101 82 181 308 660 859 51 253 24 261 605 545 888 432 281 952 747 228 769 506 191 442 659 442 714 664 89 942 566 190 647 \n18 271 827 325 283 37 375 535 413 636 491 957 875 922 589 178 21 816 946 878 7 739 537 800 453 200 889 394 117 430 392 134 701 219 458 983 607 185 869 19 172 359 \n42\n326 632 915 223 4 731 168 882 89 906 770 888 358 969 128 103 438 558 495 571 610 65 381 318 671 917 812 42 88 522 368 133 153 283 707 509 13 226 390 453 131 159 \n340 841 479 468 295 916 377 789 839 986 205 571 929 228 487 740 269 574 261 636 58 765 270 764 625 634 989 14 86 471 524 426 311 3 245 606 270 621 746 460 958 303 \n42\n337 530 868 977 798 441 237 785 850 353 55 613 978 688 601 343 774 424 867 551 734 221 147 691 842 119 789 654 76 443 35 961 972 903 937 121 695 525 905 545 229 959 \n509 206 999 462 901 124 885 119 26 970 339 172 13 532 290 153 185 365 595 220 677 566 474 965 686 520 841 942 64 51 253 925 627 251 386 527 726 270 645 751 591 335 \n42\n285 866 563 755 403 279 108 974 955 266 447 271 303 966 111 597 382 531 849 306 157 451 691 35 176 312 31 278 902 717 199 857 935 113 611 337 391 312 662 697 929 460 \n967 232 777 429 828 158 311 28 815 468 478 857 854 5 520 237 282 422 953 832 630 239 944 592 927 686 903 588 382 832 47 700 415 824 480 594 333 790 621 148 609 450 \n42\n227 806 876 51 87 649 355 270 278 594 565 869 520 250 124 460 983 307 506 682 73 681 161 666 14 950 638 513 559 439 220 373 244 95 423 682 95 777 951 372 722 515 \n593 594 116 716 53 98 22 558 779 446 591 291 111 604 240 100 468 150 538 687 522 133 134 296 814 228 425 764 952 146 630 544 739 97 611 791 194 984 701 324 429 291 \n42\n11 990 24 17 405 633 225 30 557 11 218 14 659 306 11 131 920 17 74 523 530 391 28 11 27 12 850 451 12 19 967 21 55 712 13 20 15 547 754 14 141 214 \n446 12 628 50 20 48 947 383 24 705 11 27 955 9 50 358 613 901 35 15 146 715 11 992 522 26 503 83 198 804 16 759 550 404 758 19 918 77 17 20 854 19 \n42\n200 423 921 881 796 514 721 684 235 438 773 439 462 742 915 940 280 494 285 787 90 527 519 688 225 371 897 170 753 238 817 569 661 738 450 808 603 170 492 837 959 616 \n276 772 710 190 711 989 35 347 775 124 874 576 163 450 664 60 620 768 649 436 689 661 525 490 469 128 11 312 964 321 927 239 93 636 428 803 976 814 502 751 937 375 \n42\n7 367 992 389 8 15 82 700 13 10 7 845 23 755 7 151 7 57 407 9 16 23 96 724 15 16 14 863 28 26 646 347 11 8 494 10 545 10 317 17 123 237 \n10 18 7 7 589 12 631 451 245 120 13 411 433 797 298 55 29 19 288 489 21 16 9 871 385 425 9 503 847 83 892 45 9 8 256 17 71 668 984 652 1 697 \n42\n20 149 578 282 558 179 31 94 892 33 113 146 47 27 26 45 23 315 58 248 4 92 99 379 57 68 549 39 686 436 702 75 367 985 863 653 975 21 36 29 528 211 \n30 63 678 23 777 175 216 136 729 111 416 36 45 343 289 5 210 23 29 54 35 94 20 591 349 996 553 266 857 34 52 70 510 28 37 133 951 201 80 918 442 625\n",
"50\n4\n100 785 393 616 \n2 45 486 236 \n4\n200 448 825 664 \n905 570 664 402 \n8\n500 536 971 937 162 289 63 442 \n845 427 269 921 860 259 298 8 \n12\n700 42 623 44 87 560 631 398 8 807 413 264 \n376 76 665 682 964 987 970 125 275 32 918 471 \n13\n500 539 743 669 797 393 28 839 434 651 234 1715 562 \n864 622 921 670 386 185 398 814 201 431 777 188 400 \n15\n1000 814 784 170 285 593 708 27 614 504 771 641 694 205 643 \n279 428 205 494 401 477 516 139 661 913 952 214 695 728 401 \n20\n1 980 566 229 149 202 174 209 581 787 64 351 779 110 907 422 388 687 978 234 \n439 454 749 577 467 13 528 680 707 255 432 152 586 349 733 87 551 258 295 131 \n22\n495 358 833 174 467 740 947 207 426 924 440 864 730 540 441 548 552 320 227 610 575 10 \n113 512 358 845 598 260 102 892 742 849 602 575 23 68 314 969 626 91 245 65 306 974 \n23\n623 98 521 507 418 99 116 344 460 229 207 169 425 805 429 527 48 170 375 649 744 749 69 \n409 70 694 851 314 111 509 639 714 606 511 221 375 961 688 70 420 916 277 588 341 433 16 \n42\n1 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 1 1 1 1 1 1 1 1 1 1 \n1 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 1 2 1 1 1 1 1 1 1 1 \n28\n400 480 538 945 129 281 46 549 42 115 242 892 780 352 752 418 418 358 280 990 84 240 677 506 11 593 134 598 \n285 566 966 855 397 503 799 525 135 196 425 176 310 667 420 89 370 171 858 787 880 137 776 316 728 805 173 738 \n35\n80 5 724 115 586 294 850 254 161 26 983 109 215 814 127 199 94 574 328 222 151 338 505 788 453 37 993 379 137 466 887 113 46 33 920 \n72 713 213 88 324 784 819 123 219 623 829 902 245 30 525 84 125 283 154 76 566 633 159 91 99 477 142 743 447 190 800 335 657 81 361 \n35\n423 583 388 853 489 810 825 932 839 668 742 960 30 952 582 407 305 159 74 335 100 617 200 184 532 121 92 157 538 971 350 713 905 737 565 \n393 898 389 325 736 57 66 696 457 369 629 215 673 139 640 359 590 256 910 774 787 30 217 295 919 187 644 983 443 380 548 835 277 288 159 \n42\n7 47 288 241 12 17 18 8 7 885 331 499 118 12 560 14 553 76 13 459 10 26 25 695 9 947 49 517 314 342 12 898 430 969 66 10 15 28 8 9 153 192 \n27 96 864 33 18 41 22 746 134 12 222 439 19 7 6 615 249 623 497 13 362 696 671 12 7 524 128 506 20 236 9 54 453 792 11 12 906 14 400 6 334 83 \n42\n30 995 769 868 37 453 593 13 193 40 535 45 99 98 736 807 15 160 156 59 68 42 312 48 76 208 57 940 44 133 209 30 55 32 802 316 397 104 39 880 218 86 \n759 154 992 31 191 37 541 136 504 223 40 142 663 303 33 346 975 36 981 436 388 50 647 143 615 976 95 94 7 301 38 74 913 65 185 55 732 34 516 286 794 718 \n42\n11 990 210 16 12 601 39 20 47 714 416 15 142 11 275 677 33 56 258 139 19 823 875 605 561 301 11 21 337 785 630 63 666 907 750 183 12 12 509 13 27 480 \n360 458 210 797 252 12 33 23 11 10 54 17 14 10 887 156 13 36 15 13 20 792 23 767 29 47 14 515 905 16 299 38 12 655 19 52 588 70 71 863 486 754 \n42\n353 553 217 544 270 957 627 137 386 855 675 325 894 380 525 104 454 17 93 657 421 226 234 567 346 891 427 644 79 219 591 69 124 807 965 393 763 591 882 500 797 556 \n825 690 287 349 793 93 366 238 749 138 463 334 704 161 225 131 804 655 701 394 76 824 552 40 569 666 982 450 166 778 357 990 468 644 690 612 736 55 201 836 544 664 \n42\n30 50 686 624 311 458 37 290 425 431 45 92 42 33 76 799 103 88 44 626 49 357 801 979 406 51 784 965 176 79 117 857 663 48 559 99 546 160 879 83 177 38 \n43 578 47 320 102 353 766 653 285 149 54 584 95 68 884 64 371 30 704 597 299 613 168 37 30 34 37 47 386 662 33 253 334 53 185 73 37 44 83 988 69 801 \n42\n10 817 15 29 483 662 13 39 43 10 34 106 710 67 524 240 131 525 20 646 19 39 453 565 3 11 23 13 234 176 197 363 841 494 328 18 447 54 912 536 63 224 \n231 693 28 610 390 41 19 70 472 18 684 38 46 270 1 39 211 775 922 25 10 12 236 17 145 170 11 52 136 509 20 13 870 17 17 14 912 86 441 20 16 312 \n42\n280 787 531 597 926 173 495 348 359 990 221 866 339 177 253 412 964 733 984 498 820 544 685 323 556 182 303 617 501 647 306 365 433 836 313 358 360 807 57 718 797 629 \n583 487 157 187 898 121 919 881 970 90 424 654 412 331 187 67 947 687 713 604 403 145 439 67 854 150 874 262 867 22 891 801 508 47 988 757 519 258 989 488 348 764 \n42\n265 759 94 680 825 40 367 889 643 121 385 433 188 238 934 413 852 152 434 94 952 293 140 291 401 11 901 389 498 248 152 343 358 245 23 535 636 741 423 630 861 808 \n414 48 397 347 812 600 498 597 693 801 241 185 92 641 195 992 29 44 591 532 387 948 128 409 834 763 149 257 744 9 416 157 409 164 855 220 764 352 169 456 153 409 \n42\n1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1001 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 \n1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 \n42\n200 596 50 186 939 430 230 529 314 616 828 441 376 14 556 524 270 299 884 37 808 644 200 662 216 315 14 384 771 518 792 762 465 193 948 403 623 529 283 936 144 462 \n376 519 475 283 394 96 582 629 132 741 273 684 402 296 998 767 223 120 636 366 234 100 559 181 854 181 709 136 468 204 598 195 74 424 478 819 520 411 447 651 151 719 \n42\n14 552 66 26 238 17 2 37 62 18 98 634 26 37 73 636 210 22 645 323 94 888 30 836 23 890 14 632 187 48 34 970 822 15 409 803 788 28 535 47 63 933 \n517 286 363 203 281 21 33 72 519 56 214 183 41 217 20 15 473 720 928 600 655 764 964 862 13 64 32 143 21 34 356 16 16 137 437 25 24 14 17 574 16 15 \n42\n4 686 9 582 21 4 4 617 8 109 13 5 1 58 9 855 716 282 408 13 607 939 5 7 7 169 5 258 777 407 763 109 5 25 917 4 692 347 43 33 8 5 \n35 744 981 9 15 9 808 289 4 903 6 181 5 4 660 397 13 516 35 973 433 118 90 9 676 11 709 4 5 6 5 6 431 859 740 465 23 5 292 5 67 156 \n42\n21 40 59 31 149 448 96 412 923 21 24 760 93 729 66 23 314 484 131 792 37 26 92 908 215 22 12 984 21 881 279 304 628 24 50 600 41 988 122 958 429 802 \n897 33 46 536 300 2 22 25 41 207 48 44 22 833 479 71 500 27 164 21 530 401 93 153 218 134 8 956 66 26 931 31 886 340 772 63 214 635 789 850 20 1000 \n42\n34 206 122 47 58 144 84 301 496 180 91 61 508 266 745 56 46 528 337 76 941 897 197 464 277 632 219 814 40 311 846 676 219 141 187 43 37 529 736 608 188 105 \n49 41 112 234 369 579 276 238 63 180 68 714 546 786 37 994 164 399 441 66 154 729 16 108 179 154 73 595 100 171 319 53 45 45 187 122 39 64 103 127 901 833 \n42\n5 890 985 8 5 89 713 32 12 41 517 492 808 58 597 652 6 198 296 23 919 6 949 760 212 18 887 791 15 9 5 5 5 81 277 5 571 7 122 858 171 26 \n334 522 151 187 6 5 591 5 723 6 5 23 29 55 25 921 327 5 898 940 8 9 13 8 10 6 834 61 399 85 7 6 17 5 679 40 5 119 5 993 955 264 \n42\n24 730 130 37 904 158 71 59 401 592 40 683 786 620 158 779 989 51 30 26 187 321 373 214 5 80 277 905 33 58 659 885 958 827 48 103 952 49 47 72 363 60 \n216 33 743 36 380 279 546 454 24 376 24 369 309 438 667 55 25 850 269 30 27 23 28 33 464 591 37 171 469 61 119 18 104 312 69 141 141 878 931 28 59 23 \n42\n28 957 460 70 76 35 44 33 477 833 661 292 338 146 37 548 49 32 63 3 862 917 844 49 879 30 381 36 744 1000 168 40 813 114 80 929 814 890 573 227 361 676 \n990 122 687 361 50 32 83 31 41 560 559 773 41 624 748 72 34 817 971 165 911 28 60 48 447 58 392 344 94 3 32 242 847 30 76 33 189 37 34 754 31 29 \n42\n16 279 607 182 985 683 24 64 901 20 669 18 582 416 921 35 312 33 1 569 23 772 182 112 66 41 16 23 242 857 997 18 744 106 21 99 447 932 419 27 74 212 \n28 477 26 160 20 17 240 61 17 87 883 23 23 16 18 654 996 590 150 6 970 38 27 57 992 75 38 454 846 689 241 142 65 675 730 215 87 380 786 35 21 17 \n42\n9 540 10 133 262 567 739 10 10 8 84 969 53 698 44 325 618 508 865 376 42 244 711 10 16 445 836 39 12 17 419 18 94 830 14 455 19 12 567 10 329 970 \n12 9 844 10 500 988 21 33 473 15 27 459 822 19 17 15 875 10 16 36 94 225 10 66 555 593 23 799 987 105 168 851 27 12 15 211 19 710 200 9 12 848 \n42\n3 662 204 281 834 659 715 27 767 3 490 4 47 9 801 5 5 888 8 232 136 517 6 411 760 3 412 590 207 948 19 4 3 8 8 114 5 4 6 63 463 381 \n60 13 10 3 447 2 666 45 6 692 20 4 346 149 740 544 6 6 3 3 6 5 307 4 878 12 4 337 3 317 13 946 698 492 541 7 24 3 5 787 3 105 \n42\n25 95 277 126 833 452 38 838 309 76 694 657 664 989 174 607 44 746 114 420 406 120 87 26 172 438 588 267 574 231 904 26 34 718 714 57 51 129 78 203 31 61 \n32 30 42 198 968 108 436 380 145 9 935 43 327 287 143 93 29 320 37 123 219 486 57 90 38 782 27 37 41 657 562 735 31 80 1000 406 193 33 208 261 35 55 \n42\n24 273 545 798 37 63 244 32 323 26 52 44 282 120 374 641 27 30 25 28 476 905 406 925 188 115 443 961 611 526 30 47 134 33 52 42 846 147 24 170 91 729 \n787 127 39 746 24 567 710 37 959 85 54 992 59 207 45 458 902 633 178 26 29 500 380 163 25 32 30 50 263 200 74 793 835 141 64 858 1000 459 539 98 45 87 \n42\n36 389 570 77 58 56 201 666 925 223 483 978 327 159 89 51 60 113 57 465 162 354 616 74 35 114 49 354 82 57 114 723 43 954 67 47 308 497 44 248 38 877 \n523 634 223 717 579 672 480 62 159 588 100 35 38 433 314 806 219 40 913 176 76 108 57 297 74 115 610 460 822 623 961 987 143 50 91 398 100 742 71 614 37 53 \n42\n6 448 752 246 8 11 30 809 10 7 986 747 6 6 23 526 26 12 54 585 9 23 42 11 99 138 735 139 6 7 410 12 887 15 543 617 225 938 15 8 13 16 \n142 224 24 674 259 26 14 534 548 686 7 6 10 995 606 472 784 60 976 10 9 484 42 441 197 903 8 259 973 43 397 409 7 6 354 6 109 812 14 503 8 11 \n35\n80 206 186 344 263 548 11 39 621 85 326 506 92 412 672 722 844 104 81 132 715 180 150 274 392 161 314 110 327 409 591 306 588 120 97 \n257 595 118 241 986 241 505 715 128 806 383 192 155 134 438 93 251 133 424 408 967 143 201 525 191 652 74 910 487 128 957 287 109 229 826 \n42\n200 272 993 818 741 555 350 543 220 444 60 816 695 254 797 789 803 22 407 137 525 995 897 850 818 708 78 525 423 97 508 310 720 501 127 36 407 476 355 626 919 414 \n793 613 668 590 753 822 611 159 958 487 505 207 337 323 914 414 199 688 862 707 997 933 559 475 745 317 302 99 294 220 864 87 184 531 28 288 705 990 446 14 476 951 \n42\n20 879 39 476 562 592 635 324 28 181 34 741 23 86 255 27 811 71 224 226 594 24 50 21 101 72 717 994 179 69 22 882 32 415 485 58 55 30 807 45 120 614 \n622 277 12 341 35 737 41 22 78 33 233 996 24 26 398 88 111 880 88 110 33 17 928 24 509 276 32 649 437 711 571 27 197 846 41 47 362 801 61 31 231 287 \n42\n10 12 670 49 13 630 265 14 16 74 16 605 19 50 243 158 626 357 10 266 713 947 16 37 479 182 731 12 24 60 175 875 19 778 54 72 901 17 16 28 10 408 \n15 504 24 620 15 205 14 164 56 622 738 906 62 606 54 136 133 699 16 519 13 241 9 264 11 580 37 195 989 761 13 20 28 12 27 37 40 595 10 398 774 10 \n42\n290 674 802 900 921 654 648 228 902 750 354 101 82 181 308 660 859 51 253 24 261 605 545 888 432 281 952 747 228 769 506 191 442 659 442 714 664 89 942 566 190 647 \n18 271 827 325 283 37 375 535 413 636 491 957 875 922 589 178 21 816 946 878 7 739 537 800 453 200 889 394 117 430 392 134 701 219 458 983 607 185 869 19 172 359 \n42\n326 632 915 223 4 731 168 882 89 906 770 888 358 969 128 103 438 558 495 571 610 65 381 318 671 917 812 42 88 522 368 133 153 283 707 509 13 226 390 453 131 159 \n340 841 479 468 295 916 377 789 839 986 205 571 929 228 487 740 269 574 261 636 58 765 270 764 625 634 989 14 86 471 524 426 311 3 245 606 270 621 746 460 958 303 \n42\n337 530 868 977 798 441 237 785 850 353 55 613 978 688 601 343 774 424 867 551 734 221 147 691 842 119 789 654 76 443 35 961 972 903 937 121 695 525 905 545 229 959 \n509 206 999 462 901 124 885 119 26 970 339 172 13 532 290 153 185 365 595 220 677 566 474 965 686 520 841 942 64 51 253 925 627 251 386 527 726 270 645 751 591 335 \n42\n285 866 563 755 403 279 108 974 955 266 447 271 303 966 111 597 382 531 849 306 157 451 691 35 176 312 31 278 902 717 199 857 935 113 611 337 391 312 662 697 929 460 \n967 232 777 429 828 158 311 28 815 468 478 857 854 5 520 237 282 422 953 832 630 239 944 592 927 686 903 588 382 832 47 700 415 824 480 594 333 790 621 148 609 450 \n42\n227 806 876 51 87 649 355 270 278 594 565 869 520 250 124 460 983 307 506 682 73 681 161 666 14 950 638 513 559 439 220 373 244 95 423 682 95 777 951 372 722 515 \n593 594 116 716 53 98 22 558 779 446 591 291 111 604 240 100 468 150 538 687 522 133 134 296 814 228 425 764 952 146 630 544 739 97 611 791 194 984 701 324 429 291 \n42\n11 990 24 17 405 633 225 30 557 11 218 14 659 306 11 131 920 17 74 523 530 391 28 11 27 12 850 451 12 19 967 21 55 712 13 20 15 547 754 14 141 214 \n446 12 628 50 20 48 947 383 24 705 11 27 955 9 50 358 613 901 35 15 146 715 11 992 522 26 503 83 198 804 16 759 550 404 758 19 918 77 17 20 854 19 \n42\n200 423 921 881 796 514 721 684 235 438 773 439 462 742 915 940 280 494 285 787 90 527 519 688 225 371 897 170 753 238 817 569 661 738 450 808 603 170 492 837 959 616 \n276 772 710 190 711 989 35 347 775 124 874 576 163 450 664 60 620 768 649 436 689 661 525 490 469 128 11 312 964 321 927 239 93 636 428 803 976 814 502 751 937 375 \n42\n7 367 992 389 8 15 82 700 13 10 7 845 23 755 7 151 7 57 407 9 16 23 96 724 15 16 14 863 28 26 646 347 11 8 494 10 545 10 317 17 123 237 \n10 18 7 7 589 12 631 451 245 120 13 411 433 797 298 55 29 19 288 489 21 16 9 871 385 425 9 503 847 83 892 45 9 8 256 17 71 668 984 652 1 697 \n42\n20 149 578 282 558 179 31 94 892 33 113 146 47 27 26 45 23 315 58 248 4 92 99 379 57 68 549 39 686 436 702 75 367 985 863 653 975 21 36 29 528 211 \n30 63 678 23 777 175 216 136 729 111 416 36 45 343 289 5 210 23 29 54 35 94 20 591 349 996 553 266 857 34 52 70 510 28 37 133 951 201 80 918 442 625\n"
] |
[
"NO\nNO\nYES\nYES\nYES\nYES\nNO\nYES\nYES\nNO\nYES\nYES\nYES\nNO\nNO\nYES\nYES\nYES\nYES\nYES\nYES\nNO\nNO\nYES\nYES\nNO\nNO\nYES\nNO\nNO\nYES\nNO\nYES\nNO\nNO\nNO\nNO\nNO\nNO\nYES\nNO\nYES\nYES\nYES\nNO\nNO\nNO\nNO\nYES\nNO\n",
"NO\nNO\nYES\nYES\nYES\nYES\nNO\nYES\nYES\nNO\nYES\nYES\nYES\nNO\nNO\nYES\nYES\nYES\nYES\nNO\nYES\nNO\nNO\nNO\nNO\nNO\nNO\nYES\nYES\nNO\nNO\nNO\nNO\nYES\nYES\nNO\nNO\nNO\nNO\nNO\nNO\nNO\nNO\nYES\nYES\nYES\nYES\nNO\nYES\nNO\n",
"YES\nYES\n",
"YES\nNO\n",
"NO\nNO\nYES\nYES\nYES\nYES\nNO\nYES\nYES\nNO\nYES\nYES\nYES\nNO\nNO\nYES\nYES\nYES\nYES\nYES\nYES\nNO\nNO\nYES\nYES\nNO\nNO\nYES\nNO\nNO\nNO\nNO\nYES\nNO\nNO\nNO\nNO\nNO\nNO\nYES\nNO\nYES\nYES\nYES\nNO\nNO\nNO\nNO\nYES\nNO\n",
"NO\nYES\n",
"NO\nNO\nYES\nYES\nYES\nYES\nNO\nYES\nYES\nNO\nYES\nYES\nYES\nNO\nNO\nNO\nYES\nYES\nYES\nYES\nYES\nNO\nNO\nYES\nYES\nNO\nNO\nYES\nNO\nNO\nNO\nNO\nYES\nNO\nNO\nNO\nNO\nNO\nNO\nYES\nNO\nYES\nYES\nYES\nNO\nNO\nNO\nNO\nYES\nNO\n",
"NO\nNO\nYES\nYES\nYES\nYES\nNO\nYES\nYES\nNO\nYES\nYES\nYES\nNO\nNO\nNO\nYES\nYES\nYES\nYES\nYES\nNO\nNO\nNO\nYES\nNO\nNO\nYES\nNO\nNO\nNO\nNO\nYES\nNO\nNO\nNO\nNO\nNO\nNO\nYES\nNO\nYES\nYES\nYES\nNO\nNO\nNO\nNO\nYES\nNO\n",
"NO\nNO\nYES\nYES\nYES\nYES\nNO\nYES\nYES\nYES\nYES\nYES\nYES\nNO\nNO\nNO\nYES\nYES\nYES\nYES\nYES\nNO\nNO\nNO\nYES\nNO\nNO\nYES\nNO\nNO\nNO\nNO\nYES\nNO\nNO\nNO\nNO\nNO\nNO\nYES\nNO\nYES\nYES\nYES\nNO\nNO\nNO\nNO\nYES\nNO\n",
"NO\nNO\nYES\nYES\nYES\nYES\nNO\nYES\nYES\nYES\nYES\nYES\nYES\nNO\nNO\nNO\nYES\nYES\nYES\nYES\nYES\nNO\nNO\nNO\nYES\nNO\nNO\nYES\nNO\nNO\nNO\nNO\nYES\nNO\nNO\nNO\nNO\nNO\nNO\nNO\nNO\nYES\nYES\nYES\nNO\nNO\nNO\nNO\nYES\nNO\n"
] |
CodeContests
|
C: Canisal cryptography
problem
Ebi-chan was given the string C obtained by encrypting a non-negative integer D with "canisal cipher". This cipher replaces each number in decimal notation with a fixed number (not necessarily different from the original). Different numbers will not be replaced with the same number, and the same number will not be rewritten to a different number depending on the position of appearance.
For example, this encryption method can result in 2646 being 0545, but not 3456 being 1333 or 1333 being 3456.
Now, Ebi-chan has been told that the remainder of dividing D by 10 ^ 9 + 7 is M. At this time, output one that can be considered as D. If you can think of more than one, you can output any of them. However, it is assumed that there is no extra `0` at the beginning of D.
Input format
M
C
Constraint
* 0 \ leq M <10 ^ 9 + 7
* 1 \ leq | C | \ leq 10 ^ 5
Output format
Print a non-negative integer that can be considered as D on one line. If it does not exist, output `-1`.
Input example 1
2
1000000007
Output example 1
1000000009
The encryption method this time was to replace 0 with 0, 1 with 1, and 9 with 7.
Input example 2
3
1000000007
Output example 2
-1
Input example 3
1
01 01
Output example 3
-1
There is no extra `0` at the beginning of the D.
Input example 4
45
1000000023
Output example 4
6000000087
Since `1000000052` and` 2000000059` also satisfy the conditions, you can output them.
Input example 5
0
940578326285963740
Output example 5
123456789864197523
Example
Input
2
1000000007
Output
1000000009
|
stdin
| null | 553
| 1
|
[
"2\n1000000007\n"
] |
[
"1000000009\n"
] |
[
"2\n1036219253\n",
"2\n8\n",
"2\n1612950356\n",
"2\n2998753809\n",
"2\n1978754927\n",
"2\n2655259302\n",
"2\n3155611415\n",
"2\n1020631181\n",
"2\n120033745\n",
"2\n37469551\n"
] |
[
"-1\n",
"2\n",
"-1\n",
"-1\n",
"-1\n",
"-1\n",
"-1\n",
"-1\n",
"-1\n",
"-1\n"
] |
CodeContests
|
Little Fajlu and Laal Baadshah are extremely good, and passionate Age of Empires 2 players. They're crazy about the game, and the passion they display for the game, if displayed for their semester exams - will make them top the university, even. But well, that's them.
Laal Baadshah relies on rushing through the game, so he tries to create as many weird units as quick as possible, without realizing how much power and strength his total army is giving him. While, Little Fajlu is an extremely smart player - he plans his games in a very smart, and strategic manner... which makes it very difficult to defeat him. Really. Not kidding.
We want the problem solvers to learn Fajlu's strategy, too. So, here it goes.
The top three units he uses are: Samurai, Paladins, and Champions.
The cost of a Samurai is: 100 food, 0 gold.
The cost of a Paladin is: 125 food, 50 gold.
The cost of a Champion is: 50 food, 100 gold.
What Fajlu does is given the state of his current economy, and how much will each unit increase his total advantage over his opponent, he manages to get the maximum army strength he can manage to get.
What you need to do is to calculate this amount quickly, faster than Fajlu and let Laal Baadshah know how much strength will he need to overcome Fajlu?
Input format:
The first line contains a number, T, denoting the number of test cases. The next line contains SIX integers.
1. The amount of food F Fajlu has, where 1 ≤ F ≤ 40000
2. The amount of gold G Fajlu has, where 1 ≤ G ≤ 40000
3. Power of a Samurai S, where 1 ≤ S ≤ 1000
4. Power of a Paladin P , where 1 ≤ P ≤ 1000
5. Power of a Champion C, where 1 ≤ C ≤ 1000
6. Total power Power Laal Baadshah already has, where 1 ≤ Power ≤ 3000
1 ≤ T ≤ 100
Output format:
You've to print how much more power would Laal Baadshah need to defeat Fajlu. If he already has more or equal power to defeat him, print -1.
PS: The image contains violent deaths. Adult supervision required.
SAMPLE INPUT
1
389 130 16 13 18 24
SAMPLE OUTPUT
42
|
stdin
| null | 1,878
| 1
|
[
"1\n389 130 16 13 18 24\n\nSAMPLE\n"
] |
[
"42\n"
] |
[
"43\n7878 11534 994 594 238 1250\n907 25648 745 699 879 2683\n5983 18415 152 1125 329 2446\n9953 39484 664 217 183 803\n25088 23845 164 1000 625 1234\n20871 29178 798 473 321 2156\n17429 18787 492 470 862 358\n31262 32383 898 151 666 1707\n9447 19848 167 620 545 150\n15265 6082 995 284 105 2892\n8512 4417 602 904 683 2735\n35952 16013 916 667 316 142\n12413 31792 872 887 448 2067\n39797 39504 865 852 620 2381\n20213 31489 59 229 708 1341\n3039 36211 469 586 265 827\n34156 6995 551 884 188 1947\n12377 35720 857 340 39 2397\n30241 3487 664 603 502 277\n15953 33109 372 299 817 1846\n4153 34320 281 552 598 2409\n24533 4768 573 87 811 131\n35583 29275 619 36 773 2899\n5254 16943 69 100 66 2606\n32721 10498 508 679 133 1244\n39079 1059 136 905 357 1172\n19256 16497 3 919 64 2051\n39464 21907 890 629 239 964\n8100 6759 298 210 881 1381\n14904 28193 996 319 192 1522\n24007 30985 923 696 816 643\n24929 18149 939 478 468 2962\n5230 7011 683 252 107 1486\n33979 6300 669 305 730 2380\n1625 28779 599 690 224 745\n1808 33515 986 231 985 2316\n27820 24644 879 242 235 1792\n29214 23736 110 559 350 1440\n21997 30744 3 698 278 684\n11446 28218 49 55 830 918\n16 30927 747 807 170 1655\n15295 3955 357 828 313 853\n2306 2119 495 164 941 2482\n",
"1\n389 130 16 10 18 24\n\nSAMPLE\n",
"43\n7878 11534 994 594 238 1250\n907 25648 745 699 879 2683\n5983 18415 152 1125 329 2446\n9953 39484 664 217 183 803\n25088 23845 164 1000 625 1234\n20871 29178 798 473 321 2156\n17429 18787 492 470 862 358\n31262 32383 898 151 666 1707\n9447 19848 167 620 545 150\n15265 6082 995 284 105 2892\n8512 4417 602 904 683 2735\n35952 16013 916 667 316 142\n12413 31792 872 887 448 2067\n39797 39504 865 852 620 2381\n20213 31489 59 229 708 1341\n3039 36211 469 586 265 827\n34156 6995 956 884 188 1947\n12377 35720 857 340 39 2397\n30241 3487 664 603 502 277\n15953 33109 372 299 817 1846\n4153 34320 281 552 598 2409\n24533 4768 573 87 811 131\n35583 29275 619 36 773 2899\n5254 16943 69 100 66 2606\n32721 10498 508 679 133 1244\n39079 1059 136 905 357 1172\n19256 16497 3 919 64 2051\n39464 21907 890 629 239 964\n8100 6759 298 210 881 1381\n14904 28193 996 319 192 1522\n24007 30985 923 696 816 643\n24929 18149 939 478 468 2962\n5230 7011 683 252 107 1486\n33979 6300 669 305 730 2380\n1625 28779 599 690 224 745\n1808 33515 986 231 985 2316\n27820 24644 879 242 235 1792\n29214 23736 110 559 350 1440\n21997 30744 3 698 278 684\n11446 28218 49 55 830 918\n16 30927 747 807 170 1655\n15295 3955 357 828 313 853\n2306 2119 495 164 941 2482\n",
"1\n619 130 16 10 18 24\n\nSAMPLE\n",
"1\n1134 130 16 10 18 24\n\nSAMPLE\n",
"43\n7878 11534 994 594 238 1250\n907 25648 745 699 879 2683\n5983 18415 152 1125 329 2446\n9953 39484 664 217 183 803\n25088 23845 164 1000 625 1234\n20871 43034 798 473 321 2156\n17429 18787 492 470 862 358\n31262 32383 898 151 666 1707\n9447 19848 167 620 545 150\n15265 6082 995 284 105 2892\n8512 4417 602 904 683 2735\n35952 16013 916 667 316 142\n12413 31792 872 887 448 2067\n39797 39504 865 852 620 2381\n20213 31489 59 229 708 1341\n3039 36211 469 586 265 827\n34156 6995 956 884 188 1947\n12377 35720 631 340 39 2397\n30241 3487 664 603 502 277\n15953 33109 372 299 817 1846\n4153 34320 281 552 598 2409\n24533 4768 573 87 811 131\n35583 29275 619 36 773 2899\n5254 16943 69 100 66 2606\n32721 10498 508 679 133 1244\n39079 1059 136 905 357 1172\n19256 16497 3 919 64 2051\n39464 21907 890 629 239 964\n8100 6759 298 210 881 1381\n14904 28193 996 319 192 1522\n24007 30985 923 696 816 643\n24929 18149 939 478 468 2962\n5230 7011 683 252 107 1486\n33979 6300 669 305 730 2380\n1625 28779 599 690 224 745\n1808 33515 986 231 985 2316\n27820 24644 879 242 235 1792\n29214 23736 110 559 350 1440\n21997 30744 3 698 278 684\n11446 28218 49 55 830 918\n16 30927 747 807 170 1655\n15295 3955 357 828 313 853\n2306 2119 495 164 941 2482\n",
"1\n1134 130 16 10 18 18\n\nSAMPLE\n",
"43\n7878 11534 994 594 238 1250\n907 25648 745 699 879 2683\n5983 25441 152 1125 329 2446\n9953 39484 664 217 183 803\n25088 23845 164 1000 625 1234\n20871 43034 798 473 321 2156\n17429 18787 492 470 862 358\n31262 32383 898 151 666 1707\n9447 19848 167 620 545 150\n15265 6082 995 284 105 2892\n8512 4417 602 904 683 2735\n35952 16013 916 667 316 142\n18206 31792 872 887 448 2067\n39797 39504 865 852 620 2381\n20213 31489 59 229 708 1341\n3039 36211 469 586 265 827\n34156 6995 956 884 188 1947\n12377 35720 631 340 39 2397\n30241 3487 664 603 502 277\n15953 33109 372 299 817 1846\n4153 34320 281 552 598 2409\n24533 4768 573 87 811 131\n35583 29275 619 36 773 2899\n5254 16943 69 100 66 2606\n32721 10498 508 679 133 1244\n39079 1059 136 905 357 1172\n19256 16497 3 919 64 2051\n39464 21907 890 629 239 964\n8100 6759 298 210 881 1381\n14904 28193 996 319 192 1522\n24007 30985 923 696 816 643\n24929 18149 939 478 468 2962\n5230 7011 683 252 107 1486\n33979 6300 669 305 730 2380\n1625 28779 599 690 224 745\n1808 33515 986 231 985 2316\n27820 24644 879 242 235 1792\n29214 23736 110 559 350 1440\n21997 30744 3 698 278 684\n11446 28218 49 55 830 918\n16 30927 747 807 170 1655\n15295 3955 357 828 313 853\n2306 2119 495 164 941 2482\n",
"1\n69 130 16 10 18 18\n\nSAMPKE\n",
"43\n7878 11534 994 594 238 1250\n907 25648 745 699 879 2683\n5983 25441 152 1125 329 2446\n9953 39484 664 217 183 803\n25088 23845 164 1000 625 1234\n20871 43034 798 473 321 2156\n17429 18787 492 470 862 358\n31262 32383 898 151 666 1707\n9447 19848 167 620 545 150\n15265 6082 995 284 105 2892\n8512 4417 602 904 683 2735\n35952 16013 916 667 316 142\n18206 31792 872 887 448 2067\n39797 39504 865 852 620 2381\n20213 31489 59 229 708 1341\n3039 36211 469 586 265 827\n34156 6995 956 884 188 1947\n12377 35720 631 340 39 2397\n30241 3487 664 603 502 277\n15953 33109 372 299 817 1846\n4153 34320 281 552 598 2409\n24533 4768 573 87 811 131\n35583 29275 619 36 773 2899\n5254 16943 69 110 66 2606\n32721 10498 508 679 133 1244\n39079 1059 136 905 357 1172\n19256 16497 3 919 64 2051\n39464 21907 890 629 239 964\n8100 6759 298 210 881 1381\n14904 28193 996 319 192 1522\n24007 30985 923 696 816 643\n24929 18149 939 478 468 2962\n5230 7011 683 252 107 1486\n33979 8272 669 305 730 2380\n1625 28779 599 690 224 745\n1808 33515 986 231 985 2316\n27820 24644 879 242 235 1792\n29214 23736 110 559 350 1440\n21997 30744 3 698 278 684\n11446 28218 49 55 830 918\n16 30927 747 807 170 1655\n15295 3955 357 828 313 853\n2306 2119 495 164 941 2482\n"
] |
[
"76520\n13139\n51087\n65116\n237641\n164149\n200196\n349009\n102310\n148453\n65243\n329018\n109037\n415519\n223737\n15129\n213164\n103053\n206031\n258777\n47225\n164619\n352188\n4324\n174024\n67337\n139475\n349935\n71652\n146882\n330063\n230849\n34030\n249662\n8930\n33144\n242570\n147976\n122022\n188322\n-1\n83837\n23219\n",
"42\n",
"76520\n13139\n51087\n65116\n237641\n164149\n200196\n349009\n102310\n148453\n65243\n329018\n109037\n415519\n223737\n15129\n324237\n103053\n206031\n258777\n47225\n164619\n352188\n4324\n174024\n67337\n139475\n349935\n71652\n146882\n330063\n230849\n34030\n249662\n8930\n33144\n242570\n147976\n122022\n188322\n-1\n83837\n23219\n",
"74\n",
"154\n",
"76520\n13139\n51087\n65116\n237641\n164149\n200196\n349009\n102310\n148453\n65243\n329018\n109037\n415519\n223737\n15129\n324237\n75255\n206031\n258777\n47225\n164619\n352188\n4324\n174024\n67337\n139475\n349935\n71652\n146882\n330063\n230849\n34030\n249662\n8930\n33144\n242570\n147976\n122022\n188322\n-1\n83837\n23219\n",
"160\n",
"76520\n13139\n51087\n65116\n237641\n164149\n200196\n349009\n102310\n148453\n65243\n329018\n160429\n415519\n223737\n15129\n324237\n75255\n206031\n258777\n47225\n164619\n352188\n4324\n174024\n67337\n139475\n349935\n71652\n146882\n330063\n230849\n34030\n249662\n8930\n33144\n242570\n147976\n122022\n188322\n-1\n83837\n23219\n",
"-1\n",
"76520\n13139\n51087\n65116\n237641\n164149\n200196\n349009\n102310\n148453\n65243\n329018\n160429\n415519\n223737\n15129\n324237\n75255\n206031\n258777\n47225\n164619\n352188\n4324\n174024\n67337\n139475\n349935\n71652\n146882\n330063\n230849\n34030\n256842\n8930\n33144\n242570\n147976\n122022\n188322\n-1\n83837\n23219\n"
] |
CodeContests
|
Railroad Trip
There are N cities in the JOI country, numbered 1, 2, ..., and N, respectively. In addition, there are N − 1 railroads, which are numbered 1, 2, ..., and N − 1, respectively. The railroad i (1 ≤ i ≤ N − 1) connects the city i and the city i + 1 in both directions.
There are two ways to get on the JOI railway, one is to use a paper ticket and the other is to use an IC card.
* The fare for boarding the railway i with a paper ticket is Ai yen.
* The fare for boarding the railway i with an IC card is Bi Yen. However, in order to board the railway i with an IC card, it is necessary to purchase an IC card that can be used with the railway i in advance. It costs Ci yen to purchase an IC card that can be used on the railway i. Once purchased, the IC card can be used any number of times.
Since the IC card makes it easier to process the amount, the fare for boarding with an IC card is cheaper than the fare for boarding with a paper ticket. That is, for i = 1, 2, ..., N − 1, Ai> Bi holds. Since the specifications of IC cards are all different for each railroad, the IC card that can be used on railroad i cannot be used on other railroads for any i.
You decide to travel all over the JOI country. We plan to start from the city P1 and visit the cities in the order of P2, P3, ..., PM. The trip consists of an M-1 day journey. On day j (1 ≤ j ≤ M − 1), travel by rail from city Pj to city Pj + 1. At this time, it may move by connecting several railroads. You may also visit the same city more than once. The railroads in JOI are so fast that you can travel from any city to any city in a day.
You currently do not have an IC card for any railroad. You want to purchase some railroad IC cards in advance and minimize the cost of this trip, that is, the sum of the IC card purchase cost and the railroad fare you boarded.
Task
Given the number of cities in the JOI country, the itinerary of the trip, and the fare and IC card price for each railroad in the JOI country. At this time, create a program to find the minimum amount of money required for the trip.
input
Read the following data from standard input.
* On the first line, integers N and M are written with blanks as delimiters. Each of these represents that there are N cities in the JOI country and the trip consists of an M-1 day journey.
* On the second line, M integers P1, P2, ..., PM are written with a space as a delimiter. These represent the rail movement from city Pj to city Pj + 1 on day j (1 ≤ j ≤ M − 1).
* On the i-th line (1 ≤ i ≤ N − 1) of the following N − 1 lines, three integers Ai, Bi, and Ci are written separated by blanks. These indicate that the fare when boarding the railway i with a paper ticket is Ai yen, the fare when boarding with an IC card is Bi yen, and the amount of the IC card that can be used on the railway i is Ci yen.
output
On the standard output, output an integer that represents the minimum value of the travel amount in yen on one line.
Limits
All input data satisfy the following conditions.
* 2 ≤ N ≤ 100 000.
* 2 ≤ M ≤ 100 000.
* 1 ≤ Bi <Ai ≤ 100 000 (1 ≤ i ≤ N − 1).
* 1 ≤ Ci ≤ 100 000 (1 ≤ i ≤ N − 1).
* 1 ≤ Pj ≤ N (1 ≤ j ≤ M).
* Pj ≠ Pj + 1 (1 ≤ j ≤ M − 1).
Input / output example
Input example 1
4 4
1 3 2 4
120 90 100
110 50 80
250 70 130
Output example 1
550
In this case, the method to minimize the cost of travel is as follows.
* Purchase IC cards for Railroad 2 and Railroad 3. This costs 80 + 130 = 210 yen.
* On the first day, move from city 1 to city 2 using a paper ticket, and then move from city 2 to city 3 using an IC card. This costs 120 + 50 = 170 yen.
* On the second day, move from city 3 to city 2 using an IC card. This costs 50 yen.
* On the third day, move from city 2 to city 3 using an IC card, and then move from city 3 to city 4 using an IC card. This costs 50 + 70 = 120 yen.
When moving in this way, the total amount of money spent on the trip is 210 + 170 + 50 + 120 = 550 yen. Since this is the minimum, it outputs 550.
Input example 2
8 5
7 5 3 5 4
12 5 8
16 2 1
3 1 5
17 12 17
19 7 5
12 2 19
4 1 3
Output example 2
81
The question text and the data used for the automatic referee are the question text and the test data for scoring, which are created and published by the Japan Committee for Information Olympics.
Example
Input
4 4
1 3 2 4
120 90 100
110 50 80
250 70 130
Output
550
|
stdin
| null | 1,333
| 1
|
[
"4 4\n1 3 2 4\n120 90 100\n110 50 80\n250 70 130\n"
] |
[
"550\n"
] |
[
"4 4\n1 3 2 4\n120 90 100\n110 50 80\n250 70 24\n",
"4 4\n1 3 2 4\n120 90 100\n110 50 80\n250 75 130\n",
"4 4\n1 3 2 4\n120 90 100\n110 50 33\n250 70 24\n",
"4 4\n1 3 2 4\n120 90 100\n110 50 96\n250 75 130\n",
"4 4\n1 3 2 4\n120 90 100\n110 75 33\n250 70 24\n",
"4 4\n1 3 2 4\n120 90 100\n110 50 96\n115 75 130\n",
"4 4\n1 3 2 4\n120 90 100\n100 50 80\n250 70 130\n",
"4 4\n1 3 2 4\n120 90 100\n110 50 33\n250 85 24\n",
"4 4\n1 3 2 4\n120 90 100\n110 75 64\n250 70 24\n",
"4 4\n1 3 2 4\n120 90 100\n110 50 80\n285 75 223\n"
] |
[
"444\n",
"555\n",
"397\n",
"571\n",
"472\n",
"481\n",
"550\n",
"412\n",
"503\n",
"635\n"
] |
CodeContests
|
Given the time shown by a wall clock, you have to output the internal angle between the minute and hour hand of the clock.
(Wall Clock displays a 12 hour format.)
For instance, if the time shown is 01:00 , the angle between the hands is 30 degrees.
Input : Time in HH:MM format
Output: The angle in degrees, correct up to 6 places of decimal.
SAMPLE INPUT
04:00
SAMPLE OUTPUT
120.000000
|
stdin
| null | 3,348
| 1
|
[
"04:00\n\nSAMPLE\n"
] |
[
"120.000000\n"
] |
[
"06:55\n",
"05:56\n",
"04:00\n\nSAMELP\n",
"01:10\n",
"00:10\n",
"04:01\n\nEAMRMP\n",
"00:04\n\nOLSMAE\n",
"04:10\n\nNLSMAE\n",
"01:00\n",
"02:00\n"
] |
[
"122.500000\n",
"158.000000\n",
"120.000000\n",
"25.000000\n",
"55.000000\n",
"114.500000\n",
"22.000000\n",
"65.000000\n",
"30.000000\n",
"60.000000\n"
] |
CodeContests
|
Problem Statement
Do you know the data structure called BDD (Binary Decision Diagram)? In recent years, ZDD, which has become a hot topic in the video related to Combinatorial Explosion Sister, is a data structure derived from BDD. This problem is a basic implementation of BDD.
BDD is a cycleless graph (DAG) that represents a logical function. For example, the logical function representing the truth table in Table 1 is the BDD in Figure 1. BDD consists of 5 types of parts: 0 edge (broken arrow), 1 edge (solid arrow), 0 terminal node (0 square), 1 terminal node (1 square), and variable node (circle with numbers). Consists of. There is one 0-terminal node and one 1-terminal node at the bottom. From each variable node, 0 edge and 1 edge are output one by one, and they are connected to the next node. Each variable node corresponds to the variable with the number written in the node, and if the value of the variable is 1, it goes to the 1-edge side, and if it is 0, it goes to the 0-edge side. Then, as a result of tracing from the top node, if you reach the 1-terminal node, 1 will be the answer, and if you reach the 0-terminal node, 0 will be the answer. For example, if you follow "Variable 1 = 1, Variable 2 = 0, Variable 3 = 1" in the truth table in Table 1 with BDD, you can see that the result is 1 as shown by the thick line in Fig. 1. .. In this problem, it is assumed that the variable nodes appear in the order of variable 1, variable 2, ..., and variable N, one step at a time from the top of BDD.
<image>
Now, in this problem, we ask you to create a program that compresses the simple BDD just described using the simplification rules. The simplification rules are the two rules shown in Fig. 2. First, the rule of FIG. 2 (a) is applied when there is a variable node A and "the destination of the 0 edge of A = the destination of the 1 edge of A". In this case, it can be seen that this variable node is unnecessary because there is only one transition destination regardless of whether the value of the variable is 0 or 1. Therefore, all variable nodes that meet this condition can be deleted. The rule in Fig. 2 (b) is that when there are two variable nodes A and B, "the variable number of A = the variable number of B, and the destination of the 0 edge of A = the destination of the 0 edge of B, and It is applied when "the point of one edge of A = the point of one edge of B". In this case, since it is found that the same node exists twice and is useless, two variable nodes can be shared as one variable node.
<image>
When the simplification rule is used repeatedly until the shape of the BDD does not change, the BDD in Fig. 1 changes from Fig. 3 (a)-> (b), and finally becomes more like Fig. 3 (c). It transforms into a compact BDD. It can be seen that the BDD that originally had 7 variable nodes has become a BDD with 3 variable nodes.
<image>
Since the truth table representing the logical function is input, output the number of variable nodes of BDD after applying the simplification rule.
Constraints
* 1 <= N <= 10
Input
Each data set is input in the following format.
N
bit_line
N represents the number of variables in the logical function. bit_line is a 2 ^ N length string consisting of '1' and '0' representing a truth table. Each character is
* 1st character bit: Result when variable 1 = 0, variable 2 = 0, ..., variable N-1 = 0, variable N = 0
* Second character bit: Result when variable 1 = 0, variable 2 = 0, ..., variable N-1 = 0, variable N = 1
* Third character bit: Result when variable 1 = 0, variable 2 = 0, ..., variable N-1 = 1, variable N = 0
* 4th character bit: Result when variable 1 = 0, variable 2 = 0, ..., variable N-1 = 1, variable N = 1
* ...
* 2 ^ Nth bit: Result when variable 1 = 1, variable 2 = 1, ..., variable N-1 = 1, variable N = 1
Represents.
Output
Output the number of variable nodes in BDD after applying the simplification rule.
Examples
Input
N
bit_line
Output
3
Input
3
01100110
Output
3
Input
2
0000
Output
0
Input
2
0110
Output
3
Input
5
11110101011100110010111100010001
Output
12
|
stdin
| null | 2,027
| 1
|
[
"2\n0000\n",
"5\n11110101011100110010111100010001\n",
"3\n01100110\n",
"2\n0110\n",
"N\nbit_line\n"
] |
[
"0\n",
"12\n",
"3\n",
"3\n",
"3\n"
] |
[
"2\n0001\n",
"5\n11110101011100110010111100010011\n",
"3\n00100110\n",
"N\nbit_ljne\n",
"2\n0011\n",
"3\n00101110\n",
"5\n11110101011100110010111100000010\n",
"3\n00101010\n",
"5\n10111101011100110010111100000010\n",
"5\n10111100111100110010110100010010\n"
] |
[
"2\n",
"13\n",
"5\n",
"0\n",
"1\n",
"4\n",
"12\n",
"3\n",
"14\n",
"15\n"
] |
CodeContests
|
Alfie was a prisoner in mythland. Though Alfie was a witty and intelligent guy.He was confident of escaping prison.After few days of observation,He figured out that the prison consists of (N × N) cells.i.e The shape of prison was (N × N) matrix. Few of the cells of the prison contained motion detectors.So Alfie planned that while escaping the prison he will avoid those cells containing motion detectors.Yet before executing his plan,Alfie wants to know the total number of unique possible paths which he can take to escape the prison.Initially Alfie is in cell
(1,1) while the exit of the cell (N,N).
note:->Alfie can move in all four direction{ if his current location is (X,Y), he can move to either
(X+1,Y), (X-1,Y), (X,Y+1), (X,Y-1) }. If the first cell (1,1) and the last cell(N,N) contain motion detectors,then Alfie can't break out of the prison.
INPUT:
The first line contain number of test cases "T".T test cases follow.The first line of each test case contains an integer "N",(i.e the size of the (N × N) matrix).The next n lines contain N space separated values either 0 or 1."1" represents a cell containing motion detectors.
OUTPUT:
output total number of unique possible paths which he can take to escape the prison.
Constraint:
1 ≤ T ≤ 20
1 ≤ N ≤ 20
SAMPLE INPUT
3
4
0 1 1 0
0 0 1 0
0 0 0 0
0 1 1 0
4
0 0 0 1
0 0 0 0
1 1 1 0
1 0 0 0
4
0 1 1 0
0 0 1 1
0 0 0 0
0 1 0 0
SAMPLE OUTPUT
2
4
4
|
stdin
| null | 1,316
| 1
|
[
"3\n4\n0 1 1 0 \n0 0 1 0 \n0 0 0 0 \n0 1 1 0 \n4\n0 0 0 1 \n0 0 0 0 \n1 1 1 0 \n1 0 0 0 \n4\n0 1 1 0 \n0 0 1 1 \n0 0 0 0 \n0 1 0 0 \n \nSAMPLE\n"
] |
[
"2\n4\n4\n"
] |
[
"3\n4\n0 1 1 0 \n0 0 1 0 \n0 0 0 1 \n0 1 1 0 \n4\n0 0 0 1 \n0 0 0 0 \n1 1 1 0 \n1 0 0 0 \n4\n0 1 1 0 \n0 0 1 1 \n0 0 0 0 \n0 1 0 0\n",
"3\n4\n0 1 1 0 \n0 0 1 0 \n1 0 0 0 \n0 1 1 0 \n4\n0 0 0 1 \n0 0 0 0 \n1 1 1 0 \n1 0 0 0 \n4\n0 1 1 0 \n0 0 1 1 \n0 0 0 0 \n0 1 0 0 \n \nSAMPLE\n",
"3\n4\n0 1 1 0 \n0 0 1 0 \n0 0 0 1 \n0 1 1 0 \n4\n0 0 0 1 \n0 0 0 0 \n1 1 1 0 \n0 0 0 0 \n4\n1 1 1 0 \n0 0 1 1 \n0 1 0 0 \n0 1 0 0\n",
"3\n4\n0 1 1 0 \n0 0 1 0 \n0 0 0 0 \n0 1 1 0 \n4\n0 0 0 1 \n0 0 0 0 \n1 1 1 0 \n1 0 0 0 \n4\n0 1 1 0 \n0 0 1 1 \n0 0 0 0 \n0 1 0 0 \n \nSANPLE\n",
"3\n4\n0 0 1 0 \n0 0 1 0 \n0 0 0 0 \n0 1 1 0 \n4\n0 0 0 1 \n0 0 0 0 \n1 1 1 0 \n1 0 0 0 \n4\n0 1 1 0 \n0 0 1 1 \n0 0 0 0 \n0 1 0 0 \n \nSANPLE\n",
"3\n4\n0 1 1 0 \n0 0 0 -1 \n0 0 0 1 \n0 1 1 0 \n4\n0 0 0 1 \n0 0 0 0 \n0 1 0 0 \n1 0 0 0 \n4\n1 1 1 0 \n0 0 1 1 \n0 1 0 0 \n0 1 0 0\n",
"3\n4\n0 1 1 0 \n0 0 1 0 \n0 0 0 0 \n0 1 1 0 \n4\n0 0 0 1 \n0 0 0 0 \n1 1 1 0 \n1 0 0 0 \n1\n0 1 1 0 \n0 0 1 1 \n0 0 0 0 \n0 1 0 0 \n \nSAMPLE\n",
"3\n4\n0 1 1 0 \n0 0 1 0 \n0 0 0 1 \n0 1 1 0 \n4\n0 0 0 1 \n0 0 0 0 \n1 1 1 0 \n1 0 0 0 \n4\n1 1 1 0 \n0 0 1 1 \n0 0 0 1 \n0 1 0 0\n",
"3\n4\n0 1 1 0 \n0 0 0 -1 \n0 0 0 1 \n0 1 1 0 \n4\n0 0 0 0 \n0 0 0 0 \n0 1 0 0 \n1 0 0 0 \n4\n1 1 1 0 \n0 0 1 1 \n0 1 0 0 \n0 1 0 0\n",
"3\n4\n0 1 0 0 \n0 1 1 -1 \n1 0 0 0 \n0 1 1 0 \n4\n0 0 1 1 \n0 0 0 0 \n1 1 1 0 \n1 0 0 0 \n4\n0 1 1 -1 \n0 0 1 2 \n0 0 0 0 \n0 1 0 1 \n \nSAMPLE\n"
] |
[
"0\n4\n4\n",
"1\n4\n4\n",
"0\n4\n0\n",
"2\n4\n4\n",
"4\n4\n4\n",
"0\n16\n0\n",
"2\n4\n1\n",
"0\n4\n2\n",
"0\n28\n0\n",
"0\n2\n0\n"
] |
CodeContests
|
See Russian Translation
It's a fine sunny afternoon today in California. Looking at the pleasant weather, Sumit is all ready to go out and play with his friend Rohil. Unfortunately, Rohil is down with fever. Seeing that his friend is ill, Sumit decides not to go out - instead play with Rohil inside the house. Sumit loves math, on the contrary Rohil loves strings. Sumit decides to play a game that involves more of strings and less of Maths so that Rohil could be at ease and have fun playing it.
The game is simple and is played on a piece of paper. Sumit writes down a long list of names on that paper and passes it to Rohil. Rohil gets confused on seeing so many names on that paper and asks Sumit about the game. So, Sumit explains him the rules of the game. Rohil is supposed to partition the names into groups, such that:
Each name belongs to exactly one group.
Names that belong to the same group are pairwise anagrams.
The first character of all the names in the same group are equal.
The last character of all the names in the same group are equal.
The number of groups is minimum possible.
Note: Two strings are called anagrams if it's possible to form one string from the other by changing the order of its characters.
Rohil would have won the game easily, if he would have been fit and fine but since he is ill right now he needs your help in winning the game. So, help out Rohil and do give him your blessings.
Input:
The first line contains a single integer N indicating the size of the list. This is followed by N lines where each line contains a name listed by Sumit.
Output:
In a single line print minimum number of groups in a partition that satisfy above conditions
Constraints:
1 ≤ N ≤100
1 ≤ Length of a name ≤ 100
All names will consist of lowercase English alphabets(a-z).
SAMPLE INPUT
6
vinay
vainy
vinit
viint
avinash
aasivnh
SAMPLE OUTPUT
3
Explanation
There are 3 special groups
1) vinay and vainy
2) vinit and viint
3) avinash and aavsinh
|
stdin
| null | 4,967
| 1
|
[
"6\nvinay\nvainy\nvinit\nviint\navinash\naasivnh\n\nSAMPLE\n"
] |
[
"3\n"
] |
[
"24\nabcd\nabdc\nacbd\nacdb\nadbc\nadcb\nbacd\nbadc\nbcad\nbcda\ncadb\nbdca\ncabd\ncadb\ncbad\ncbda\ncdab\ncdba\ndabc\ndacb\ndbac\ndbca\ndcab\ndcba\n",
"6\nvynai\nvainy\nvinit\nviint\navinash\naasivnh\n\nSAMPLE\n",
"24\nabcd\nabdc\nacbd\nacdb\nadbc\nadcb\nbacd\nbadc\nbcad\nbcda\ncadb\nbdca\ncabd\ncadb\ncbad\ncbda\ncdab\ncdba\ndabc\ndacb\ndbac\ndbca\ndcab\necba\n",
"6\nvynai\nvainy\nvinit\nviitn\navinash\naasivnh\n\nSAMPLE\n",
"6\nwynai\nvainy\nvinit\nviitn\navinash\naasivng\n\nSAMPLE\n",
"24\nabcd\nabdc\nacbd\nacdb\nadbc\nadcb\nbacd\nbadc\nbcad\nbcda\ncadb\nbdca\ncabd\ncadb\ncbad\ncbda\ncdab\ncdba\ndabc\ndacb\ndbac\nbdca\ndcab\necba\n",
"6\nwynai\nvainy\nvinit\nviitn\navinash\naasivnh\n\nSAMPLE\n",
"24\nabcd\nabdc\nacbd\nacdb\nadbc\nadcb\nbacd\nbadc\nbcad\nbcda\ncadb\nbdca\ncabd\ncadb\ncbad\ncbda\ncdab\ncdba\ndabc\nadcb\ndbac\nbdca\ndcab\necba\n",
"24\nabcd\nabdc\nacbd\nacdb\nadbc\nadcb\nbacd\nbadc\nbcad\nbcda\ncadb\nbdca\ncabd\ncadb\ncbad\ncbda\ncdab\ncdba\ndabc\nadbc\ndbac\nbdca\ndcab\necba\n",
"6\nwynai\nvainy\nvinit\nviitn\navinash\naasivng\n\nELPMAS\n"
] |
[
"12\n",
"4\n",
"13\n",
"5\n",
"6\n",
"12\n",
"5\n",
"12\n",
"12\n",
"6\n"
] |
CodeContests
|
In Group C of the 3rd year, we decided to use the "class flag" used at the sports festival on November 10, 2007 at future class reunions. So, in order to decide which students to keep the "class flag", I decided to play the following game using a large amount of candy that the teacher gave me the other day.
* Each student will take one candy in the order of student number.
* If candy remains after one round, continue to take candy in order from the person with the first student number.
* The person who picks up the last candy will be the student who keeps the "class flag".
There are 39 students in the 3rd grade C class. Their student numbers are 3C01 to 3C39. For example, if you have 50 candies and everyone in the class finishes taking the first candy, you will have 11 candies left. If you take it again in student number order, the last one will be taken by the 3C11 student. That is, the 3C11 student is the student who keeps the "class flag".
Create a program that takes the number of candies as input and outputs the student number of the student who stores the "class flag".
Input
Multiple test cases are given. Each test case is given in the following format. For each test case, an integer a (1 ≤ a ≤ 10000) representing the number of candies is given on one line. Process until the end of input (EOF).
The number of datasets does not exceed 20.
Output
For each test case, output the student number (half-width alphanumeric characters) of the student who stores the "class flag" on one line.
Example
Input
50
5576
5577
5578
Output
3C11
3C38
3C39
3C01
|
stdin
| null | 698
| 1
|
[
"50\n5576\n5577\n5578\n"
] |
[
"3C11\n3C38\n3C39\n3C01\n"
] |
[
"50\n5576\n6063\n5578\n",
"50\n5576\n6063\n515\n",
"50\n5576\n6063\n39\n",
"50\n9200\n6063\n39\n",
"50\n2171\n6063\n39\n",
"50\n1864\n6063\n39\n",
"50\n1864\n7383\n39\n",
"50\n1864\n7046\n39\n",
"50\n1864\n13193\n39\n",
"50\n1864\n896\n39\n"
] |
[
"3C11\n3C38\n3C18\n3C01\n",
"3C11\n3C38\n3C18\n3C08\n",
"3C11\n3C38\n3C18\n3C39\n",
"3C11\n3C35\n3C18\n3C39\n",
"3C11\n3C26\n3C18\n3C39\n",
"3C11\n3C31\n3C18\n3C39\n",
"3C11\n3C31\n3C12\n3C39\n",
"3C11\n3C31\n3C26\n3C39\n",
"3C11\n3C31\n3C11\n3C39\n",
"3C11\n3C31\n3C38\n3C39\n"
] |
CodeContests
|
There are N balls in a two-dimensional plane. The i-th ball is at coordinates (x_i, y_i).
We will collect all of these balls, by choosing two integers p and q such that p \neq 0 or q \neq 0 and then repeating the following operation:
* Choose a ball remaining in the plane and collect it. Let (a, b) be the coordinates of this ball. If we collected a ball at coordinates (a - p, b - q) in the previous operation, the cost of this operation is 0. Otherwise, including when this is the first time to do this operation, the cost of this operation is 1.
Find the minimum total cost required to collect all the balls when we optimally choose p and q.
Constraints
* 1 \leq N \leq 50
* |x_i|, |y_i| \leq 10^9
* If i \neq j, x_i \neq x_j or y_i \neq y_j.
* All values in input are integers.
Input
Input is given from Standard Input in the following format:
N
x_1 y_1
:
x_N y_N
Output
Print the minimum total cost required to collect all the balls.
Examples
Input
2
1 1
2 2
Output
1
Input
3
1 4
4 6
7 8
Output
1
Input
4
1 1
1 2
2 1
2 2
Output
2
|
stdin
| null | 2,802
| 1
|
[
"3\n1 4\n4 6\n7 8\n",
"4\n1 1\n1 2\n2 1\n2 2\n",
"2\n1 1\n2 2\n"
] |
[
"1\n",
"2\n",
"1\n"
] |
[
"3\n1 4\n4 6\n11 8\n",
"2\n1 2\n2 2\n",
"4\n1 1\n1 4\n2 1\n2 2\n",
"3\n1 4\n4 6\n11 3\n",
"3\n0 4\n4 6\n11 3\n",
"3\n-1 4\n4 6\n11 3\n",
"3\n-2 4\n4 6\n11 3\n",
"3\n-2 4\n5 6\n11 3\n",
"3\n-2 4\n5 6\n11 4\n",
"3\n-1 4\n5 6\n11 4\n"
] |
[
"2\n",
"1\n",
"3\n",
"2\n",
"2\n",
"2\n",
"2\n",
"2\n",
"2\n",
"2\n"
] |
CodeContests
|
problem
Given the sequence $ A $ of length $ N $. The $ i $ item in $ A $ is $ A_i $. You can do the following for this sequence:
* $ 1 \ leq i \ leq N --Choose the integer i that is 1 $. Swap the value of $ A_i $ with the value of $ A_ {i + 1} $.
Find the minimum number of operations required to make $ A $ a sequence of bumps.
A sequence of length $ N $ that satisfies the following conditions is defined as a sequence of irregularities.
* For any $ i $ that satisfies $ 1 <i <N $, $ A_ {i + 1}, A_ {i --1}> A_i $ or $ A_ {i + 1}, A_ {i --1} <A_i Satisfy $.
Intuitively, increase, decrease, increase ... (decrease, like $ 1, \ 10, \ 2, \ 30, \ \ dots (10, \ 1, \ 30, \ 2, \ \ dots) $ It is a sequence that repeats increase, decrease ...).
output
Output the minimum number of operations required to make a sequence of bumps. Also, output a line break at the end.
Example
Input
5
1 2 3 4 5
Output
2
|
stdin
| null | 2,939
| 1
|
[
"5\n1 2 3 4 5\n"
] |
[
"2\n"
] |
[
"5\n0 2 3 4 5\n",
"5\n1 2 1 4 5\n",
"5\n0 4 3 13 4\n",
"5\n0 2 3 4 8\n",
"5\n0 2 3 4 14\n",
"5\n0 1 3 4 5\n",
"5\n0 2 3 4 2\n",
"5\n0 2 3 8 2\n",
"5\n0 2 3 13 2\n",
"5\n0 2 3 13 4\n"
] |
[
"2\n",
"1\n",
"0\n",
"2\n",
"2\n",
"2\n",
"1\n",
"1\n",
"1\n",
"1\n"
] |
CodeContests
|
Matryoshka
Matryoshka is a famous Russian folk craft doll. Matryoshka can be divided into upper and lower parts, and when opened, there is another smaller doll inside. The nesting structure is such that when the small doll that appears is opened, a smaller doll is contained.
<image>
You found an unusually shaped matryoshka doll on your trip and bought N dolls. The shape of the i-th doll is a rectangular parallelepiped of xi × yi × zi.
After watching Matryoshka for a while, you are about to put away Matryoshka. Before that, I want to reduce the space required by storing some dolls in another. When storing a doll, one other doll can be stored only in the doll that has not yet stored any doll. However, only the dolls that are stored directly are counted, and the doll that contains the doll can be stored in another doll.
The stored doll becomes invisible from the outside. However, the following conditions must be met.
* The doll may rotate, but each side of the rectangular parallelepiped is parallel to any side of the other rectangular parallelepiped.
* After rotation, the length of the doll on the side to be stored is shorter for each of the lengths of the corresponding sides.
* At most one doll can be stored directly in one doll
Since the volume of the closet is limited, we want to minimize the sum of the volumes of the dolls that can be seen from the outside. Your job is to create a program that finds the minimum sum of the volumes of the dolls that are visible from the outside, which can be achieved by repeating the operation of storing the dolls any number of times.
Input
The input consists of multiple datasets. The maximum number of data sets does not exceed 50. Each dataset is represented in the following format.
> N
> x1 y1 z1
>::
>::
> xN yN zN
>
Each dataset consists of N + 1 rows, and the first row of the dataset is given the integer N, which represents the number of dolls. In the i-th line of the following N lines, three integers xi, yi, and zi representing the size of the i-th doll are given, separated by a half-width space. These integers satisfy 1 ≤ N, xi, yi, zi ≤ 100.
> The end of the input is represented by a single zero line.
> ### Output
For each data set, output the minimum value of the sum of the volumes of the dolls that can be seen from the outside in one line.
> ### Sample Input
2
one two Three
4 2 3
3
2 5 2
3 3 4
5 5 5
Five
1 1 1
2 2 2
3 3 3
4 4 4
5 5 5
Five
1 1 1
2 1 1
3 1 1
4 1 1
5 1 1
Ten
3 1 4
1 5 9
2 6 5
3 5 8
9 7 9
3 2 3
8 4 6
2 6 4
3 3 8
3 2 7
0
Output for Sample Input
twenty four
145
125
15
864
Example
Input
2
1 2 3
4 2 3
3
2 5 2
3 3 4
5 5 5
5
1 1 1
2 2 2
3 3 3
4 4 4
5 5 5
5
1 1 1
2 1 1
3 1 1
4 1 1
5 1 1
10
3 1 4
1 5 9
2 6 5
3 5 8
9 7 9
3 2 3
8 4 6
2 6 4
3 3 8
3 2 7
0
Output
24
145
125
15
864
|
stdin
| null | 2,382
| 1
|
[
"2\n1 2 3\n4 2 3\n3\n2 5 2\n3 3 4\n5 5 5\n5\n1 1 1\n2 2 2\n3 3 3\n4 4 4\n5 5 5\n5\n1 1 1\n2 1 1\n3 1 1\n4 1 1\n5 1 1\n10\n3 1 4\n1 5 9\n2 6 5\n3 5 8\n9 7 9\n3 2 3\n8 4 6\n2 6 4\n3 3 8\n3 2 7\n0\n"
] |
[
"24\n145\n125\n15\n864\n"
] |
[
"2\n1 4 3\n4 2 3\n3\n2 5 2\n3 3 4\n5 5 5\n5\n1 1 1\n2 2 2\n3 3 3\n4 4 4\n5 5 5\n5\n1 1 1\n2 1 1\n3 1 1\n4 1 1\n5 1 1\n10\n3 1 4\n1 5 9\n2 6 5\n3 5 8\n9 7 9\n3 2 3\n8 4 6\n2 6 4\n3 3 8\n3 2 7\n0\n",
"2\n1 4 3\n4 2 3\n3\n2 5 2\n3 3 4\n5 5 5\n5\n1 1 1\n2 2 2\n3 3 3\n4 4 4\n5 5 5\n5\n2 1 1\n2 1 1\n3 1 1\n4 1 1\n5 1 1\n10\n3 1 4\n1 5 9\n2 6 5\n3 5 8\n9 7 9\n3 2 3\n8 4 6\n2 6 4\n3 3 8\n3 2 7\n0\n",
"2\n1 4 3\n4 2 3\n3\n2 5 2\n3 3 4\n5 5 5\n5\n1 1 1\n2 2 2\n3 3 3\n4 4 4\n5 6 5\n5\n2 1 1\n2 1 1\n3 1 1\n4 1 1\n5 1 1\n10\n3 1 4\n1 5 9\n2 6 5\n3 5 8\n9 7 9\n3 2 3\n8 5 6\n2 6 4\n3 3 8\n3 2 7\n0\n",
"2\n1 4 3\n4 2 3\n3\n2 5 2\n3 3 4\n5 5 5\n5\n1 1 1\n2 2 2\n3 3 3\n4 4 4\n5 6 5\n5\n2 1 1\n2 1 1\n3 1 1\n4 1 1\n5 1 1\n10\n3 1 4\n1 5 9\n2 6 5\n3 5 8\n9 8 9\n3 2 3\n8 5 6\n2 6 4\n3 3 8\n3 2 7\n0\n",
"2\n1 2 3\n4 2 3\n3\n2 5 2\n3 3 4\n5 5 5\n5\n1 1 1\n3 2 2\n3 3 3\n4 4 4\n5 5 5\n5\n1 1 1\n2 1 1\n3 1 1\n4 1 1\n5 1 1\n10\n3 1 4\n1 5 9\n2 6 5\n3 5 8\n9 7 9\n3 2 3\n8 4 6\n2 6 4\n3 3 8\n3 2 7\n0\n",
"2\n1 4 3\n4 2 3\n3\n2 5 2\n3 3 4\n5 5 5\n5\n1 1 1\n2 2 2\n3 3 3\n4 4 4\n5 5 5\n5\n1 1 1\n2 1 1\n3 1 1\n4 1 1\n5 1 1\n10\n3 1 4\n1 5 9\n2 6 5\n3 5 8\n9 7 9\n3 2 3\n8 4 6\n2 3 4\n3 3 8\n3 2 7\n0\n",
"2\n1 4 3\n4 2 3\n3\n2 5 2\n3 3 4\n5 5 5\n5\n1 1 1\n2 2 2\n3 3 3\n4 4 4\n5 5 5\n5\n2 1 1\n2 1 1\n3 1 1\n4 1 1\n5 1 1\n10\n3 1 4\n1 5 9\n2 6 5\n3 5 8\n9 7 9\n3 2 3\n0 4 6\n2 6 4\n3 3 8\n3 2 7\n0\n",
"2\n1 4 3\n4 2 3\n3\n2 5 2\n3 3 4\n5 5 5\n5\n1 1 1\n2 2 2\n3 3 3\n4 4 4\n5 5 5\n5\n2 2 1\n2 1 1\n3 1 1\n4 1 1\n5 1 1\n10\n3 1 4\n1 5 9\n2 6 5\n3 5 8\n9 7 9\n3 2 3\n8 5 6\n2 6 4\n3 3 8\n3 2 7\n0\n",
"2\n1 4 3\n4 2 3\n3\n2 5 2\n3 3 4\n5 5 9\n5\n1 1 1\n2 2 2\n3 3 3\n4 4 4\n5 6 5\n5\n2 1 1\n2 1 1\n3 1 1\n4 1 1\n5 1 1\n10\n3 1 4\n1 5 9\n2 6 5\n3 5 8\n9 7 9\n3 2 3\n8 5 6\n2 6 4\n3 3 8\n3 2 7\n0\n",
"2\n1 4 3\n4 2 3\n3\n2 5 2\n3 3 4\n5 5 5\n5\n1 1 1\n2 2 2\n3 3 3\n4 4 4\n5 6 5\n5\n2 1 1\n2 1 1\n3 1 1\n4 1 1\n5 1 1\n10\n3 1 4\n1 5 9\n0 6 5\n3 5 8\n9 8 9\n3 2 3\n8 5 6\n2 6 4\n3 3 8\n3 2 7\n0\n"
] |
[
"36\n145\n125\n15\n864\n",
"36\n145\n125\n16\n864\n",
"36\n145\n150\n16\n864\n",
"36\n145\n150\n16\n945\n",
"24\n145\n137\n15\n864\n",
"36\n145\n125\n15\n846\n",
"36\n145\n125\n16\n804\n",
"36\n145\n125\n18\n864\n",
"36\n245\n150\n16\n864\n",
"36\n145\n150\n16\n903\n"
] |
CodeContests
|
Write a program which reads an integer n and prints the factorial of n. You can assume that n ≤ 20.
Input
An integer n (1 ≤ n ≤ 20) in a line.
Output
Print the factorial of n in a line.
Example
Input
5
Output
120
|
stdin
| null | 2,055
| 1
|
[
"5\n"
] |
[
"120\n"
] |
[
"3\n",
"4\n",
"6\n",
"10\n",
"20\n",
"27\n",
"41\n",
"34\n",
"40\n",
"47\n"
] |
[
"6\n",
"24\n",
"720\n",
"3628800\n",
"2432902008176640000\n",
"10888869450418352160768000000\n",
"33452526613163807108170062053440751665152000000000\n",
"295232799039604140847618609643520000000\n",
"815915283247897734345611269596115894272000000000\n",
"258623241511168180642964355153611979969197632389120000000000\n"
] |
CodeContests
|
Given a square table sized NxN (3 ≤ N ≤ 5,000; rows and columns are indexed from 1) with a robot on it. The robot has a mission of moving from cell (1, 1) to cell (N, N) using only the directions "right" or "down". You are requested to find the number of different ways for the robot using exactly K turns (we define a "turn" as a right move
followed immediately by a down move, or a down move followed immediately by a right move; 0 < K < 2N-2).
Input
There are several test cases (5,000 at most), each consisting of a single line containing two positive integers N, K.
The input is ended with N = K = 0.
Output
For each test case, output on a line an integer which is the result calculated. The number of ways may be very large, so compute the answer modulo 1,000,000,007.
Example
Input:
4 2
4 3
5 3
0 0
Output:
4
8
18
Explanation for the first sample test case: 4 ways are RRDDDR, RDDDRR, DRRRDD, DDRRRD ('R' or 'D' represents a right or down move respectively).
|
stdin
| null | 2,505
| 1
|
[
"4 2\n4 3\n5 3\n0 0\n"
] |
[
"4\n8\n18\n"
] |
[
"2 2\n4 3\n5 3\n0 0\n",
"2 2\n5 3\n5 3\n0 0\n",
"2 1\n4 3\n5 3\n0 0\n",
"2 1\n4 2\n5 3\n0 0\n",
"2 2\n5 5\n5 2\n0 0\n",
"2 1\n3 2\n5 3\n0 0\n",
"2 2\n5 0\n5 3\n0 0\n",
"2 1\n4 6\n5 3\n0 0\n",
"2 2\n0 5\n5 3\n0 0\n",
"2 1\n5 5\n5 2\n0 0\n"
] |
[
"774058230\n8\n18\n",
"774058230\n18\n18\n",
"2\n8\n18\n",
"2\n4\n18\n",
"774058230\n18\n6\n",
"2\n2\n18\n",
"774058230\n693514561\n18\n",
"2\n258019410\n18\n",
"774058230\n160285127\n18\n",
"2\n18\n6\n"
] |
CodeContests
|
Example
Input
2
1 2
Output
2
|
stdin
| null | 667
| 1
|
[
"2\n1 2\n"
] |
[
"2\n"
] |
[
"2\n2 2\n",
"2\n2 3\n",
"2\n2 4\n",
"2\n2 7\n",
"2\n2 17\n",
"2\n1 12\n",
"2\n0 12\n",
"2\n1 1\n",
"2\n-1 -5\n",
"2\n1 3\n"
] |
[
"4\n",
"6\n",
"8\n",
"-1\n",
"34\n",
"12\n",
"0\n",
"1\n",
"5\n",
"3\n"
] |
CodeContests
|
There are N towns on a line running east-west. The towns are numbered 1 through N, in order from west to east. Each point on the line has a one-dimensional coordinate, and a point that is farther east has a greater coordinate value. The coordinate of town i is X_i.
You are now at town 1, and you want to visit all the other towns. You have two ways to travel:
* Walk on the line. Your fatigue level increases by A each time you travel a distance of 1, regardless of direction.
* Teleport to any location of your choice. Your fatigue level increases by B, regardless of the distance covered.
Find the minimum possible total increase of your fatigue level when you visit all the towns in these two ways.
Constraints
* All input values are integers.
* 2≤N≤10^5
* 1≤X_i≤10^9
* For all i(1≤i≤N-1), X_i<X_{i+1}.
* 1≤A≤10^9
* 1≤B≤10^9
Input
The input is given from Standard Input in the following format:
N A B
X_1 X_2 ... X_N
Output
Print the minimum possible total increase of your fatigue level when you visit all the towns.
Examples
Input
4 2 5
1 2 5 7
Output
11
Input
7 1 100
40 43 45 105 108 115 124
Output
84
Input
7 1 2
24 35 40 68 72 99 103
Output
12
|
stdin
| null | 3,839
| 1
|
[
"7 1 100\n40 43 45 105 108 115 124\n",
"7 1 2\n24 35 40 68 72 99 103\n",
"4 2 5\n1 2 5 7\n"
] |
[
"84\n",
"12\n",
"11\n"
] |
[
"7 1 100\n40 43 45 3 108 115 124\n",
"7 1 2\n24 35 40 26 72 99 103\n",
"7 1 100\n40 43 45 3 108 196 37\n",
"7 1 100\n40 67 45 3 146 196 37\n",
"7 1 101\n40 67 45 3 146 196 37\n",
"7 2 101\n40 67 45 3 146 196 37\n",
"7 2 101\n40 67 30 4 146 147 37\n",
"7 2 101\n40 105 30 4 146 147 37\n",
"7 2 101\n20 105 33 1 146 3 37\n",
"7 2 101\n20 19 33 1 146 3 37\n"
] |
[
"79\n",
"-4\n",
"-8\n",
"-46\n",
"-45\n",
"-191\n",
"-189\n",
"-218\n",
"-224\n",
"-155\n"
] |
CodeContests
|
At Aizu Riverside Hospital, inpatients walk twice a day for rehabilitation and health promotion. As the number of people trying to recover their physical strength by walking is increasing day by day in order to leave the hospital energetically, the director plans to give a present to the person who walked the longest distance in a day! I launched it.
Number of patients n (1 ≤ n ≤ 10000), each patient's number pi (1 ≤ pi ≤ 10000), first walk distance d1i, second walk distance d2i (0 ≤ d1i, d2i ≤ 5000) Create a program that outputs the number of the patient with the longest total walking distance and the distance. However, it is assumed that no patient walks the same distance in a day.
Input
A sequence of multiple datasets is given as input. The end of the input is indicated by a single line of zeros. Each dataset is given in the following format:
n
p1 d11 d21
p2 d12 d22
::
pn d1n d2n
All inputs are given as integers. The number of datasets does not exceed 50.
Output
For each input dataset, it prints the number of the patient who walked the longest total distance and the distance walked on one line.
Example
Input
5
263 2345 2504
1 3210 1985
5000 1501 4132
10000 503 3107
51 1758 2690
3
345 5000 2396
7 3910 1590
6789 2525 3616
0
Output
5000 5633
345 7396
|
stdin
| null | 2,409
| 1
|
[
"5\n263 2345 2504\n1 3210 1985\n5000 1501 4132\n10000 503 3107\n51 1758 2690\n3\n345 5000 2396\n7 3910 1590\n6789 2525 3616\n0\n"
] |
[
"5000 5633\n345 7396\n"
] |
[
"5\n263 2345 2504\n1 3210 1985\n5000 1501 4132\n10001 503 3107\n51 1758 2690\n3\n345 5000 2396\n7 3910 1590\n6789 2525 3616\n0\n",
"5\n263 1519 1817\n2 1240 1985\n5000 1501 4132\n10001 503 3107\n51 1421 2690\n3\n345 1628 2396\n7 3910 1590\n5982 2525 3616\n0\n",
"5\n263 1519 1817\n2 1240 1985\n5000 1896 4132\n10001 503 3107\n51 1421 2690\n3\n345 1628 2396\n7 3910 1590\n5982 2525 3616\n0\n",
"5\n263 1519 1817\n2 1240 1985\n8382 1896 4132\n10001 503 3107\n51 1421 2690\n3\n345 1628 2181\n7 3910 1590\n5982 2525 3616\n0\n",
"5\n263 1519 1817\n2 1240 1985\n11656 1896 4132\n10001 503 3107\n51 1421 2690\n3\n345 1628 2181\n7 3910 1590\n5982 2525 3616\n0\n",
"5\n263 1519 1817\n2 1240 1985\n11656 1896 4132\n10001 503 3107\n51 1421 2690\n3\n345 1628 2181\n7 3910 1590\n5982 2525 5629\n0\n",
"5\n263 2345 1817\n1 1240 1985\n5000 1501 4132\n10001 503 3107\n51 1758 2690\n3\n477 5000 2396\n7 3910 1590\n6789 2525 3616\n0\n",
"5\n263 1519 1817\n2 1240 1985\n5000 1501 4132\n10001 503 3107\n51 1421 2690\n3\n345 5000 131\n7 3910 1590\n6789 2525 3616\n0\n",
"5\n263 1519 1817\n2 1240 1985\n5000 1501 4132\n10001 503 3107\n51 1421 2690\n3\n45 5000 2396\n7 3910 1590\n5982 2525 3616\n0\n",
"5\n263 1519 1817\n2 1240 1985\n8382 1896 4132\n10001 503 3107\n51 1421 2690\n3\n345 1628 2181\n7 3910 1590\n5982 661 3616\n0\n"
] |
[
"5000 5633\n345 7396\n",
"5000 5633\n5982 6141\n",
"5000 6028\n5982 6141\n",
"8382 6028\n5982 6141\n",
"11656 6028\n5982 6141\n",
"11656 6028\n5982 8154\n",
"5000 5633\n477 7396\n",
"5000 5633\n6789 6141\n",
"5000 5633\n45 7396\n",
"8382 6028\n7 5500\n"
] |
CodeContests
|
"Fukusekiken" is a popular ramen shop where you can line up. But recently, I've heard some customers say, "I can't afford to have vacant seats when I enter the store, even though I have a long waiting time." I'd like to find out why such dissatisfaction occurs, but I'm too busy to check the actual procession while the shop is open. However, since I know the interval and number of customers coming from many years of experience, I decided to analyze the waiting time based on that.
There are 17 seats in the store facing the counter. The store opens at noon, and customers come as follows.
* 100 groups from 0 to 99 will come.
* The i-th group will arrive at the store 5i minutes after noon.
* The number of people in the i-th group is 5 when i% 5 is 1, and 2 otherwise.
(x% y represents the remainder when x is divided by y.)
* The i-th group finishes the meal in 17 (i% 2) + 3 (i% 3) + 19 minutes when seated.
The arrival times, number of people, and meal times for the first 10 groups are as follows:
Group number | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
--- | --- | --- | --- | --- | --- | --- | --- | --- | --- | ---
Arrival time (minutes later) | 0 | 5 | 10 | 15 | 20 | 25 | 30 | 35 | 40 | 45
Number of people (people) | 2 | 5 | 2 | 2 | 2 | 2 | 5 | 2 | 2 | 2
Meal time (minutes) | 19 | 39 | 25 | 36 | 22 | 42 | 19 | 39 | 25 | 36
In addition, when guiding customers to their seats, we do the following.
* Seats are numbered from 0 to 16.
* A group of x people can only be seated when there are x open seats in a row.
Also, if there are multiple places to sit, sit in the place with the lowest seat number. For example, if only seats 0, 1, 2, 4, and 5 are available, a group of 5 people cannot be seated. If you are in a group of two, you will be seated at number 0 and 1.
* Once you are seated, you will not be asked to move your seat.
* Customers come and go in 1 minute increments. At each time, we will guide customers in the following order.
1. The next group can be seated at the same time as the previous group leaves.
2. When seating customers, seat as many groups as possible at the same time, starting with the group at the top of the line. It does not overtake the order of the matrix. In other words, if the first group cannot be seated, even if other groups in the procession can be seated, they will not be seated.
3. Groups arriving at that time will line up at the end of the procession, if any. If there is no line and you can sit down, you will be seated, and if you cannot, you will wait in line. As an example, the following shows how the first 10 groups arrive. From left to right, the three columns in each row show the time, seating, and queue. For seats, the "_" is vacant and the number indicates that the group with that number is sitting in that seat.
Time: Seat procession
0: 00 _______________:
5: 0011111 ___________:
10: 001111122 ________:
15: 00111112233______:
18: 00111112233______:
19: __111112233______:
20: 44111112233 ______:
25: 4411111223355____:
30: 4411111223355____: 66666 Group 6 arrives
34: 4411111223355____: 66666
35: 4411111__3355____: 6666677 Group 7 arrives
40: 4411111__3355____: 666667788 Group 8 arrives
41: 4411111__3355____: 666667788
42: __11111__3355____: 666667788
43: __11111__3355____: 666667788
44: 6666677883355____: Groups 6, 7 and 8 are seated
45: 666667788335599__: Group 9 arrives and sits down
For example, at time 40, the eighth group arrives, but cannot be seated and joins the procession. The fourth group eats until time 41. At time 42, seats in the 4th group are available, but the 6th group is not yet seated due to the lack of consecutive seats. The first group eats until time 43. At time 44, the first group will be vacant, so the sixth group will be seated, and at the same time the seventh and eighth groups will be seated. The ninth group arrives at time 45 and will be seated as they are available.
Based on this information, create a program that outputs the time (in minutes) that the nth group of customers waits by inputting an integer n that is 0 or more and 99 or less.
Input
Given multiple datasets. Each dataset consists of one integer n.
The number of datasets does not exceed 20.
Output
For each dataset, print the minute wait time (integer greater than or equal to 0) for the nth customer on a single line.
Example
Input
5
6
7
8
Output
0
14
9
4
|
stdin
| null | 2,096
| 1
|
[
"5\n6\n7\n8\n"
] |
[
"0\n14\n9\n4\n"
] |
[
"5\n12\n7\n8\n",
"5\n12\n12\n8\n",
"5\n12\n12\n13\n",
"5\n24\n12\n13\n",
"5\n24\n18\n13\n",
"5\n24\n34\n13\n",
"5\n25\n34\n13\n",
"5\n25\n23\n13\n",
"5\n25\n27\n13\n",
"5\n24\n27\n13\n"
] |
[
"0\n3\n9\n4\n",
"0\n3\n3\n4\n",
"0\n3\n3\n2\n",
"0\n11\n3\n2\n",
"0\n11\n15\n2\n",
"0\n11\n8\n2\n",
"0\n6\n8\n2\n",
"0\n6\n9\n2\n",
"0\n6\n18\n2\n",
"0\n11\n18\n2\n"
] |
CodeContests
|
Niwango-kun, an employee of Dwango Co., Ltd., likes Niconico TV-chan, so he collected a lot of soft toys of her and spread them on the floor.
Niwango-kun has N black rare soft toys of Niconico TV-chan and they are spread together with ordinary ones. He wanted these black rare soft toys to be close together, so he decided to rearrange them.
In an infinitely large two-dimensional plane, every lattice point has a soft toy on it. The coordinates (x_i,y_i) of N black rare soft toys are given. All soft toys are considered to be points (without a length, area, or volume).
He may perform the following operation arbitrarily many times:
* Put an axis-aligned square with side length D, rotate the square by 90 degrees with four soft toys on the four corners of the square. More specifically, if the left bottom corner's coordinate is (x, y), rotate four points (x,y) \rightarrow (x+D,y) \rightarrow (x+D,y+D) \rightarrow (x,y+D) \rightarrow (x,y) in this order. Each of the four corners of the square must be on a lattice point.
Let's define the scatteredness of an arrangement by the minimum side length of an axis-aligned square enclosing all black rare soft toys. Black rare soft toys on the edges or the vertices of a square are considered to be enclosed by the square.
Find the minimum scatteredness after he performs arbitrarily many operations.
Constraints
* 2 \leq N \leq 10^5
* 1 \leq D \leq 1000
* 0 \leq x_i, y_i \leq 10^9
* Given coordinates are pairwise distinct
* All numbers given in input are integers
Input
Input is given from Standard Input in the following format:
N D
x_1 y_1
:
x_N y_N
Output
Print the answer.
Examples
Input
3 1
0 0
1 0
2 0
Output
1
Input
19 2
1 3
2 3
0 1
1 1
2 1
3 1
4 4
5 4
6 4
7 4
8 4
8 3
8 2
8 1
8 0
7 0
6 0
5 0
4 0
Output
4
Input
8 3
0 0
0 3
3 0
3 3
2 2
2 5
5 2
5 5
Output
4
|
stdin
| null | 4,229
| 1
|
[
"19 2\n1 3\n2 3\n0 1\n1 1\n2 1\n3 1\n4 4\n5 4\n6 4\n7 4\n8 4\n8 3\n8 2\n8 1\n8 0\n7 0\n6 0\n5 0\n4 0\n",
"3 1\n0 0\n1 0\n2 0\n",
"8 3\n0 0\n0 3\n3 0\n3 3\n2 2\n2 5\n5 2\n5 5\n"
] |
[
"4\n",
"1\n",
"4\n"
] |
[
"19 2\n1 3\n2 3\n0 1\n1 1\n2 1\n3 1\n4 4\n5 4\n6 4\n7 4\n8 4\n8 1\n8 2\n8 1\n8 0\n7 0\n6 0\n5 0\n4 0\n",
"3 2\n0 0\n1 0\n2 0\n",
"1 4\n0 0\n2 1\n2 0\n",
"8 3\n0 0\n0 3\n6 0\n1 3\n2 0\n2 10\n5 2\n0 8\n",
"17 2\n0 5\n2 3\n1 0\n1 2\n3 1\n3 1\n3 5\n5 1\n5 4\n7 4\n8 4\n6 1\n1 2\n6 1\n8 1\n11 0\n11 0\n11 -1\n7 0\n",
"3 1\n0 -1\n1 0\n2 0\n",
"17 3\n0 5\n2 3\n1 0\n1 2\n3 1\n3 1\n3 5\n5 1\n5 4\n7 4\n8 4\n6 1\n1 2\n6 1\n8 1\n11 1\n11 0\n11 -1\n7 1\n",
"3 8\n0 0\n0 0\n2 0\n",
"8 3\n0 0\n0 3\n3 0\n3 3\n2 4\n2 5\n5 2\n5 5\n",
"17 2\n1 3\n2 3\n0 1\n1 1\n2 1\n3 1\n4 4\n5 4\n6 4\n7 4\n8 4\n8 1\n8 2\n8 1\n8 0\n7 0\n6 0\n5 0\n4 0\n"
] |
[
"4\n",
"2\n",
"0\n",
"3\n",
"5\n",
"1\n",
"6\n",
"8\n",
"4\n",
"4\n"
] |
CodeContests
|
On a planet far, far away, M languages are spoken. They are conveniently numbered 1 through M.
For CODE FESTIVAL 20XX held on this planet, N participants gathered from all over the planet.
The i-th (1≦i≦N) participant can speak K_i languages numbered L_{i,1}, L_{i,2}, ..., L_{i,{}K_i}.
Two participants A and B can communicate with each other if and only if one of the following conditions is satisfied:
* There exists a language that both A and B can speak.
* There exists a participant X that both A and B can communicate with.
Determine whether all N participants can communicate with all other participants.
Constraints
* 2≦N≦10^5
* 1≦M≦10^5
* 1≦K_i≦M
* (The sum of all K_i)≦10^5
* 1≦L_{i,j}≦M
* L_{i,1}, L_{i,2}, ..., L_{i,{}K_i} are pairwise distinct.
Input
The input is given from Standard Input in the following format:
N M
K_1 L_{1,1} L_{1,2} ... L_{1,{}K_1}
K_2 L_{2,1} L_{2,2} ... L_{2,{}K_2}
:
K_N L_{N,1} L_{N,2} ... L_{N,{}K_N}
Output
If all N participants can communicate with all other participants, print `YES`. Otherwise, print `NO`.
Examples
Input
4 6
3 1 2 3
2 4 2
2 4 6
1 6
Output
YES
Input
4 4
2 1 2
2 1 2
1 3
2 4 3
Output
NO
|
stdin
| null | 4,547
| 1
|
[
"4 6\n3 1 2 3\n2 4 2\n2 4 6\n1 6\n",
"4 4\n2 1 2\n2 1 2\n1 3\n2 4 3\n"
] |
[
"YES\n",
"NO\n"
] |
[
"4 4\n2 1 2\n2 1 2\n0 3\n2 4 3\n",
"4 6\n3 2 3 3\n2 4 2\n2 4 6\n1 6\n",
"4 4\n2 2 2\n2 1 2\n0 3\n2 4 3\n",
"4 4\n2 2 2\n2 1 2\n1 3\n2 4 3\n",
"4 6\n3 1 3 3\n2 4 2\n2 4 6\n1 6\n",
"4 4\n2 2 2\n2 2 2\n0 3\n2 4 3\n",
"4 4\n2 2 2\n2 2 2\n0 3\n2 4 4\n",
"4 6\n3 2 3 4\n2 4 2\n2 4 6\n1 6\n",
"4 4\n2 2 2\n2 2 2\n0 3\n2 2 4\n",
"4 4\n2 2 2\n2 2 2\n0 3\n2 1 4\n"
] |
[
"NO\n",
"YES\n",
"NO\n",
"NO\n",
"NO\n",
"NO\n",
"NO\n",
"YES\n",
"NO\n",
"NO\n"
] |
CodeContests
|
Apples and Oranges. You thought this question was gone when you passed class 6th. WELL YOU ARE WRONG. It's back.
See we have n apples and m oranges. You need to put these apples and oranges into some boxes. Though we've put some terms&conditions with a bright *
1. Number of apples should be same in each box.
2. Number of oranges should be same in each box
3. Number of boxes should be greatest under the above two conditions
Input
First line contains n & m, two integers. n lies in 1 to 10^9. m lies in 1 to 10^9
Output
Number of apples and oranges in each box
Sample Input
12028 12772
Sample Output
97 103
Explanation
Seriously? Just look at the numbers. Try Harder. Again look at the numbers.
SAMPLE INPUT
12028 12772
SAMPLE OUTPUT
97 103
|
stdin
| null | 2,432
| 1
|
[
"12028 12772\n",
"12028 12772\n\nSAMPLE\n"
] |
[
"97 103\n",
"97 103\n"
] |
[
"10005123 78827706\n",
"157976 510009\n",
"12028 12462\n",
"11934 12772\n\nSAMPLE\n",
"10005123 6956314\n",
"157976 174734\n",
"14870 12462\n",
"11934 24366\n\nSAMPLE\n",
"10005123 5167368\n",
"157976 125087\n"
] |
[
"3335041 26275902\n",
"157976 510009\n",
"194 201\n",
"5967 6386\n",
"10005123 6956314\n",
"1612 1783\n",
"7435 6231\n",
"1989 4061\n",
"3335041 1722456\n",
"157976 125087\n"
] |
CodeContests
|
As shown in the following figure, there is a paper consisting of a grid structure where each cell is indicated by (x, y) coordinate system.
We are going to put drops of ink on the paper. A drop comes in three different sizes: Large, Medium, and Small. From the point of fall, the ink sinks into surrounding cells as shown in the figure depending on its size. In the figure, a star denotes the point of fall and a circle denotes the surrounding cells.
<image>
Originally, the paper is white that means for each cell the value of density is 0. The value of density is increased by 1 when the ink sinks into the corresponding cells. For example, if we put a drop of Small ink at (1, 2) and a drop of Medium ink at (3, 2), the ink will sink as shown in the following figure (left side):
<image>
In the figure, density values of empty cells are 0. The ink sinking into out of the paper should be ignored as shown in the figure (top side). We can put several drops of ink at the same point.
Your task is to write a program which reads a sequence of points of fall (x, y) with its size (Small = 1, Medium = 2, Large = 3), and prints the number of cells whose density value is 0. The program must also print the maximum value of density.
You may assume that the paper always consists of 10 × 10, and 0 ≤ x < 10, 0 ≤ y < 10.
Input
x1,y1,s1
x2,y2,s2
:
:
(xi, yi) represents the position of the i-th drop and si denotes its size. The number of drops is less than or equal to 50.
Output
Print the number of cells whose density value is 0 in first line.
Print the maximum value of density in the second line.
Example
Input
2,5,3
3,6,1
3,4,2
4,5,2
3,6,3
2,4,1
Output
77
5
|
stdin
| null | 2,171
| 1
|
[
"2,5,3\n3,6,1\n3,4,2\n4,5,2\n3,6,3\n2,4,1\n"
] |
[
"77\n5\n"
] |
[
"2,5,3\n3,6,1\n3,4,2\n4,5,2\n3,6,3\n1,4,1\n",
"2,5,3\n1,6,3\n3,4,2\n4,5,2\n3,6,3\n2,4,1\n",
"2,5,3\n3,6,1\n2,4,2\n4,5,2\n3,6,3\n1,4,1\n",
"2,5,3\n3,6,1\n3,4,2\n5,5,2\n3,6,3\n1,4,1\n",
"2,5,3\n3,6,1\n2,4,2\n4,6,2\n3,6,3\n1,4,1\n",
"2,5,3\n3,6,1\n3,4,2\n4,5,2\n3,6,3\n2,4,2\n",
"1,5,3\n1,6,3\n3,4,2\n4,5,2\n3,6,3\n2,4,1\n",
"2,5,3\n3,5,1\n3,4,2\n5,5,2\n3,6,3\n1,4,1\n",
"2,5,3\n3,6,1\n2,4,2\n6,4,2\n3,6,3\n1,4,1\n",
"3,5,2\n3,6,1\n2,4,2\n6,4,2\n3,6,2\n1,4,1\n"
] |
[
"75\n5\n",
"73\n5\n",
"76\n5\n",
"72\n4\n",
"77\n5\n",
"76\n6\n",
"71\n5\n",
"72\n5\n",
"70\n4\n",
"73\n4\n"
] |
CodeContests
|
Here is your task. You are given two strings and you have to merge/compress them in single string with minimum length such that both strings can be found (one at a time) by breaking that merged string into two parts.
NOTE:
String s2 should follow string s1.
INPUT
First line contain number of test cases T. Each test case contains two strings s1 and s2.
OUTPUT
Print merged string.
Constraints
1 ≤ T ≤ 100
1 ≤ length of strings ≤10^6
SAMPLE INPUT
2
roadshow
showman
tarun
tarunnum
SAMPLE OUTPUT
roadshowman
tarunnum
|
stdin
| null | 2,277
| 1
|
[
"2\nroadshow\nshowman\ntarun\ntarunnum\n\nSAMPLE\n"
] |
[
"roadshowman\ntarunnum\n"
] |
[
"2\nroadshow\nhsowman\ntarun\ntarunnum\n\nSAMPLE\n",
"2\nwoadshor\nhsowman\ntarun\ntarunnum\n\nSAMPLE\n",
"2\nwoadshor\nisowman\ntarun\ntarunnum\n\nSAMPLE\n",
"2\nwoadshor\nisowman\nnurat\ntarunnum\n\nSAMPLE\n",
"2\nwoadshor\nisoxman\nnurat\ntarunnum\n\nSAMPLE\n",
"2\nwoadshor\nnamxosi\nnurat\ntarunnum\n\nSAMPLE\n",
"2\nwoadshor\noamxosi\nnurat\ntarunnum\n\nSAMPLE\n",
"2\nwoadshor\noamxosi\nnurat\nturannum\n\nSAMPLE\n",
"2\nwoadshor\noamyosi\nnurat\nturannum\n\nSAMPLE\n",
"2\nwoadshor\noamyosi\ntarun\nturannum\n\nSANPLE\n"
] |
[
"roadshowhsowman\ntarunnum\n",
"woadshorhsowman\ntarunnum\n",
"woadshorisowman\ntarunnum\n",
"woadshorisowman\nnuratarunnum\n",
"woadshorisoxman\nnuratarunnum\n",
"woadshornamxosi\nnuratarunnum\n",
"woadshoroamxosi\nnuratarunnum\n",
"woadshoroamxosi\nnuraturannum\n",
"woadshoroamyosi\nnuraturannum\n",
"woadshoroamyosi\ntarunturannum\n"
] |
CodeContests
|
You got an old map, which turned out to be drawn by the infamous pirate "Captain Q". It shows the locations of a lot of treasure chests buried in an island.
The map is divided into square sections, each of which has a digit on it or has no digit. The digit represents the number of chests in its 9 neighboring sections (the section itself and its 8 neighbors). You may assume that there is at most one chest in each section.
Although you have the map, you can't determine the sections where the chests are buried. Even the total number of chests buried in the island is unknown. However, it is possible to calculate the minimum number of chests buried in the island. Your mission in this problem is to write a program that calculates it.
Input
The input is a sequence of datasets. Each dataset is formatted as follows.
h w
map
The first line of a dataset consists of two positive integers h and w. h is the height of the map and w is the width of the map. You may assume 1≤h≤15 and 1≤w≤15.
The following h lines give the map. Each line consists of w characters and corresponds to a horizontal strip of the map. Each of the characters in the line represents the state of a section as follows.
'.': The section is not a part of the island (water). No chest is here.
'*': The section is a part of the island, and the number of chests in its 9 neighbors is not known.
'0'-'9': The section is a part of the island, and the digit represents the number of chests in its 9 neighbors.
You may assume that the map is not self-contradicting, i.e., there is at least one arrangement of chests. You may also assume the number of sections with digits is at least one and at most 15.
A line containing two zeros indicates the end of the input.
Output
For each dataset, output a line that contains the minimum number of chests. The output should not contain any other character.
Examples
Input
5 6
Output
6
Input
5 6
*2.2**
..*...
..2...
..*...
*2.2**
6 5
.*2*.
..*..
..*..
..2..
..*..
.*2*.
5 6
.1111.
**...*
33....
**...0
.*2**.
6 9
....1....
...1.1...
....1....
.1..*..1.
1.1***1.1
.1..*..1.
9 9
*********
*4*4*4*4*
*********
*4*4*4*4*
*********
*4*4*4*4*
*********
*4*4*4***
*********
0 0
Output
6
5
5
6
23
|
stdin
| null | 3,927
| 1
|
[
"5 6\n*2.2**\n..*...\n..2...\n..*...\n*2.2**\n6 5\n.*2*.\n..*..\n..*..\n..2..\n..*..\n.*2*.\n5 6\n.1111.\n**...*\n33....\n**...0\n.*2**.\n6 9\n....1....\n...1.1...\n....1....\n.1..*..1.\n1.1***1.1\n.1..*..1.\n9 9\n*********\n*4*4*4*4*\n*********\n*4*4*4*4*\n*********\n*4*4*4*4*\n*********\n*4*4*4***\n*********\n0 0\n",
"5 6\n"
] |
[
"6\n5\n5\n6\n23\n",
"6\n"
] |
[
"5 6\n*3.2**\n..*...\n..2...\n..*...\n*2.2**\n6 5\n.*2*.\n..*..\n..*..\n..2..\n..*..\n.*2*.\n5 6\n.1111.\n**...*\n33....\n**...0\n.*2**.\n6 9\n....1....\n...1.1...\n....1....\n.1..*..1.\n1.1***1.1\n.1..*..1.\n9 9\n*********\n*4*4*4*4*\n*********\n*4*4*4*4*\n*********\n*4*4*4*4*\n*********\n*4*4*4***\n*********\n0 0\n",
"5 4\n",
"5 6\n*2.2**\n..*...\n..2...\n..*...\n*2.2**\n6 5\n.*2*.\n..*..\n..*..\n..2..\n..*..\n.*2*.\n5 6\n.1111.\n**...*\n33....\n**...0\n.*2**.\n6 9\n....1....\n...1.1...\n....1....\n.1..*..1.\n1.1***1.1\n.1..*..1.\n9 9\n*********\n*4*4)4*4*\n*********\n*4*4*4*4*\n*********\n*4*4*4*4*\n*********\n*4*4*4***\n*********\n0 0\n",
"5 6\n*2.2**\n..*...\n..2...\n..*...\n*2.2**\n6 5\n.*2*.\n..*..\n..*..\n..2..\n..*..\n.*2*.\n5 6\n.1111.\n**...*\n33....\n**...0\n.*2**.\n6 9\n....1....\n...1.1...\n....1....\n.1..*..1.\n1.1***1.1\n.1..*..1.\n9 4\n*********\n*4*4)4*4*\n*********\n*4*4*4*4*\n*********\n*4*4*4*4*\n*********\n*4*4*4***\n*********\n0 0\n",
"5 6\n*3.2**\n-.*...\n..2...\n..*...\n*2.2**\n6 5\n.*2*.\n..*..\n..*..\n..2..\n..*..\n.*2*.\n5 6\n.1111.\n**...*\n33....\n**...0\n.*2**.\n6 9\n....1....\n...1.1...\n....1....\n.1..*..1.\n1.1***1.1\n.1.1*....\n9 9\n*********\n*4*4*4*4*\n*********\n*4*4*4*4*\n*********\n*4*4*4*4*\n*********\n*4*4*4***\n*********\n0 0\n",
"5 6\n*2.2**\n..*...\n..2...\n..*...\n*2.2**\n6 5\n.*2*.\n..*..\n..*..\n..2..\n..*..\n.*2*.\n5 6\n.1111.\n**...*\n33....\n**...0\n.*2**.\n1 9\n....1....\n...1.1...\n....1....\n.1..*..1.\n1.1***1.1\n.1..*..1.\n9 4\n*********\n*4*4)4*4*\n*********\n*4*4*4*4*\n*********\n*4*4*4*4*\n*********\n*4*4*4***\n*********\n0 0\n",
"5 6\n*3.2**\n-.*...\n..2...\n..*...\n*2.2**\n6 5\n.*2*.\n..*..\n..*..\n..2..\n..*..\n.*2*.\n5 6\n.1111.\n**...*\n33....\n**...0\n.*2**.\n1 9\n....1....\n...1.1...\n....1....\n.1..*..1.\n1.1***1.1\n.1.1*....\n9 9\n*********\n*4*4*4*4*\n*********\n*4*4*4*4*\n*********\n*4*4*4*4*\n*********\n*4*4*4***\n*********\n0 0\n",
"5 6\n*2.2**\n..*...\n..2...\n..*...\n*2.2**\n2 5\n.*2*.\n..*..\n..*..\n..2..\n..*..\n.*2*.\n5 6\n.1111.\n**...*\n33....\n**...0\n.*2**.\n1 9\n....1....\n...1.1...\n....1....\n.1..*..1.\n1.1***1.1\n.1..*..1.\n9 4\n***)*****\n*4*4)4*4*\n*********\n*4*4*4*4*\n*********\n*4*4*4*4*\n*********\n*4*4*4***\n*********\n0 0\n",
"5 6\n*3.2**\n..*...\n..2...\n..*...\n*2.2**\n6 5\n.*2*.\n..*..\n..*..\n..2..\n..*..\n.*2*.\n5 6\n.1111.\n**...*\n33....\n*.*..0\n.*2**.\n6 9\n....1....\n...1.1...\n....1....\n.1..*..1.\n1.1***1.1\n.1..*..1.\n9 9\n*********\n*4*4*4*4*\n*********\n*4*4*4*4*\n*********\n*4*4*4*4*\n*********\n*4*4*4***\n*********\n0 0\n",
"5 6\n*2.2**\n..*...\n..2...\n..*...\n*2.2**\n6 5\n.*2*.\n..*..\n..*..\n..2..\n..*..\n.*2*.\n5 6\n.1111.\n**...*\n33....\n**...0\n.*1**.\n6 9\n....1....\n...1.1...\n....1....\n.1..*..1.\n1.1***1.1\n.1..*..1.\n9 9\n*********\n*4*4)4*4*\n*********\n*4*4*4*4*\n*********\n*4*4*4*4*\n*********\n*4*4*4***\n*********\n0 0\n"
] |
[
"7\n5\n5\n6\n23\n",
"0\n",
"6\n5\n5\n6\n23\n",
"6\n5\n5\n6\n13\n",
"7\n5\n5\n5\n23\n",
"6\n5\n5\n1\n",
"7\n5\n5\n1\n",
"6\n2\n",
"7\n5\n6\n6\n23\n",
"6\n5\n4\n6\n23\n"
] |
CodeContests
|
Adriana was playing with the English alphabet. When she was done playing with the alphabet, she realised that she had jumbled up the positions of the letters. Now, given a set of words, she wondered what would be the dictionary ordering of these words based on the new alphabet ordering which she made.
In other words, given a permutation of the English alphabet, E and a set of words S, you need to output the lexicographical ordering of the words in the set S based on the new alphabet, E.
Input
The first line will contain a single integer, T, denoting the number of test cases. T lines follow.
For each test case:
The first line will contain a string, E, the new alphabet ordering, which will be a permutation of 'abcdefghijklmnopqrstuvwxyz'
The next line will contain a single integer M, the size of the set S. S lines follow, each containing a single word, containing lowercase latin characters.
Output
For each test case, output S lines, each line containing one word from the set S, ordered lexicographically.
Constraints
1 ≤ T ≤ 1000
1 ≤ M ≤ 100
1 ≤ |W| ≤ 50
SAMPLE INPUT
2
abcdefghijklmnopqrstuvwxyz
2
aa
bb
bacdefghijklmnopqrstuvwxyz
2
aa
bb
SAMPLE OUTPUT
aa
bb
bb
aa
|
stdin
| null | 4,141
| 1
|
[
"2\nabcdefghijklmnopqrstuvwxyz\n2\naa\nbb\nbacdefghijklmnopqrstuvwxyz\n2\naa\nbb\n\nSAMPLE\n"
] |
[
"aa\nbb\nbb\naa\n"
] |
[
"5\neklpyqrbgjdwtcaxzsnifvhmou\n30\ncdxrjmowfrxsjybldbefsarcbynecdy\ngxxpklorellnmpapqfwkh\np\nmcoqhnwnk\newhsqmgbbuq\nljjivswmdkqtbxixmvtrrbljptnsn\nwzqf\nmafadrrwsofsbcnuvqhf\nbsaqxw\nqcacehchzvfrkmlnozjkpqpxrjxkitzyxacbhhkicqco\nndtomfgdwdwfcgpxiqvkuytdlcgdewhtaciohor\ntq\nvwcsgspqoqmsboaguwnnyqxnzlgdg\npbtrwblnsad\nuguumoqcdrubetokyxhoachwdvm\nxrdryxlmndqtukwagmleju\nkwcibxubumenmeyatdrmydiajxloghiqfmz\nlvihjo\nvsuyoypayulyeimuotehzriicfs\npggkbbipzzrzucxamlu\nfykgruow\ngiooobppleqlwphapjnadqhdcnvw\ntxjbmyppphauxnspusgdhiixqmbfjxjcvudj\nuyibyebmwsiqyoygyxymzevypzvjegebeoc\nuftsxdixtigsieehkchzdflilrjqfn\nztqrsvbspkyhsenbppkqtpddbuotbbqcwivrfxju\njddntgeiqvdgaijvwcyaubwewpjvygehljxepbpiwu\nzdzubdubzvafspqpqwu\nifwovyddwyvvburczm\nyjgfdxvtnunneslsplwuiupfxlzbknhkw\nbctfoujyxwadpgznqrvkeislmh\n30\ncsfmoxeqmrjowrghwlkob\neahkgccnaehhsveymqpxhlrnunyfdzrhb\nsjeuygafoubutpnimuwfjqsjxvkqd\nrxxvrwctdsneogvbpkxlpgdirbf\nriqifpgynkrrefxsnvucftpwctgtwmxnupycfgcuqunublm\niitncklefszbexrampetvhqnddjeqvuygpnka\nqfrpjvoaxdpcwmjobmskskfojnewxgxnnofwltwjwnnvbwjckd\neouuzhyvhgvwujbqx\npitcvograiddvhrrdsycqhkleewhxtembaqwqw\nqhsuebnvfgvjwdvjjafqzzxlcxdzncqgjlapopkvxfgvicetcm\nbljopgtqvvhbgsdvivhesnkqx\nwrq\ndrvmhlubbryktheye\ntmrobdeyqcrgluaiihveixwjjrqopubjguxhxdipfzws\nybgfy\nqvjzharvrlyauuzdrcnjkphc\nffrkeecbpdipufhidjcxjhrnxcxmjcxohqanxd\nmgze\nhnlmwp\nh\ndvthsfqueeexgrujigskmvrzgfwvrftwa\ndtutpbztygnsrxajjngc\nmikjzsdwsszno\ndruypcnjulkfuzmxnafamespckjcazxdrtdgyrqs\nczybnvqqcqcjitlvcnvbmasidzgwraatzzwpwmfbfjkncvk\nlhh\njchpdnlunmppnlgjznkewwuysgefonexpmmsbaopmdgzqmkq\nxuvtqvnxbs\nqzkglzamzpdnsjolvybwxxttqognrbaiakqllszkhfzconnmoq\nlpeefsnsmouwqhodsgcfohesyshmgxwtoayuv\ntpiulyvxkegcrmjsfwhoqbadnz\n30\ngvlcsaqbdbgw\nbseettwdnfnbyjvpdjxyuzqxstatbzpctthoofremgfk\nbcvkzvgbofthgojhdn\nywpnbitoraaibednezwfpda\nlohssvtqtkfvsyljzlucqxswyqdnt\nmfrtzlqsekejhzksklfepxchvczysvdgcxbbis\nm\nayl\nifktmoikss\nxtgpojxqiysrsqfwqdjqnqcg\nqrnllu\neazvmwnuufnnxvloyvgmliuqand\nyavfauaosnlnvacsvpiumoiawcqxswkqwgxyazntnaik\nmeybnuqbcqaggxachrynqxqqmlfotpqhvokiiammqmvxjvb\noaifzyxnjcb\nrrnmixx\nyjhovengbpyqrixqg\ndrygxrxkf\nicainhwilkqmbpeszd\ngznzxtzqsjwatycbmjawwmninep\nduplucltxmkpvgrrgtuseura\neltkcapwpbqromqawixezqkvlfb\nwcocpjmr\nbpbegvsuluqtuuvkesvjtdhvtjmexfqbv\nfdpaxcwnwqjtb\nlyzedicwsodpwtqrpyuearhwgfnpaqel\nfrsotqi\ntxipqzeqvlqmuoubbjbrpmixfclbstnos\ndkujcpwsdqhxrkiueziowoqjpiecwx\nbjtnmkjgncpmvauqgtausokbfugjtfiuqbjc\nhicbpvxwrgdozfmjuytlkqensa\n30\nadgkhufsuevjaxrnivco\nhfrqqwnu\nquoyevslqprlyskrhunljgsoxleuyyfqutozqh\ngyetyyepfaesjlk\nivdevdllygazxj\ndjrxhrdyyddqnqdoayshwxshxzjywumbff\nmxdnxjqoy\nrmirernekxdlicjfqkkvnxuqmszcixm\nkwsqoiwyfalpeuuugfrteomqinuqni\nxelpstosaodqszkogrfbxt\npdbltqtmpyyeqtujuiok\nowswqyxntndxqqsgkhvihbaawjugagloddktdjizynyoesuoz\nyityjrifximkyrokktvusuiqiojf\nkyatryekijksvusokcyeavwufpctajxkixdbxjmitwcqqxfbb\nhbad\nfuaaujxfrwkvuuhepdifvfkyhs\niuleafgaapahjwtesp\nweqfmnmymtqreleinkopmfpvomqueghdmxkynwxzqnsw\nxgnjwdxbuus\nkmnqw\ndvadiwahoqakqzqgkmlhqfdimnwzgsplorownpgehio\nhhfrvqalwd\nksslykajataxgpdmyldxukdnftprrumbmemlrowr\nwoqntclghlcr\nrzhgsbaecplpccdyvnxmdmfhaoplqizkhiqbj\nimitdkxiksxjecwmkw\nbhslievqvwcqeqaztkydwrbgxdcjpalsh\nepkzhhvlxcbxdwjccgtdoqiscyspqzvuqivzptl\nvooynyapgvswoaosaghrffnx\njyeeltzaizniccozwknw\nknlzxqcsrtegwaobvudhfmjypi\n30\nyjdohbvghmyuiggtyqjtmuqinntqmihntkddnalwnmsxsatqqe\ndacnnpjfermrnyuqnwbjjpdjhd\navknykpoxhxclqqedqavdwz\nevkgyoifvtvfuzczzmtvudkqgdrslhryxwwrroi\nervvudneghbctcbxdxezrzgbpfhzanffeccb\nqfmzjqtlr\nppxqiywjobspefujlxnmddurddiyobqfspvcoulcvdr\nkm\nwlyiqdchghrgytzdnobqcvdeqjystmepxcaniewqmoxkjwpym\no\nluxedvywhcoghotpusfgiestckrpaigocfufbubiyrrf\nmwaeeimidf\nnzcphkflpbqsvtdwludsga\nngfzoihbxifoprwcjzsdxngtacw\njypweuxvegybogsfxqhipbompufpxckicaghuf\nzmaccgwigmrqcteqkbwbaamicoqlivnjjoomwku\nznvdgztqarsargkwuaheyvohl\ntjqpopdjslkoelfynzeav\naceazuimydypvmgyxblhppuunkttkqtmvanuu\njvahmvvuvsvhzkywhmgchqvdcqdpmzmxwneikzfg\nantnlpwzvahnvkplpfaotxngexrfczzdmuszlo\niokvkwkxlrxblvotzomeqlftxzlzkbcsqmnciazvrzyeupyv\nkbtwhpvgcwteylwkbyubxr\nwszshxpmjrhfawdibzbfypdksbhtaapzs\nrbnjpzcxecvjmwjqdjhgv\njcukfjjzacbpnsoppvtleijpynyfvu\nfyyrdjadjegbsypjomfbrnkilzhsvbwczwtdfvirbosvm\nfcymdrzqzkpgemja\njyjofeywimqdackdawitxysjq\nncipttncjtjhrtvkwwojbqhjjfkboa\n",
"5\neklpyqrbgjdwtcaxzsnifvhmou\n30\ncdxrjmowfrxsjybldbefsarcbynecdy\ngxxpklorellnmpapqfwkh\np\nmcoqhnwnk\newhsqmgbbuq\nljjivswmdkqtbxixmvtrrbljptnsn\nwzqf\nmafadrrwsofsbcnuvqhf\nbsaqxw\nqcacehchzvfrkmlnozjkpqpxrjxkitzyxacbhhkicqco\nndtomfgdwdwfcgpxiqvkuytdlcgdewhtaciohor\ntq\nvwcsgspqoqmsboaguwnnyqxnzlgdg\npbtrwblnsad\nuguumoqcdrubetokyxhoachwdvm\nxrdryxlmndqtukwagmleju\nkwcibxubumenmeyatdrmydiajxloghiqfmz\nlvihjo\nvsuyoypayulyeimuotehzriicfs\npggkbbipzzrzucxamlu\nfykgruow\ngiooobppleqlwphapjnadqhdcnvw\ntxjbmyppphauxnspusgdhiixqmbfjxjcvudj\nuyibyebmwsiqyoygyxymzevypzvjegebeoc\nuftsxdixtigsieehkchzdflilrjqfn\nztqrsvbspkyhsenbppkqtpddbuotbbqcwivrfxju\njddntgeiqvdgaijvwcyaubwewpjvygehljxepbpiwu\nzdzubdubzvafspqpqwu\nifwovyddwyvvburczm\nyjgfdxvtnunneslsplwuiupfxlzbknhkw\nbctfoujyxwadpgznqrvkeislmh\n30\ncsfmoxeqmrjowrghwlkob\neahkgccnaehhsveymqpxhlrnunyfdzrhb\nsjeuygafoubutpnimuwfjqsjxvkqd\nrxxvrwctdsneogvbpkxlpgdirbf\nriqifpgynkrrefxsnvucftpwctgtwmxnupycfgcuqunublm\niitncklefszbexrampetvhqnddjeqvuygpnka\nqfrpjvoaxdpcwmjobmskskfojnewxgxnnofwltwjwnnvbwjckd\neouuzhyvhgvwujbqx\npitcvograiddvhrrdsycqhkleewhxtembaqwqw\nqhsuebnvfgvjwdvjjafqzzxlcxdzncqgjlapopkvxfgvicetcm\nbljopgtqvvhbgsdvivhesnkqx\nwrq\ndrvmhlubbryktheye\ntmrobdeyqcrgluaiihveixwjjrqopubjguxhxdipfzws\nybgfy\nqvjzharvrlyauuzdrcnjkphc\nffrkeecbpdipufhidjcxjhrnxcxmjcxohqanxd\nmgze\nhnlmwp\nh\ndvthsfqueeexgrujigskmvrzgfwvrftwa\ndtutpbztygnsrxajjngc\nmikjzsdwsszno\ndruypcnjulkfuzmxnafamespckjcazxdrtdgyrqs\nczybnvqqcqcjitlvcnvbmasidzgwraatzzwpwmfbfjkncvk\nlhh\njchpdnlunmppnlgjznkewwuysgefonexpmmsbaopmdgzqmkq\nxuvtqvnxbs\nqzkglzamzpdnsjolvybwxxttqognrbaiakqllszkhfzconnmoq\nlpeefsnsmouwqhodsgcfohesyshmgxwtoayuv\ntpiulyvxkegcrmjsfwhoqbadnz\n30\ngvlcsaqbdbgw\nbseettwdnfnbyjvpdjxyuzqxstatbzpctthoofremgfk\nbcvkzvgbofthgojhdn\nywpnbitoraaibednezwfpda\nlohssvtqtkfvsyljzlucqxswyqdnt\nmfrtzlqsekejhzksklfepxchvczysvdgcxbbis\nm\nayl\nifktmoikss\nxtgpojxqiysrsqfwqdjqnqcg\nqrnllu\neazvmwnuufnnxvloyvgmliuqand\nyavfauaosnlnvacsvpiumoiawcqxswkqwgxyazntnaik\nmeybnuqbcqaggxachrynqxqqmlfotpqhvokiiammqmvxjvb\noaifzyxnjcb\nrrnmixx\nyjhovengbpyqrixqg\ndrygxrxkf\nicainhwilkqmbpeszd\ngznzxtzqsjwatycbmjawwmninep\nduplucltxmkpvgrrgtuseura\neltkcapwpbqromqawixezqkvlfb\nwcocpjmr\nbpbegvsuluqtuuvkesvjtdhvtjmexfqbv\nfdpaxcwnwqjtb\nlyzedicwsodpwtqrpyuearhwgfnpaqel\nfrsotqi\ntxipqzeqvlqmuoubbjbrpmixfclbstnos\ndkujcpwsdqhxrkiueziowoqjpiecwx\nbjtnmkjgncpmvauqgtausokbfugjtfiuqbjc\nhicbpvxwrgdozfmjuytlkqensa\n30\nadgkhufsuevjaxrnivco\nhfrqqwnu\nquoyevslqprlyskrhunljgsoxleuyyfqutozqh\ngyetyyepfaesjlk\nivdevdllygazxj\ndjrxhrdyyddqnqdoayshwxshxzjywumbff\nmxdnxjqoy\nrmirernekxdlicjfqkkvnxuqmszcixm\nkwsqoiwyfalpeuuugfrteomqinuqni\nxelpstosaodqszkogrfbxt\npdbltqtmpyyeqtujuiok\nowswqyxntndxqqsgkhvihbaawjugagloddktdjizynyoesuoz\nyityjrifximkyrokktvusuiqiojf\nkyatryekijksvusokcyeavwufpctajxkixdbxjmitwcqqxfbb\nhbad\nfuaaujxfrwkvuuhepdifvfkyhs\niuleafgaapahjwtesp\nweqfmnmymtqreleinkopmfpvomqueghdmxkynwxzqnsw\nxgnjwdxbuus\nkmnqw\ndvadiwahoqakqzqgkmlhqfdimnwzgsplorownpgehio\nhhfrvqalwd\nksslykajataxgpdmyldxukdnftprrumbmemlrowr\nwoqntclghlcr\nrzhgsbaecplpccdyvnxmdmfhaoplqizkhiqbj\nimitdkxiksxjecwmkw\nbhslievqvwcqeqaztkydwrbgxdcjpalsh\nepkzhhvlxcbxdwjccgtdoqiscyspqzvuqivzptl\nvooynyapgvswoaosaghrffnx\njyeeltzaizniccozwknw\nknlzxqcsrtegwaobvudhfmjypi\n30\nyjdohbvghmyuiggtyqjtmuqinntqmihntkddnalwnmsxsatqqe\ndacnnpjfermrnyuqnwbjjpdjhd\navknykpoxhxclqqedqavdwz\nevkgyoifvtvfuzczzmtvudkqgdrslhryxwwrroi\nervvudneghbctcbxdxezrzgbpfhzanffeccb\nqfmzjqtlr\nppxqiywjobspefujlxnmddurddiyobqfspvcoulcvdr\nkm\nwlyiqdchghrgytzdnobqcvdeqjystmepxcaniewqmoxkjwpym\no\nluxedvywhcoghotpusfgiestckrpaigocfufbubiyrrf\nmwaeeimidf\nnzcphkflpbqsvtdwludsga\nngfzoihbxifoprwcjzsdxngtacw\njypweuxvegybogsfxqhipbompufpxckicaghuf\nzmaccgwigmrqcteqkqwbaamicoblivnjjoomwku\nznvdgztqarsargkwuaheyvohl\ntjqpopdjslkoelfynzeav\naceazuimydypvmgyxblhppuunkttkqtmvanuu\njvahmvvuvsvhzkywhmgchqvdcqdpmzmxwneikzfg\nantnlpwzvahnvkplpfaotxngexrfczzdmuszlo\niokvkwkxlrxblvotzomeqlftxzlzkbcsqmnciazvrzyeupyv\nkbtwhpvgcwteylwkbyubxr\nwszshxpmjrhfawdibzbfypdksbhtaapzs\nrbnjpzcxecvjmwjqdjhgv\njcukfjjzacbpnsoppvtleijpynyfvu\nfyyrdjadjegbsypjomfbrnkilzhsvbwczwtdfvirbosvm\nfcymdrzqzkpgemja\njyjofeywimqdackdawitxysjq\nncipttncjtjhrtvkwwojbqhjjfkboa\n",
"5\neklpyqrbgjdwtcaxzsnifvhmou\n30\ncdxrjmowfrxsjybldbefsarcbynecdy\ngxxpklorellnmpapqfwkh\np\nmcoqhnwnk\newhsqmgbbuq\nljjivswmdkqtbxixmvtrrbljptnsn\nwzqf\nmafadrrwsofsbcnuvqhf\nbsaqxw\nqcacehchzvfrkmlnozjkpqpxrjxkitzyxacbhhkicqco\nndtomfgdwdwfcgpxiqvkuytdlcgdewhtaciohor\ntq\nvwcsgspqoqmsboaguwnnyqxnzlgdg\npbtrwblnsad\nuguumoqcdrubetokyxhoachwdvm\nxrdryxlmndqtukwagmleju\nkwcibxubumenmeyatdrmydiajxloghiqfmz\nlvihjo\nvsuyoypayulyeimuotehzriicfs\npggkbbipzzrzucxamlu\nfykgruow\ngiooobppleqlwphapjnadqhdcnvw\ntxjbmyppphauxnspusgdhiixqmbfjxjcvudj\nuyibyebmwsiqyoygyxymzevypzvjegebeoc\nuftsxdixtigsieehkchzdflilrjqfn\nztqrsvbspkyhsenbppkqtpddbuotbbqcwivrfxju\njddntgeiqvdgaijvwcyaubwewpjvygehljxepbpiwu\nzdzubdubzvafspqpqwu\nifwovyddwyvvburczm\nyjgfdxvtnunneslsplwuiupfxlzbknhkw\nbctfoujyxwadpgznqrvkeislmh\n30\ncsfmoxeqmrjowrghwlkob\neahkgccnaehhsveymqpxhlrnunyfdzrhb\nsjeuygafoubutpnimuwfjqsjxvkqd\nrxxvrwctdsneogvbpkxlpgdirbf\nriqifpgynkrrefxsnvucftpwctgtwmxnupycfgcuqunublm\niitncklefszbexrampetvhqnddjeqvuygpnka\nqfrpjvoaxdpcwmjobmskskfojnewxgxnnofwltwjwnnvbwjckd\neouuzhyvhgvwujbqx\npitcvograiddvhrrdsycqhkleewhxtembaqwqw\nqhsuebnvfgvjwdvjjafqzzxlcxdzncqgjlapopkvxfgvicetcm\nbljopgtqvvhbgsdvivhesnkqx\nwrq\ndrvmhlubbryktheye\ntmrobdeyqcrgluaiihveixwjjrqopubjguxhxdipfzws\nybgfy\nqvjzharvrlyauuzdrcnjkphc\nffrkeecbpdipufhidjcxjhrnxcxmjcxohqanxd\nmgze\nhnlmwp\nh\ndvthsfqueeexgrujigskmvrzgfwvrftwa\ndtutpbztygnsrxajjngc\nmikjzsdwsszno\ndruypcnjulkfuzmxnafamespckjcazxdrtdgyrqs\nczybnvqqcqcjitlvcnvbmasidzgwraatzzwpwmfbfjkncvk\nlhh\njchpdnlunmppnlgjznkewwuysgefonexpmmsbaopmdgzqmkq\nxuvtqvnxbs\nqzkglzamzpdnsjolvybwxxttqognrbaiakqllszkhfzconnmoq\nlpeefsnsmouwqhodsgcfohesyshmgxwtoayuv\ntpiulyvxkegcrmjsfwhoqbadnz\n30\ngvlcsaqbdbgw\nbseettwdnfnbyjvpdjxyuzqxstatbzpctthoofremgfk\nbcvkzvgbofthgojhdn\nywpnbitoraaibednezwfpda\nlohssvtqtkfvsyljzlucqxswyqdnt\nmfrtzlqsekejhzksklfepxchvczysvdgcxbbis\nm\nayl\nifktmoikss\ngcqnqjdqwfqsrsyiqxjopgtx\nqrnllu\neazvmwnuufnnxvloyvgmliuqand\nyavfauaosnlnvacsvpiumoiawcqxswkqwgxyazntnaik\nmeybnuqbcqaggxachrynqxqqmlfotpqhvokiiammqmvxjvb\noaifzyxnjcb\nrrnmixx\nyjhovengbpyqrixqg\ndrygxrxkf\nicainhwilkqmbpeszd\ngznzxtzqsjwatycbmjawwmninep\nduplucltxmkpvgrrgtuseura\neltkcapwpbqromqawixezqkvlfb\nwcocpjmr\nbpbegvsuluqtuuvkesvjtdhvtjmexfqbv\nfdpaxcwnwqjtb\nlyzedicwsodpwtqrpyuearhwgfnpaqel\nfrsotqi\ntxipqzeqvlqmuoubbjbrpmixfclbstnos\ndkujcpwsdqhxrkiueziowoqjpiecwx\nbjtnmkjgncpmvauqgtausokbfugjtfiuqbjc\nhicbpvxwrgdozfmjuytlkqensa\n30\nadgkhufsuevjaxrnivco\nhfrqqwnu\nquoyevslqprlyskrhunljgsoxleuyyfqutozqh\ngyetyyepfaesjlk\nivdevdllygazxj\ndjrxhrdyyddqnqdoayshwxshxzjywumbff\nmxdnxjqoy\nrmirernekxdlicjfqkkvnxuqmszcixm\nkwsqoiwyfalpeuuugfrteomqinuqni\nxelpstosaodqszkogrfbxt\npdbltqtmpyyeqtujuiok\nowswqyxntndxqqsgkhvihbaawjugagloddktdjizynyoesuoz\nyityjrifximkyrokktvusuiqiojf\nkyatryekijksvusokcyeavwufpctajxkixdbxjmitwcqqxfbb\nhbad\nfuaaujxfrwkvuuhepdifvfkyhs\niuleafgaapahjwtesp\nweqfmnmymtqreleinkopmfpvomqueghdmxkynwxzqnsw\nxgnjwdxbuus\nkmnqw\ndvadiwahoqakqzqgkmlhqfdimnwzgsplorownpgehio\nhhfrvqalwd\nksslykajataxgpdmyldxukdnftprrumbmemlrowr\nwoqntclghlcr\nrzhgsbaecplpccdyvnxmdmfhaoplqizkhiqbj\nimitdkxiksxjecwmkw\nbhslievqvwcqeqaztkydwrbgxdcjpalsh\nepkzhhvlxcbxdwjccgtdoqiscyspqzvuqivzptl\nvooynyapgvswoaosaghrffnx\njyeeltzaizniccozwknw\nknlzxqcsrtegwaobvudhfmjypi\n30\nyjdohbvghmyuiggtyqjtmuqinntqmihntkddnalwnmsxsatqqe\ndacnnpjfermrnyuqnwbjjpdjhd\navknykpoxhxclqqedqavdwz\nevkgyoifvtvfuzczzmtvudkqgdrslhryxwwrroi\nervvudneghbctcbxdxezrzgbpfhzanffeccb\nqfmzjqtlr\nppxqiywjobspefujlxnmddurddiyobqfspvcoulcvdr\nkm\nwlyiqdchghrgytzdnobqcvdeqjystmepxcaniewqmoxkjwpym\no\nluxedvywhcoghotpusfgiestckrpaigocfufbubiyrrf\nmwaeeimidf\nnzcphkflpbqsvtdwludsga\nngfzoihbxifoprwcjzsdxngtacw\njypweuxvegybogsfxqhipbompufpxckicaghuf\nzmaccgwigmrqcteqkqwbaamicoblivnjjoomwku\nznvdgztqarsargkwuaheyvohl\ntjqpopdjslkoelfynzeav\naceazuimydypvmgyxblhppuunkttkqtmvanuu\njvahmvvuvsvhzkywhmgchqvdcqdpmzmxwneikzfg\nantnlpwzvahnvkplpfaotxngexrfczzdmuszlo\niokvkwkxlrxblvotzomeqlftxzlzkbcsqmnciazvrzyeupyv\nkbtwhpvgcwteylwkbyubxr\nwszshxpmjrhfawdibzbfypdksbhtaapzs\nrbnjpzcxecvjmwjqdjhgv\njcukfjjzacbpnsoppvtleijpynyfvu\nfyyrdjadjegbsypjomfbrnkilzhsvbwczwtdfvirbosvm\nfcymdrzqzkpgemja\njyjofeywimqdackdawitxysjq\nncipttncjtjhrtvkwwojbqhjjfkboa\n",
"5\neklpyqrbgjdwtcaxzsnifvhmou\n30\ncdxrjmowfrxsjybldbefsarcbynecdy\ngxxpklorellnmpapqfwkh\np\nmcoqhnwnk\newhsqmgbbuq\nljjivswmdkqtbxixmvtrrbljptnsn\nwzqf\nmafadrrwsofsbcnuvqhf\nbsaqxw\nqcacehchzvfrkmlnozjkpqpxrjxkitzyxacbhhkicqco\nndtomfgdwdwfcgpxiqvkuytdlcgdewhtaciohor\ntq\nvwcsgspqoqmsboaguwnnyqxnzlgdg\npbtrwblnsad\nuguumoqcdrubetokyxhoachwdvm\nxrdryxlmndqtukwagmleju\nkwcibxubumenmeyatdrmydiajxloghiqfmz\nlvihjo\nvsuyoypayulyeimuotehzriicfs\npggkbbipzzrzucxamlu\nfykgruow\ngiooobppleqlwphapjnadqhdcnvw\ntxjbmyppphauxnspusgdhiixqmbfjxjcvudj\nuyibyebmwsiqyoygyxymzevypzvjegebeoc\nuftsxdixtigsieehkchzdflilrjqfn\nztqrsvbspkyhsenbppkqtpddbuotbbqcwivrfxju\njddntgeiqvdgaijvwcyaubwewpjvygehljxepbpiwu\nzdzubdubzvafspqpqwu\nifwovyddwyvvburczm\nyjgfdxvtnunneslsplwuiupfxlzbknhkw\nbctfoujyxwadpgznqrvkeislmh\n30\ncsfmoxeqmrjowrghwlkob\neahkgccnaehhsveymqpxhlrnunyfdzrhb\nsjeuygafoubutpnimuwfjqsjxvkqd\nrxxvrwctdsneogvbpkxlpgdirbf\nriqifpgynkrrefxsnvucftpwctgtwmxnupycfgcuqunublm\niitncklefszbexrampetvhqnddjeqvuygpnka\nqfrpjvoaxdpcwmjobmskskfojnewxgxnnofwltwjwnnvbwjckd\neouuzhyvhgvwujbqx\npitcvograiddvhrrdsycqhkleewhxtembaqwqw\nqhsuebnvfgvjwdvjjafqzzxlcxdzncqgjlapopkvxfgvicetcm\nbljopgtqvvhbgsdvivhesnkqx\nwrq\ndrvmhlubbryktheye\ntmrobdeyqcrgluaiihveixwjjrqopubjguxhxdipfzws\nybgfy\nqvjzharvrlyauuzdrcnjkphc\nffrkeecbpdipufhidjcxjhrnxcxmjcxohqanxd\nmgze\nhnlmwp\nh\ndvthsfqueeexgrujigskmvrzgfwvrftwa\ndtutpbztygnsrxajjngc\nmikjzsdwsszno\ndruypcnjulkfuzmxnafamespckjcazxdrtdgyrqs\nczybnvqqcqcjitlvcnvbmasidzgwraatzzwpwmfbfjkncvk\nlhh\njchpdnlunmppnlgjznkewwuysgefonexpmmsbaopmdgzqmkq\nxuvtqvnxbs\nqzkglzamzpdnsjolvybwxxttqognrbaiakqllszkhfzconnmoq\nlpeefsnsmouwqhodsgcfohesyshmgxwtoayuv\ntpiulyvxkegcrmjsfwhoqbadnz\n30\ngvlcsaqbdbgw\nbseettwdnfnbyjvpdjxyuzqxstatbzpctthoofremgfk\nbcvkzvgbofthgojhdn\nywpnbitoraaibednezwfpda\nlohssvtqtkfvsyljzlucqxswyqdnt\nmfrtzlqsekejhzksklfepxchvczysvdgcxbbis\nm\nayl\nifktmoikss\ngcqnqjdqwfqsrsyiqxjopgtx\nqrnllu\neazvmwnuufnnxvloyvgmliuqand\nyavfauaosnlnvacsvpiumoiawcqxswkqwgxyazntnaik\nmeybnuqbcqaggxachrynqxqqmlfotpqhvokiiammqmvxjvb\noaifzyxnjcb\nrrnmixx\nyjhovengbpyqrixqg\ndrygxrxkf\nicainhwilkqmbpeszd\ngznzxtzqsjwatycbmjawwmninep\nduplucltxmkpvgrrgtuseura\neltkcapwpbqromqawixezqkvlfb\nrmjpcocw\nbpbegvsuluqtuuvkesvjtdhvtjmexfqbv\nfdpaxcwnwqjtb\nlyzedicwsodpwtqrpyuearhwgfnpaqel\nfrsotqi\ntxipqzeqvlqmuoubbjbrpmixfclbstnos\ndkujcpwsdqhxrkiueziowoqjpiecwx\nbjtnmkjgncpmvauqgtausokbfugjtfiuqbjc\nhicbpvxwrgdozfmjuytlkqensa\n30\nadgkhufsuevjaxrnivco\nhfrqqwnu\nquoyevslqprlyskrhunljgsoxleuyyfqutozqh\ngyetyyepfaesjlk\nivdevdllygazxj\ndjrxhrdyyddqnqdoayshwxshxzjywumbff\nmxdnxjqoy\nrmirernekxdlicjfqkkvnxuqmszcixm\nkwsqoiwyfalpeuuugfrteomqinuqni\nxelpstosaodqszkogrfbxt\npdbltqtmpyyeqtujuiok\nowswqyxntndxqqsgkhvihbaawjugagloddktdjizynyoesuoz\nyityjrifximkyrokktvusuiqiojf\nkyatryekijksvusokcyeavwufpctajxkixdbxjmitwcqqxfbb\nhbad\nfuaaujxfrwkvuuhepdifvfkyhs\niuleafgaapahjwtesp\nweqfmnmymtqreleinkopmfpvomqueghdmxkynwxzqnsw\nxgnjwdxbuus\nkmnqw\ndvadiwahoqakqzqgkmlhqfdimnwzgsplorownpgehio\nhhfrvqalwd\nksslykajataxgpdmyldxukdnftprrumbmemlrowr\nwoqntclghlcr\nrzhgsbaecplpccdyvnxmdmfhaoplqizkhiqbj\nimitdkxiksxjecwmkw\nbhslievqvwcqeqaztkydwrbgxdcjpalsh\nepkzhhvlxcbxdwjccgtdoqiscyspqzvuqivzptl\nvooynyapgvswoaosaghrffnx\njyeeltzaizniccozwknw\nknlzxqcsrtegwaobvudhfmjypi\n30\nyjdohbvghmyuiggtyqjtmuqinntqmihntkddnalwnmsxsatqqe\ndacnnpjfermrnyuqnwbjjpdjhd\navknykpoxhxclqqedqavdwz\nevkgyoifvtvfuzczzmtvudkqgdrslhryxwwrroi\nervvudneghbctcbxdxezrzgbpfhzanffeccb\nqfmzjqtlr\nppxqiywjobspefujlxnmddurddiyobqfspvcoulcvdr\nkm\nwlyiqdchghrgytzdnobqcvdeqjystmepxcaniewqmoxkjwpym\no\nluxedvywhcoghotpusfgiestckrpaigocfufbubiyrrf\nmwaeeimidf\nnzcphkflpbqsvtdwludsga\nngfzoihbxifoprwcjzsdxngtacw\njypweuxvegybogsfxqhipbompufpxckicaghuf\nzmaccgwigmrqcteqkqwbaamicoblivnjjoomwku\nznvdgztqarsargkwuaheyvohl\ntjqpopdjslkoelfynzeav\naceazuimydypvmgyxblhppuunkttkqtmvanuu\njvahmvvuvsvhzkywhmgchqvdcqdpmzmxwneikzfg\nantnlpwzvahnvkplpfaotxngexrfczzdmuszlo\niokvkwkxlrxblvotzomeqlftxzlzkbcsqmnciazvrzyeupyv\nkbtwhpvgcwteylwkbyubxr\nwszshxpmjrhfawdibzbfypdksbhtaapzs\nrbnjpzcxecvjmwjqdjhgv\njcukfjjzacbpnsoppvtleijpynyfvu\nfyyrdjadjegbsypjomfbrnkilzhsvbwczwtdfvirbosvm\nfcymdrzqzkpgemja\njyjofeywimqdackdawitxysjq\nncipttncjtjhrtvkwwojbqhjjfkboa\n",
"5\neklpyqrbgjdwtcaxzsnifvhmou\n30\ncdxrjmowfrxsjybldbefsarcbynecdy\ngxxpklorellnmpapqfwkh\np\nmcoqhnwnk\newhsqmgbbuq\nljjivswmdkqtbxixmvtrrbljptnsn\nwzqf\nmafadrrwsofsbcnuvqhf\nbsaqxw\nqcacehchzvfrkmlnozjkpqpxrjxkitzyxacbhhkicqco\nndtomfgdwdwfcgpxiqvkuytdlcgdewhtaciohor\ntq\nvwcsgspqoqmsboaguwnnyqxnzlgdg\npbtrwblnsad\nuguumoqcdrubetokyxhoachwdvm\nxrdryxlmndqtukwagmleju\nkwcibxubumenmeyatdrmydiajxloghiqfmz\nlvihjo\nvsuyoypayulyeimuotehzriicfs\npggkbbipzzrzucxamlu\nfykgruow\ngiooobppleqlwphapjnadqhdcnvw\ntxjbmyppphauxnspusgdhiixqmbfjxjcvudj\nuyibyebmwsiqyoygyxymzevypzvjegebeoc\nuftsxdixtigsieehkchzdflilrjqfn\nztqrsvbspkyhsenbppkqtpddbuotbbqcwivrfxju\njddntgeiqvdgaijvwcyaubwewpjvygehljxepbpiwu\nzdzubdubzvafspqpqwu\nifwovyddwyvvburczm\nyjgfdxvtnunneslsplwuiupfxlzbknhkw\nbctfoujyxwadpgznqrvkeislmh\n30\ncsfmoxeqmrjowrghwlkob\neahkgccnaehhsveymqpxhlrnunyfdzrhb\nsjeuygafoubutpnimuwfjqsjxvkqd\nrxxvrwctdsneogvbpkxlpgdirbf\nriqifpgynkrrefxsnvucftpwctgtwmxnupycfgcuqunublm\niitncklefszbexrampetvhqnddjeqvuygpnka\nqfrpjvoaxdpcwmjobmskskfojnewxgxnnofwltwjwnnvbwjckd\neouuzhyvhgvwujbqx\npitcvograiddvhrrdsycqhkleewhxtembaqwqw\nqhsuebnvfgvjwdvjjafqzzxlcxdzncqgjlapopkvxfgvicetcm\nbljopgtqvvhbgsdvivhesnkqx\nwrq\ndrvmhlubbryktheye\ntmrobdeyqcrgluaiihveixwjjrqopubjguxhxdipfzws\nybgfy\nqvjzharvrlyauuzdrcnjkphc\nffrkeecbpdipufhidjcxjhrnxcxmjcxohqanxd\nmgze\nhlnmwp\nh\ndvthsfqueeexgrujigskmvrzgfwvrftwa\ndtutpbztygnsrxajjngc\nmikjzsdwsszno\ndruypcnjulkfuzmxnafamespckjcazxdrtdgyrqs\nczybnvqqcqcjitlvcnvbmasidzgwraatzzwpwmfbfjkncvk\nlhh\njchpdnlunmppnlgjznkewwuysgefonexpmmsbaopmdgzqmkq\nxuvtqvnxbs\nqzkglzamzpdnsjolvybwxxttqognrbaiakqllszkhfzconnmoq\nlpeefsnsmouwqhodsgcfohesyshmgxwtoayuv\ntpiulyvxkegcrmjsfwhoqbadnz\n30\ngvlcsaqbdbgw\nbseettwdnfnbyjvpdjxyuzqxstatbzpctthoofremgfk\nbcvkzvgbofthgojhdn\nywpnbitoraaibednezwfpda\nlohssvtqtkfvsyljzlucqxswyqdnt\nmfrtzlqsekejhzksklfepxchvczysvdgcxbbis\nm\nayl\nifktmoikss\ngcqnqjdqwfqsrsyiqxjopgtx\nqrnllu\neazvmwnuufnnxvloyvgmliuqand\nyavfauaosnlnvacsvpiumoiawcqxswkqwgxyazntnaik\nmeybnuqbcqaggxachrynqxqqmlfotpqhvokiiammqmvxjvb\noaifzyxnjcb\nrrnmixx\nyjhovengbpyqrixqg\ndrygxrxkf\nicainhwilkqmbpeszd\ngznzxtzqsjwatycbmjawwmninep\nduplucltxmkpvgrrgtuseura\neltkcapwpbqromqawixezqkvlfb\nrmjpcocw\nbpbegvsuluqtuuvkesvjtdhvtjmexfqbv\nfdpaxcwnwqjtb\nlyzedicwsodpwtqrpyuearhwgfnpaqel\nfrsotqi\ntxipqzeqvlqmuoubbjbrpmixfclbstnos\ndkujcpwsdqhxrkiueziowoqjpiecwx\nbjtnmkjgncpmvauqgtausokbfugjtfiuqbjc\nhicbpvxwrgdozfmjuytlkqensa\n30\nadgkhufsuevjaxrnivco\nhfrqqwnu\nquoyevslqprlyskrhunljgsoxleuyyfqutozqh\ngyetyyepfaesjlk\nivdevdllygazxj\ndjrxhrdyyddqnqdoayshwxshxzjywumbff\nmxdnxjqoy\nrmirernekxdlicjfqkkvnxuqmszcixm\nkwsqoiwyfalpeuuugfrteomqinuqni\nxelpstosaodqszkogrfbxt\npdbltqtmpyyeqtujuiok\nowswqyxntndxqqsgkhvihbaawjugagloddktdjizynyoesuoz\nyityjrifximkyrokktvusuiqiojf\nkyatryekijksvusokcyeavwufpctajxkixdbxjmitwcqqxfbb\nhbad\nfuaaujxfrwkvuuhepdifvfkyhs\niuleafgaapahjwtesp\nweqfmnmymtqreleinkopmfpvomqueghdmxkynwxzqnsw\nxgnjwdxbuus\nkmnqw\ndvadiwahoqakqzqgkmlhqfdimnwzgsplorownpgehio\nhhfrvqalwd\nksslykajataxgpdmyldxukdnftprrumbmemlrowr\nwoqntclghlcr\nrzhgsbaecplpccdyvnxmdmfhaoplqizkhiqbj\nimitdkxiksxjecwmkw\nbhslievqvwcqeqaztkydwrbgxdcjpalsh\nepkzhhvlxcbxdwjccgtdoqiscyspqzvuqivzptl\nvooynyapgvswoaosaghrffnx\njyeeltzaizniccozwknw\nknlzxqcsrtegwaobvudhfmjypi\n30\nyjdohbvghmyuiggtyqjtmuqinntqmihntkddnalwnmsxsatqqe\ndacnnpjfermrnyuqnwbjjpdjhd\navknykpoxhxclqqedqavdwz\nevkgyoifvtvfuzczzmtvudkqgdrslhryxwwrroi\nervvudneghbctcbxdxezrzgbpfhzanffeccb\nqfmzjqtlr\nppxqiywjobspefujlxnmddurddiyobqfspvcoulcvdr\nkm\nwlyiqdchghrgytzdnobqcvdeqjystmepxcaniewqmoxkjwpym\no\nluxedvywhcoghotpusfgiestckrpaigocfufbubiyrrf\nmwaeeimidf\nnzcphkflpbqsvtdwludsga\nngfzoihbxifoprwcjzsdxngtacw\njypweuxvegybogsfxqhipbompufpxckicaghuf\nzmaccgwigmrqcteqkqwbaamicoblivnjjoomwku\nznvdgztqarsargkwuaheyvohl\ntjqpopdjslkoelfynzeav\naceazuimydypvmgyxblhppuunkttkqtmvanuu\njvahmvvuvsvhzkywhmgchqvdcqdpmzmxwneikzfg\nantnlpwzvahnvkplpfaotxngexrfczzdmuszlo\niokvkwkxlrxblvotzomeqlftxzlzkbcsqmnciazvrzyeupyv\nkbtwhpvgcwteylwkbyubxr\nwszshxpmjrhfawdibzbfypdksbhtaapzs\nrbnjpzcxecvjmwjqdjhgv\njcukfjjzacbpnsoppvtleijpynyfvu\nfyyrdjadjegbsypjomfbrnkilzhsvbwczwtdfvirbosvm\nfcymdrzqzkpgemja\njyjofeywimqdackdawitxysjq\nncipttncjtjhrtvkwwojbqhjjfkboa\n",
"5\neklpyqrbgjdwtcaxzsnifvhmou\n30\ncdxrjmowfrxsjybldbefsarcbynecdy\ngxxpklorellnmpapqfwkh\np\nmcoqhnwnk\newhsqmgbbuq\nljjivswmdkqtbxixmvtrrbljptnsn\nwzqf\nmafadrrwsofsbcnuvqhf\nbsaqxw\nqcacehchzvfrkmlnozjkpqpxrjxkitzyxacbhhkicqco\nndtomfgdwdwfcgpxiqvkuytdlcgdewhtaciohor\ntq\nvwcsgspqoqmsboaguwnnyqxnzlgdg\npbtrwblnsad\nuguumoqcdrubetokyxhoachwdvm\nxrdryxlmndqtukwagmleju\nkwcibxubumenmeyatdrmydiajxloghiqfmz\nlvihjo\nvsuyoypayulyeimuotehzriicfs\npggkbbipzzrzucxamlu\nfykgruow\ngiooobppleqlwphapjnadqhdcnvw\ntxjbmyppphauxnspusgdhiixqmbfjxjcvudj\nuyibyebmwsiqyoygyxymzevypzvjegebeoc\nuftsxdixtigsieehkchzdflilrjqfn\nztqrsvbspkyhsenbppkqtpddbuotbbqcwivrfxju\njddntgeiqvdgaijvwcyaubwewpjvygehljxepbpiwu\nzdzubdubzvafspqpqwu\nifwovyddwyvvburczm\nyjgfdxvtnunneslsplwuiupfxlzbknhkw\nbctfoujyxwadpgznqrvkeislmh\n30\ncsfmoxeqmrjowrghwlkob\neahkgccnaehhsveymqpxhlrnunyfdzrhb\nsjeuygafoubutpnimuwfjqsjxvkqd\nrxxvrwctdsneogvbpkxlpgdirbf\nriqifpgynkrrefxsnvucftpwctgtwmxnupycfgcuqunublm\niitncklefszbexrampetvhqnddjeqvuygpnka\nqfrpjvoaxdpcwmjobmskskfojnewxgxnnofwltwjwnnvbwjckd\neouuzhyvhgvwujbqx\npitcvograiddvhrrdsycqhkleewhxtembaqwqw\nqhsuebnvfgvjwdvjjafqzzxlcxdzncqgjlapopkvxfgvicetcm\nbljopgtqvvhbgsdvivhesnkqx\nwrq\ndrvmhlubbryktheye\ntmrobdeyqcrgluaiihveixwjjrqopubjguxhxdipfzws\nybgfy\nqvjzharvrlyauuzdrcnjkphc\nffrkeecbpdipufhidjcxjhrnxcxmjcxohqanxd\nmgze\nhlnmwp\nh\ndvthsfqueeexgrujigskmvrzgfwvrftwa\ndtutpbztygnsrxajjngc\nmikjzsdwsszno\ndruypcnjulkfuzmxnafamespckjcazxdrtdgyrqs\nczybnvqqcqcjitlvcnvbmasidzgwraatzzwpwmfbfjkncvk\nlhh\njchpdnlunmppnlgjznkewwuysgefonexpmmsbaopmdgzqmkq\nxuvtqvnxbs\nqzkglzamzpdnsjolvybwxxttqognrbaiakqllszkhfzconnmoq\nlpeefsnsmouwqhodsgcfohesyshmgxwtoayuv\ntpiulyvxkegcrmjsfwhoqbadnz\n30\ngvlcsaqbdbgw\nbseettwdnfnbyjvpdjxyuzqxstatbzpctthoofremgfk\nbcvkzvgbofthgojhdn\nywpnbitoraaibednezwfpda\nlohssvtqtkfvsyljzlucqxswyqdnt\nmfrtzlqsekejhzksklfepxchvczysvdgcxbbis\nm\nayl\nifktmoikss\ngcqnqjdqwfqsrsyiqxjopgtx\nqrnllu\neazvmwnuufnnxvloyvgmliuqand\nyavfauaosnlnvacsvpiumoiawcqxswkqwgxyazntnaik\nmeybnuqbcqaggxachrynqxqqmlfotpqhvokiiammqmvxjvb\noaifzyxnjcb\nrrnmixx\nyjhovengbpyqrixqg\ndrygxrxkf\nicainhwilkqmbpeszd\ngznzxtzqsjwatycbmjawwmninep\nduplucltxmkpvgrrgtuseura\neltkcapwpbqromqawixezqkvlfb\nrmjpcocw\nbpbegvsuluqtuuvkesvjtdhvtjmexfqbv\nfdpaxcwnwqjtb\nlyzedicwsodpwtqrpyuearhwgfnpaqel\nfrsotqi\ntxipqzeqvlqmuoubbjbrpmixfclbstnos\ndkujcpwsdqhxrkiueziowoqjpiecwx\nbjtnmkjgncpmvauqgtausokbfugjtfiuqbjc\nhicbpvxwrgdozfmjuytlkqensa\n30\nadgkhufsuevjaxrnivco\nhfrqqwnu\nquoyevslqprlyskrhunljgsoxleuyyfqutozqh\ngyetyyepfaesjlk\nivdevdllygazxj\ndjrxhrdyyddqnqdoayshwxshxzjywumbff\nmxdnxjqoy\nrmirernekxdlicjfqkkvnxuqmszcixm\nkwsqoiwyfalpeuuugfrteomqinuqni\nxelpstosaodqszkogrfbxt\npdbltqtmpyyeqtujuiok\nowswqyxntndxqqsgkhvihbaawjugagloddktdjizynyoesuoz\nyityjrifximkyrokktvusuiqiojf\nkyatryekijksvusokcyeavwufpctajxkixdbxjmitwcqqxfbb\nhbad\nfuaaujxfrwkvuuhepdifvfkyhs\niuleafgaapahjwtesp\nweqfmnmymtqreleinkopmfpvomqueghdmxkynwxzqnsw\nxgnjwdxbuus\nkmnqw\ndvadiwahoqakqzqgkmlhqfdimnwzgsplorownpgehio\nhhfrvqalwd\nksslykajataxgpdmyldxukdnftprrumbmemlrowr\nwoqntclghlcr\nrzhgsbaecplpccdyvnxmdmfhaoplqizkhiqbj\nimitdkxiksxjecwmkw\nbhslievqvwcqeqaztkydwrbgxdcjpalsh\nepkzhhvlxcbxdwjccgtdoqiscyspqzvuqivzptl\nvooynyapgvswoaosaghrffnx\njyeeltzaizniccozwknw\nknlzxqcsrtegwaobvudhfmjypi\n30\nyjdohbvghmyuiggtyqjtmuqinntqmihntkddnalwnmsxsatqqe\ndacnnpjfermrnyuqnwbjjpdjhd\navknykpoxhxclqqedqavdwz\nevkgyoifvtvfuzczzmtvudkqgdrslhryxwwrroi\nervvudneghbctcbxdxezrzgbpfhzanffeccc\nqfmzjqtlr\nppxqiywjobspefujlxnmddurddiyobqfspvcoulcvdr\nkm\nwlyiqdchghrgytzdnobqcvdeqjystmepxcaniewqmoxkjwpym\no\nluxedvywhcoghotpusfgiestckrpaigocfufbubiyrrf\nmwaeeimidf\nnzcphkflpbqsvtdwludsga\nngfzoihbxifoprwcjzsdxngtacw\njypweuxvegybogsfxqhipbompufpxckicaghuf\nzmaccgwigmrqcteqkqwbaamicoblivnjjoomwku\nznvdgztqarsargkwuaheyvohl\ntjqpopdjslkoelfynzeav\naceazuimydypvmgyxblhppuunkttkqtmvanuu\njvahmvvuvsvhzkywhmgchqvdcqdpmzmxwneikzfg\nantnlpwzvahnvkplpfaotxngexrfczzdmuszlo\niokvkwkxlrxblvotzomeqlftxzlzkbcsqmnciazvrzyeupyv\nkbtwhpvgcwteylwkbyubxr\nwszshxpmjrhfawdibzbfypdksbhtaapzs\nrbnjpzcxecvjmwjqdjhgv\njcukfjjzacbpnsoppvtleijpynyfvu\nfyyrdjadjegbsypjomfbrnkilzhsvbwczwtdfvirbosvm\nfcymdrzqzkpgemja\njyjofeywimqdackdawitxysjq\nncipttncjtjhrtvkwwojbqhjjfkboa\n",
"5\neklpyqrbgjdwtcaxzsnifvhmou\n30\ncdxrjmowfrxsjybldbefsarcbynecdy\ngxxpklorellnmpapqfwkh\np\nmcoqhnwnk\newhsqmgbbuq\nljjivswmdkqtbxixmvtrrbljptnsn\nwzqf\nmafadrrwsofsbcnuvqhf\nbsaqxw\nqcacehchzvfrkmlnozjkpqpxrjxkitzyxacbhhkicqco\nndtomfgdwdwfcgpxiqvkuytdlcgdewhtaciohor\ntq\nvwcsgspqoqmsboaguwnnyqxnzlgdg\npbtrwblnsad\nuguumoqcdrubetokyxhoachwdvm\nxrdryxlmndqtukwagmleju\nkwcibxubumenmeyatdrmydiajxloghiqfmz\nlvihjo\nvsuyoypayulyeimuotehzriicfs\npggkbbipzzrzucxamlu\nfykgruow\ngiooobppleqlwphapjnadqhdcnvw\ntxjbmyppphauxnspusgdhiixqmbfjxjcvudj\nuyibyebmwsiqyoygyxymzevypzvjegebeoc\nuftsxdixtigsieehkchzdflilrjqfn\nztqrsvbspkyhsenbppkqtpddbuotbbqcwivrfxju\njddntgeiqvdgaijvwcyaubwewpjvygehljxepbpiwu\nzdzubdubzvafspqpqwu\nifwovyddwyvvburczm\nyjgfdxvtnunneslsplwuiupfxlzbknhkw\nbctfoujyxwadpgznqrvkeislmh\n30\ncsfmoxeqmrjowrghwlkob\neahkgccnaehhsveymqpxhlrnunyfdzrhb\nsjeuygafoubutpnimuwfjqsjxvkqd\nrxxvrwctdsneogvbpkxlpgdirbf\nriqifpgynkrrefxsnvucftpwctgtwmxnupycfgcuqunublm\niitncklefszbexrampetvhqnddjeqvuygpnka\nqfrpjvoaxdpcwmjobmskskfojnewxgxnnofwltwjwnnvbwjckd\neouuzhyvhgvwujbqx\npitcvograiddvhrrdsycqhkleewhxtembaqwqw\nqhsuebnvfgvjwdvjjafqzqxlcxdznczgjlapopkvxfgvicetcm\nbljopgtqvvhbgsdvivhesnkqx\nwrq\ndrvmhlubbryktheye\ntmrobdeyqcrgluaiihveixwjjrqopubjguxhxdipfzws\nybgfy\nqvjzharvrlyauuzdrcnjkphc\nffrkeecbpdipufhidjcxjhrnxcxmjcxohqanxd\nmgze\nhlnmwp\nh\ndvthsfqueeexgrujigskmvrzgfwvrftwa\ndtutpbztygnsrxajjngc\nmikjzsdwsszno\ndruypcnjulkfuzmxnafamespckjcazxdrtdgyrqs\nczybnvqqcqcjitlvcnvbmasidzgwraatzzwpwmfbfjkncvk\nlhh\njchpdnlunmppnlgjznkewwuysgefonexpmmsbaopmdgzqmkq\nxuvtqvnxbs\nqzkglzamzpdnsjolvybwxxttqognrbaiakqllszkhfzconnmoq\nlpeefsnsmouwqhodsgcfohesyshmgxwtoayuv\ntpiulyvxkegcrmjsfwhoqbadnz\n30\ngvlcsaqbdbgw\nbseettwdnfnbyjvpdjxyuzqxstatbzpctthoofremgfk\nbcvkzvgbofthgojhdn\nywpnbitoraaibednezwfpda\nlohssvtqtkfvsyljzlucqxswyqdnt\nmfrtzlqsekejhzksklfepxchvczysvdgcxbbis\nm\nayl\nifktmoikss\ngcqnqjdqwfqsrsyiqxjopgtx\nqrnllu\neazvmwnuufnnxvloyvgmliuqand\nyavfauaosnlnvacsvpiumoiawcqxswkqwgxyazntnaik\nmeybnuqbcqaggxachrynqxqqmlfotpqhvokiiammqmvxjvb\noaifzyxnjcb\nrrnmixx\nyjhovengbpyqrixqg\ndrygxrxkf\nicainhwilkqmbpeszd\ngznzxtzqsjwatycbmjawwmninep\nduplucltxmkpvgrrgtuseura\neltkcapwpbqromqawixezqkvlfb\nrmjpcocw\nbpbegvsuluqtuuvkesvjtdhvtjmexfqbv\nfdpaxcwnwqjtb\nlyzedicwsodpwtqrpyuearhwgfnpaqel\nfrsotqi\ntxipqzeqvlqmuoubbjbrpmixfclbstnos\ndkujcpwsdqhxrkiueziowoqjpiecwx\nbjtnmkjgncpmvauqgtausokbfugjtfiuqbjc\nhicbpvxwrgdozfmjuytlkqensa\n30\nadgkhufsuevjaxrnivco\nhfrqqwnu\nquoyevslqprlyskrhunljgsoxleuyyfqutozqh\ngyetyyepfaesjlk\nivdevdllygazxj\ndjrxhrdyyddqnqdoayshwxshxzjywumbff\nmxdnxjqoy\nrmirernekxdlicjfqkkvnxuqmszcixm\nkwsqoiwyfalpeuuugfrteomqinuqni\nxelpstosaodqszkogrfbxt\npdbltqtmpyyeqtujuiok\nowswqyxntndxqqsgkhvihbaawjugagloddktdjizynyoesuoz\nyityjrifximkyrokktvusuiqiojf\nkyatryekijksvusokcyeavwufpctajxkixdbxjmitwcqqxfbb\nhbad\nfuaaujxfrwkvuuhepdifvfkyhs\niuleafgaapahjwtesp\nweqfmnmymtqreleinkopmfpvomqueghdmxkynwxzqnsw\nxgnjwdxbuus\nkmnqw\ndvadiwahoqakqzqgkmlhqfdimnwzgsplorownpgehio\nhhfrvqalwd\nksslykajataxgpdmyldxukdnftprrumbmemlrowr\nwoqntclghlcr\nrzhgsbaecplpccdyvnxmdmfhaoplqizkhiqbj\nimitdkxiksxjecwmkw\nbhslievqvwcqeqaztkydwrbgxdcjpalsh\nepkzhhvlxcbxdwjccgtdoqiscyspqzvuqivzptl\nvooynyapgvswoaosaghrffnx\njyeeltzaizniccozwknw\nknlzxqcsrtegwaobvudhfmjypi\n30\nyjdohbvghmyuiggtyqjtmuqinntqmihntkddnalwnmsxsatqqe\ndacnnpjfermrnyuqnwbjjpdjhd\navknykpoxhxclqqedqavdwz\nevkgyoifvtvfuzczzmtvudkqgdrslhryxwwrroi\nervvudneghbctcbxdxezrzgbpfhzanffeccc\nqfmzjqtlr\nppxqiywjobspefujlxnmddurddiyobqfspvcoulcvdr\nkm\nwlyiqdchghrgytzdnobqcvdeqjystmepxcaniewqmoxkjwpym\no\nluxedvywhcoghotpusfgiestckrpaigocfufbubiyrrf\nmwaeeimidf\nnzcphkflpbqsvtdwludsga\nngfzoihbxifoprwcjzsdxngtacw\njypweuxvegybogsfxqhipbompufpxckicaghuf\nzmaccgwigmrqcteqkqwbaamicoblivnjjoomwku\nznvdgztqarsargkwuaheyvohl\ntjqpopdjslkoelfynzeav\naceazuimydypvmgyxblhppuunkttkqtmvanuu\njvahmvvuvsvhzkywhmgchqvdcqdpmzmxwneikzfg\nantnlpwzvahnvkplpfaotxngexrfczzdmuszlo\niokvkwkxlrxblvotzomeqlftxzlzkbcsqmnciazvrzyeupyv\nkbtwhpvgcwteylwkbyubxr\nwszshxpmjrhfawdibzbfypdksbhtaapzs\nrbnjpzcxecvjmwjqdjhgv\njcukfjjzacbpnsoppvtleijpynyfvu\nfyyrdjadjegbsypjomfbrnkilzhsvbwczwtdfvirbosvm\nfcymdrzqzkpgemja\njyjofeywimqdackdawitxysjq\nncipttncjtjhrtvkwwojbqhjjfkboa\n",
"5\neklpyqrbgjdwtcaxzsnifvhmou\n30\ncdxrjmowfrxsjybldbefsarcbynecdy\ngxxpklorellnmpapqfwkh\np\nmcoqhnwnk\newhsqmgbbuq\nljjivswmdkqtbxixmvtrrbljptnsn\nwzqf\nmafadrrwsofsbcnuvqhf\nbsaqxw\nqcacehchzvfrkmlnozjkpqpxrjxkitzyxacbhhkicqco\nndtomfgdwdwfcgpxiqvkuytdlcgdewhtaciohor\ntq\nvwcsgspqoqmsboaguwnnyqxnzlgdg\npbtrwblnsad\nuguumoqcdrubetokyxhoachwdvm\nxrdryxlmndqtukwagmleju\nkwcibxubumenmeyatdrmydiajxloghiqfmz\nlvihjo\nvsuyoypayulyeimuotehzriicfs\npggkbbipzzrzucxamlu\nfykgruow\ngiooobppleqlwphapjnadqhdcnvw\ntxjbmyppphauxnspusgdhiixqmbfjxjcvudj\nuyibyebmwsiqyoygyxymzevypzvjegebeoc\nuftsxdixtigsieehkchzdflilrjqfn\nztqrsvbspkyhsenbppkqtpddbuotbbqcwivrfxju\njddntgeiqvdgaijvwcyaubwewpjvygehljxepbpiwu\nzdzubdubzvafspqpqwu\nifwovyddwyvvburczm\nyjgfdxvtnunneslsplwuiupfxlzbknhkw\nbctfoujyxwadpgznqrvkeislmh\n30\ncsfmoxeqmrjowrghwlkob\neahkgccnaehhsveymqpxhlrnunyfdzrhb\nsjeuygafoubutpnimuwfjqsjxvkqd\nrxxvrwctdsneogvbpkxlpgdirbf\nriqifpgynkrrefxsnvucftpwctgtwmxnupycfgcuqunublm\niitncklefszbexrampetvhqnddjeqvuygpnka\nqfrpjvoaxdpcwmjobmskskfojnewxgxnnofwltwjwnnvbwjckd\neouuzhyvhgvwujbqx\npitcvograiddvhrrdsycqhkleewhxtembaqwqw\nqhsuebnvfgvjwdvjjafqzqxlcxdznczgjlapopkvxfgvicetcm\nbljopgtqvvhbgsdvivhesnkqx\nwrq\ndrvmhlubbryktheye\ntmrobdeyqcrgluaiihveixwjjrqopubjguxhxdipfzws\nzbgfy\nqvjzharvrlyauuzdrcnjkphc\nffrkeecbpdipufhidjcxjhrnxcxmjcxohqanxd\nmgze\nhlnmwp\nh\ndvthsfqueeexgrujigskmvrzgfwvrftwa\ndtutpbztygnsrxajjngc\nmikjzsdwsszno\ndruypcnjulkfuzmxnafamespckjcazxdrtdgyrqs\nczybnvqqcqcjitlvcnvbmasidzgwraatzzwpwmfbfjkncvk\nlhh\njchpdnlunmppnlgjznkewwuysgefonexpmmsbaopmdgzqmkq\nxuvtqvnxbs\nqzkglzamzpdnsjolvybwxxttqognrbaiakqllszkhfzconnmoq\nlpeefsnsmouwqhodsgcfohesyshmgxwtoayuv\ntpiulyvxkegcrmjsfwhoqbadnz\n30\ngvlcsaqbdbgw\nbseettwdnfnbyjvpdjxyuzqxstatbzpctthoofremgfk\nbcvkzvgbofthgojhdn\nywpnbitoraaibednezwfpda\nlohssvtqtkfvsyljzlucqxswyqdnt\nmfrtzlqsekejhzksklfepxchvczysvdgcxbbis\nm\nayl\nifktmoikss\ngcqnqjdqwfqsrsyiqxjopgtx\nqrnllu\neazvmwnuufnnxvloyvgmliuqand\nyavfauaosnlnvacsvpiumoiawcqxswkqwgxyazntnaik\nmeybnuqbcqaggxachrynqxqqmlfotpqhvokiiammqmvxjvb\noaifzyxnjcb\nrrnmixx\nyjhovengbpyqrixqg\ndrygxrxkf\nicainhwilkqmbpeszd\ngznzxtzqsjwatycbmjawwmninep\nduplucltxmkpvgrrgtuseura\neltkcapwpbqromqawixezqkvlfb\nrmjpcocw\nbpbegvsuluqtuuvkesvjtdhvtjmexfqbv\nfdpaxcwnwqjtb\nlyzedicwsodpwtqrpyuearhwgfnpaqel\nfrsotqi\ntxipqzeqvlqmuoubbjbrpmixfclbstnos\ndkujcpwsdqhxrkiueziowoqjpiecwx\nbjtnmkjgncpmvauqgtausokbfugjtfiuqbjc\nhicbpvxwrgdozfmjuytlkqensa\n30\nadgkhufsuevjaxrnivco\nhfrqqwnu\nquoyevslqprlyskrhunljgsoxleuyyfqutozqh\ngyetyyepfaesjlk\nivdevdllygazxj\ndjrxhrdyyddqnqdoayshwxshxzjywumbff\nmxdnxjqoy\nrmirernekxdlicjfqkkvnxuqmszcixm\nkwsqoiwyfalpeuuugfrteomqinuqni\nxelpstosaodqszkogrfbxt\npdbltqtmpyyeqtujuiok\nowswqyxntndxqqsgkhvihbaawjugagloddktdjizynyoesuoz\nyityjrifximkyrokktvusuiqiojf\nkyatryekijksvusokcyeavwufpctajxkixdbxjmitwcqqxfbb\nhbad\nfuaaujxfrwkvuuhepdifvfkyhs\niuleafgaapahjwtesp\nweqfmnmymtqreleinkopmfpvomqueghdmxkynwxzqnsw\nxgnjwdxbuus\nkmnqw\ndvadiwahoqakqzqgkmlhqfdimnwzgsplorownpgehio\nhhfrvqalwd\nksslykajataxgpdmyldxukdnftprrumbmemlrowr\nwoqntclghlcr\nrzhgsbaecplpccdyvnxmdmfhaoplqizkhiqbj\nimitdkxiksxjecwmkw\nbhslievqvwcqeqaztkydwrbgxdcjpalsh\nepkzhhvlxcbxdwjccgtdoqiscyspqzvuqivzptl\nvooynyapgvswoaosaghrffnx\njyeeltzaizniccozwknw\nknlzxqcsrtegwaobvudhfmjypi\n30\nyjdohbvghmyuiggtyqjtmuqinntqmihntkddnalwnmsxsatqqe\ndacnnpjfermrnyuqnwbjjpdjhd\navknykpoxhxclqqedqavdwz\nevkgyoifvtvfuzczzmtvudkqgdrslhryxwwrroi\nervvudneghbctcbxdxezrzgbpfhzanffeccc\nqfmzjqtlr\nppxqiywjobspefujlxnmddurddiyobqfspvcoulcvdr\nkm\nwlyiqdchghrgytzdnobqcvdeqjystmepxcaniewqmoxkjwpym\no\nluxedvywhcoghotpusfgiestckrpaigocfufbubiyrrf\nmwaeeimidf\nnzcphkflpbqsvtdwludsga\nngfzoihbxifoprwcjzsdxngtacw\njypweuxvegybogsfxqhipbompufpxckicaghuf\nzmaccgwigmrqcteqkqwbaamicoblivnjjoomwku\nznvdgztqarsargkwuaheyvohl\ntjqpopdjslkoelfynzeav\naceazuimydypvmgyxblhppuunkttkqtmvanuu\njvahmvvuvsvhzkywhmgchqvdcqdpmzmxwneikzfg\nantnlpwzvahnvkplpfaotxngexrfczzdmuszlo\niokvkwkxlrxblvotzomeqlftxzlzkbcsqmnciazvrzyeupyv\nkbtwhpvgcwteylwkbyubxr\nwszshxpmjrhfawdibzbfypdksbhtaapzs\nrbnjpzcxecvjmwjqdjhgv\njcukfjjzacbpnsoppvtleijpynyfvu\nfyyrdjadjegbsypjomfbrnkilzhsvbwczwtdfvirbosvm\nfcymdrzqzkpgemja\njyjofeywimqdackdawitxysjq\nncipttncjtjhrtvkwwojbqhjjfkboa\n",
"5\neklpyqrbgjdwtcaxzsnifvhmou\n30\ncdxrjmowfrxsjybldbefsarcbynecdy\ngxxpklorellnmpapqfwkh\np\nmcoqhnwnk\newhsqmgbbuq\nljjivswmdkqtbxixmvtrrbljptnsn\nwzqf\nmafadrrwsofsbcnuvqhf\nbsaqxw\nqcacehchzvfrkmlnozjkpqpxrjxkitzyxacbhhkicqco\nndtomfgdwdwfcgpxiqvkuytdlcgdewhtaciohor\ntq\nvwcsgspqoqmsboaguwnnyqxnzlgdg\npbtrwblnsad\nuguumoqcdrubetokyxhoachwdvm\nxrdryxlmndqtukwagmleju\nkwcibxubumenmeyatdrmydiajxloghiqfmz\nlvihjo\nvsuyoypayulyeimuotehzriicfs\npggkbbipzzrzucxamlu\nfykgruow\ngiooobppleqlwphapjnadqhdcnvw\ntxjbmyppphauxnspusgdhiixqmbfjxjcvudj\nuyibyebmwsiqyoygyxymzevypzvjegebeoc\nuftsxdixtigsieehkchzdflilrjqfn\nztqrsvbspkyhsenbppkqtpddbuotbbqcwivrfxju\njddntgeiqvdgaijvwcyaubwewpjvygehljxepbpiwu\nzdzubdubzvafspqpqwu\nifwovyddwyvvburczm\nyjgfdxvtnunneslsplwuiupfxlzbknhkw\nbctfoujyxwadpgznqrvkeislmh\n30\ncsfmoxeqmrjowrghwlkob\neahkgccnaehhsveymqpxhlrnunyfdzrhb\nsjeuygafoubutpnimuwfjqsjxvkqd\nrxxvrwctdsneogvbpkxlpgdirbf\nriqifpgynkrrefxsnvucftpwctgtwmxnupycfgcuqunublm\niitncklefszbexrampetvhqnddjeqvuygpnka\nqfrpjvoaxdpcwmjobmskskfojnewxgxnnofwltwjwnnvbwjckd\neouuzhyvhgvwujbqx\npitcvograiddvhrrdsycqhkleewhxtembaqwqw\nqhsuebnvfgvjwdvjjafqzqxlcxdznczgjlapopkvxfgvicetcm\nbljopgtqvvhbgsdvivhesnkqx\nwrq\ndrvmhlubbryktheye\ntmrobdeyqcrgluaiihveixwjjrqopubjguxhxcipfzws\nzbgfy\nqvjzharvrlyauuzdrcnjkphc\nffrkeecbpdipufhidjcxjhrnxcxmjcxohqanxd\nmgze\nhlnmwp\nh\ndvthsfqueeexgrujigskmvrzgfwvrftwa\ndtutpbztygnsrxajjngc\nmikjzsdwsszno\ndruypcnjulkfuzmxnafamespckjcazxdrtdgyrqs\nczybnvqqcqcjitlvcnvbmasidzgwraatzzwpwmfbfjkncvk\nlhh\njchpdnlunmppnlgjznkewwuysgefonexpmmsbaopmdgzqmkq\nxuvtqvnxbs\nqzkglzamzpdnsjolvybwxxttqognrbaiakqllszkhfzconnmoq\nlpeefsnsmouwqhodsgcfohesyshmgxwtoayuv\ntpiulyvxkegcrmjsfwhoqbadnz\n30\ngvlcsaqbdbgw\nbseettwdnfnbyjvpdjxyuzqxstatbzpctthoofremgfk\nbcvkzvgbofthgojhdn\nywpnbitoraaibednezwfpda\nlohssvtqtkfvsyljzlucqxswyqdnt\nmfrtzlqsekejhzksklfepxchvczysvdgcxbbis\nm\nayl\nifktmoikss\ngcqnqjdqwfqsrsyiqxjopgtx\nqrnllu\neazvmwnuufnnxvloyvgmliuqand\nyavfauaosnlnvacsvpiumoiawcqxswkqwgxyazntnaik\nmeybnuqbcqaggxachrynqxqqmlfotpqhvokiiammqmvxjvb\noaifzyxnjcb\nrrnmixx\nyjhovengbpyqrixqg\ndrygxrxkf\nicainhwilkqmbpeszd\ngznzxtzqsjwatycbmjawwmninep\nduplucltxmkpvgrrgtuseura\neltkcapwpbqromqawixezqkvlfb\nrmjpcocw\nbpbegvsuluqtuuvkesvjtdhvtjmexfqbv\nfdpaxcwnwqjtb\nlyzedicwsodpwtqrpyuearhwgfnpaqel\nfrsotqi\ntxipqzeqvlqmuoubbjbrpmixfclbstnos\ndkujcpwsdqhxrkiueziowoqjpiecwx\nbjtnmkjgncpmvauqgtausokbfugjtfiuqbjc\nhicbpvxwrgdozfmjuytlkqensa\n30\nadgkhufsuevjaxrnivco\nhfrqqwnu\nquoyevslqprlyskrhunljgsoxleuyyfqutozqh\ngyetyyepfaesjlk\nivdevdllygazxj\ndjrxhrdyyddqnqdoayshwxshxzjywumbff\nmxdnxjqoy\nrmirernekxdlicjfqkkvnxuqmszcixm\nkwsqoiwyfalpeuuugfrteomqinuqni\nxelpstosaodqszkogrfbxt\npdbltqtmpyyeqtujuiok\nowswqyxntndxqqsgkhvihbaawjugagloddktdjizynyoesuoz\nyityjrifximkyrokktvusuiqiojf\nkyatryekijksvusokcyeavwufpctajxkixdbxjmitwcqqxfbb\nhbad\nfuaaujxfrwkvuuhepdifvfkyhs\niuleafgaapahjwtesp\nweqfmnmymtqreleinkopmfpvomqueghdmxkynwxzqnsw\nxgnjwdxbuus\nkmnqw\ndvadiwahoqakqzqgkmlhqfdimnwzgsplorownpgehio\nhhfrvqalwd\nksslykajataxgpdmyldxukdnftprrumbmemlrowr\nwoqntclghlcr\nrzhgsbaecplpccdyvnxmdmfhaoplqizkhiqbj\nimitdkxiksxjecwmkw\nbhslievqvwcqeqaztkydwrbgxdcjpalsh\nepkzhhvlxcbxdwjccgtdoqiscyspqzvuqivzptl\nvooynyapgvswoaosaghrffnx\njyeeltzaizniccozwknw\nknlzxqcsrtegwaobvudhfmjypi\n30\nyjdohbvghmyuiggtyqjtmuqinntqmihntkddnalwnmsxsatqqe\ndacnnpjfermrnyuqnwbjjpdjhd\navknykpoxhxclqqedqavdwz\nevkgyoifvtvfuzczzmtvudkqgdrslhryxwwrroi\nervvudneghbctcbxdxezrzgbpfhzanffeccc\nqfmzjqtlr\nppxqiywjobspefujlxnmddurddiyobqfspvcoulcvdr\nkm\nwlyiqdchghrgytzdnobqcvdeqjystmepxcaniewqmoxkjwpym\no\nluxedvywhcoghotpusfgiestckrpaigocfufbubiyrrf\nmwaeeimidf\nnzcphkflpbqsvtdwludsga\nngfzoihbxifoprwcjzsdxngtacw\njypweuxvegybogsfxqhipbompufpxckicaghuf\nzmaccgwigmrqcteqkqwbaamicoblivnjjoomwku\nznvdgztqarsargkwuaheyvohl\ntjqpopdjslkoelfynzeav\naceazuimydypvmgyxblhppuunkttkqtmvanuu\njvahmvvuvsvhzkywhmgchqvdcqdpmzmxwneikzfg\nantnlpwzvahnvkplpfaotxngexrfczzdmuszlo\niokvkwkxlrxblvotzomeqlftxzlzkbcsqmnciazvrzyeupyv\nkbtwhpvgcwteylwkbyubxr\nwszshxpmjrhfawdibzbfypdksbhtaapzs\nrbnjpzcxecvjmwjqdjhgv\njcukfjjzacbpnsoppvtleijpynyfvu\nfyyrdjadjegbsypjomfbrnkilzhsvbwczwtdfvirbosvm\nfcymdrzqzkpgemja\njyjofeywimqdackdawitxysjq\nncipttncjtjhrtvkwwojbqhjjfkboa\n",
"5\neklpyqrbgjdwtcaxzsnifvhmou\n30\ncdxrjmowfrxsjybldbefsarcbynecdy\ngxxpklorellnmpapqfwkh\np\nmcoqhnwnk\newhsqmgbbuq\nljjivswmdkqtbxixmvtrrbljptnsn\nwzqf\nmafadrrwsofsbcnuvqhf\nbsaqxw\nqcacehchzvfrkmlnozjkpqpxrjxkitzyxacbhhkicqco\nndtomfgdwdwfcgpxiqvkuytdlcgdewhtaciohor\ntq\nvwcsgspqoqmsboaguwnnyqxnzlgdg\npbtrwblnsad\nuguumoqcdrubetokyxhoachwdvm\nxrdryxlmndqtukwagmleju\nkwcibxubumenmeyatdrmydiajxloghiqfmz\nlvihjo\nvsuyoypayulyeimuotehzriicfs\npggkbbipzzrzucxamlu\nfykgruow\ngiooobppleqlwphapjnadqhdcnvw\ntxjbmyppphauxnspusgdhiixqmbfjxjcvudj\nuyibyebmwsiqyoygyxymzevypzvjegebeoc\nuftsxdixtigsieehkchzdflilrjqfn\nztqrsvbspkyhsenbppkqtpddbuotbbqcwivrfxju\njddntgeiqvdgaijvwcyaubwewpjvygehljxepbpiwu\nzdzubdubzvafspqpqwu\nifwovyddwyvvburczm\nyjgfdxvtnunneslsplwuiupfxlzbknhkw\nbctfoujyxwadpgznqrvkeislmh\n30\ncsfmoxeqmrjowrghwlkob\neahkgccnaehhsveymqpxhlrnunyfdzrhb\nsjeuygafoubutpnimuwfjqsjxvkqd\nrxxvrwctdsneogvbpkxlpgdirbf\nriqifpgynkrrefxsnvucftpwctgtwmxnupycfgcuqunublm\niitncklefszbexrampetvhqnddjeqvuygpnka\nqfrpjvoaxdpcwmjobmskskfojnewxgxnnofwltwjwnnvbwjckd\neouuzhyvhgvwujbqx\npitcvograiddvhrrdsycqhkleewhxtembaqwqw\nqhsuebnvfgvjwdvjjafqzqxlcxdznczgjlapopkvxfgvicetcm\nbljopgtqvvhbgsdvivhesnkqx\nwrq\ndrvmhlubbryktheye\ntmrobdeyqcrgluaiihveixwjjrqopubjguxhxcipfzws\nzbgfy\nqvjzharvrlyauuzdrcnjkphc\nffrkeecbpdipufhidjcxjhrnxcxmjcxohqanxd\nmgze\nhlnmwp\nh\ndvthsfqueeexgrujigskmvrzgfwvrftwa\ndtutpbztygnsrxajjngc\nmikjzsdwsszno\ndruypcnjulkfuzmxnafamespckjcazxdrtdgyrqs\nczybnvqqcqcjitlvcnvbmasidzgwraatzzwpwmfbfjkncvk\nlhh\njchpdnlunmppnlgjznkewwuysgefonexpmmsbaopmdgzqmkq\nxuvtqvnxbs\nqzkglzamzpdnsjolvybwxxttqognrbaiakqllszkhfzconnmoq\nlpeefsnsmouwqhodsgcfohesyshmgxwtoayuv\ntpiulyvxkegcrmjsfwhoqbadnz\n30\ngvlcsaqbdbgw\nbseettwdnfnbyjvpdjxyuzqxstatbzpctthoofremgfk\nbcvkzvgbofthgojhdn\nywpnbitoraaibednezwfpda\nlohssvtqtkfvsyljzlucqxswyqdnt\nmfrtzlqsekejhzksklfepxchvczysvdgcxbbis\nm\nayl\nifktmoikss\ngcqnqjdqwfqsrsyiqxjopgtx\nqrnllu\neazvmwnuufnnxvloyvgmliuqand\nyavfauaosnlnvacsvpiumoiawcqxswkqwgxyazntnaik\nmeybnuqbcqaggxachrynqxqqmlfotpqhvokiiammqmvxjvb\noaifzyxnjcb\nrrnmixx\nyjhovengbpyqrixqg\ndrygxrxkf\nicainhwilkqmbpeszd\ngznzxtzqsjwatycbmjawwmninep\nduplucltxmkpvgrrgtuseura\neltkcapwpbqromqawixezqkvlfb\nrmjpcocw\nbpbegvsuluqtuuvkesvjtdhvtjmexfqbv\nfdpaxcwnwqjtb\nlyzedicwsodpwtqrpyuearhwgfnpaqel\nfrsotqi\ntxipqzeqvlqmuoubbjbrpmixfclbstnos\ndkujcpwsdqhxrkiueziowoqjpiecwx\nbjtnmkjgncpmvauqgtausokbfugjtfiuqbjc\nhicbpvxwrgdozfmjuytlkqensa\n30\nadgkhufsuevjaxrnivco\nhfrqqwnu\nquoyevslqprlyskrhunljgsoxleuyyfqutozqh\ngyetyyepfaesjlk\nivdevdllygazxj\ndjrxhrdyyddqnqdoayshwxshxzjywumbff\nmxdnxjqoy\nrmirernekxdlicjfqkkvnxuqmszcixm\nkwsqoiwyfalpeuuugfrteomqinuqni\nxelpstosaodqszkogrfbxt\npdbltqtmpyyeqtujuiok\nowswqyxntndxqqsgkhvihbaawjugagloddktdjizynyoesuoz\nyityjrifximkyrokktvusuiqioif\nkyatryekijksvusokcyeavwufpctajxkixdbxjmitwcqqxfbb\nhbad\nfuaaujxfrwkvuuhepdifvfkyhs\niuleafgaapahjwtesp\nweqfmnmymtqreleinkopmfpvomqueghdmxkynwxzqnsw\nxgnjwdxbuus\nkmnqw\ndvadiwahoqakqzqgkmlhqfdimnwzgsplorownpgehio\nhhfrvqalwd\nksslykajataxgpdmyldxukdnftprrumbmemlrowr\nwoqntclghlcr\nrzhgsbaecplpccdyvnxmdmfhaoplqizkhiqbj\nimitdkxiksxjecwmkw\nbhslievqvwcqeqaztkydwrbgxdcjpalsh\nepkzhhvlxcbxdwjccgtdoqiscyspqzvuqivzptl\nvooynyapgvswoaosaghrffnx\njyeeltzaizniccozwknw\nknlzxqcsrtegwaobvudhfmjypi\n30\nyjdohbvghmyuiggtyqjtmuqinntqmihntkddnalwnmsxsatqqe\ndacnnpjfermrnyuqnwbjjpdjhd\navknykpoxhxclqqedqavdwz\nevkgyoifvtvfuzczzmtvudkqgdrslhryxwwrroi\nervvudneghbctcbxdxezrzgbpfhzanffeccc\nqfmzjqtlr\nppxqiywjobspefujlxnmddurddiyobqfspvcoulcvdr\nkm\nwlyiqdchghrgytzdnobqcvdeqjystmepxcaniewqmoxkjwpym\no\nluxedvywhcoghotpusfgiestckrpaigocfufbubiyrrf\nmwaeeimidf\nnzcphkflpbqsvtdwludsga\nngfzoihbxifoprwcjzsdxngtacw\njypweuxvegybogsfxqhipbompufpxckicaghuf\nzmaccgwigmrqcteqkqwbaamicoblivnjjoomwku\nznvdgztqarsargkwuaheyvohl\ntjqpopdjslkoelfynzeav\naceazuimydypvmgyxblhppuunkttkqtmvanuu\njvahmvvuvsvhzkywhmgchqvdcqdpmzmxwneikzfg\nantnlpwzvahnvkplpfaotxngexrfczzdmuszlo\niokvkwkxlrxblvotzomeqlftxzlzkbcsqmnciazvrzyeupyv\nkbtwhpvgcwteylwkbyubxr\nwszshxpmjrhfawdibzbfypdksbhtaapzs\nrbnjpzcxecvjmwjqdjhgv\njcukfjjzacbpnsoppvtleijpynyfvu\nfyyrdjadjegbsypjomfbrnkilzhsvbwczwtdfvirbosvm\nfcymdrzqzkpgemja\njyjofeywimqdackdawitxysjq\nncipttncjtjhrtvkwwojbqhjjfkboa\n"
] |
[
"ewhsqmgbbuq\nkwcibxubumenmeyatdrmydiajxloghiqfmz\nljjivswmdkqtbxixmvtrrbljptnsn\nlvihjo\np\npbtrwblnsad\npggkbbipzzrzucxamlu\nyjgfdxvtnunneslsplwuiupfxlzbknhkw\nqcacehchzvfrkmlnozjkpqpxrjxkitzyxacbhhkicqco\nbsaqxw\ngxxpklorellnmpapqfwkh\ngiooobppleqlwphapjnadqhdcnvw\njddntgeiqvdgaijvwcyaubwewpjvygehljxepbpiwu\nwzqf\ntq\ntxjbmyppphauxnspusgdhiixqmbfjxjcvudj\ncdxrjmowfrxsjybldbefsarcbynecdy\nxrdryxlmndqtukwagmleju\nzdzubdubzvafspqpqwu\nztqrsvbspkyhsenbppkqtpddbuotbbqcwivrfxju\nndtomfgdwdwfcgpxiqvkuytdlcgdewhtaciohor\nifwovyddwyvvburczm\nfykgruow\nvwcsgspqoqmsboaguwnnyqxnzlgdg\nvsuyoypayulyeimuotehzriicfs\nmcoqhnwnk\nmafadrrwsofsbcnuvqhf\nuyibyebmwsiqyoygyxymzevypzvjegebeoc\nuguumoqcdrubetokyxhoachwdvm\nuftsxdixtigsieehkchzdflilrjqfn\nbljopgtqvvhbgsdvivhesnkqx\nczybnvqqcqcjitlvcnvbmasidzgwraatzzwpwmfbfjkncvk\ncsfmoxeqmrjowrghwlkob\ntmrobdeyqcrgluaiihveixwjjrqopubjguxhxdipfzws\nffrkeecbpdipufhidjcxjhrnxcxmjcxohqanxd\njchpdnlunmppnlgjznkewwuysgefonexpmmsbaopmdgzqmkq\nybgfy\nxuvtqvnxbs\nwrq\ndtutpbztygnsrxajjngc\ndruypcnjulkfuzmxnafamespckjcazxdrtdgyrqs\ndrvmhlubbryktheye\ndvthsfqueeexgrujigskmvrzgfwvrftwa\npitcvograiddvhrrdsycqhkleewhxtembaqwqw\nqfrpjvoaxdpcwmjobmskskfojnewxgxnnofwltwjwnnvbwjckd\nqzkglzamzpdnsjolvybwxxttqognrbaiakqllszkhfzconnmoq\nqvjzharvrlyauuzdrcnjkphc\nqhsuebnvfgvjwdvjjafqzzxlcxdzncqgjlapopkvxfgvicetcm\nrxxvrwctdsneogvbpkxlpgdirbf\nriqifpgynkrrefxsnvucftpwctgtwmxnupycfgcuqunublm\neouuzhyvhgvwujbqx\neahkgccnaehhsveymqpxhlrnunyfdzrhb\niitncklefszbexrampetvhqnddjeqvuygpnka\nsjeuygafoubutpnimuwfjqsjxvkqd\nlpeefsnsmouwqhodsgcfohesyshmgxwtoayuv\nlhh\nmgze\nmikjzsdwsszno\nh\nhnlmwp\ntxipqzeqvlqmuoubbjbrpmixfclbstnos\nicainhwilkqmbpeszd\nifktmoikss\nlyzedicwsodpwtqrpyuearhwgfnpaqel\nlohssvtqtkfvsyljzlucqxswyqdnt\nyjhovengbpyqrixqg\nywpnbitoraaibednezwfpda\nyavfauaosnlnvacsvpiumoiawcqxswkqwgxyazntnaik\nxtgpojxqiysrsqfwqdjqnqcg\neltkcapwpbqromqawixezqkvlfb\neazvmwnuufnnxvloyvgmliuqand\ngvlcsaqbdbgw\ngznzxtzqsjwatycbmjawwmninep\nrrnmixx\nm\nmeybnuqbcqaggxachrynqxqqmlfotpqhvokiiammqmvxjvb\nmfrtzlqsekejhzksklfepxchvczysvdgcxbbis\nfrsotqi\nfdpaxcwnwqjtb\nwcocpjmr\noaifzyxnjcb\nqrnllu\nbpbegvsuluqtuuvkesvjtdhvtjmexfqbv\nbcvkzvgbofthgojhdn\nbjtnmkjgncpmvauqgtausokbfugjtfiuqbjc\nbseettwdnfnbyjvpdjxyuzqxstatbzpctthoofremgfk\nayl\nduplucltxmkpvgrrgtuseura\ndkujcpwsdqhxrkiueziowoqjpiecwx\ndrygxrxkf\nhhfrvqalwd\nhbad\nhfrqqwnu\nivdevdllygazxj\nimitdkxiksxjecwmkw\niuleafgaapahjwtesp\nbhslievqvwcqeqaztkydwrbgxdcjpalsh\npdbltqtmpyyeqtujuiok\nvooynyapgvswoaosaghrffnx\nxgnjwdxbuus\nxelpstosaodqszkogrfbxt\nwoqntclghlcr\nweqfmnmymtqreleinkopmfpvomqueghdmxkynwxzqnsw\nrzhgsbaecplpccdyvnxmdmfhaoplqizkhiqbj\nrmirernekxdlicjfqkkvnxuqmszcixm\ngyetyyepfaesjlk\ndvadiwahoqakqzqgkmlhqfdimnwzgsplorownpgehio\ndjrxhrdyyddqnqdoayshwxshxzjywumbff\nowswqyxntndxqqsgkhvihbaawjugagloddktdjizynyoesuoz\nfuaaujxfrwkvuuhepdifvfkyhs\nmxdnxjqoy\njyeeltzaizniccozwknw\nyityjrifximkyrokktvusuiqiojf\nkwsqoiwyfalpeuuugfrteomqinuqni\nkmnqw\nkyatryekijksvusokcyeavwufpctajxkixdbxjmitwcqqxfbb\nksslykajataxgpdmyldxukdnftprrumbmemlrowr\nquoyevslqprlyskrhunljgsoxleuyyfqutozqh\nepkzhhvlxcbxdwjccgtdoqiscyspqzvuqivzptl\nadgkhufsuevjaxrnivco\nkbtwhpvgcwteylwkbyubxr\nkm\nnzcphkflpbqsvtdwludsga\nncipttncjtjhrtvkwwojbqhjjfkboa\nngfzoihbxifoprwcjzsdxngtacw\nluxedvywhcoghotpusfgiestckrpaigocfufbubiyrrf\nznvdgztqarsargkwuaheyvohl\nzmaccgwigmrqcteqkbwbaamicoqlivnjjoomwku\nqfmzjqtlr\nrbnjpzcxecvjmwjqdjhgv\ntjqpopdjslkoelfynzeav\nervvudneghbctcbxdxezrzgbpfhzanffeccb\nevkgyoifvtvfuzczzmtvudkqgdrslhryxwwrroi\nwlyiqdchghrgytzdnobqcvdeqjystmepxcaniewqmoxkjwpym\nwszshxpmjrhfawdibzbfypdksbhtaapzs\nantnlpwzvahnvkplpfaotxngexrfczzdmuszlo\naceazuimydypvmgyxblhppuunkttkqtmvanuu\navknykpoxhxclqqedqavdwz\no\ndacnnpjfermrnyuqnwbjjpdjhd\nfcymdrzqzkpgemja\nfyyrdjadjegbsypjomfbrnkilzhsvbwczwtdfvirbosvm\nmwaeeimidf\njcukfjjzacbpnsoppvtleijpynyfvu\njvahmvvuvsvhzkywhmgchqvdcqdpmzmxwneikzfg\njyjofeywimqdackdawitxysjq\njypweuxvegybogsfxqhipbompufpxckicaghuf\nyjdohbvghmyuiggtyqjtmuqinntqmihntkddnalwnmsxsatqqe\nppxqiywjobspefujlxnmddurddiyobqfspvcoulcvdr\niokvkwkxlrxblvotzomeqlftxzlzkbcsqmnciazvrzyeupyv\n",
"ewhsqmgbbuq\nkwcibxubumenmeyatdrmydiajxloghiqfmz\nljjivswmdkqtbxixmvtrrbljptnsn\nlvihjo\np\npbtrwblnsad\npggkbbipzzrzucxamlu\nyjgfdxvtnunneslsplwuiupfxlzbknhkw\nqcacehchzvfrkmlnozjkpqpxrjxkitzyxacbhhkicqco\nbsaqxw\ngxxpklorellnmpapqfwkh\ngiooobppleqlwphapjnadqhdcnvw\njddntgeiqvdgaijvwcyaubwewpjvygehljxepbpiwu\nwzqf\ntq\ntxjbmyppphauxnspusgdhiixqmbfjxjcvudj\ncdxrjmowfrxsjybldbefsarcbynecdy\nxrdryxlmndqtukwagmleju\nzdzubdubzvafspqpqwu\nztqrsvbspkyhsenbppkqtpddbuotbbqcwivrfxju\nndtomfgdwdwfcgpxiqvkuytdlcgdewhtaciohor\nifwovyddwyvvburczm\nfykgruow\nvwcsgspqoqmsboaguwnnyqxnzlgdg\nvsuyoypayulyeimuotehzriicfs\nmcoqhnwnk\nmafadrrwsofsbcnuvqhf\nuyibyebmwsiqyoygyxymzevypzvjegebeoc\nuguumoqcdrubetokyxhoachwdvm\nuftsxdixtigsieehkchzdflilrjqfn\nbljopgtqvvhbgsdvivhesnkqx\nczybnvqqcqcjitlvcnvbmasidzgwraatzzwpwmfbfjkncvk\ncsfmoxeqmrjowrghwlkob\ntmrobdeyqcrgluaiihveixwjjrqopubjguxhxdipfzws\nffrkeecbpdipufhidjcxjhrnxcxmjcxohqanxd\njchpdnlunmppnlgjznkewwuysgefonexpmmsbaopmdgzqmkq\nybgfy\nxuvtqvnxbs\nwrq\ndtutpbztygnsrxajjngc\ndruypcnjulkfuzmxnafamespckjcazxdrtdgyrqs\ndrvmhlubbryktheye\ndvthsfqueeexgrujigskmvrzgfwvrftwa\npitcvograiddvhrrdsycqhkleewhxtembaqwqw\nqfrpjvoaxdpcwmjobmskskfojnewxgxnnofwltwjwnnvbwjckd\nqzkglzamzpdnsjolvybwxxttqognrbaiakqllszkhfzconnmoq\nqvjzharvrlyauuzdrcnjkphc\nqhsuebnvfgvjwdvjjafqzzxlcxdzncqgjlapopkvxfgvicetcm\nrxxvrwctdsneogvbpkxlpgdirbf\nriqifpgynkrrefxsnvucftpwctgtwmxnupycfgcuqunublm\neouuzhyvhgvwujbqx\neahkgccnaehhsveymqpxhlrnunyfdzrhb\niitncklefszbexrampetvhqnddjeqvuygpnka\nsjeuygafoubutpnimuwfjqsjxvkqd\nlpeefsnsmouwqhodsgcfohesyshmgxwtoayuv\nlhh\nmgze\nmikjzsdwsszno\nh\nhnlmwp\ntxipqzeqvlqmuoubbjbrpmixfclbstnos\nicainhwilkqmbpeszd\nifktmoikss\nlyzedicwsodpwtqrpyuearhwgfnpaqel\nlohssvtqtkfvsyljzlucqxswyqdnt\nyjhovengbpyqrixqg\nywpnbitoraaibednezwfpda\nyavfauaosnlnvacsvpiumoiawcqxswkqwgxyazntnaik\nxtgpojxqiysrsqfwqdjqnqcg\neltkcapwpbqromqawixezqkvlfb\neazvmwnuufnnxvloyvgmliuqand\ngvlcsaqbdbgw\ngznzxtzqsjwatycbmjawwmninep\nrrnmixx\nm\nmeybnuqbcqaggxachrynqxqqmlfotpqhvokiiammqmvxjvb\nmfrtzlqsekejhzksklfepxchvczysvdgcxbbis\nfrsotqi\nfdpaxcwnwqjtb\nwcocpjmr\noaifzyxnjcb\nqrnllu\nbpbegvsuluqtuuvkesvjtdhvtjmexfqbv\nbcvkzvgbofthgojhdn\nbjtnmkjgncpmvauqgtausokbfugjtfiuqbjc\nbseettwdnfnbyjvpdjxyuzqxstatbzpctthoofremgfk\nayl\nduplucltxmkpvgrrgtuseura\ndkujcpwsdqhxrkiueziowoqjpiecwx\ndrygxrxkf\nhhfrvqalwd\nhbad\nhfrqqwnu\nivdevdllygazxj\nimitdkxiksxjecwmkw\niuleafgaapahjwtesp\nbhslievqvwcqeqaztkydwrbgxdcjpalsh\npdbltqtmpyyeqtujuiok\nvooynyapgvswoaosaghrffnx\nxgnjwdxbuus\nxelpstosaodqszkogrfbxt\nwoqntclghlcr\nweqfmnmymtqreleinkopmfpvomqueghdmxkynwxzqnsw\nrzhgsbaecplpccdyvnxmdmfhaoplqizkhiqbj\nrmirernekxdlicjfqkkvnxuqmszcixm\ngyetyyepfaesjlk\ndvadiwahoqakqzqgkmlhqfdimnwzgsplorownpgehio\ndjrxhrdyyddqnqdoayshwxshxzjywumbff\nowswqyxntndxqqsgkhvihbaawjugagloddktdjizynyoesuoz\nfuaaujxfrwkvuuhepdifvfkyhs\nmxdnxjqoy\njyeeltzaizniccozwknw\nyityjrifximkyrokktvusuiqiojf\nkwsqoiwyfalpeuuugfrteomqinuqni\nkmnqw\nkyatryekijksvusokcyeavwufpctajxkixdbxjmitwcqqxfbb\nksslykajataxgpdmyldxukdnftprrumbmemlrowr\nquoyevslqprlyskrhunljgsoxleuyyfqutozqh\nepkzhhvlxcbxdwjccgtdoqiscyspqzvuqivzptl\nadgkhufsuevjaxrnivco\nkbtwhpvgcwteylwkbyubxr\nkm\nnzcphkflpbqsvtdwludsga\nncipttncjtjhrtvkwwojbqhjjfkboa\nngfzoihbxifoprwcjzsdxngtacw\nluxedvywhcoghotpusfgiestckrpaigocfufbubiyrrf\nznvdgztqarsargkwuaheyvohl\nzmaccgwigmrqcteqkqwbaamicoblivnjjoomwku\nqfmzjqtlr\nrbnjpzcxecvjmwjqdjhgv\ntjqpopdjslkoelfynzeav\nervvudneghbctcbxdxezrzgbpfhzanffeccb\nevkgyoifvtvfuzczzmtvudkqgdrslhryxwwrroi\nwlyiqdchghrgytzdnobqcvdeqjystmepxcaniewqmoxkjwpym\nwszshxpmjrhfawdibzbfypdksbhtaapzs\nantnlpwzvahnvkplpfaotxngexrfczzdmuszlo\naceazuimydypvmgyxblhppuunkttkqtmvanuu\navknykpoxhxclqqedqavdwz\no\ndacnnpjfermrnyuqnwbjjpdjhd\nfcymdrzqzkpgemja\nfyyrdjadjegbsypjomfbrnkilzhsvbwczwtdfvirbosvm\nmwaeeimidf\njcukfjjzacbpnsoppvtleijpynyfvu\njvahmvvuvsvhzkywhmgchqvdcqdpmzmxwneikzfg\njyjofeywimqdackdawitxysjq\njypweuxvegybogsfxqhipbompufpxckicaghuf\nyjdohbvghmyuiggtyqjtmuqinntqmihntkddnalwnmsxsatqqe\nppxqiywjobspefujlxnmddurddiyobqfspvcoulcvdr\niokvkwkxlrxblvotzomeqlftxzlzkbcsqmnciazvrzyeupyv\n",
"ewhsqmgbbuq\nkwcibxubumenmeyatdrmydiajxloghiqfmz\nljjivswmdkqtbxixmvtrrbljptnsn\nlvihjo\np\npbtrwblnsad\npggkbbipzzrzucxamlu\nyjgfdxvtnunneslsplwuiupfxlzbknhkw\nqcacehchzvfrkmlnozjkpqpxrjxkitzyxacbhhkicqco\nbsaqxw\ngxxpklorellnmpapqfwkh\ngiooobppleqlwphapjnadqhdcnvw\njddntgeiqvdgaijvwcyaubwewpjvygehljxepbpiwu\nwzqf\ntq\ntxjbmyppphauxnspusgdhiixqmbfjxjcvudj\ncdxrjmowfrxsjybldbefsarcbynecdy\nxrdryxlmndqtukwagmleju\nzdzubdubzvafspqpqwu\nztqrsvbspkyhsenbppkqtpddbuotbbqcwivrfxju\nndtomfgdwdwfcgpxiqvkuytdlcgdewhtaciohor\nifwovyddwyvvburczm\nfykgruow\nvwcsgspqoqmsboaguwnnyqxnzlgdg\nvsuyoypayulyeimuotehzriicfs\nmcoqhnwnk\nmafadrrwsofsbcnuvqhf\nuyibyebmwsiqyoygyxymzevypzvjegebeoc\nuguumoqcdrubetokyxhoachwdvm\nuftsxdixtigsieehkchzdflilrjqfn\nbljopgtqvvhbgsdvivhesnkqx\nczybnvqqcqcjitlvcnvbmasidzgwraatzzwpwmfbfjkncvk\ncsfmoxeqmrjowrghwlkob\ntmrobdeyqcrgluaiihveixwjjrqopubjguxhxdipfzws\nffrkeecbpdipufhidjcxjhrnxcxmjcxohqanxd\njchpdnlunmppnlgjznkewwuysgefonexpmmsbaopmdgzqmkq\nybgfy\nxuvtqvnxbs\nwrq\ndtutpbztygnsrxajjngc\ndruypcnjulkfuzmxnafamespckjcazxdrtdgyrqs\ndrvmhlubbryktheye\ndvthsfqueeexgrujigskmvrzgfwvrftwa\npitcvograiddvhrrdsycqhkleewhxtembaqwqw\nqfrpjvoaxdpcwmjobmskskfojnewxgxnnofwltwjwnnvbwjckd\nqzkglzamzpdnsjolvybwxxttqognrbaiakqllszkhfzconnmoq\nqvjzharvrlyauuzdrcnjkphc\nqhsuebnvfgvjwdvjjafqzzxlcxdzncqgjlapopkvxfgvicetcm\nrxxvrwctdsneogvbpkxlpgdirbf\nriqifpgynkrrefxsnvucftpwctgtwmxnupycfgcuqunublm\neouuzhyvhgvwujbqx\neahkgccnaehhsveymqpxhlrnunyfdzrhb\niitncklefszbexrampetvhqnddjeqvuygpnka\nsjeuygafoubutpnimuwfjqsjxvkqd\nlpeefsnsmouwqhodsgcfohesyshmgxwtoayuv\nlhh\nmgze\nmikjzsdwsszno\nh\nhnlmwp\ntxipqzeqvlqmuoubbjbrpmixfclbstnos\nicainhwilkqmbpeszd\nifktmoikss\nlyzedicwsodpwtqrpyuearhwgfnpaqel\nlohssvtqtkfvsyljzlucqxswyqdnt\nyjhovengbpyqrixqg\nywpnbitoraaibednezwfpda\nyavfauaosnlnvacsvpiumoiawcqxswkqwgxyazntnaik\neltkcapwpbqromqawixezqkvlfb\neazvmwnuufnnxvloyvgmliuqand\ngvlcsaqbdbgw\ngcqnqjdqwfqsrsyiqxjopgtx\ngznzxtzqsjwatycbmjawwmninep\nrrnmixx\nm\nmeybnuqbcqaggxachrynqxqqmlfotpqhvokiiammqmvxjvb\nmfrtzlqsekejhzksklfepxchvczysvdgcxbbis\nfrsotqi\nfdpaxcwnwqjtb\nwcocpjmr\noaifzyxnjcb\nqrnllu\nbpbegvsuluqtuuvkesvjtdhvtjmexfqbv\nbcvkzvgbofthgojhdn\nbjtnmkjgncpmvauqgtausokbfugjtfiuqbjc\nbseettwdnfnbyjvpdjxyuzqxstatbzpctthoofremgfk\nayl\nduplucltxmkpvgrrgtuseura\ndkujcpwsdqhxrkiueziowoqjpiecwx\ndrygxrxkf\nhhfrvqalwd\nhbad\nhfrqqwnu\nivdevdllygazxj\nimitdkxiksxjecwmkw\niuleafgaapahjwtesp\nbhslievqvwcqeqaztkydwrbgxdcjpalsh\npdbltqtmpyyeqtujuiok\nvooynyapgvswoaosaghrffnx\nxgnjwdxbuus\nxelpstosaodqszkogrfbxt\nwoqntclghlcr\nweqfmnmymtqreleinkopmfpvomqueghdmxkynwxzqnsw\nrzhgsbaecplpccdyvnxmdmfhaoplqizkhiqbj\nrmirernekxdlicjfqkkvnxuqmszcixm\ngyetyyepfaesjlk\ndvadiwahoqakqzqgkmlhqfdimnwzgsplorownpgehio\ndjrxhrdyyddqnqdoayshwxshxzjywumbff\nowswqyxntndxqqsgkhvihbaawjugagloddktdjizynyoesuoz\nfuaaujxfrwkvuuhepdifvfkyhs\nmxdnxjqoy\njyeeltzaizniccozwknw\nyityjrifximkyrokktvusuiqiojf\nkwsqoiwyfalpeuuugfrteomqinuqni\nkmnqw\nkyatryekijksvusokcyeavwufpctajxkixdbxjmitwcqqxfbb\nksslykajataxgpdmyldxukdnftprrumbmemlrowr\nquoyevslqprlyskrhunljgsoxleuyyfqutozqh\nepkzhhvlxcbxdwjccgtdoqiscyspqzvuqivzptl\nadgkhufsuevjaxrnivco\nkbtwhpvgcwteylwkbyubxr\nkm\nnzcphkflpbqsvtdwludsga\nncipttncjtjhrtvkwwojbqhjjfkboa\nngfzoihbxifoprwcjzsdxngtacw\nluxedvywhcoghotpusfgiestckrpaigocfufbubiyrrf\nznvdgztqarsargkwuaheyvohl\nzmaccgwigmrqcteqkqwbaamicoblivnjjoomwku\nqfmzjqtlr\nrbnjpzcxecvjmwjqdjhgv\ntjqpopdjslkoelfynzeav\nervvudneghbctcbxdxezrzgbpfhzanffeccb\nevkgyoifvtvfuzczzmtvudkqgdrslhryxwwrroi\nwlyiqdchghrgytzdnobqcvdeqjystmepxcaniewqmoxkjwpym\nwszshxpmjrhfawdibzbfypdksbhtaapzs\nantnlpwzvahnvkplpfaotxngexrfczzdmuszlo\naceazuimydypvmgyxblhppuunkttkqtmvanuu\navknykpoxhxclqqedqavdwz\no\ndacnnpjfermrnyuqnwbjjpdjhd\nfcymdrzqzkpgemja\nfyyrdjadjegbsypjomfbrnkilzhsvbwczwtdfvirbosvm\nmwaeeimidf\njcukfjjzacbpnsoppvtleijpynyfvu\njvahmvvuvsvhzkywhmgchqvdcqdpmzmxwneikzfg\njyjofeywimqdackdawitxysjq\njypweuxvegybogsfxqhipbompufpxckicaghuf\nyjdohbvghmyuiggtyqjtmuqinntqmihntkddnalwnmsxsatqqe\nppxqiywjobspefujlxnmddurddiyobqfspvcoulcvdr\niokvkwkxlrxblvotzomeqlftxzlzkbcsqmnciazvrzyeupyv\n",
"ewhsqmgbbuq\nkwcibxubumenmeyatdrmydiajxloghiqfmz\nljjivswmdkqtbxixmvtrrbljptnsn\nlvihjo\np\npbtrwblnsad\npggkbbipzzrzucxamlu\nyjgfdxvtnunneslsplwuiupfxlzbknhkw\nqcacehchzvfrkmlnozjkpqpxrjxkitzyxacbhhkicqco\nbsaqxw\ngxxpklorellnmpapqfwkh\ngiooobppleqlwphapjnadqhdcnvw\njddntgeiqvdgaijvwcyaubwewpjvygehljxepbpiwu\nwzqf\ntq\ntxjbmyppphauxnspusgdhiixqmbfjxjcvudj\ncdxrjmowfrxsjybldbefsarcbynecdy\nxrdryxlmndqtukwagmleju\nzdzubdubzvafspqpqwu\nztqrsvbspkyhsenbppkqtpddbuotbbqcwivrfxju\nndtomfgdwdwfcgpxiqvkuytdlcgdewhtaciohor\nifwovyddwyvvburczm\nfykgruow\nvwcsgspqoqmsboaguwnnyqxnzlgdg\nvsuyoypayulyeimuotehzriicfs\nmcoqhnwnk\nmafadrrwsofsbcnuvqhf\nuyibyebmwsiqyoygyxymzevypzvjegebeoc\nuguumoqcdrubetokyxhoachwdvm\nuftsxdixtigsieehkchzdflilrjqfn\nbljopgtqvvhbgsdvivhesnkqx\nczybnvqqcqcjitlvcnvbmasidzgwraatzzwpwmfbfjkncvk\ncsfmoxeqmrjowrghwlkob\ntmrobdeyqcrgluaiihveixwjjrqopubjguxhxdipfzws\nffrkeecbpdipufhidjcxjhrnxcxmjcxohqanxd\njchpdnlunmppnlgjznkewwuysgefonexpmmsbaopmdgzqmkq\nybgfy\nxuvtqvnxbs\nwrq\ndtutpbztygnsrxajjngc\ndruypcnjulkfuzmxnafamespckjcazxdrtdgyrqs\ndrvmhlubbryktheye\ndvthsfqueeexgrujigskmvrzgfwvrftwa\npitcvograiddvhrrdsycqhkleewhxtembaqwqw\nqfrpjvoaxdpcwmjobmskskfojnewxgxnnofwltwjwnnvbwjckd\nqzkglzamzpdnsjolvybwxxttqognrbaiakqllszkhfzconnmoq\nqvjzharvrlyauuzdrcnjkphc\nqhsuebnvfgvjwdvjjafqzzxlcxdzncqgjlapopkvxfgvicetcm\nrxxvrwctdsneogvbpkxlpgdirbf\nriqifpgynkrrefxsnvucftpwctgtwmxnupycfgcuqunublm\neouuzhyvhgvwujbqx\neahkgccnaehhsveymqpxhlrnunyfdzrhb\niitncklefszbexrampetvhqnddjeqvuygpnka\nsjeuygafoubutpnimuwfjqsjxvkqd\nlpeefsnsmouwqhodsgcfohesyshmgxwtoayuv\nlhh\nmgze\nmikjzsdwsszno\nh\nhnlmwp\ntxipqzeqvlqmuoubbjbrpmixfclbstnos\nicainhwilkqmbpeszd\nifktmoikss\nlyzedicwsodpwtqrpyuearhwgfnpaqel\nlohssvtqtkfvsyljzlucqxswyqdnt\nyjhovengbpyqrixqg\nywpnbitoraaibednezwfpda\nyavfauaosnlnvacsvpiumoiawcqxswkqwgxyazntnaik\neltkcapwpbqromqawixezqkvlfb\neazvmwnuufnnxvloyvgmliuqand\ngvlcsaqbdbgw\ngcqnqjdqwfqsrsyiqxjopgtx\ngznzxtzqsjwatycbmjawwmninep\nrrnmixx\nrmjpcocw\nm\nmeybnuqbcqaggxachrynqxqqmlfotpqhvokiiammqmvxjvb\nmfrtzlqsekejhzksklfepxchvczysvdgcxbbis\nfrsotqi\nfdpaxcwnwqjtb\noaifzyxnjcb\nqrnllu\nbpbegvsuluqtuuvkesvjtdhvtjmexfqbv\nbcvkzvgbofthgojhdn\nbjtnmkjgncpmvauqgtausokbfugjtfiuqbjc\nbseettwdnfnbyjvpdjxyuzqxstatbzpctthoofremgfk\nayl\nduplucltxmkpvgrrgtuseura\ndkujcpwsdqhxrkiueziowoqjpiecwx\ndrygxrxkf\nhhfrvqalwd\nhbad\nhfrqqwnu\nivdevdllygazxj\nimitdkxiksxjecwmkw\niuleafgaapahjwtesp\nbhslievqvwcqeqaztkydwrbgxdcjpalsh\npdbltqtmpyyeqtujuiok\nvooynyapgvswoaosaghrffnx\nxgnjwdxbuus\nxelpstosaodqszkogrfbxt\nwoqntclghlcr\nweqfmnmymtqreleinkopmfpvomqueghdmxkynwxzqnsw\nrzhgsbaecplpccdyvnxmdmfhaoplqizkhiqbj\nrmirernekxdlicjfqkkvnxuqmszcixm\ngyetyyepfaesjlk\ndvadiwahoqakqzqgkmlhqfdimnwzgsplorownpgehio\ndjrxhrdyyddqnqdoayshwxshxzjywumbff\nowswqyxntndxqqsgkhvihbaawjugagloddktdjizynyoesuoz\nfuaaujxfrwkvuuhepdifvfkyhs\nmxdnxjqoy\njyeeltzaizniccozwknw\nyityjrifximkyrokktvusuiqiojf\nkwsqoiwyfalpeuuugfrteomqinuqni\nkmnqw\nkyatryekijksvusokcyeavwufpctajxkixdbxjmitwcqqxfbb\nksslykajataxgpdmyldxukdnftprrumbmemlrowr\nquoyevslqprlyskrhunljgsoxleuyyfqutozqh\nepkzhhvlxcbxdwjccgtdoqiscyspqzvuqivzptl\nadgkhufsuevjaxrnivco\nkbtwhpvgcwteylwkbyubxr\nkm\nnzcphkflpbqsvtdwludsga\nncipttncjtjhrtvkwwojbqhjjfkboa\nngfzoihbxifoprwcjzsdxngtacw\nluxedvywhcoghotpusfgiestckrpaigocfufbubiyrrf\nznvdgztqarsargkwuaheyvohl\nzmaccgwigmrqcteqkqwbaamicoblivnjjoomwku\nqfmzjqtlr\nrbnjpzcxecvjmwjqdjhgv\ntjqpopdjslkoelfynzeav\nervvudneghbctcbxdxezrzgbpfhzanffeccb\nevkgyoifvtvfuzczzmtvudkqgdrslhryxwwrroi\nwlyiqdchghrgytzdnobqcvdeqjystmepxcaniewqmoxkjwpym\nwszshxpmjrhfawdibzbfypdksbhtaapzs\nantnlpwzvahnvkplpfaotxngexrfczzdmuszlo\naceazuimydypvmgyxblhppuunkttkqtmvanuu\navknykpoxhxclqqedqavdwz\no\ndacnnpjfermrnyuqnwbjjpdjhd\nfcymdrzqzkpgemja\nfyyrdjadjegbsypjomfbrnkilzhsvbwczwtdfvirbosvm\nmwaeeimidf\njcukfjjzacbpnsoppvtleijpynyfvu\njvahmvvuvsvhzkywhmgchqvdcqdpmzmxwneikzfg\njyjofeywimqdackdawitxysjq\njypweuxvegybogsfxqhipbompufpxckicaghuf\nyjdohbvghmyuiggtyqjtmuqinntqmihntkddnalwnmsxsatqqe\nppxqiywjobspefujlxnmddurddiyobqfspvcoulcvdr\niokvkwkxlrxblvotzomeqlftxzlzkbcsqmnciazvrzyeupyv\n",
"ewhsqmgbbuq\nkwcibxubumenmeyatdrmydiajxloghiqfmz\nljjivswmdkqtbxixmvtrrbljptnsn\nlvihjo\np\npbtrwblnsad\npggkbbipzzrzucxamlu\nyjgfdxvtnunneslsplwuiupfxlzbknhkw\nqcacehchzvfrkmlnozjkpqpxrjxkitzyxacbhhkicqco\nbsaqxw\ngxxpklorellnmpapqfwkh\ngiooobppleqlwphapjnadqhdcnvw\njddntgeiqvdgaijvwcyaubwewpjvygehljxepbpiwu\nwzqf\ntq\ntxjbmyppphauxnspusgdhiixqmbfjxjcvudj\ncdxrjmowfrxsjybldbefsarcbynecdy\nxrdryxlmndqtukwagmleju\nzdzubdubzvafspqpqwu\nztqrsvbspkyhsenbppkqtpddbuotbbqcwivrfxju\nndtomfgdwdwfcgpxiqvkuytdlcgdewhtaciohor\nifwovyddwyvvburczm\nfykgruow\nvwcsgspqoqmsboaguwnnyqxnzlgdg\nvsuyoypayulyeimuotehzriicfs\nmcoqhnwnk\nmafadrrwsofsbcnuvqhf\nuyibyebmwsiqyoygyxymzevypzvjegebeoc\nuguumoqcdrubetokyxhoachwdvm\nuftsxdixtigsieehkchzdflilrjqfn\nbljopgtqvvhbgsdvivhesnkqx\nczybnvqqcqcjitlvcnvbmasidzgwraatzzwpwmfbfjkncvk\ncsfmoxeqmrjowrghwlkob\ntmrobdeyqcrgluaiihveixwjjrqopubjguxhxdipfzws\nffrkeecbpdipufhidjcxjhrnxcxmjcxohqanxd\njchpdnlunmppnlgjznkewwuysgefonexpmmsbaopmdgzqmkq\nybgfy\nxuvtqvnxbs\nwrq\ndtutpbztygnsrxajjngc\ndruypcnjulkfuzmxnafamespckjcazxdrtdgyrqs\ndrvmhlubbryktheye\ndvthsfqueeexgrujigskmvrzgfwvrftwa\npitcvograiddvhrrdsycqhkleewhxtembaqwqw\nqfrpjvoaxdpcwmjobmskskfojnewxgxnnofwltwjwnnvbwjckd\nqzkglzamzpdnsjolvybwxxttqognrbaiakqllszkhfzconnmoq\nqvjzharvrlyauuzdrcnjkphc\nqhsuebnvfgvjwdvjjafqzzxlcxdzncqgjlapopkvxfgvicetcm\nrxxvrwctdsneogvbpkxlpgdirbf\nriqifpgynkrrefxsnvucftpwctgtwmxnupycfgcuqunublm\neouuzhyvhgvwujbqx\neahkgccnaehhsveymqpxhlrnunyfdzrhb\niitncklefszbexrampetvhqnddjeqvuygpnka\nsjeuygafoubutpnimuwfjqsjxvkqd\nlpeefsnsmouwqhodsgcfohesyshmgxwtoayuv\nlhh\nmgze\nmikjzsdwsszno\nh\nhlnmwp\ntxipqzeqvlqmuoubbjbrpmixfclbstnos\nicainhwilkqmbpeszd\nifktmoikss\nlyzedicwsodpwtqrpyuearhwgfnpaqel\nlohssvtqtkfvsyljzlucqxswyqdnt\nyjhovengbpyqrixqg\nywpnbitoraaibednezwfpda\nyavfauaosnlnvacsvpiumoiawcqxswkqwgxyazntnaik\neltkcapwpbqromqawixezqkvlfb\neazvmwnuufnnxvloyvgmliuqand\ngvlcsaqbdbgw\ngcqnqjdqwfqsrsyiqxjopgtx\ngznzxtzqsjwatycbmjawwmninep\nrrnmixx\nrmjpcocw\nm\nmeybnuqbcqaggxachrynqxqqmlfotpqhvokiiammqmvxjvb\nmfrtzlqsekejhzksklfepxchvczysvdgcxbbis\nfrsotqi\nfdpaxcwnwqjtb\noaifzyxnjcb\nqrnllu\nbpbegvsuluqtuuvkesvjtdhvtjmexfqbv\nbcvkzvgbofthgojhdn\nbjtnmkjgncpmvauqgtausokbfugjtfiuqbjc\nbseettwdnfnbyjvpdjxyuzqxstatbzpctthoofremgfk\nayl\nduplucltxmkpvgrrgtuseura\ndkujcpwsdqhxrkiueziowoqjpiecwx\ndrygxrxkf\nhhfrvqalwd\nhbad\nhfrqqwnu\nivdevdllygazxj\nimitdkxiksxjecwmkw\niuleafgaapahjwtesp\nbhslievqvwcqeqaztkydwrbgxdcjpalsh\npdbltqtmpyyeqtujuiok\nvooynyapgvswoaosaghrffnx\nxgnjwdxbuus\nxelpstosaodqszkogrfbxt\nwoqntclghlcr\nweqfmnmymtqreleinkopmfpvomqueghdmxkynwxzqnsw\nrzhgsbaecplpccdyvnxmdmfhaoplqizkhiqbj\nrmirernekxdlicjfqkkvnxuqmszcixm\ngyetyyepfaesjlk\ndvadiwahoqakqzqgkmlhqfdimnwzgsplorownpgehio\ndjrxhrdyyddqnqdoayshwxshxzjywumbff\nowswqyxntndxqqsgkhvihbaawjugagloddktdjizynyoesuoz\nfuaaujxfrwkvuuhepdifvfkyhs\nmxdnxjqoy\njyeeltzaizniccozwknw\nyityjrifximkyrokktvusuiqiojf\nkwsqoiwyfalpeuuugfrteomqinuqni\nkmnqw\nkyatryekijksvusokcyeavwufpctajxkixdbxjmitwcqqxfbb\nksslykajataxgpdmyldxukdnftprrumbmemlrowr\nquoyevslqprlyskrhunljgsoxleuyyfqutozqh\nepkzhhvlxcbxdwjccgtdoqiscyspqzvuqivzptl\nadgkhufsuevjaxrnivco\nkbtwhpvgcwteylwkbyubxr\nkm\nnzcphkflpbqsvtdwludsga\nncipttncjtjhrtvkwwojbqhjjfkboa\nngfzoihbxifoprwcjzsdxngtacw\nluxedvywhcoghotpusfgiestckrpaigocfufbubiyrrf\nznvdgztqarsargkwuaheyvohl\nzmaccgwigmrqcteqkqwbaamicoblivnjjoomwku\nqfmzjqtlr\nrbnjpzcxecvjmwjqdjhgv\ntjqpopdjslkoelfynzeav\nervvudneghbctcbxdxezrzgbpfhzanffeccb\nevkgyoifvtvfuzczzmtvudkqgdrslhryxwwrroi\nwlyiqdchghrgytzdnobqcvdeqjystmepxcaniewqmoxkjwpym\nwszshxpmjrhfawdibzbfypdksbhtaapzs\nantnlpwzvahnvkplpfaotxngexrfczzdmuszlo\naceazuimydypvmgyxblhppuunkttkqtmvanuu\navknykpoxhxclqqedqavdwz\no\ndacnnpjfermrnyuqnwbjjpdjhd\nfcymdrzqzkpgemja\nfyyrdjadjegbsypjomfbrnkilzhsvbwczwtdfvirbosvm\nmwaeeimidf\njcukfjjzacbpnsoppvtleijpynyfvu\njvahmvvuvsvhzkywhmgchqvdcqdpmzmxwneikzfg\njyjofeywimqdackdawitxysjq\njypweuxvegybogsfxqhipbompufpxckicaghuf\nyjdohbvghmyuiggtyqjtmuqinntqmihntkddnalwnmsxsatqqe\nppxqiywjobspefujlxnmddurddiyobqfspvcoulcvdr\niokvkwkxlrxblvotzomeqlftxzlzkbcsqmnciazvrzyeupyv\n",
"ewhsqmgbbuq\nkwcibxubumenmeyatdrmydiajxloghiqfmz\nljjivswmdkqtbxixmvtrrbljptnsn\nlvihjo\np\npbtrwblnsad\npggkbbipzzrzucxamlu\nyjgfdxvtnunneslsplwuiupfxlzbknhkw\nqcacehchzvfrkmlnozjkpqpxrjxkitzyxacbhhkicqco\nbsaqxw\ngxxpklorellnmpapqfwkh\ngiooobppleqlwphapjnadqhdcnvw\njddntgeiqvdgaijvwcyaubwewpjvygehljxepbpiwu\nwzqf\ntq\ntxjbmyppphauxnspusgdhiixqmbfjxjcvudj\ncdxrjmowfrxsjybldbefsarcbynecdy\nxrdryxlmndqtukwagmleju\nzdzubdubzvafspqpqwu\nztqrsvbspkyhsenbppkqtpddbuotbbqcwivrfxju\nndtomfgdwdwfcgpxiqvkuytdlcgdewhtaciohor\nifwovyddwyvvburczm\nfykgruow\nvwcsgspqoqmsboaguwnnyqxnzlgdg\nvsuyoypayulyeimuotehzriicfs\nmcoqhnwnk\nmafadrrwsofsbcnuvqhf\nuyibyebmwsiqyoygyxymzevypzvjegebeoc\nuguumoqcdrubetokyxhoachwdvm\nuftsxdixtigsieehkchzdflilrjqfn\nbljopgtqvvhbgsdvivhesnkqx\nczybnvqqcqcjitlvcnvbmasidzgwraatzzwpwmfbfjkncvk\ncsfmoxeqmrjowrghwlkob\ntmrobdeyqcrgluaiihveixwjjrqopubjguxhxdipfzws\nffrkeecbpdipufhidjcxjhrnxcxmjcxohqanxd\njchpdnlunmppnlgjznkewwuysgefonexpmmsbaopmdgzqmkq\nybgfy\nxuvtqvnxbs\nwrq\ndtutpbztygnsrxajjngc\ndruypcnjulkfuzmxnafamespckjcazxdrtdgyrqs\ndrvmhlubbryktheye\ndvthsfqueeexgrujigskmvrzgfwvrftwa\npitcvograiddvhrrdsycqhkleewhxtembaqwqw\nqfrpjvoaxdpcwmjobmskskfojnewxgxnnofwltwjwnnvbwjckd\nqzkglzamzpdnsjolvybwxxttqognrbaiakqllszkhfzconnmoq\nqvjzharvrlyauuzdrcnjkphc\nqhsuebnvfgvjwdvjjafqzzxlcxdzncqgjlapopkvxfgvicetcm\nrxxvrwctdsneogvbpkxlpgdirbf\nriqifpgynkrrefxsnvucftpwctgtwmxnupycfgcuqunublm\neouuzhyvhgvwujbqx\neahkgccnaehhsveymqpxhlrnunyfdzrhb\niitncklefszbexrampetvhqnddjeqvuygpnka\nsjeuygafoubutpnimuwfjqsjxvkqd\nlpeefsnsmouwqhodsgcfohesyshmgxwtoayuv\nlhh\nmgze\nmikjzsdwsszno\nh\nhlnmwp\ntxipqzeqvlqmuoubbjbrpmixfclbstnos\nicainhwilkqmbpeszd\nifktmoikss\nlyzedicwsodpwtqrpyuearhwgfnpaqel\nlohssvtqtkfvsyljzlucqxswyqdnt\nyjhovengbpyqrixqg\nywpnbitoraaibednezwfpda\nyavfauaosnlnvacsvpiumoiawcqxswkqwgxyazntnaik\neltkcapwpbqromqawixezqkvlfb\neazvmwnuufnnxvloyvgmliuqand\ngvlcsaqbdbgw\ngcqnqjdqwfqsrsyiqxjopgtx\ngznzxtzqsjwatycbmjawwmninep\nrrnmixx\nrmjpcocw\nm\nmeybnuqbcqaggxachrynqxqqmlfotpqhvokiiammqmvxjvb\nmfrtzlqsekejhzksklfepxchvczysvdgcxbbis\nfrsotqi\nfdpaxcwnwqjtb\noaifzyxnjcb\nqrnllu\nbpbegvsuluqtuuvkesvjtdhvtjmexfqbv\nbcvkzvgbofthgojhdn\nbjtnmkjgncpmvauqgtausokbfugjtfiuqbjc\nbseettwdnfnbyjvpdjxyuzqxstatbzpctthoofremgfk\nayl\nduplucltxmkpvgrrgtuseura\ndkujcpwsdqhxrkiueziowoqjpiecwx\ndrygxrxkf\nhhfrvqalwd\nhbad\nhfrqqwnu\nivdevdllygazxj\nimitdkxiksxjecwmkw\niuleafgaapahjwtesp\nbhslievqvwcqeqaztkydwrbgxdcjpalsh\npdbltqtmpyyeqtujuiok\nvooynyapgvswoaosaghrffnx\nxgnjwdxbuus\nxelpstosaodqszkogrfbxt\nwoqntclghlcr\nweqfmnmymtqreleinkopmfpvomqueghdmxkynwxzqnsw\nrzhgsbaecplpccdyvnxmdmfhaoplqizkhiqbj\nrmirernekxdlicjfqkkvnxuqmszcixm\ngyetyyepfaesjlk\ndvadiwahoqakqzqgkmlhqfdimnwzgsplorownpgehio\ndjrxhrdyyddqnqdoayshwxshxzjywumbff\nowswqyxntndxqqsgkhvihbaawjugagloddktdjizynyoesuoz\nfuaaujxfrwkvuuhepdifvfkyhs\nmxdnxjqoy\njyeeltzaizniccozwknw\nyityjrifximkyrokktvusuiqiojf\nkwsqoiwyfalpeuuugfrteomqinuqni\nkmnqw\nkyatryekijksvusokcyeavwufpctajxkixdbxjmitwcqqxfbb\nksslykajataxgpdmyldxukdnftprrumbmemlrowr\nquoyevslqprlyskrhunljgsoxleuyyfqutozqh\nepkzhhvlxcbxdwjccgtdoqiscyspqzvuqivzptl\nadgkhufsuevjaxrnivco\nkbtwhpvgcwteylwkbyubxr\nkm\nnzcphkflpbqsvtdwludsga\nncipttncjtjhrtvkwwojbqhjjfkboa\nngfzoihbxifoprwcjzsdxngtacw\nluxedvywhcoghotpusfgiestckrpaigocfufbubiyrrf\nznvdgztqarsargkwuaheyvohl\nzmaccgwigmrqcteqkqwbaamicoblivnjjoomwku\nqfmzjqtlr\nrbnjpzcxecvjmwjqdjhgv\ntjqpopdjslkoelfynzeav\nervvudneghbctcbxdxezrzgbpfhzanffeccc\nevkgyoifvtvfuzczzmtvudkqgdrslhryxwwrroi\nwlyiqdchghrgytzdnobqcvdeqjystmepxcaniewqmoxkjwpym\nwszshxpmjrhfawdibzbfypdksbhtaapzs\nantnlpwzvahnvkplpfaotxngexrfczzdmuszlo\naceazuimydypvmgyxblhppuunkttkqtmvanuu\navknykpoxhxclqqedqavdwz\no\ndacnnpjfermrnyuqnwbjjpdjhd\nfcymdrzqzkpgemja\nfyyrdjadjegbsypjomfbrnkilzhsvbwczwtdfvirbosvm\nmwaeeimidf\njcukfjjzacbpnsoppvtleijpynyfvu\njvahmvvuvsvhzkywhmgchqvdcqdpmzmxwneikzfg\njyjofeywimqdackdawitxysjq\njypweuxvegybogsfxqhipbompufpxckicaghuf\nyjdohbvghmyuiggtyqjtmuqinntqmihntkddnalwnmsxsatqqe\nppxqiywjobspefujlxnmddurddiyobqfspvcoulcvdr\niokvkwkxlrxblvotzomeqlftxzlzkbcsqmnciazvrzyeupyv\n",
"ewhsqmgbbuq\nkwcibxubumenmeyatdrmydiajxloghiqfmz\nljjivswmdkqtbxixmvtrrbljptnsn\nlvihjo\np\npbtrwblnsad\npggkbbipzzrzucxamlu\nyjgfdxvtnunneslsplwuiupfxlzbknhkw\nqcacehchzvfrkmlnozjkpqpxrjxkitzyxacbhhkicqco\nbsaqxw\ngxxpklorellnmpapqfwkh\ngiooobppleqlwphapjnadqhdcnvw\njddntgeiqvdgaijvwcyaubwewpjvygehljxepbpiwu\nwzqf\ntq\ntxjbmyppphauxnspusgdhiixqmbfjxjcvudj\ncdxrjmowfrxsjybldbefsarcbynecdy\nxrdryxlmndqtukwagmleju\nzdzubdubzvafspqpqwu\nztqrsvbspkyhsenbppkqtpddbuotbbqcwivrfxju\nndtomfgdwdwfcgpxiqvkuytdlcgdewhtaciohor\nifwovyddwyvvburczm\nfykgruow\nvwcsgspqoqmsboaguwnnyqxnzlgdg\nvsuyoypayulyeimuotehzriicfs\nmcoqhnwnk\nmafadrrwsofsbcnuvqhf\nuyibyebmwsiqyoygyxymzevypzvjegebeoc\nuguumoqcdrubetokyxhoachwdvm\nuftsxdixtigsieehkchzdflilrjqfn\nbljopgtqvvhbgsdvivhesnkqx\nczybnvqqcqcjitlvcnvbmasidzgwraatzzwpwmfbfjkncvk\ncsfmoxeqmrjowrghwlkob\ntmrobdeyqcrgluaiihveixwjjrqopubjguxhxdipfzws\nffrkeecbpdipufhidjcxjhrnxcxmjcxohqanxd\njchpdnlunmppnlgjznkewwuysgefonexpmmsbaopmdgzqmkq\nybgfy\nxuvtqvnxbs\nwrq\ndtutpbztygnsrxajjngc\ndruypcnjulkfuzmxnafamespckjcazxdrtdgyrqs\ndrvmhlubbryktheye\ndvthsfqueeexgrujigskmvrzgfwvrftwa\npitcvograiddvhrrdsycqhkleewhxtembaqwqw\nqfrpjvoaxdpcwmjobmskskfojnewxgxnnofwltwjwnnvbwjckd\nqzkglzamzpdnsjolvybwxxttqognrbaiakqllszkhfzconnmoq\nqvjzharvrlyauuzdrcnjkphc\nqhsuebnvfgvjwdvjjafqzqxlcxdznczgjlapopkvxfgvicetcm\nrxxvrwctdsneogvbpkxlpgdirbf\nriqifpgynkrrefxsnvucftpwctgtwmxnupycfgcuqunublm\neouuzhyvhgvwujbqx\neahkgccnaehhsveymqpxhlrnunyfdzrhb\niitncklefszbexrampetvhqnddjeqvuygpnka\nsjeuygafoubutpnimuwfjqsjxvkqd\nlpeefsnsmouwqhodsgcfohesyshmgxwtoayuv\nlhh\nmgze\nmikjzsdwsszno\nh\nhlnmwp\ntxipqzeqvlqmuoubbjbrpmixfclbstnos\nicainhwilkqmbpeszd\nifktmoikss\nlyzedicwsodpwtqrpyuearhwgfnpaqel\nlohssvtqtkfvsyljzlucqxswyqdnt\nyjhovengbpyqrixqg\nywpnbitoraaibednezwfpda\nyavfauaosnlnvacsvpiumoiawcqxswkqwgxyazntnaik\neltkcapwpbqromqawixezqkvlfb\neazvmwnuufnnxvloyvgmliuqand\ngvlcsaqbdbgw\ngcqnqjdqwfqsrsyiqxjopgtx\ngznzxtzqsjwatycbmjawwmninep\nrrnmixx\nrmjpcocw\nm\nmeybnuqbcqaggxachrynqxqqmlfotpqhvokiiammqmvxjvb\nmfrtzlqsekejhzksklfepxchvczysvdgcxbbis\nfrsotqi\nfdpaxcwnwqjtb\noaifzyxnjcb\nqrnllu\nbpbegvsuluqtuuvkesvjtdhvtjmexfqbv\nbcvkzvgbofthgojhdn\nbjtnmkjgncpmvauqgtausokbfugjtfiuqbjc\nbseettwdnfnbyjvpdjxyuzqxstatbzpctthoofremgfk\nayl\nduplucltxmkpvgrrgtuseura\ndkujcpwsdqhxrkiueziowoqjpiecwx\ndrygxrxkf\nhhfrvqalwd\nhbad\nhfrqqwnu\nivdevdllygazxj\nimitdkxiksxjecwmkw\niuleafgaapahjwtesp\nbhslievqvwcqeqaztkydwrbgxdcjpalsh\npdbltqtmpyyeqtujuiok\nvooynyapgvswoaosaghrffnx\nxgnjwdxbuus\nxelpstosaodqszkogrfbxt\nwoqntclghlcr\nweqfmnmymtqreleinkopmfpvomqueghdmxkynwxzqnsw\nrzhgsbaecplpccdyvnxmdmfhaoplqizkhiqbj\nrmirernekxdlicjfqkkvnxuqmszcixm\ngyetyyepfaesjlk\ndvadiwahoqakqzqgkmlhqfdimnwzgsplorownpgehio\ndjrxhrdyyddqnqdoayshwxshxzjywumbff\nowswqyxntndxqqsgkhvihbaawjugagloddktdjizynyoesuoz\nfuaaujxfrwkvuuhepdifvfkyhs\nmxdnxjqoy\njyeeltzaizniccozwknw\nyityjrifximkyrokktvusuiqiojf\nkwsqoiwyfalpeuuugfrteomqinuqni\nkmnqw\nkyatryekijksvusokcyeavwufpctajxkixdbxjmitwcqqxfbb\nksslykajataxgpdmyldxukdnftprrumbmemlrowr\nquoyevslqprlyskrhunljgsoxleuyyfqutozqh\nepkzhhvlxcbxdwjccgtdoqiscyspqzvuqivzptl\nadgkhufsuevjaxrnivco\nkbtwhpvgcwteylwkbyubxr\nkm\nnzcphkflpbqsvtdwludsga\nncipttncjtjhrtvkwwojbqhjjfkboa\nngfzoihbxifoprwcjzsdxngtacw\nluxedvywhcoghotpusfgiestckrpaigocfufbubiyrrf\nznvdgztqarsargkwuaheyvohl\nzmaccgwigmrqcteqkqwbaamicoblivnjjoomwku\nqfmzjqtlr\nrbnjpzcxecvjmwjqdjhgv\ntjqpopdjslkoelfynzeav\nervvudneghbctcbxdxezrzgbpfhzanffeccc\nevkgyoifvtvfuzczzmtvudkqgdrslhryxwwrroi\nwlyiqdchghrgytzdnobqcvdeqjystmepxcaniewqmoxkjwpym\nwszshxpmjrhfawdibzbfypdksbhtaapzs\nantnlpwzvahnvkplpfaotxngexrfczzdmuszlo\naceazuimydypvmgyxblhppuunkttkqtmvanuu\navknykpoxhxclqqedqavdwz\no\ndacnnpjfermrnyuqnwbjjpdjhd\nfcymdrzqzkpgemja\nfyyrdjadjegbsypjomfbrnkilzhsvbwczwtdfvirbosvm\nmwaeeimidf\njcukfjjzacbpnsoppvtleijpynyfvu\njvahmvvuvsvhzkywhmgchqvdcqdpmzmxwneikzfg\njyjofeywimqdackdawitxysjq\njypweuxvegybogsfxqhipbompufpxckicaghuf\nyjdohbvghmyuiggtyqjtmuqinntqmihntkddnalwnmsxsatqqe\nppxqiywjobspefujlxnmddurddiyobqfspvcoulcvdr\niokvkwkxlrxblvotzomeqlftxzlzkbcsqmnciazvrzyeupyv\n",
"ewhsqmgbbuq\nkwcibxubumenmeyatdrmydiajxloghiqfmz\nljjivswmdkqtbxixmvtrrbljptnsn\nlvihjo\np\npbtrwblnsad\npggkbbipzzrzucxamlu\nyjgfdxvtnunneslsplwuiupfxlzbknhkw\nqcacehchzvfrkmlnozjkpqpxrjxkitzyxacbhhkicqco\nbsaqxw\ngxxpklorellnmpapqfwkh\ngiooobppleqlwphapjnadqhdcnvw\njddntgeiqvdgaijvwcyaubwewpjvygehljxepbpiwu\nwzqf\ntq\ntxjbmyppphauxnspusgdhiixqmbfjxjcvudj\ncdxrjmowfrxsjybldbefsarcbynecdy\nxrdryxlmndqtukwagmleju\nzdzubdubzvafspqpqwu\nztqrsvbspkyhsenbppkqtpddbuotbbqcwivrfxju\nndtomfgdwdwfcgpxiqvkuytdlcgdewhtaciohor\nifwovyddwyvvburczm\nfykgruow\nvwcsgspqoqmsboaguwnnyqxnzlgdg\nvsuyoypayulyeimuotehzriicfs\nmcoqhnwnk\nmafadrrwsofsbcnuvqhf\nuyibyebmwsiqyoygyxymzevypzvjegebeoc\nuguumoqcdrubetokyxhoachwdvm\nuftsxdixtigsieehkchzdflilrjqfn\nbljopgtqvvhbgsdvivhesnkqx\nczybnvqqcqcjitlvcnvbmasidzgwraatzzwpwmfbfjkncvk\ncsfmoxeqmrjowrghwlkob\ntmrobdeyqcrgluaiihveixwjjrqopubjguxhxdipfzws\nffrkeecbpdipufhidjcxjhrnxcxmjcxohqanxd\njchpdnlunmppnlgjznkewwuysgefonexpmmsbaopmdgzqmkq\nxuvtqvnxbs\nwrq\ndtutpbztygnsrxajjngc\ndruypcnjulkfuzmxnafamespckjcazxdrtdgyrqs\ndrvmhlubbryktheye\ndvthsfqueeexgrujigskmvrzgfwvrftwa\npitcvograiddvhrrdsycqhkleewhxtembaqwqw\nzbgfy\nqfrpjvoaxdpcwmjobmskskfojnewxgxnnofwltwjwnnvbwjckd\nqzkglzamzpdnsjolvybwxxttqognrbaiakqllszkhfzconnmoq\nqvjzharvrlyauuzdrcnjkphc\nqhsuebnvfgvjwdvjjafqzqxlcxdznczgjlapopkvxfgvicetcm\nrxxvrwctdsneogvbpkxlpgdirbf\nriqifpgynkrrefxsnvucftpwctgtwmxnupycfgcuqunublm\neouuzhyvhgvwujbqx\neahkgccnaehhsveymqpxhlrnunyfdzrhb\niitncklefszbexrampetvhqnddjeqvuygpnka\nsjeuygafoubutpnimuwfjqsjxvkqd\nlpeefsnsmouwqhodsgcfohesyshmgxwtoayuv\nlhh\nmgze\nmikjzsdwsszno\nh\nhlnmwp\ntxipqzeqvlqmuoubbjbrpmixfclbstnos\nicainhwilkqmbpeszd\nifktmoikss\nlyzedicwsodpwtqrpyuearhwgfnpaqel\nlohssvtqtkfvsyljzlucqxswyqdnt\nyjhovengbpyqrixqg\nywpnbitoraaibednezwfpda\nyavfauaosnlnvacsvpiumoiawcqxswkqwgxyazntnaik\neltkcapwpbqromqawixezqkvlfb\neazvmwnuufnnxvloyvgmliuqand\ngvlcsaqbdbgw\ngcqnqjdqwfqsrsyiqxjopgtx\ngznzxtzqsjwatycbmjawwmninep\nrrnmixx\nrmjpcocw\nm\nmeybnuqbcqaggxachrynqxqqmlfotpqhvokiiammqmvxjvb\nmfrtzlqsekejhzksklfepxchvczysvdgcxbbis\nfrsotqi\nfdpaxcwnwqjtb\noaifzyxnjcb\nqrnllu\nbpbegvsuluqtuuvkesvjtdhvtjmexfqbv\nbcvkzvgbofthgojhdn\nbjtnmkjgncpmvauqgtausokbfugjtfiuqbjc\nbseettwdnfnbyjvpdjxyuzqxstatbzpctthoofremgfk\nayl\nduplucltxmkpvgrrgtuseura\ndkujcpwsdqhxrkiueziowoqjpiecwx\ndrygxrxkf\nhhfrvqalwd\nhbad\nhfrqqwnu\nivdevdllygazxj\nimitdkxiksxjecwmkw\niuleafgaapahjwtesp\nbhslievqvwcqeqaztkydwrbgxdcjpalsh\npdbltqtmpyyeqtujuiok\nvooynyapgvswoaosaghrffnx\nxgnjwdxbuus\nxelpstosaodqszkogrfbxt\nwoqntclghlcr\nweqfmnmymtqreleinkopmfpvomqueghdmxkynwxzqnsw\nrzhgsbaecplpccdyvnxmdmfhaoplqizkhiqbj\nrmirernekxdlicjfqkkvnxuqmszcixm\ngyetyyepfaesjlk\ndvadiwahoqakqzqgkmlhqfdimnwzgsplorownpgehio\ndjrxhrdyyddqnqdoayshwxshxzjywumbff\nowswqyxntndxqqsgkhvihbaawjugagloddktdjizynyoesuoz\nfuaaujxfrwkvuuhepdifvfkyhs\nmxdnxjqoy\njyeeltzaizniccozwknw\nyityjrifximkyrokktvusuiqiojf\nkwsqoiwyfalpeuuugfrteomqinuqni\nkmnqw\nkyatryekijksvusokcyeavwufpctajxkixdbxjmitwcqqxfbb\nksslykajataxgpdmyldxukdnftprrumbmemlrowr\nquoyevslqprlyskrhunljgsoxleuyyfqutozqh\nepkzhhvlxcbxdwjccgtdoqiscyspqzvuqivzptl\nadgkhufsuevjaxrnivco\nkbtwhpvgcwteylwkbyubxr\nkm\nnzcphkflpbqsvtdwludsga\nncipttncjtjhrtvkwwojbqhjjfkboa\nngfzoihbxifoprwcjzsdxngtacw\nluxedvywhcoghotpusfgiestckrpaigocfufbubiyrrf\nznvdgztqarsargkwuaheyvohl\nzmaccgwigmrqcteqkqwbaamicoblivnjjoomwku\nqfmzjqtlr\nrbnjpzcxecvjmwjqdjhgv\ntjqpopdjslkoelfynzeav\nervvudneghbctcbxdxezrzgbpfhzanffeccc\nevkgyoifvtvfuzczzmtvudkqgdrslhryxwwrroi\nwlyiqdchghrgytzdnobqcvdeqjystmepxcaniewqmoxkjwpym\nwszshxpmjrhfawdibzbfypdksbhtaapzs\nantnlpwzvahnvkplpfaotxngexrfczzdmuszlo\naceazuimydypvmgyxblhppuunkttkqtmvanuu\navknykpoxhxclqqedqavdwz\no\ndacnnpjfermrnyuqnwbjjpdjhd\nfcymdrzqzkpgemja\nfyyrdjadjegbsypjomfbrnkilzhsvbwczwtdfvirbosvm\nmwaeeimidf\njcukfjjzacbpnsoppvtleijpynyfvu\njvahmvvuvsvhzkywhmgchqvdcqdpmzmxwneikzfg\njyjofeywimqdackdawitxysjq\njypweuxvegybogsfxqhipbompufpxckicaghuf\nyjdohbvghmyuiggtyqjtmuqinntqmihntkddnalwnmsxsatqqe\nppxqiywjobspefujlxnmddurddiyobqfspvcoulcvdr\niokvkwkxlrxblvotzomeqlftxzlzkbcsqmnciazvrzyeupyv\n",
"ewhsqmgbbuq\nkwcibxubumenmeyatdrmydiajxloghiqfmz\nljjivswmdkqtbxixmvtrrbljptnsn\nlvihjo\np\npbtrwblnsad\npggkbbipzzrzucxamlu\nyjgfdxvtnunneslsplwuiupfxlzbknhkw\nqcacehchzvfrkmlnozjkpqpxrjxkitzyxacbhhkicqco\nbsaqxw\ngxxpklorellnmpapqfwkh\ngiooobppleqlwphapjnadqhdcnvw\njddntgeiqvdgaijvwcyaubwewpjvygehljxepbpiwu\nwzqf\ntq\ntxjbmyppphauxnspusgdhiixqmbfjxjcvudj\ncdxrjmowfrxsjybldbefsarcbynecdy\nxrdryxlmndqtukwagmleju\nzdzubdubzvafspqpqwu\nztqrsvbspkyhsenbppkqtpddbuotbbqcwivrfxju\nndtomfgdwdwfcgpxiqvkuytdlcgdewhtaciohor\nifwovyddwyvvburczm\nfykgruow\nvwcsgspqoqmsboaguwnnyqxnzlgdg\nvsuyoypayulyeimuotehzriicfs\nmcoqhnwnk\nmafadrrwsofsbcnuvqhf\nuyibyebmwsiqyoygyxymzevypzvjegebeoc\nuguumoqcdrubetokyxhoachwdvm\nuftsxdixtigsieehkchzdflilrjqfn\nbljopgtqvvhbgsdvivhesnkqx\nczybnvqqcqcjitlvcnvbmasidzgwraatzzwpwmfbfjkncvk\ncsfmoxeqmrjowrghwlkob\ntmrobdeyqcrgluaiihveixwjjrqopubjguxhxcipfzws\nffrkeecbpdipufhidjcxjhrnxcxmjcxohqanxd\njchpdnlunmppnlgjznkewwuysgefonexpmmsbaopmdgzqmkq\nxuvtqvnxbs\nwrq\ndtutpbztygnsrxajjngc\ndruypcnjulkfuzmxnafamespckjcazxdrtdgyrqs\ndrvmhlubbryktheye\ndvthsfqueeexgrujigskmvrzgfwvrftwa\npitcvograiddvhrrdsycqhkleewhxtembaqwqw\nzbgfy\nqfrpjvoaxdpcwmjobmskskfojnewxgxnnofwltwjwnnvbwjckd\nqzkglzamzpdnsjolvybwxxttqognrbaiakqllszkhfzconnmoq\nqvjzharvrlyauuzdrcnjkphc\nqhsuebnvfgvjwdvjjafqzqxlcxdznczgjlapopkvxfgvicetcm\nrxxvrwctdsneogvbpkxlpgdirbf\nriqifpgynkrrefxsnvucftpwctgtwmxnupycfgcuqunublm\neouuzhyvhgvwujbqx\neahkgccnaehhsveymqpxhlrnunyfdzrhb\niitncklefszbexrampetvhqnddjeqvuygpnka\nsjeuygafoubutpnimuwfjqsjxvkqd\nlpeefsnsmouwqhodsgcfohesyshmgxwtoayuv\nlhh\nmgze\nmikjzsdwsszno\nh\nhlnmwp\ntxipqzeqvlqmuoubbjbrpmixfclbstnos\nicainhwilkqmbpeszd\nifktmoikss\nlyzedicwsodpwtqrpyuearhwgfnpaqel\nlohssvtqtkfvsyljzlucqxswyqdnt\nyjhovengbpyqrixqg\nywpnbitoraaibednezwfpda\nyavfauaosnlnvacsvpiumoiawcqxswkqwgxyazntnaik\neltkcapwpbqromqawixezqkvlfb\neazvmwnuufnnxvloyvgmliuqand\ngvlcsaqbdbgw\ngcqnqjdqwfqsrsyiqxjopgtx\ngznzxtzqsjwatycbmjawwmninep\nrrnmixx\nrmjpcocw\nm\nmeybnuqbcqaggxachrynqxqqmlfotpqhvokiiammqmvxjvb\nmfrtzlqsekejhzksklfepxchvczysvdgcxbbis\nfrsotqi\nfdpaxcwnwqjtb\noaifzyxnjcb\nqrnllu\nbpbegvsuluqtuuvkesvjtdhvtjmexfqbv\nbcvkzvgbofthgojhdn\nbjtnmkjgncpmvauqgtausokbfugjtfiuqbjc\nbseettwdnfnbyjvpdjxyuzqxstatbzpctthoofremgfk\nayl\nduplucltxmkpvgrrgtuseura\ndkujcpwsdqhxrkiueziowoqjpiecwx\ndrygxrxkf\nhhfrvqalwd\nhbad\nhfrqqwnu\nivdevdllygazxj\nimitdkxiksxjecwmkw\niuleafgaapahjwtesp\nbhslievqvwcqeqaztkydwrbgxdcjpalsh\npdbltqtmpyyeqtujuiok\nvooynyapgvswoaosaghrffnx\nxgnjwdxbuus\nxelpstosaodqszkogrfbxt\nwoqntclghlcr\nweqfmnmymtqreleinkopmfpvomqueghdmxkynwxzqnsw\nrzhgsbaecplpccdyvnxmdmfhaoplqizkhiqbj\nrmirernekxdlicjfqkkvnxuqmszcixm\ngyetyyepfaesjlk\ndvadiwahoqakqzqgkmlhqfdimnwzgsplorownpgehio\ndjrxhrdyyddqnqdoayshwxshxzjywumbff\nowswqyxntndxqqsgkhvihbaawjugagloddktdjizynyoesuoz\nfuaaujxfrwkvuuhepdifvfkyhs\nmxdnxjqoy\njyeeltzaizniccozwknw\nyityjrifximkyrokktvusuiqiojf\nkwsqoiwyfalpeuuugfrteomqinuqni\nkmnqw\nkyatryekijksvusokcyeavwufpctajxkixdbxjmitwcqqxfbb\nksslykajataxgpdmyldxukdnftprrumbmemlrowr\nquoyevslqprlyskrhunljgsoxleuyyfqutozqh\nepkzhhvlxcbxdwjccgtdoqiscyspqzvuqivzptl\nadgkhufsuevjaxrnivco\nkbtwhpvgcwteylwkbyubxr\nkm\nnzcphkflpbqsvtdwludsga\nncipttncjtjhrtvkwwojbqhjjfkboa\nngfzoihbxifoprwcjzsdxngtacw\nluxedvywhcoghotpusfgiestckrpaigocfufbubiyrrf\nznvdgztqarsargkwuaheyvohl\nzmaccgwigmrqcteqkqwbaamicoblivnjjoomwku\nqfmzjqtlr\nrbnjpzcxecvjmwjqdjhgv\ntjqpopdjslkoelfynzeav\nervvudneghbctcbxdxezrzgbpfhzanffeccc\nevkgyoifvtvfuzczzmtvudkqgdrslhryxwwrroi\nwlyiqdchghrgytzdnobqcvdeqjystmepxcaniewqmoxkjwpym\nwszshxpmjrhfawdibzbfypdksbhtaapzs\nantnlpwzvahnvkplpfaotxngexrfczzdmuszlo\naceazuimydypvmgyxblhppuunkttkqtmvanuu\navknykpoxhxclqqedqavdwz\no\ndacnnpjfermrnyuqnwbjjpdjhd\nfcymdrzqzkpgemja\nfyyrdjadjegbsypjomfbrnkilzhsvbwczwtdfvirbosvm\nmwaeeimidf\njcukfjjzacbpnsoppvtleijpynyfvu\njvahmvvuvsvhzkywhmgchqvdcqdpmzmxwneikzfg\njyjofeywimqdackdawitxysjq\njypweuxvegybogsfxqhipbompufpxckicaghuf\nyjdohbvghmyuiggtyqjtmuqinntqmihntkddnalwnmsxsatqqe\nppxqiywjobspefujlxnmddurddiyobqfspvcoulcvdr\niokvkwkxlrxblvotzomeqlftxzlzkbcsqmnciazvrzyeupyv\n",
"ewhsqmgbbuq\nkwcibxubumenmeyatdrmydiajxloghiqfmz\nljjivswmdkqtbxixmvtrrbljptnsn\nlvihjo\np\npbtrwblnsad\npggkbbipzzrzucxamlu\nyjgfdxvtnunneslsplwuiupfxlzbknhkw\nqcacehchzvfrkmlnozjkpqpxrjxkitzyxacbhhkicqco\nbsaqxw\ngxxpklorellnmpapqfwkh\ngiooobppleqlwphapjnadqhdcnvw\njddntgeiqvdgaijvwcyaubwewpjvygehljxepbpiwu\nwzqf\ntq\ntxjbmyppphauxnspusgdhiixqmbfjxjcvudj\ncdxrjmowfrxsjybldbefsarcbynecdy\nxrdryxlmndqtukwagmleju\nzdzubdubzvafspqpqwu\nztqrsvbspkyhsenbppkqtpddbuotbbqcwivrfxju\nndtomfgdwdwfcgpxiqvkuytdlcgdewhtaciohor\nifwovyddwyvvburczm\nfykgruow\nvwcsgspqoqmsboaguwnnyqxnzlgdg\nvsuyoypayulyeimuotehzriicfs\nmcoqhnwnk\nmafadrrwsofsbcnuvqhf\nuyibyebmwsiqyoygyxymzevypzvjegebeoc\nuguumoqcdrubetokyxhoachwdvm\nuftsxdixtigsieehkchzdflilrjqfn\nbljopgtqvvhbgsdvivhesnkqx\nczybnvqqcqcjitlvcnvbmasidzgwraatzzwpwmfbfjkncvk\ncsfmoxeqmrjowrghwlkob\ntmrobdeyqcrgluaiihveixwjjrqopubjguxhxcipfzws\nffrkeecbpdipufhidjcxjhrnxcxmjcxohqanxd\njchpdnlunmppnlgjznkewwuysgefonexpmmsbaopmdgzqmkq\nxuvtqvnxbs\nwrq\ndtutpbztygnsrxajjngc\ndruypcnjulkfuzmxnafamespckjcazxdrtdgyrqs\ndrvmhlubbryktheye\ndvthsfqueeexgrujigskmvrzgfwvrftwa\npitcvograiddvhrrdsycqhkleewhxtembaqwqw\nzbgfy\nqfrpjvoaxdpcwmjobmskskfojnewxgxnnofwltwjwnnvbwjckd\nqzkglzamzpdnsjolvybwxxttqognrbaiakqllszkhfzconnmoq\nqvjzharvrlyauuzdrcnjkphc\nqhsuebnvfgvjwdvjjafqzqxlcxdznczgjlapopkvxfgvicetcm\nrxxvrwctdsneogvbpkxlpgdirbf\nriqifpgynkrrefxsnvucftpwctgtwmxnupycfgcuqunublm\neouuzhyvhgvwujbqx\neahkgccnaehhsveymqpxhlrnunyfdzrhb\niitncklefszbexrampetvhqnddjeqvuygpnka\nsjeuygafoubutpnimuwfjqsjxvkqd\nlpeefsnsmouwqhodsgcfohesyshmgxwtoayuv\nlhh\nmgze\nmikjzsdwsszno\nh\nhlnmwp\ntxipqzeqvlqmuoubbjbrpmixfclbstnos\nicainhwilkqmbpeszd\nifktmoikss\nlyzedicwsodpwtqrpyuearhwgfnpaqel\nlohssvtqtkfvsyljzlucqxswyqdnt\nyjhovengbpyqrixqg\nywpnbitoraaibednezwfpda\nyavfauaosnlnvacsvpiumoiawcqxswkqwgxyazntnaik\neltkcapwpbqromqawixezqkvlfb\neazvmwnuufnnxvloyvgmliuqand\ngvlcsaqbdbgw\ngcqnqjdqwfqsrsyiqxjopgtx\ngznzxtzqsjwatycbmjawwmninep\nrrnmixx\nrmjpcocw\nm\nmeybnuqbcqaggxachrynqxqqmlfotpqhvokiiammqmvxjvb\nmfrtzlqsekejhzksklfepxchvczysvdgcxbbis\nfrsotqi\nfdpaxcwnwqjtb\noaifzyxnjcb\nqrnllu\nbpbegvsuluqtuuvkesvjtdhvtjmexfqbv\nbcvkzvgbofthgojhdn\nbjtnmkjgncpmvauqgtausokbfugjtfiuqbjc\nbseettwdnfnbyjvpdjxyuzqxstatbzpctthoofremgfk\nayl\nduplucltxmkpvgrrgtuseura\ndkujcpwsdqhxrkiueziowoqjpiecwx\ndrygxrxkf\nhhfrvqalwd\nhbad\nhfrqqwnu\nivdevdllygazxj\nimitdkxiksxjecwmkw\niuleafgaapahjwtesp\nbhslievqvwcqeqaztkydwrbgxdcjpalsh\npdbltqtmpyyeqtujuiok\nvooynyapgvswoaosaghrffnx\nxgnjwdxbuus\nxelpstosaodqszkogrfbxt\nwoqntclghlcr\nweqfmnmymtqreleinkopmfpvomqueghdmxkynwxzqnsw\nrzhgsbaecplpccdyvnxmdmfhaoplqizkhiqbj\nrmirernekxdlicjfqkkvnxuqmszcixm\ngyetyyepfaesjlk\ndvadiwahoqakqzqgkmlhqfdimnwzgsplorownpgehio\ndjrxhrdyyddqnqdoayshwxshxzjywumbff\nowswqyxntndxqqsgkhvihbaawjugagloddktdjizynyoesuoz\nfuaaujxfrwkvuuhepdifvfkyhs\nmxdnxjqoy\njyeeltzaizniccozwknw\nyityjrifximkyrokktvusuiqioif\nkwsqoiwyfalpeuuugfrteomqinuqni\nkmnqw\nkyatryekijksvusokcyeavwufpctajxkixdbxjmitwcqqxfbb\nksslykajataxgpdmyldxukdnftprrumbmemlrowr\nquoyevslqprlyskrhunljgsoxleuyyfqutozqh\nepkzhhvlxcbxdwjccgtdoqiscyspqzvuqivzptl\nadgkhufsuevjaxrnivco\nkbtwhpvgcwteylwkbyubxr\nkm\nnzcphkflpbqsvtdwludsga\nncipttncjtjhrtvkwwojbqhjjfkboa\nngfzoihbxifoprwcjzsdxngtacw\nluxedvywhcoghotpusfgiestckrpaigocfufbubiyrrf\nznvdgztqarsargkwuaheyvohl\nzmaccgwigmrqcteqkqwbaamicoblivnjjoomwku\nqfmzjqtlr\nrbnjpzcxecvjmwjqdjhgv\ntjqpopdjslkoelfynzeav\nervvudneghbctcbxdxezrzgbpfhzanffeccc\nevkgyoifvtvfuzczzmtvudkqgdrslhryxwwrroi\nwlyiqdchghrgytzdnobqcvdeqjystmepxcaniewqmoxkjwpym\nwszshxpmjrhfawdibzbfypdksbhtaapzs\nantnlpwzvahnvkplpfaotxngexrfczzdmuszlo\naceazuimydypvmgyxblhppuunkttkqtmvanuu\navknykpoxhxclqqedqavdwz\no\ndacnnpjfermrnyuqnwbjjpdjhd\nfcymdrzqzkpgemja\nfyyrdjadjegbsypjomfbrnkilzhsvbwczwtdfvirbosvm\nmwaeeimidf\njcukfjjzacbpnsoppvtleijpynyfvu\njvahmvvuvsvhzkywhmgchqvdcqdpmzmxwneikzfg\njyjofeywimqdackdawitxysjq\njypweuxvegybogsfxqhipbompufpxckicaghuf\nyjdohbvghmyuiggtyqjtmuqinntqmihntkddnalwnmsxsatqqe\nppxqiywjobspefujlxnmddurddiyobqfspvcoulcvdr\niokvkwkxlrxblvotzomeqlftxzlzkbcsqmnciazvrzyeupyv\n"
] |
CodeContests
|
Coding in Sprout (a programming language) is very intuitive. Chef is giving his minions a demonstration in Sprout and wants you to
help him determine if they are not too difficult for them.
A program in Sprout is written using three kinds of instructions.
Load Instruction: Load a value into buffer.
Increment Instruction: Increment the value in buffer.
Print Instruction: Print the value from buffer.
The buffer stores a single integer between 0 and 25, both inclusive. If the value in the buffer is x, the increment instruction
makes the value (x+1), if x < 25. At x = 25 the increment instruction makes the value 0.
Load Instruction can be used to load any value between 0 and 25 (inclusive) into the buffer.
Print from the buffer prints a lowercase English character based on the value in the buffer. Precisely, it prints the (x+1)th character
in the alphabet. Thus, for x = 0, 'a' is printed; x = 1, 'b' is printed and so on. For x = 25, 'z' is printed.
To keep his programs clear, he uses the load instruction only once in the beginning (before printing any character). Then
he proceeds instruction after instruction. A program is simple, if the number of instructions is not more than ELEVEN times the length
of the word that it prints.
Given the word Chef wants his program to print and assuming he will write the shortest code (i.e. use the fewest instructions)
to print it, will the program be simple?
Input
The first Line contains a single number T, the number of test cases.
Each test case contains 1 word on a line by itself - the word that would be printed by Chef's program.
Output
Assuming Chef writes the shortest code (with minimum instructions) to print the given word, output "YES" if this code is not more than
ELEVEN times the length of the word being printed; "NO" otherwise
Constraints
1 ≤ T ≤ 100
1 ≤ length of word ≤ 1000
Sample Input
2
helloworld
mississippi
Sample Output
NO
YES
Explanation
The optimal program length for mississippi is 112 instructions and that is smaller than 121 (length of 'mississippi' * 11)
|
stdin
| null | 1,389
| 1
|
[
"2\nhelloworld\nmississippi\n"
] |
[
"NO\nYES\n"
] |
[
"2\ndlrowolleh\nmississippi\n",
"2\nielmoworld\nmississippi\n",
"2\nielomworld\nmisrissippi\n",
"2\njeopmujlrd\nhqhspsrhlpj\n",
"2\ndlrowomleh\nmississippi\n",
"2\ndlrowomleh\nippississim\n",
"2\ndlrowomlei\nmississippi\n",
"2\nielomworld\nmississippi\n",
"2\nielomworld\nmisrisshppi\n",
"2\nielomworld\nipphssirsim\n"
] |
[
"NO\nYES\n",
"YES\nYES\n",
"NO\nNO\n",
"YES\nNO\n",
"NO\nYES\n",
"NO\nYES\n",
"NO\nYES\n",
"NO\nYES\n",
"NO\nNO\n",
"NO\nYES\n"
] |
CodeContests
|
C: Acrophobia
Yayoi Takasugi is a super-selling idol. There is one thing she is not good at. It's a high place ... She is extremely afraid of heights. This time, due to the producer's inadequacy, she decided to take on the following challenges on a variety show.
This location will be held in a room in a ninja mansion. The floor of this room is lined with square tiles, and some tiles have fallen out to form holes. If you fall through this hole, you will find yourself in a pond a few meters below. Yayoi's challenge is to start from the designated place in this room, collect all the scrolls placed in the room, and bring them to the goal point.
Yayoi can move in the room according to the following rules.
* When moving from one tile to the next, you can only move to the top, bottom, left, and right tiles.
* If it is not close to the hole, it will take 1 second to move to the next tile.
* If you get close to the hole, Yayoi will be scared and it will take time to move as shown in Fig. C-1. For example, it takes 3 seconds to move from [2] [2] to [1] [2] as shown by the arrow in the figure.
* If there are multiple holes nearby, you will be afraid of the nearest hole.
* The time it takes to take a scroll can be assumed to be 0.
<image>
---
Figure C-1: Travel time near the hole
Yayoi wants to finish this challenge as soon as possible. Your job is to help Yayoi write a program that asks for the shortest time to complete this challenge.
Input
The floor information of the ninja mansion is given.
First, W and H, which represent the size of the room, are entered on the first line, separated by spaces (2 <= W, H <= 100). A W character string is input to each of the following H lines. There are the following types of characters that represent floor information.
*'.': Walkable floor
* '#' : hole
*'S': Where Yayoi stands at the start
*'G': Yayoi's place to reach
*'M': Where the scroll is located
'S',' G'and'M' are walking floors. There is exactly one'S'and one'G'in the room, respectively. You may pass the goal without all the scrolls. There are a minimum of 1'M'and a maximum of 5'M'in the room.
Output
Collect all the scrolls and output the shortest time to reach the goal from the start on one line. You can always assume that the input data has such a route.
Output a line break at the end of the line.
Sample Input 1
3 4
S.M
...
...
M.G
Sample Output 1
9
Sample Input 2
4 4
S..M
....
... #
..G
Sample Output 2
18
Sample Input 3
11 7
M ......... M
...........
... #. S. # ...
...........
... #. G. # ...
...........
M ......... M
Sample Output 3
62
Example
Input
3 4
S.M
...
...
M.G
Output
9
|
stdin
| null | 3,891
| 1
|
[
"3 4\nS.M\n...\n...\nM.G\n"
] |
[
"9\n"
] |
[
"3 4\nM.S\n...\n...\nM.G\n",
"3 4\nM.S\n...\n...\nG.M\n",
"3 4\nS.N\n...\n...\nM.G\n",
"3 4\nM.S\n...\n...\nMG.\n",
"3 4\nL.S\n...\n...\nN.G\n",
"3 4\nL.S\n...\n...\nNG.\n",
"3 4\nM.S\n...\n...\n.GM\n",
"3 4\n.MS\n...\n...\nM.G\n",
"3 4\n.MS\n...\n...\nG.M\n",
"3 4\n.MS\n...\n..-\nM.G\n"
] |
[
"7\n",
"9\n",
"5\n",
"6\n",
"3\n",
"4\n",
"8\n",
"7\n",
"7\n",
"7\n"
] |
CodeContests
|
In 4272 A.D., Master of Programming Literature, Dr. Isaac Cornell Panther-Carol, who has miraculously survived through the three World Computer Virus Wars and reached 90 years old this year, won a Nobel Prize for Literature. Media reported every detail of his life. However, there was one thing they could not report -- that is, an essay written by him when he was an elementary school boy. Although he had a copy and was happy to let them see it, the biggest problem was that his copy of the essay was infected by a computer virus several times during the World Computer Virus War III and therefore the computer virus could have altered the text.
Further investigation showed that his copy was altered indeed. Why could we know that? More than 80 years ago his classmates transferred the original essay to their brain before infection. With the advent of Solid State Brain, one can now retain a text perfectly over centuries once it is transferred to his or her brain. No one could remember the entire text due to the limited capacity, but we managed to retrieve a part of the text from the brain of one of his classmates; sadly, it did not match perfectly to the copy at hand. It would not have happened without virus infection.
At the moment, what we know about the computer virus is that each time the virus infects an essay it does one of the following:
1. the virus inserts one random character to a random position in the text. (e.g., "ABCD" -> "ABCZD")
2. the virus picks up one character in the text randomly, and then changes it into another character. (e.g., "ABCD" -> "ABXD")
3. the virus picks up one character in the text randomly, and then removes it from the text. (e.g., "ABCD" -> "ACD")
You also know the maximum number of times the computer virus infected the copy, because you could deduce it from the amount of the intrusion log. Fortunately, most of his classmates seemed to remember at least one part of the essay (we call it a piece hereafter). Considering all evidences together, the original essay might be reconstructed. You, as a journalist and computer scientist, would like to reconstruct the original essay by writing a computer program to calculate the possible original text(s) that fits to the given pieces and the altered copy at hand.
Input
The input consists of multiple datasets. The number of datasets is no more than 100. Each dataset is formatted as follows:
> d n
> the altered text
> piece1
> piece2
> ...
> piecen
>
The first line of a dataset contains two positive integers d (d ≤ 2) and n (n ≤ 30), where d is the maximum number of times the virus infected the copy and n is the number of pieces.
The second line is the text of the altered copy at hand. We call it the altered text hereafter. The length of the altered text is less than or equal to 40 characters.
The following n lines are pieces, each of which is a part of the original essay remembered by one of his classmates. Each piece has at least 13 characters but no more than 20 characters. All pieces are of the same length. Characters in the altered text and pieces are uppercase letters (`A' to `Z') and a period (`.'). Since the language he used does not leave a space between words, no spaces appear in the text.
A line containing two zeros terminates the input.
His classmates were so many that you can assume that any character that appears in the original essay is covered by at least one piece. A piece might cover the original essay more than once; the original essay may contain repetitions. Please note that some pieces may not appear in the original essay because some of his classmates might have mistaken to provide irrelevant pieces.
Output
Below we explain what you should output for each dataset. Suppose if there are c possibilities for the original essay that fit to the given pieces and the given altered text. First, print a line containing c. If c is less than or equal to 5, then print in lexicographical order c lines, each of which contains an individual possibility. Note that, in lexicographical order, '.' comes before any other characters. You can assume that c is always non-zero. The output should not include any characters other than those mentioned above.
Sample Input
1 4
AABBCCDDEEFFGGHHIJJKKLLMMNNOOPP
AABBCCDDEEFFGG
CCDDEEFFGGHHII
FFGGHHIIJJKKLL
JJKKLLMMNNOOPP
2 3
ABRACADABRA.ABBRACADABRA.
ABRACADABRA.A
.ABRACADABRA.
BRA.ABRACADAB
2 2
AAAAAAAAAAAAAAAA
AAAAAAAAAAAAA
AAAAAAAAAAAAA
2 3
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXAXXXXXX
XXXXXXBXXXXXX
XXXXXXXXXXXXX
0 0
Output for the Sample Input
1
AABBCCDDEEFFGGHHIIJJKKLLMMNNOOPP
5
.ABRACADABRA.ABRACADABRA.
ABRACADABRA.A.ABRACADABRA.
ABRACADABRA.AABRACADABRA.A
ABRACADABRA.ABRACADABRA.
ABRACADABRA.ABRACADABRA.A
5
AAAAAAAAAAAAAA
AAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAA
257
Example
Input
1 4
AABBCCDDEEFFGGHHIJJKKLLMMNNOOPP
AABBCCDDEEFFGG
CCDDEEFFGGHHII
FFGGHHIIJJKKLL
JJKKLLMMNNOOPP
2 3
ABRACADABRA.ABBRACADABRA.
ABRACADABRA.A
.ABRACADABRA.
BRA.ABRACADAB
2 2
AAAAAAAAAAAAAAAA
AAAAAAAAAAAAA
AAAAAAAAAAAAA
2 3
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXAXXXXXX
XXXXXXBXXXXXX
XXXXXXXXXXXXX
0 0
Output
1
AABBCCDDEEFFGGHHIIJJKKLLMMNNOOPP
5
.ABRACADABRA.ABRACADABRA.
ABRACADABRA.A.ABRACADABRA.
ABRACADABRA.AABRACADABRA.A
ABRACADABRA.ABRACADABRA.
ABRACADABRA.ABRACADABRA.A
5
AAAAAAAAAAAAAA
AAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAA
257
|
stdin
| null | 3,725
| 1
|
[
"1 4\nAABBCCDDEEFFGGHHIJJKKLLMMNNOOPP\nAABBCCDDEEFFGG\nCCDDEEFFGGHHII\nFFGGHHIIJJKKLL\nJJKKLLMMNNOOPP\n2 3\nABRACADABRA.ABBRACADABRA.\nABRACADABRA.A\n.ABRACADABRA.\nBRA.ABRACADAB\n2 2\nAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAA\nAAAAAAAAAAAAA\n2 3\nXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\nXXXXXXAXXXXXX\nXXXXXXBXXXXXX\nXXXXXXXXXXXXX\n0 0\n"
] |
[
"1\nAABBCCDDEEFFGGHHIIJJKKLLMMNNOOPP\n5\n.ABRACADABRA.ABRACADABRA.\nABRACADABRA.A.ABRACADABRA.\nABRACADABRA.AABRACADABRA.A\nABRACADABRA.ABRACADABRA.\nABRACADABRA.ABRACADABRA.A\n5\nAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAA\n257\n"
] |
[
"1 4\nAABBCCDDEEFFGGHHIJJKKLLMMNNOOPP\nAABBCCDDEEFFGG\nCCDDEEFFGGHHII\nFFGGHHIIJJKKLL\nJJKKLLMMNNOOPP\n2 3\nABRACADABRA.ABBRACADABRA.\nABRACADABRA.A\n.ABRADADABRA.\nBRA.ABRACADAB\n2 2\nAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAA\nAAAAAAAAAAAAA\n2 3\nXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\nXXXXXXAXXXXXX\nXXXXXXBXXXXXX\nXXXXXXXXXXXXX\n0 0\n",
"1 4\nAABBCCDDEEFFGGHHIJJKKLLMMNNOOPP\nAABBCCDDEEFFGG\nCCDDEEFFGGHHII\nFFGGHHIIJJKKLL\nJJKKLLMMNNOOPP\n2 3\nABRACADABRA.ABBRACADABRA.\nABRACADABRA.A\n.ABRACADABRA.\nBRA.ABRACADAB\n2 2\nAAAAAAAAAAAAAAA@\nAAAAAAAAAAAAA\nAAAAAAAAAAAAA\n2 3\nXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\nXXXXXXAXXXXXX\nXXXXXXBXXXXXX\nXXXXXXXXXXXXX\n0 0\n",
"1 4\nAABBCCDDEEFFGGHHIJJKKLLMMNNOOPP\nAABBCCDDEEFFGG\nCCDDEEFFGGHHII\nFFGGHHIIJJKKLL\nJJLKLKMMNNOOPP\n2 3\nABRACADABRA.ABBRACADABRA.\nABRACADABRA.A\n.ABRADADABRA.\nBRA.ABRACADAB\n2 2\nAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAA\nAAAAAAAAAAAAA\n2 3\nXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\nXXXXXXAXXXXXX\nXXXXXXBXXXXXX\nXXXXXXXXXXXXX\n0 0\n",
"1 4\nAABBCCDDEEFFGGHHIJJKKLLMMNNOOPP\nAABBCCDDEEFFGG\nCCDDEEFFGGHHII\nFFGGHHIIJJKKLL\nJJKKLLMMNNOOPP\n2 3\nABRACADABRA.ABBRACADABRA.\nABRACADABRA.A\n.ABRACADABRA.\nBRA.ABRACADAB\n2 2\nAAAAAAAAAAAAAAA@\nAAAAAAAAAAAAA\nAAAAAAAAAAAAA\n2 3\nXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\nXXXXXXBXXXXXX\nXXXXXXBXXXXXX\nXXXXXXXXXXXXX\n0 0\n",
"1 4\nAABBCCDDEEFFGGHHIJJKKLLMMNNOOPP\nAABBCCDDEEFFGG\nCCDDEEFFGGHHII\nFFGGHHIIJJKKLL\nJJKKLLMMNNOOPP\n2 3\nABRACADABRA.ABBRACADABRA.\nABRACADABRA.A\n.ABRACADABRA.\nBRA.ABRACADAB\n2 2\nAAAAAAAAAAAAAAB@\nAAAAAAAAAAAAA\nAAAAAAAAAAAAA\n2 3\nXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\nXXXXXXBXXXXXX\nXXXXXXBXXXXXX\nXXXXXXXXXXXXX\n0 0\n",
"1 4\nAABBCCDDEEFFGGHHIJJKKLLMMNNOOPP\nAABBCCDDEEFFGG\nCCDDEEFFGGHHII\nFFGGHHIIJJKKLL\nJJKKLLMMNNOOPP\n2 3\nABRACADABRA.ABBRACADABRA.\nABRACADABRA.A\n.ABRACADABSA.\nBADACARBA.ARB\n2 2\nAAAAAAAAAAAAAAB@\nAAAAAAAAAAAAA\nAAAAAAAAAAAAA\n2 3\nXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\nXXXXXXBXXXXXX\nXXXXXXBXXXXXX\nXXXXXXXXXXXXX\n0 0\n",
"1 4\nAABBCCDDEEFFGGHHIJJKKLLMMNNOOPP\nAABBCCDDEEFFGG\nCCDDEEFFGGHHII\nFFGGHHIIJJKKLL\nJJKKLLMMNNOOPP\n2 3\nABRACADABRA.ABBRACADABRA.\nABRACADABRA.A\n.ABRADADABRA.\nBRA.ABRACADAB\n2 2\nAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAA\nAAAAAAAABAAAA\n2 3\nXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\nXXXXXXAXXXXXX\nXXXXXXBXXXXXX\nXXXXXXXXXXXXX\n0 0\n",
"1 4\nAABBCCDDEEFFGGHHIJJKKLLMMNNOOPP\nAAFBCCDDEEFBGG\nCCDDEEFFGGHHII\nFFGGHHIIJJKKLL\nJJKKLLMMNNOOPP\n2 3\nABRACADABRA.ABBRACADABRA.\nABRACADABRA.A\n.ABRACADABRA.\nBRA.ABRACADAB\n2 2\nAAAAAAAAAAAAAAA@\nAAAAAAAAAAAAA\nAAAAAAAAAAAAA\n2 3\nXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\nXXXXXXAXXXXXX\nXXXXXXBXXXXXX\nXXXXXXXXXXXXX\n0 0\n",
"2 4\nAABBCCDDEEFFGGHHIJJKKLLMMNNOOPP\nAABBCCDDEEFFGG\nCCDDEEFFGGHHII\nFFGGHHIIJJKKLL\nJJLKLKMMNNOOPP\n2 3\nABRACADABRA.ABBRACADABRA.\nABRACADABRA.A\n.ABRADADABRA.\nBRA.ABRACADAB\n2 2\nAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAA\nAAAAAAAAAAAAA\n2 3\nXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\nXXXXXXAXXXXXX\nXXXXXXBXXXXXX\nXWXXXXXXXXXXX\n0 0\n",
"1 4\nAABBCCDDEEFFGGHHIJJKKLLMMNNOOPP\nAABBCCDDEEFFGG\nCBDDEEFFGGHHII\nFFGGHHIIJJKKLL\nJJKKLLMMNNOOPP\n2 3\nABRACADABRA.ABBRACADABRA.\nABRACADABRA.A\n.ABRACADABRA.\nBRA.ABRACADAB\n2 2\nAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAA\nAAAAAAAAAAAAA\n2 3\nXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\nXXXXXXAXXXXXX\nXXXXXXBXXXXXX\nXXXXXXXXXXXXX\n0 0\n"
] |
[
"1\nAABBCCDDEEFFGGHHIIJJKKLLMMNNOOPP\n3\nABRACADABRA.AABRACADABRA.A\nABRACADABRA.ABRACADABRA.A\nABRACADABRA.ABRADADABRA.\n5\nAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAA\n257\n",
"1\nAABBCCDDEEFFGGHHIIJJKKLLMMNNOOPP\n5\n.ABRACADABRA.ABRACADABRA.\nABRACADABRA.A.ABRACADABRA.\nABRACADABRA.AABRACADABRA.A\nABRACADABRA.ABRACADABRA.\nABRACADABRA.ABRACADABRA.A\n4\nAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAA\n257\n",
"0\n3\nABRACADABRA.AABRACADABRA.A\nABRACADABRA.ABRACADABRA.A\nABRACADABRA.ABRADADABRA.\n5\nAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAA\n257\n",
"1\nAABBCCDDEEFFGGHHIIJJKKLLMMNNOOPP\n5\n.ABRACADABRA.ABRACADABRA.\nABRACADABRA.A.ABRACADABRA.\nABRACADABRA.AABRACADABRA.A\nABRACADABRA.ABRACADABRA.\nABRACADABRA.ABRACADABRA.A\n4\nAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAA\n85\n",
"1\nAABBCCDDEEFFGGHHIIJJKKLLMMNNOOPP\n5\n.ABRACADABRA.ABRACADABRA.\nABRACADABRA.A.ABRACADABRA.\nABRACADABRA.AABRACADABRA.A\nABRACADABRA.ABRACADABRA.\nABRACADABRA.ABRACADABRA.A\n3\nAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAA\n85\n",
"1\nAABBCCDDEEFFGGHHIIJJKKLLMMNNOOPP\n3\nABRACADABRA.AABRACADABRA.A\nABRACADABRA.ABRACADABRA.A\nABRACADABRA.ABRACADABSA.\n3\nAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAA\n85\n",
"1\nAABBCCDDEEFFGGHHIIJJKKLLMMNNOOPP\n3\nABRACADABRA.AABRACADABRA.A\nABRACADABRA.ABRACADABRA.A\nABRACADABRA.ABRADADABRA.\n6\n257\n",
"0\n5\n.ABRACADABRA.ABRACADABRA.\nABRACADABRA.A.ABRACADABRA.\nABRACADABRA.AABRACADABRA.A\nABRACADABRA.ABRACADABRA.\nABRACADABRA.ABRACADABRA.A\n4\nAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAA\n257\n",
"0\n3\nABRACADABRA.AABRACADABRA.A\nABRACADABRA.ABRACADABRA.A\nABRACADABRA.ABRADADABRA.\n5\nAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAA\n0\n",
"1\nAABBCCDDEEFFGGHHIIJJKKLLMMNNOOPP\n5\n.ABRACADABRA.ABRACADABRA.\nABRACADABRA.A.ABRACADABRA.\nABRACADABRA.AABRACADABRA.A\nABRACADABRA.ABRACADABRA.\nABRACADABRA.ABRACADABRA.A\n5\nAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAA\n257\n"
] |
CodeContests
|
Koto Municipal Subway
Koto Municipal Subway
Koto City is a famous city whose roads are in a grid pattern, as shown in the figure below. The roads extending from north to south and the roads extending from east to west are lined up at intervals of 1 km each. Let Koto station at the southwestern intersection of Koto city be (0, 0), and mark x km east and y km north from it as (x, y) (0 ≤ x, y). ).
<image>
In anticipation of an increase in tourists due to the Olympic Games to be held five years later, the city has decided to build a new subway line starting from Koto station. Currently, we are planning to lay a rail to Shin-Koto station, which will be newly constructed as the next station after Koto station. The rail will be laid straight from Koto station to Shin-Koto station. Therefore, when the location of Shin-Koto station is (x, y), the length of the rail is √ (x2 + y2). The cost of laying the rail is the same as the length of the laid rail. Even if the rail length is a decimal number such as 1.5km, the cost is also 1.5.
The location (x, y) of Shin-Koto station has not been decided yet, and we plan to make it a location that meets the following conditions.
* It is an intersection. That is, x and y are integers, respectively.
* The shortest distance walked along the road from Koto station is exactly D. That is, x + y = D is satisfied.
Among the above two conditions, select the location of Shin-Koto station so that the difference between the rail budget E and the rail cost set by the city | √ (x2 + y2) --E | is minimized. Here, | A | represents the absolute value of A. Your job is to create a program that outputs the difference between the cost and budget for laying rails when the Shin-Koto station was constructed as described above.
Input
The input consists of multiple data sets, and the number of data sets contained in one input is 100 or less. The format of each data set is as follows.
> D E
D (1 ≤ D ≤ 100) is an integer that represents the shortest distance when walking along the road from Koto station to Shin-Koto station. E (1 ≤ E ≤ 100) is an integer representing the budget for rail construction.
The end of the input is indicated by a line of two zeros separated by a blank.
Output
For each data set, output the difference between the cost and budget when laying the rail so as to satisfy the problem condition in one line. The answer must have an absolute error greater than 10-3. Note that if you do not output a line break at the end of each line, or if you output unnecessary characters, it will be judged as an incorrect answer.
Sample Input
twenty one
7 5
7 6
7 7
76 5
8 41
0 0
Output for Sample Input
0.4142135624
0
0.0827625303
0
48.7401153702
33
Hint
In the first data set, as shown in the figure below, an intersection 2 km along the road from Koto station is a candidate for a place to build Shin-Koto station.
<image>
When Shin-Koto station is constructed at each intersection, the difference between the cost for laying the rail and budget 1 is as follows.
* (2, 0): | √ (22 + 02) --1 | = 1.0
* (1, 1): | √ (12 + 12) --1 | = 0.4142135623 ...
* (0, 2): | √ (02 + 22) --1 | = 1.0
Therefore, the difference between the cost and the budget is minimized when the construction is done in (1, 1).
Example
Input
2 1
7 5
7 6
7 7
76 5
8 41
0 0
Output
0.4142135624
0
0.0827625303
0
48.7401153702
33
|
stdin
| null | 4,404
| 1
|
[
"2 1\n7 5\n7 6\n7 7\n76 5\n8 41\n0 0\n"
] |
[
"0.4142135624\n0\n0.0827625303\n0\n48.7401153702\n33\n"
] |
[
"2 1\n7 6\n7 6\n7 7\n76 5\n8 41\n0 0\n",
"1 1\n7 5\n7 6\n7 7\n76 5\n8 41\n0 0\n",
"2 1\n7 6\n7 6\n7 7\n76 3\n8 41\n0 0\n",
"2 1\n7 6\n7 6\n7 3\n76 3\n8 41\n0 0\n",
"2 1\n7 6\n7 6\n7 3\n76 3\n11 41\n0 0\n",
"2 1\n7 5\n14 6\n7 7\n76 5\n8 41\n0 0\n",
"1 1\n6 5\n7 6\n7 7\n76 5\n8 41\n0 0\n",
"2 1\n7 6\n7 6\n7 7\n76 3\n9 41\n0 0\n",
"2 1\n7 11\n7 6\n7 3\n76 3\n8 41\n0 0\n",
"2 2\n7 6\n7 6\n7 3\n76 3\n11 41\n0 0\n"
] |
[
"0.414213562373\n0.0827625302982\n0.0827625302982\n0.0\n48.7401153702\n33.0\n",
"0.0\n0.0\n0.0827625302982\n0.0\n48.7401153702\n33.0\n",
"0.414213562373\n0.0827625302982\n0.0827625302982\n0.0\n50.7401153702\n33.0\n",
"0.414213562373\n0.0827625302982\n0.0827625302982\n2.0\n50.7401153702\n33.0\n",
"0.414213562373\n0.0827625302982\n0.0827625302982\n2.0\n50.7401153702\n30.0\n",
"0.414213562373\n0.0\n3.89949493661\n0.0\n48.7401153702\n33.0\n",
"0.0\n0.0990195135928\n0.0827625302982\n0.0\n48.7401153702\n33.0\n",
"0.414213562373\n0.0827625302982\n0.0827625302982\n0.0\n50.7401153702\n32.0\n",
"0.414213562373\n4.0\n0.0827625302982\n2.0\n50.7401153702\n33.0\n",
"0.0\n0.0827625302982\n0.0827625302982\n2.0\n50.7401153702\n30.0\n"
] |
CodeContests
|
Aniruddha is given a milestone M to reach in terms of distance.
He is living in a different Galaxy where there are N days in a year.At the ith day he can walk atmost X distance.Assuming he walks optimally you need to output the minimum day number on which he will reach the milestone.
Input
The first input line contains the T number of testcases.
Each testcase consist of three lines
First line consist of single integer N — the number of days in a year.
Next line contains N non-negative space-separated numbers— i.e. distance which Aniruddha will walk on ith day. It is guaranteed that at least one of those numbers is greater than zero.
And the third line consist of the value of milestone which Aniruddha has to reach.
Output
For each testcase you need to output the answer to the following query.
Constraints
1 ≤ T ≤ 10
1 ≤ N ≤ 10^5
0 ≤ X ≤ 10^8
0 ≤ M ≤ 10^16
SAMPLE INPUT
2
5
1 5 0 0 2
9
3
1 0 3
2
SAMPLE OUTPUT
1
3
Explanation
For the first testcase we have to reach a milestone of 9 units.
On the 1st day we would cover at most 1 unit.On the 2nd day we would cover at most 5 units.So total distance covered till 2nd day is 6 units.On 3rd and 4th day he would not cover any distance as value of X on those days is 0.
On the 5th day he would cover at most 2 units. So total distance covered till 5th day is 8 units.Then he will go to the first day of the next year.So total distance covered till 1st day will now become 9 units which is equal to the milestone.
So answer is 1.
Similarly answer for second testcase is 3.
|
stdin
| null | 3,861
| 1
|
[
"2\n5\n1 5 0 0 2\n9\n3\n1 0 3\n2\n\nSAMPLE\n"
] |
[
"1\n3\n"
] |
[
"2\n5\n1 5 0 0 2\n9\n3\n1 -1 3\n2\n\nSAMPLE\n",
"2\n5\n1 5 0 0 2\n9\n3\n2 0 3\n2\n\nELPMAS\n",
"2\n5\n1 5 0 0 4\n9\n3\n2 0 3\n2\n\nELPMAS\n",
"2\n5\n1 5 0 1 2\n9\n3\n1 0 2\n2\n\nSAMPLF\n",
"2\n5\n1 5 0 1 2\n9\n3\n1 1 1\n2\n\nSAMPLF\n",
"2\n5\n1 5 0 0 2\n9\n3\n1 1 1\n2\n\nSAMPLF\n",
"2\n5\n1 5 0 0 0\n9\n3\n1 1 1\n2\n\nRAMPLF\n",
"2\n5\n1 5 0 0 0\n9\n3\n1 0 3\n2\n\nSAMPLE\n",
"2\n5\n1 5 1 0 0\n9\n3\n1 1 1\n1\n\nRAMPLF\n",
"2\n5\n1 5 1 0 0\n7\n3\n1 0 1\n2\n\nRAMPLF\n"
] |
[
"1\n3\n",
"1\n1\n",
"5\n1\n",
"5\n3\n",
"5\n2\n",
"1\n2\n",
"2\n2\n",
"2\n3\n",
"2\n1\n",
"3\n3\n"
] |
CodeContests
|
Problem Statement
One day, you found an old scroll with strange texts on it.
You revealed that the text was actually an expression denoting the position of treasure. The expression consists of following three operations:
* From two points, yield a line on which the points lie.
* From a point and a line, yield a point that is symmetric to the given point with respect to the line.
* From two lines, yield a point that is the intersection of the lines.
The syntax of the expression is denoted by following BNF:
<expression> ::= <point>
<point> ::= <point-factor> | <line> "@" <line-factor> | <line> "@" <point-factor> | <point> "@" <line-factor>
<point-factor> ::= "(" <number> "," <number> ")" | "(" <point> ")"
<line> ::= <line-factor> | <point> "@" <point-factor>
<line-factor> ::= "(" <line> ")"
<number> ::= <zero-digit> | <positive-number> | <negative-number>
<positive-number> ::= <nonzero-digit> | <positive-number> <digit>
<negative-number> ::= "-" <positive-number>
<digit> ::= <zero-digit> | <nonzero-digit>
<zero-digit> ::= "0"
<nonzero-digit> ::= "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9"
Each <point> or <point-factor> denotes a point, whereas each <line> or <line-factor> denotes a line. The former notion of <point-factor> $(X,Y)$ represents a point which has $X$ for $x$-coordinate and $Y$ for $y$-coordinate on the $2$-dimensional plane. "@" indicates the operations on two operands. Since each operation is distinguishable from others by its operands' types (i.e. a point or a line), all of these operations are denoted by the same character "@". Note that "@" is left-associative, as can be seen from the BNF.
Your task is to determine where the treasure is placed.
Input
The input consists of multiple datasets. Each dataset is a single line which contains an expression denoting the position of treasure.
It is guaranteed that each dataset satisfies the following conditions:
* The length of the string never exceeds $10^2$.
* If both operands of "@" are points, their distance is greater than $1$.
* If both operands of "@" are lines, they are never parallel.
* The absolute values of points' coordinates never exceed $10^2$ at any point of evaluation.
You can also assume that there are at most $100$ datasets.
The input ends with a line that contains only a single "#".
Output
For each dataset, print the $X$ and $Y$ coordinates of the point, denoted by the expression, in this order.
The output will be considered correct if its absolute or relative error is at most $10^{-2}$.
Sample Input
((0,0)@(1,1))@((4,1)@(2,5))
((0,0)@(3,1))@((1,-3)@(2,-1))
(0,0)@(1,1)@(4,1)
(0,0)@((1,1)@(4,1))
(((0,0)@((10,20)@(((30,40))))))
((0,0)@(3,1))@((1,-3)@(2,-1))@(100,-100)@(100,100)
Output for the Sample Input
3.00000000 3.00000000
3.00000000 1.00000000
1.00000000 4.00000000
0.00000000 2.00000000
-10.00000000 10.00000000
-99.83681795 -91.92248853
Example
Input
((0,0)@(1,1))@((4,1)@(2,5))
((0,0)@(3,1))@((1,-3)@(2,-1))
(0,0)@(1,1)@(4,1)
(0,0)@((1,1)@(4,1))
(((0,0)@((10,20)@(((30,40))))))
((0,0)@(3,1))@((1,-3)@(2,-1))@(100,-100)@(100,100)
#
Output
3.00000000 3.00000000
3.00000000 1.00000000
1.00000000 4.00000000
0.00000000 2.00000000
-10.00000000 10.00000000
-99.83681795 -91.92248853
|
stdin
| null | 2,780
| 1
|
[
"((0,0)@(1,1))@((4,1)@(2,5))\n((0,0)@(3,1))@((1,-3)@(2,-1))\n(0,0)@(1,1)@(4,1)\n(0,0)@((1,1)@(4,1))\n(((0,0)@((10,20)@(((30,40))))))\n((0,0)@(3,1))@((1,-3)@(2,-1))@(100,-100)@(100,100)\n#\n"
] |
[
"3.00000000 3.00000000\n3.00000000 1.00000000\n1.00000000 4.00000000\n0.00000000 2.00000000\n-10.00000000 10.00000000\n-99.83681795 -91.92248853\n"
] |
[
"((0,0)@(1,1))@((4,1)@(2,5))\n((0,0)@(3,1))@((1,-3)@(2,-1))\n(0,0)@(1,1)@(4,1)\n(0,0)@((1,1)@(4,1))\n(((0,0)@((10,20)@(((20,40))))))\n((0,0)@(3,1))@((1,-3)@(2,-1))@(100,-100)@(100,100)\n#\n",
"((0,0)@(1,1))@((4,1)@(2,5))\n((0,0)@(3,1))@((1,-3)@(2,-1))\n(0,0)@(1,1)@(4,2)\n(0,0)@((1,1)@(4,1))\n(((0,0)@((10,20)@(((20,40))))))\n((0,0)@(3,1))@((1,-3)@(2,-1))@(100,-100)@(100,100)\n#\n",
"((0,0)@(1,1)(@((4,1)@(2,5))\n((0,0)@(3,1))@((1,-3)@(2,-1))\n(0,0)@(1,1)@(4,1)\n(0,0)@((1,1)@(4,1))\n(((0,0)@((10,20)@(((30,40))))))\n((0,0)@(3,1))@((1,-3)@(2,-1))@(100,-100)@(100,100)\n#\n",
"((0,0)@(1,1))@((4,1)@(2,5))\n((0,0)@(3,1))@((1,-3)@(2,-1))\n(0,1)@(1,1)@(4,1)\n(0,0)@((1,1)@(4,1))\n(((0,0)@((10,20)@(((20,40))))))\n((0,0)@(3,1))@((1,-3)@(2,-1))@(100,-100)@(100,100)\n#\n",
"((0,0)@(1,1))@((4,1)@(2,5))\n((0,0)@(3,1))@((1,-3)@(2,-1))\n(0,0)@(1,1)@(4,1)\n(0,0)@((1,1)@(4,1))\n(((0,0)@((10,10)@(((30,40))))))\n((0,0)@(3,1))@((1,-3)@(2,-1))@(100,-100)@(100,100)\n#\n",
"((0,0)@(1,1))@((4,1)@(2,5))\n((0,0)@(3,1))@((1,-3)@(2,-1))\n(0,1)@(1,1)@(4,1)\n(0,0)@((1,1)@(4,2))\n(((0,0)@((10,20)@(((20,40))))))\n((0,0)@(3,1))@((1,-3)@(2,-1))@(100,-100)@(100,100)\n#\n",
"((0,0)@(1,1))@((4,1)@(2,5))\n((0,1)@(3,1))@((1,-3)@(2,-0))\n(0,0)@(1,1)@(4,1)\n(0,0)@((1,1)@(4,1))\n(((0,0)@((10,10)@(((30,40))))))\n((0,0)@(3,1))@((1,-3)@(2,-1))@(100,-100)@(100,100)\n#\n",
"((0,0)@(1,1))@((4,1)@(2,5))\n((0,0)@(3,1))@((1,-3)@(3,-1))\n(0,1)@(1,1)@(4,1)\n(0,0)@((1,1)@(4,2))\n(((0,0)@((10,20)@(((20,40))))))\n((0,0)@(3,1))@((1,-3)@(2,-1))@(100,-100)@(100,100)\n#\n",
"((0,0)@(1,1))@((4,1)@(2,5))\n((0,0)@(3,1))@((1,-3)@(2,-1))\n(0,0)@(1,1)@(4,1)\n(0,0)@((2,1)@(4,1))\n(((0,0)@((10,20)@(((20,40))))))\n((0,0)@(3,1))@((1,-3)@(2,-1))@(100,-100)@(100,110)\n#\n",
"((1,0)@(0,1))@((4,1)@(2,5))\n((0+0)@(3,1))@((1,-3)@(2,-1))\n(0,0)@(1,1)@(4,1)\n(0,0)@((2,1)@(4,1))\n(((0,0)@((10,20)@(((20,40))))))\n((0,0)@(3,1))@((1,-3)@(2,-1))@(100,-100)@(100,100)\n#\n"
] |
[
"3.000000 3.000000\n3.000000 1.000000\n1.000000 4.000000\n0.000000 2.000000\n-0.000000 0.000000\n-99.836818 -91.922489\n",
"3.000000 3.000000\n3.000000 1.000000\n2.000000 4.000000\n0.000000 2.000000\n-0.000000 0.000000\n-99.836818 -91.922489\n",
"3.000000 3.000000\n3.000000 1.000000\n1.000000 4.000000\n0.000000 2.000000\n-10.000000 10.000000\n-99.836818 -91.922489\n",
"3.000000 3.000000\n3.000000 1.000000\n4.000000 1.000000\n0.000000 2.000000\n-0.000000 0.000000\n-99.836818 -91.922489\n",
"3.000000 3.000000\n3.000000 1.000000\n1.000000 4.000000\n0.000000 2.000000\n4.615385 -3.076923\n-99.836818 -91.922489\n",
"3.000000 3.000000\n3.000000 1.000000\n4.000000 1.000000\n-0.400000 1.200000\n-0.000000 0.000000\n-99.836818 -91.922489\n",
"3.000000 3.000000\n2.333333 1.000000\n1.000000 4.000000\n0.000000 2.000000\n4.615385 -3.076923\n-99.836818 -91.922489\n",
"3.000000 3.000000\n6.000000 2.000000\n4.000000 1.000000\n-0.400000 1.200000\n-0.000000 0.000000\n-99.836818 -91.922489\n",
"3.000000 3.000000\n3.000000 1.000000\n1.000000 4.000000\n0.000000 2.000000\n-0.000000 0.000000\n-109.828659 -91.518613\n",
"8.000000 -7.000000\n3.000000 1.000000\n1.000000 4.000000\n0.000000 2.000000\n-0.000000 0.000000\n-99.836818 -91.922489\n"
] |
CodeContests
|
Problem
Given an undirected graph of $ N $ vertices $ M $ edges. Each vertex has a different number from $ 1 $ to $ N $. You want to start at vertex $ S $ at time $ 0 $ and move to vertex $ G $. Parameters $ a and b $ are set on each side, and if the time $ t $ starts from the vertex on one side of that side, the time $ t + ceil \ left (\ cfrac {b) is on the other vertex. } {t + a} \ right) It is known to reach $. Here, $ ceil (x) $ represents the smallest integer greater than or equal to $ x $. Also, each vertex can consume any extra non-negative integer time. That is, when you are at the peak at time $ t $, you can choose any non-negative integer $ k $ and wait until time $ t + k $. Aiming for the fastest and strongest algorithm, you want to find the minimum amount of time it takes to move from vertex $ S $ to vertex $ G $.
Constraints
The input satisfies the following conditions.
* $ 1 \ le N, M \ le 2 \ times 10 ^ 5 $
* $ 1 \ le S, G \ le N $, $ S \ neq G $
* $ 1 \ le U_i, V_i \ le N $, $ U_i \ neq V_i (1 \ le i \ le M) $
* $ 1 \ le A_i, B_i \ le 10 ^ {15} (1 \ le i \ le M) $
* All given inputs are integers
Input
The input is given in the following format.
$ N $ $ M $ $ S $ $ G $
$ U_1 $ $ V_1 $ $ A_1 $ $ B_1 $
$ U_2 $ $ V_2 $ $ A_2 $ $ B_2 $
::
$ U_M $ $ V_M $ $ A_M $ $ B_M $
In the $ 1 $ line, the number of vertices $ N $, the number of edges $ M $, the start vertex number $ S $, and the goal vertex number $ G $ are given, separated by blanks.
In the following $ M $ line, the information of each side is given separated by blanks. The information on the $ i $ line indicates that there is an edge such that $ (a, b) = (A_i, B_i) $ between the vertex $ U_i $ and the vertex $ V_i $.
Output
Output the minimum time it takes to move from vertex $ S $ to vertex $ G $. If you can't move from vertex $ S $ to vertex $ G $, print $ -1 $ instead.
Examples
Input
2 1 1 2
1 2 1 100
Output
19
Input
2 1 1 2
1 2 50 100
Output
2
Input
3 1 1 3
1 2 1 1
Output
-1
Input
3 3 1 3
1 2 1 1
2 3 1 6
2 3 50 100
Output
3
Input
3 3 1 3
1 2 10 100
2 3 1 6
2 3 50 100
Output
11
|
stdin
| null | 4,053
| 1
|
[
"2 1 1 2\n1 2 1 100\n",
"3 1 1 3\n1 2 1 1\n",
"3 3 1 3\n1 2 1 1\n2 3 1 6\n2 3 50 100\n",
"2 1 1 2\n1 2 50 100\n",
"3 3 1 3\n1 2 10 100\n2 3 1 6\n2 3 50 100\n"
] |
[
"19\n",
"-1\n",
"3\n",
"2\n",
"11\n"
] |
[
"3 3 1 3\n1 2 2 1\n2 3 1 6\n2 3 50 100\n",
"3 3 1 3\n1 2 2 1\n2 3 1 6\n2 3 50 001\n",
"2 1 1 2\n1 2 1 101\n",
"3 3 1 1\n1 2 2 1\n2 3 1 6\n2 3 50 001\n",
"3 0 1 2\n1 2 1 101\n",
"3 3 1 3\n1 2 10 100\n2 3 1 6\n3 3 50 100\n",
"3 3 1 3\n1 2 2 1\n2 3 1 6\n2 3 50 110\n",
"3 3 1 3\n1 3 2 1\n2 3 1 6\n2 3 50 101\n",
"3 3 1 2\n2 2 3 1\n2 3 1 12\n1 3 77 100\n",
"3 3 1 3\n1 2 10 101\n2 3 1 6\n3 3 10 100\n"
] |
[
"3\n",
"2\n",
"20\n",
"0\n",
"-1\n",
"11\n",
"4\n",
"1\n",
"6\n",
"12\n"
] |
CodeContests
|
We will buy a product for N yen (the currency of Japan) at a shop.
If we use only 1000-yen bills to pay the price, how much change will we receive?
Assume we use the minimum number of bills required.
Constraints
* 1 \leq N \leq 10000
* N is an integer.
Input
Input is given from Standard Input in the following format:
N
Output
Print the amount of change as an integer.
Examples
Input
1900
Output
100
Input
3000
Output
0
|
stdin
| null | 1,163
| 1
|
[
"3000\n",
"1900\n"
] |
[
"0\n",
"100\n"
] |
[
"5614\n",
"2651\n",
"636\n",
"975\n",
"860\n",
"1858\n",
"541\n",
"209\n",
"1054\n",
"89\n"
] |
[
"386\n",
"349\n",
"364\n",
"25\n",
"140\n",
"142\n",
"459\n",
"791\n",
"946\n",
"911\n"
] |
CodeContests
|
Today is the 25th anniversary of Berland International School in Berland. On this auspicious Occasion, our friend Monk has been given the responsibility of preparing the Inventory for his school.
There are exactly N teachers and M students in the school. Each of these teachers teaches arbitary number of students. However, each student is taught by exactly one teacher.
Monk has been given the task of finding out for each teacher the Students he/she teaches. For each student Monk has been given the Student's Name and Age. However , Monk is too busy , So he has assigned this task to us.
We need to print the name of the Teacher and the Name and age of the students that he/she teaches.
However, there is a catch here. We need to print the list of students of each Teacher in Lexicographical order of their names . That is list of the teacher with lexicographically smaller name will appear before other teachers with lexicographically greater names.
In Addition , The students appearing in a particular teachers list should appear in Increasing order of their Age.
Input Format :
The first line contains two integers N and M denoting the number of Teachers and number of Students respectively. Each of the next N lines contain a single string denoting a Teachers name.It is guaranteed that each teachers name shall be unique.
The next M lines contain 2 Strings and an Integer, denoting the Teachers name, a Student's name being taught by that Teacher and that Student's Age. It is guaranteed that each Student's name shall be unique and shall appear only once in the Input.
Output Format:
Print N+M lines .
Print the teachers name first and then the name and age of each student taught by this teacher. The list of each teacher should appear in order of their lexicographical rank in comparision to all other teachers. For example the list of the teacher with lexicographically smallest name should appear first, then the list of the teacher with the 2nd smallest lexicographical name and so on. The students in a particular teachers list should appear in the output in Increasing order of their Age.
Constraints:
1 ≤ N ≤ 100
1 ≤ M ≤ 10^5
1 ≤ Age of Each Student ≤ 10^6
1 ≤ Length of each Student and Teachers Name ≤ 35
The Name of Each Teacher and Student will consist of Lowercase English Alphabets only.
It is guaranteed that no two students with the same age shall appear in the same Teacher's List.
Hint : You Need to Use Comparable Interface Here.
SAMPLE INPUT
3 4
vasya
petya
kolya
vasya errichto 21
kolya petr 22
petya egor 19
vasya tourist 19
SAMPLE OUTPUT
kolya
petr 22
petya
egor 19
vasya
tourist 19
errichto 21
|
stdin
| null | 3,984
| 1
|
[
"3 4\nvasya\npetya\nkolya\nvasya errichto 21\nkolya petr 22\npetya egor 19\nvasya tourist 19\n\nSAMPLE\n"
] |
[
"kolya\npetr 22\npetya\negor 19\nvasya\ntourist 19\nerrichto 21\n"
] |
[
"3 4\nvasya\npetya\nkolya\nvasya errichto 17\nkolya petr 22\npetya egor 19\nvasya tourist 19\n\nSAMPLE\n",
"3 4\nvasya\npetya\nkolya\nvasya errichto 17\nkolya petr 22\npetya egor 25\nvasya tourist 19\n\nSAMPLE\n",
"3 4\nvasya\npetya\nkolya\nvasya errichto 17\nkolya petr 23\npetya egor 25\nvasya tourist 19\n\nSAMPLE\n",
"3 4\nvasya\npetya\nkolya\nvasya errichto 17\nkolya petr 23\npetya egor 25\nvasya touqist 19\n\nSAMPLE\n",
"3 4\nvasya\npetya\nkolya\nvasya errichto 17\nkolya petr 23\npetya egor 25\nvasya touqist 23\n\nSAMPLE\n",
"3 4\nvasya\npetya\nkolya\nvasya eroichtr 17\nkolya petr 23\npetya egor 25\nvasya touqist 23\n\nSAMPLE\n",
"3 4\nvasya\npetya\nkolya\nvasya errichto 17\nkolya petr 22\npetya egor 19\nvasya tourist 31\n\nSAMPLE\n",
"3 4\nvasya\npetya\nkolya\nvasya errichto 17\nkolya petr 22\npetya ehor 25\nvasya tourist 19\n\nSAMPLE\n",
"3 4\nvasya\npetya\nkolya\nvasya errichto 17\nkolya petr 23\npetya egor 25\nvasya touqhst 23\n\nSAMPLE\n",
"3 4\nvasya\npetya\nkolya\nvasya eroichtr 17\nkolya petr 23\npetya egnr 25\nvasya touqist 23\n\nSAMPLE\n"
] |
[
"kolya\npetr 22\npetya\negor 19\nvasya\nerrichto 17\ntourist 19\n",
"kolya\npetr 22\npetya\negor 25\nvasya\nerrichto 17\ntourist 19\n",
"kolya\npetr 23\npetya\negor 25\nvasya\nerrichto 17\ntourist 19\n",
"kolya\npetr 23\npetya\negor 25\nvasya\nerrichto 17\ntouqist 19\n",
"kolya\npetr 23\npetya\negor 25\nvasya\nerrichto 17\ntouqist 23\n",
"kolya\npetr 23\npetya\negor 25\nvasya\neroichtr 17\ntouqist 23\n",
"kolya\npetr 22\npetya\negor 19\nvasya\nerrichto 17\ntourist 31\n",
"kolya\npetr 22\npetya\nehor 25\nvasya\nerrichto 17\ntourist 19\n",
"kolya\npetr 23\npetya\negor 25\nvasya\nerrichto 17\ntouqhst 23\n",
"kolya\npetr 23\npetya\negnr 25\nvasya\neroichtr 17\ntouqist 23\n"
] |
CodeContests
|
The smallest unit of data handled by a computer is called a bit, and the amount of information that represents multiple bits together is called a word. Currently, many computers process one word as 32 bits.
For a computer that represents one word in 32 bits, create a program that outputs the amount of data W given in word units in bit units.
Input
The input is given in the following format.
W
The input consists of one line and is given the amount of data W (0 ≤ W ≤ 100).
Output
Outputs the bitwise value on one line.
Examples
Input
4
Output
128
Input
3
Output
96
|
stdin
| null | 1,057
| 1
|
[
"4\n",
"3\n"
] |
[
"128\n",
"96\n"
] |
[
"0\n",
"5\n",
"1\n",
"2\n",
"-1\n",
"8\n",
"-2\n",
"14\n",
"6\n",
"26\n"
] |
[
"0\n",
"160\n",
"32\n",
"64\n",
"-32\n",
"256\n",
"-64\n",
"448\n",
"192\n",
"832\n"
] |
CodeContests
|
Write a program which reads two integers a and b, and calculates the following values:
* a ÷ b: d (in integer)
* remainder of a ÷ b: r (in integer)
* a ÷ b: f (in real number)
Constraints
* 1 ≤ a, b ≤ 109
Input
Two integers a and b are given in a line.
Output
Print d, r and f separated by a space in a line. For f, the output should not contain an absolute error greater than 10-5.
Example
Input
3 2
Output
1 1 1.50000
|
stdin
| null | 2,187
| 1
|
[
"3 2\n"
] |
[
"1 1 1.50000\n"
] |
[
"0 2\n",
"1 2\n",
"5 2\n",
"-1 2\n",
"1 3\n",
"5 3\n",
"1 5\n",
"2 3\n",
"1 1\n",
"4 2\n"
] |
[
"0 0 0.000000\n",
"0 1 0.500000\n",
"2 1 2.500000\n",
"-1 1 -0.500000\n",
"0 1 0.333333\n",
"1 2 1.666667\n",
"0 1 0.200000\n",
"0 2 0.666667\n",
"1 0 1.000000\n",
"2 0 2.000000\n"
] |
CodeContests
|
Most problems on CodeChef highlight chef's love for food and cooking but little is known about his love for racing sports. He is an avid Formula 1 fan. He went to watch this year's Indian Grand Prix at New Delhi. He noticed that one segment of the circuit was a long straight road. It was impossible for a car to overtake other cars on this segment. Therefore, a car had to lower down its speed if there was a slower car in front of it. While watching the race, Chef started to wonder how many cars were moving at their maximum speed.
Formally, you're given the maximum speed of N cars in the order they entered the long straight segment of the circuit. Each car prefers to move at its maximum speed. If that's not possible because of the front car being slow, it might have to lower its speed. It still moves at the fastest possible speed while avoiding any collisions. For the purpose of this problem, you can assume that the straight segment is infinitely long.
Count the number of cars which were moving at their maximum speed on the straight segment.
Input
The first line of the input contains a single integer T denoting the number of test cases to follow. Description of each test case contains 2 lines. The first of these lines contain a single integer N, the number of cars. The second line contains N space separated integers, denoting the maximum speed of the cars in the order they entered the long straight segment.
Output
For each test case, output a single line containing the number of cars which were moving at their maximum speed on the segment.
Example
Input:
3
1
10
3
8 3 6
5
4 5 1 2 3
Output:
1
2
2
Constraints
1 ≤ T ≤ 100
1 ≤ N ≤ 10,000
All speeds are distinct positive integers that fit in a 32 bit signed integer.
Each input file will not be larger than 4 MB (4,000,000,000 bytes) in size.
WARNING! The input files are very large. Use faster I/O.
|
stdin
| null | 437
| 1
|
[
"3\n1\n10\n3\n8 3 6\n5\n4 5 1 2 3\n"
] |
[
"1\n2\n2\n"
] |
[
"3\n1\n10\n3\n8 3 6\n5\n4 5 1 2 4\n",
"3\n1\n10\n3\n0 3 6\n5\n4 5 1 2 3\n",
"3\n1\n10\n3\n8 3 1\n5\n4 5 1 2 4\n",
"3\n1\n0\n3\n8 3 6\n5\n6 5 1 2 5\n",
"3\n1\n10\n3\n8 3 1\n5\n6 5 1 2 4\n",
"3\n1\n10\n3\n8 3 1\n5\n0 8 1 2 7\n",
"3\n1\n10\n3\n0 3 6\n5\n6 5 1 3 4\n",
"3\n1\n1\n3\n0 3 1\n5\n0 5 1 2 5\n",
"3\n1\n10\n3\n8 1 10\n5\n0 5 1 2 5\n",
"3\n1\n10\n3\n8 3 6\n5\n3 5 1 2 3\n"
] |
[
"1\n2\n2\n",
"1\n1\n2\n",
"1\n3\n2\n",
"1\n2\n3\n",
"1\n3\n3\n",
"1\n3\n1\n",
"1\n1\n3\n",
"1\n1\n1\n",
"1\n2\n1\n",
"1\n2\n2\n"
] |
CodeContests
|
problem
$ M $ students will be tested in a classroom with $ N $ seats in a straight line. Seats are numbered $ 1 \ dots N $ from the front, and $ 1 $ per seat can seat $ 1 $ students.
Now each student is sitting in the $ A_1, \ dots, A_M $ seats.
To start the test, the following conditions must be met:
* $ 1 \ dots M $ students are sitting in every seat.
Therefore, we decided to repeat the following operations until the conditions were met.
* Move the student sitting at the back and sit at the front of the vacant seats.
Find the number of operations required to meet the conditions.
output
Output the number of operations required to meet the conditions. Also, output a line break at the end.
Example
Input
6 4
1 4 5 6
Output
2
|
stdin
| null | 4,052
| 1
|
[
"6 4\n1 4 5 6\n"
] |
[
"2\n"
] |
[
"6 4\n0 4 5 6\n",
"6 4\n0 4 4 6\n",
"9 3\n0 0 0 3\n",
"6 4\n0 4 6 6\n",
"6 4\n0 1 4 6\n",
"6 4\n0 2 4 6\n",
"6 3\n0 2 4 6\n",
"6 3\n0 2 4 5\n",
"6 3\n0 2 4 3\n",
"6 3\n0 0 4 3\n"
] |
[
"2\n",
"1\n",
"0\n",
"2\n",
"1\n",
"1\n",
"1\n",
"1\n",
"1\n",
"1\n"
] |
CodeContests
|
Example
Input
8
0 2
0 0
2 0
2 1
3 1
3 3
1 3
1 2
Output
1
|
stdin
| null | 4,520
| 1
|
[
"8\n0 2\n0 0\n2 0\n2 1\n3 1\n3 3\n1 3\n1 2\n"
] |
[
"1\n"
] |
[
"8\n0 2\n0 0\n2 0\n2 1\n3 1\n3 3\n0 3\n1 2\n",
"8\n0 2\n0 0\n2 0\n2 1\n3 1\n3 3\n0 3\n1 0\n",
"8\n-1 2\n0 0\n2 0\n2 1\n3 1\n3 3\n0 3\n1 0\n",
"8\n0 2\n0 0\n2 0\n2 2\n3 1\n3 3\n0 3\n1 0\n",
"8\n-1 2\n0 -1\n2 0\n2 1\n3 1\n3 3\n0 3\n1 0\n",
"8\n0 2\n-1 0\n2 0\n2 2\n3 1\n3 3\n0 3\n1 0\n",
"8\n-1 2\n0 -1\n2 0\n2 1\n6 1\n3 3\n0 3\n1 0\n",
"8\n0 2\n-1 0\n2 0\n2 2\n3 0\n3 3\n0 3\n1 0\n",
"8\n-1 4\n0 -1\n2 0\n2 1\n6 1\n3 3\n0 3\n1 0\n",
"8\n0 2\n0 0\n2 0\n2 2\n3 0\n3 3\n0 3\n1 0\n"
] |
[
"1\n",
"2\n",
"2\n",
"2\n",
"2\n",
"2\n",
"2\n",
"2\n",
"2\n",
"2\n"
] |
CodeContests
|
Background
The kindergarten attached to the University of Aizu is a kindergarten where children who love programming gather. Yu, one of the kindergarten children, loves rectangular blocks as much as programming. Yu-kun has been enthusiastic about making mountains with building blocks recently.
Yu-kun was playing with making mountains today, but since it is easy to make many mountains with the building blocks he has, today I thought about minimizing the number of mountains that can be made with all the building blocks. So Yu-kun decided to write a program to see if the number of mountains was really minimized after actually making a mountain using all the blocks.
Problem
You will be given the number of blocks you have and the information about the blocks, so find the minimum number of mountains you can make from them.
Building blocks are represented as rectangles on a plane, and the length and width of the rectangle are given as building block information (without considering the height of the building blocks).
A mountain is a stack of zero or more blocks on top of blocks. However, in order to stack another building block on top of the building block, the vertical and horizontal lengths of the upper building blocks must be less than the vertical and horizontal lengths of the lower building blocks, respectively. Only one building block can be placed directly on one building block.
When placing blocks, the length and width of the two blocks must be parallel (it is not allowed to stack them diagonally). You may rotate the building blocks and exchange the length and width.
For example, consider the state shown in Fig. 1. The rectangle represents the building block, the number to the left represents the vertical length of the building block, the number below represents the horizontal length, and the number in the upper left of the rectangle represents the building block number. In the initial state, there are 5 mountains.
By stacking as shown in Fig. 1, the number of mountains can be finally reduced to two.
Figure 1
Figure 1
Input
N
w0 h0
w1 h1
...
wN-1 hN-1
All inputs are integers.
N represents the number of blocks. (1 ≤ N ≤ 100)
wi and hi represent the horizontal and vertical lengths of building blocks, respectively. (1 ≤ wi, hi ≤ 109)
Output
Output the minimum number of piles that can be made using all blocks in one line.
Examples
Input
3
1 1
2 2
3 3
Output
1
Input
5
2 3
3 5
1 2
1 4
3 5
Output
2
Input
5
1 5
2 4
3 3
4 2
5 1
Output
5
Input
10
5 11
12 12
4 14
22 12
11 13
3 3
3 3
12 5
55 55
1 1
Output
3
|
stdin
| null | 1,540
| 1
|
[
"3\n1 1\n2 2\n3 3\n",
"5\n1 5\n2 4\n3 3\n4 2\n5 1\n",
"5\n2 3\n3 5\n1 2\n1 4\n3 5\n",
"10\n5 11\n12 12\n4 14\n22 12\n11 13\n3 3\n3 3\n12 5\n55 55\n1 1\n"
] |
[
"1\n",
"5\n",
"2\n",
"3\n"
] |
[
"3\n0 1\n2 2\n3 3\n",
"5\n1 5\n2 4\n3 3\n0 2\n5 1\n",
"5\n2 3\n3 5\n1 2\n0 4\n3 5\n",
"10\n5 11\n12 12\n4 14\n38 12\n11 13\n3 3\n3 3\n12 5\n55 55\n1 1\n",
"5\n1 3\n0 4\n3 0\n0 3\n3 1\n",
"10\n0 9\n16 1\n6 48\n22 0\n12 0\n4 0\n0 11\n19 9\n103 55\n0 2\n",
"3\n0 1\n2 2\n5 3\n",
"5\n1 5\n2 4\n3 3\n0 2\n3 1\n",
"5\n2 3\n3 2\n1 2\n0 4\n3 5\n",
"10\n5 11\n12 12\n4 14\n55 12\n11 13\n3 3\n3 3\n12 5\n55 55\n1 1\n"
] |
[
"1\n",
"4\n",
"2\n",
"3\n",
"5\n",
"6\n",
"1\n",
"3\n",
"3\n",
"3\n"
] |
CodeContests
|
Nikhil got to know about what is a matrice. He made several patterns using 1-d and 2-d matrices. One of which was his favorite pattern. Your task is to right a code for his favorite pattern.
NOTE :- To understand his favorite pattern see the sample output
Input:-
First line of code takes number of test cases 'N' as its input. The following N lines take size 'S' of a sqaure matrice as its input.
Output:-
Print Nikhils favorite pattern and seperate two different test cases with an empty line.
Constraint:-
N ≤ 10
S ≤ 10
SAMPLE INPUT
1
3
SAMPLE OUTPUT
123
894
765
|
stdin
| null | 1,918
| 1
|
[
"1\n3\n\nSAMPLE\n"
] |
[
"123\n894\n765\n"
] |
[
"1\n6\n\nSAMPLE\n",
"1\n8\n\nELQMSA\n",
"1\n9\n\nELQMSA\n",
"1\n2\n\nELQMSA\n",
"1\n3\n\nASMQLE\n",
"1\n1\n\nSAMQLE\n",
"1\n12\n\nELQMSA\n",
"1\n4\n\nASMQLE\n",
"1\n5\n\nDKLQSA\n",
"1\n10\n\nDKLRSA\n"
] |
[
"123456\n20212223247\n19323334258\n18313635269\n173029282710\n161514131211\n",
"12345678\n282930313233349\n2748495051523510\n2647606162533611\n2546596463543712\n2445585756553813\n2344434241403914\n2221201918171615\n",
"123456789\n323334353637383910\n315657585960614011\n305572737475624112\n295471808176634213\n285370797877644314\n275269686766654415\n265150494847464516\n252423222120191817\n",
"12\n43\n",
"123\n894\n765\n",
"1\n",
"123456789101112\n444546474849505152535413\n438081828384858687885514\n4279108109110111112113114895615\n4178107128129130131132115905716\n4077106127140141142133116915817\n3976105126139144143134117925918\n3875104125138137136135118936019\n3774103124123122121120119946120\n367310210110099989796956221\n357271706968676665646322\n343332313029282726252423\n",
"1234\n1213145\n1116156\n10987\n",
"12345\n161718196\n152425207\n142322218\n131211109\n",
"12345678910\n36373839404142434411\n35646566676869704512\n34638485868788714613\n33628396979889724714\n326182951009990734815\n31608194939291744916\n30598079787776755017\n29585756555453525118\n28272625242322212019\n"
] |
CodeContests
|
We have A cards, each of which has an integer 1 written on it. Similarly, we also have B cards with 0s and C cards with -1s.
We will pick up K among these cards. What is the maximum possible sum of the numbers written on the cards chosen?
Constraints
* All values in input are integers.
* 0 \leq A, B, C
* 1 \leq K \leq A + B + C \leq 2 \times 10^9
Input
Input is given from Standard Input in the following format:
A B C K
Output
Print the maximum possible sum of the numbers written on the cards chosen.
Examples
Input
2 1 1 3
Output
2
Input
1 2 3 4
Output
0
Input
2000000000 0 0 2000000000
Output
2000000000
|
stdin
| null | 3,711
| 1
|
[
"2000000000 0 0 2000000000\n",
"1 2 3 4\n",
"2 1 1 3\n"
] |
[
"2000000000\n",
"0\n",
"2\n"
] |
[
"1 2 5 4\n",
"2 0 1 3\n",
"0 3 8 6\n",
"0 3 8 5\n",
"-1 3 5 5\n",
"-1 3 5 6\n",
"-1 6 3 2\n",
"2 2 3 4\n",
"-2 3 5 5\n",
"4 2 0 4\n"
] |
[
"0\n",
"1\n",
"-3\n",
"-2\n",
"-4\n",
"-5\n",
"-1\n",
"2\n",
"-6\n",
"4\n"
] |
CodeContests
|
Takahashi and Aoki will have a battle using their monsters.
The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively.
The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins.
If Takahashi will win, print `Yes`; if he will lose, print `No`.
Constraints
* 1 \leq A,B,C,D \leq 100
* All values in input are integers.
Input
Input is given from Standard Input in the following format:
A B C D
Output
If Takahashi will win, print `Yes`; if he will lose, print `No`.
Examples
Input
10 9 10 10
Output
No
Input
46 4 40 5
Output
Yes
|
stdin
| null | 925
| 1
|
[
"46 4 40 5\n",
"10 9 10 10\n"
] |
[
"Yes\n",
"No\n"
] |
[
"46 4 4 5\n",
"10 9 13 10\n",
"64 4 4 5\n",
"5 9 13 10\n",
"64 8 4 5\n",
"5 9 3 10\n",
"54 8 4 5\n",
"5 13 3 10\n",
"54 8 2 5\n",
"5 14 3 10\n"
] |
[
"Yes\n",
"No\n",
"Yes\n",
"No\n",
"Yes\n",
"Yes\n",
"Yes\n",
"Yes\n",
"Yes\n",
"Yes\n"
] |
CodeContests
|
Given 2 numbers n1 and n2, following operations can be performed:
1) Decrement n1 by 1(if n1>1)
2) Decrement n2 by 1(if n2>1)
3) Incremenet n1 by 1
4) Incremenet n2 by 1
Find the maximum possible value of gcd(n1,n2) with atmost k operations.
Note: Any of the 4 operations counts for one operation.
gcd(n1,n2) refers to GCD of n1 and n2
Input format:
First line of input contains single integer t, denoting no of test cases.
Each test case contains 3 lines with inputs n1 , n2 and k respectively on each line.
Output format:
For each test case print a single line containing the maximum possible value of gcd(n1,n2)
Constraints:
1 ≤ t ≤ 5
1 ≤ n1,n2 ≤ 10^5
0 ≤ k ≤ 10^2
SAMPLE INPUT
1
9
10
1
SAMPLE OUTPUT
10
Explanation
On incrementing 9 by 1, we get maximum possible GCD as 10 here.
|
stdin
| null | 48
| 1
|
[
"1\n9\n10\n1\n\nSAMPLE\n"
] |
[
"10\n"
] |
[
"4\n11833\n5512\n100\n28436\n33903\n100\n84816\n75747\n100\n92281\n31380\n100\n",
"1\n45819\n95605\n90\n",
"1\n9\n10\n1\n\nSANPLE\n",
"1\n45819\n95605\n136\n",
"1\n18\n10\n1\n\nSANPLE\n",
"4\n11833\n5512\n100\n28436\n33903\n100\n84816\n71631\n101\n92281\n31380\n100\n",
"1\n45819\n95605\n111\n",
"1\n18\n12\n1\n\nSANPLE\n",
"4\n11833\n5512\n100\n28436\n33903\n100\n44638\n71631\n101\n92281\n31380\n100\n",
"1\n45819\n95605\n011\n"
] |
[
"917\n1357\n3031\n2097\n",
"3824\n",
"10\n",
"4160\n",
"9\n",
"917\n1357\n2653\n2097\n",
"4158\n",
"6\n",
"917\n1357\n1593\n2097\n",
"62\n"
] |
CodeContests
|
Mr.X, who the handle name is T, looked at the list which written N handle names, S_1, S_2, ..., S_N.
But he couldn't see some parts of the list. Invisible part is denoted `?`.
Please calculate all possible index of the handle name of Mr.X when you sort N+1 handle names (S_1, S_2, ..., S_N and T) in lexicographical order.
Note: If there are pair of people with same handle name, either one may come first.
Input
The input is given from standard input in the following format.
N
S_1
S_2
:
S_N
T
Output
* Calculate the possible index and print in sorted order. The output should be separated with a space. Don't print a space after last number.
* Put a line break in the end.
Constraints
* 1 ≤ N ≤ 10000
* 1 ≤ |S_i|, |T| ≤ 20 (|A| is the length of A.)
* S_i consists from lower-case alphabet and `?`.
* T consists from lower-case alphabet.
Scoring
Subtask 1 [ 130 points ]
* There are no `?`'s.
Subtask 2 [ 120 points ]
* There are no additional constraints.
Output
* Calculate the possible index and print in sorted order. The output should be separated with a space. Don't print a space after last number.
* Put a line break in the end.
Constraints
* 1 ≤ N ≤ 10000
* 1 ≤ |S_i|, |T| ≤ 20 (|A| is the length of A.)
* S_i consists from lower-case alphabet and `?`.
* T consists from lower-case alphabet.
Scoring
Subtask 1 [ 130 points ]
* There are no `?`'s.
Subtask 2 [ 120 points ]
* There are no additional constraints.
Input
The input is given from standard input in the following format.
N
S_1
S_2
:
S_N
T
Example
Input
2
tourist
petr
e
Output
1
|
stdin
| null | 1,289
| 1
|
[
"2\ntourist\npetr\ne\n"
] |
[
"1\n"
] |
[
"2\ntourist\neptr\ne\n",
"2\nssvuhnr\nerrs\nf\n",
"2\nhupouvt\netor\ni\n",
"2\nsourist\neptr\ne\n",
"2\nsourist\neqtr\ne\n",
"2\nsourist\netqr\ne\n",
"2\nsourisu\netqr\ne\n",
"2\nsourisu\netqr\nd\n",
"2\nsourisu\netrr\nd\n",
"2\nsourisu\nrrte\nd\n"
] |
[
"1\n",
"2\n",
"3\n",
"1\n",
"1\n",
"1\n",
"1\n",
"1\n",
"1\n",
"1\n"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.