QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#686308#5015. 树masterhuang100 ✓138ms12132kbC++231.0kb2024-10-29 10:57:282024-10-29 10:57:30

Judging History

你现在查看的是最新测评结果

  • [2024-10-29 10:57:30]
  • 评测
  • 测评结果:100
  • 用时:138ms
  • 内存:12132kb
  • [2024-10-29 10:57:28]
  • 提交

answer

#include<bits/stdc++.h>
#include "tree.h"
#define LL long long
#define bs vector<int>
#define fr(x) freopen(#x".in","r",stdin);freopen(#x".out","w",stdout);
using namespace std;
const int N=1e3+5;
mt19937 rnd(time(0));
int n,fa[N],d[N],lca[N][N];bs g[N];
inline int dis(int x,int y){return d[x]+d[y]-(d[lca[x][y]]<<1);}
inline void upd(int x,int fa)
{
	::fa[x]=fa;d[x]=d[fa]+1;
	for(int i=1;i<=n;i++) lca[x][i]=lca[i][x]=lca[fa][i];
	lca[x][x]=x;
}
inline void sol(int x,bs g)
{
	if(g.size()==1) return upd(x,g[0]);
	shuffle(g.begin(),g.end(),rnd);
	bs g1,G;int m=g.size()/2,res;
	for(int i=0;i<m;i++) g1.push_back(g[i]);res=ask(x,g1);
	for(int i:g)
	{
		int s=m;for(int j:g1) s+=dis(i,j);
		if(s==res) G.push_back(i);
	}sol(x,G);
}
void solver(int n0,int A,int B)
{
	n=n0;int rt=rnd()%n+1;lca[rt][rt]=rt;
	for(int i=1;i<=n;i++) if(i!=rt) g[ask(i,{rt})].push_back(i);
	for(int i:g[1]) upd(i,rt);
	for(int i=2;g[i].size();i++) for(int j:g[i]) sol(j,g[i-1]);
	for(int i=1;i<=n;i++) if(i!=rt) answer(i,fa[i]);
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 3
Accepted

Test #1:

score: 3
Accepted
time: 23ms
memory: 12084kb

input:

1000 500000 500000
1 2
2 3
2 4
2 5
2 6
3 7
2 8
5 9
5 10
9 11
2 12
9 13
4 14
5 15
12 16
5 17
4 18
4 19
13 20
9 21
19 22
7 23
6 24
14 25
2 26
10 27
14 28
21 29
17 30
8 31
15 32
9 33
22 34
24 35
20 36
6 37
12 38
19 39
31 40
35 41
25 42
11 43
8 44
9 45
12 46
26 47
10 48
6 49
27 50
39 51
33 52
6 53
43 54...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #2:

score: 3
Accepted
time: 10ms
memory: 12080kb

input:

1000 500000 500000
1 2
1 3
1 4
4 5
1 6
2 7
1 8
2 9
3 10
4 11
5 12
11 13
9 14
13 15
10 16
10 17
8 18
9 19
13 20
19 21
17 22
19 23
23 24
24 25
22 26
18 27
21 28
22 29
26 30
24 31
30 32
23 33
28 34
29 35
32 36
36 37
32 38
35 39
34 40
40 41
40 42
42 43
42 44
40 45
40 46
40 47
46 48
39 49
49 50
48 51
50 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #3:

score: 3
Accepted
time: 70ms
memory: 11756kb

input:

1000 500000 500000
498 209
498 647
498 776
498 8
498 382
498 181
498 644
498 331
498 516
498 197
498 630
498 693
498 577
498 572
498 393
498 638
498 94
498 847
498 273
498 535
498 703
498 176
498 605
498 214
498 610
498 416
498 928
498 470
498 753
498 182
498 294
498 514
498 831
498 386
498 935
498 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #4:

score: 3
Accepted
time: 10ms
memory: 11836kb

input:

1000 500000 500000
1 2
1 3
1 4
1 5
4 6
4 7
7 8
4 9
3 10
5 11
4 12
9 13
12 14
7 15
14 16
9 17
16 18
9 19
13 20
17 21
17 22
18 23
23 24
23 25
18 26
22 27
18 28
25 29
21 30
29 31
31 32
28 33
32 34
26 35
31 36
27 37
29 38
30 39
33 40
38 41
41 42
42 43
43 44
35 45
41 46
43 47
43 48
47 49
45 50
46 51
42 5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #5:

score: 3
Accepted
time: 125ms
memory: 11784kb

input:

1000 500000 500000
1 2
1 3
1 4
1 5
2 6
1 7
1 8
1 9
1 10
1 11
1 12
2 13
1 14
2 15
2 16
2 17
1 18
2 19
2 20
2 21
2 22
1 23
1 24
1 25
2 26
2 27
2 28
2 29
2 30
1 31
2 32
1 33
2 34
1 35
1 36
1 37
1 38
2 39
1 40
1 41
1 42
2 43
2 44
1 45
1 46
2 47
1 48
2 49
1 50
2 51
2 52
1 53
1 54
1 55
1 56
1 57
2 58
1 59...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #6:

score: 3
Accepted
time: 77ms
memory: 12084kb

input:

1000 500000 500000
775 723
775 587
775 405
775 383
775 154
775 567
775 561
775 114
775 894
775 79
775 229
775 388
775 165
775 240
775 358
775 287
775 560
775 578
775 220
775 222
775 214
775 86
775 94
775 997
775 531
775 476
775 68
775 838
775 135
775 851
775 478
775 588
775 136
775 689
775 396
775 8...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #7:

score: 3
Accepted
time: 12ms
memory: 11752kb

input:

1000 500000 500000
1 2
1 3
3 4
4 5
4 6
5 7
7 8
8 9
8 10
10 11
10 12
12 13
12 14
13 15
15 16
16 17
16 18
17 19
18 20
20 21
21 22
21 23
23 24
24 25
25 26
25 27
27 28
27 29
29 30
29 31
30 32
31 33
33 34
34 35
34 36
36 37
37 38
38 39
39 40
40 41
41 42
41 43
43 44
44 45
44 46
45 47
47 48
48 49
49 50
50 5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #8:

score: 3
Accepted
time: 124ms
memory: 11852kb

input:

1000 500000 500000
862 253
862 745
862 416
862 256
862 515
862 821
862 379
862 494
862 820
862 496
862 648
862 766
862 629
862 106
862 926
862 166
862 729
862 989
862 212
862 522
862 787
862 711
862 962
862 969
862 698
862 750
862 585
862 130
862 831
862 760
862 764
862 314
862 972
862 346
862 275
8...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #9:

score: 3
Accepted
time: 28ms
memory: 12092kb

input:

1000 500000 500000
1 2
2 3
3 4
4 5
5 6
6 7
4 8
4 9
5 10
8 11
8 12
3 13
7 14
6 15
6 16
9 17
2 18
1 19
8 20
9 21
8 22
7 23
7 24
5 25
2 26
2 27
3 28
5 29
4 30
9 31
5 32
8 33
1 34
3 35
10 36
7 37
9 38
9 39
9 40
2 41
4 42
6 43
8 44
4 45
10 46
4 47
8 48
9 49
7 50
2 51
5 52
9 53
8 54
1 55
9 56
9 57
9 58
5 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #10:

score: 3
Accepted
time: 73ms
memory: 11760kb

input:

1000 500000 500000
164 875
164 558
164 722
164 171
164 780
164 498
164 795
164 332
164 1000
164 553
164 354
164 479
164 109
164 802
164 706
164 236
164 958
164 607
164 757
164 197
164 11
164 507
164 572
164 357
164 314
164 653
164 15
164 814
164 9
164 468
164 398
164 232
164 753
164 591
164 478
164 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Subtask #2:

score: 17
Accepted

Test #11:

score: 17
Accepted
time: 1ms
memory: 6216kb

input:

100 3000 40000
66 95
66 60
66 93
66 69
66 82
66 24
66 64
66 84
66 42
66 22
66 67
66 54
66 90
66 26
66 41
66 18
66 43
66 68
66 36
66 88
66 33
66 29
66 79
66 6
66 48
66 47
66 8
66 38
66 61
69 97
64 30
38 86
88 14
18 10
54 81
88 25
29 2
18 21
95 46
42 80
93 91
61 62
68 35
47 23
69 17
93 28
18 31
61 70
...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #12:

score: 17
Accepted
time: 1ms
memory: 8520kb

input:

100 3000 40000
1 2
1 3
2 4
2 5
3 6
3 7
4 8
4 9
5 10
5 11
6 12
6 13
7 14
7 15
8 16
8 17
9 18
9 19
10 20
10 21
11 22
11 23
12 24
12 25
13 26
13 27
14 28
14 29
15 30
15 31
16 32
16 33
17 34
17 35
18 36
18 37
19 38
19 39
20 40
20 41
21 42
21 43
22 44
22 45
23 46
23 47
24 48
24 49
25 50
25 51
26 52
26 53...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #13:

score: 17
Accepted
time: 1ms
memory: 6260kb

input:

100 3000 40000
1 2
2 3
3 4
3 5
5 6
6 7
4 8
7 9
1 10
4 11
3 12
7 13
1 14
1 15
7 16
3 17
4 18
7 19
9 20
1 21
8 22
10 23
6 24
6 25
2 26
10 27
7 28
5 29
5 30
8 31
4 32
4 33
10 34
2 35
8 36
9 37
3 38
6 39
3 40
8 41
9 42
6 43
10 44
8 45
5 46
8 47
8 48
2 49
8 50
8 51
3 52
1 53
3 54
5 55
5 56
8 57
3 58
10 5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #14:

score: 17
Accepted
time: 0ms
memory: 6468kb

input:

100 3000 40000
13 50
17 13
62 17
5 62
74 5
83 74
98 83
37 98
80 37
23 80
87 23
27 87
40 27
95 40
52 95
54 52
67 54
42 67
18 42
34 18
81 34
59 81
12 59
30 12
64 30
15 64
92 15
61 92
1 61
72 1
16 72
3 16
48 3
31 48
41 31
77 41
93 77
33 93
96 33
53 96
28 53
90 28
25 90
26 25
57 55
85 57
45 85
20 45
22 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #15:

score: 17
Accepted
time: 0ms
memory: 6508kb

input:

100 3000 40000
1 2
1 3
2 4
2 5
3 6
3 7
4 8
4 9
5 10
5 11
6 12
6 13
7 14
7 15
8 16
8 17
9 18
9 19
10 20
10 21
11 22
11 23
12 24
12 25
13 26
13 27
14 28
14 29
15 30
15 31
16 32
16 33
17 34
17 35
18 36
18 37
19 38
19 39
20 40
20 41
21 42
21 43
22 44
22 45
23 46
23 47
24 48
24 49
25 50
25 51
26 52
26 53...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #16:

score: 17
Accepted
time: 1ms
memory: 6476kb

input:

100 3000 40000
1 2
2 3
3 4
3 5
5 6
6 7
6 8
8 9
9 10
10 11
10 12
12 13
12 14
14 15
15 16
16 17
17 18
18 19
19 20
20 21
21 22
21 23
23 24
24 25
25 26
25 27
26 28
28 29
28 30
30 31
30 32
32 33
33 34
33 35
35 36
36 37
36 38
38 39
39 40
39 41
41 42
41 43
42 44
43 45
44 46
46 47
47 48
48 49
48 50
49 51
50...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #17:

score: 17
Accepted
time: 1ms
memory: 10040kb

input:

100 3000 40000
1 2
1 3
1 4
2 5
1 6
1 7
1 8
1 9
1 10
1 11
1 12
1 13
2 14
1 15
1 16
2 17
2 18
2 19
1 20
2 21
2 22
2 23
1 24
2 25
2 26
2 27
2 28
2 29
1 30
1 31
2 32
2 33
1 34
1 35
1 36
1 37
2 38
2 39
2 40
1 41
2 42
2 43
1 44
2 45
2 46
2 47
2 48
1 49
2 50
1 51
1 52
1 53
1 54
1 55
1 56
1 57
1 58
1 59
2 6...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #18:

score: 17
Accepted
time: 1ms
memory: 6264kb

input:

100 3000 40000
1 2
2 3
3 4
4 5
2 6
1 7
7 8
7 9
1 10
4 11
7 12
1 13
5 14
5 15
4 16
7 17
9 18
5 19
10 20
8 21
1 22
1 23
6 24
5 25
2 26
7 27
1 28
7 29
9 30
10 31
7 32
3 33
8 34
10 35
8 36
10 37
2 38
7 39
6 40
9 41
8 42
7 43
9 44
3 45
2 46
5 47
10 48
2 49
6 50
4 51
6 52
5 53
8 54
5 55
6 56
6 57
7 58
3 5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #19:

score: 17
Accepted
time: 1ms
memory: 6196kb

input:

100 3000 40000
1 2
1 3
3 4
3 5
5 6
5 7
6 8
7 9
8 10
10 11
10 12
12 13
13 14
13 15
15 16
16 17
16 18
17 19
18 20
19 21
21 22
22 23
23 24
24 25
24 26
25 27
26 28
27 29
28 30
30 31
30 32
31 33
33 34
34 35
34 36
35 37
37 38
38 39
39 40
39 41
41 42
42 43
43 44
44 45
45 46
46 47
47 48
48 49
48 50
49 51
50...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #20:

score: 17
Accepted
time: 1ms
memory: 6204kb

input:

100 3000 40000
1 2
1 3
1 4
1 5
2 6
2 7
2 8
3 9
3 10
3 11
4 12
4 13
4 14
5 15
5 16
5 17
6 18
6 19
6 20
7 21
7 22
7 23
8 24
8 25
8 26
9 27
9 28
9 29
10 30
10 31
10 32
11 33
11 34
11 35
12 36
12 37
12 38
13 39
13 40
13 41
14 42
14 43
14 44
15 45
15 46
15 47
16 48
16 49
16 50
17 51
17 52
17 53
18 54
18 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #21:

score: 17
Accepted
time: 1ms
memory: 6188kb

input:

100 3000 40000
1 2
1 3
2 4
2 5
3 6
3 7
4 8
4 9
5 10
5 11
6 12
6 13
7 14
7 15
8 16
8 17
9 18
9 19
10 20
10 21
11 22
11 23
12 24
12 25
13 26
13 27
14 28
14 29
15 30
15 31
16 32
16 33
17 34
17 35
18 36
18 37
19 38
19 39
20 40
20 41
21 42
21 43
22 44
22 45
23 46
23 47
24 48
24 49
25 50
25 51
26 52
26 53...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #22:

score: 17
Accepted
time: 1ms
memory: 8312kb

input:

100 3000 40000
1 2
1 3
1 4
1 5
2 6
3 7
1 8
3 9
4 10
3 11
8 12
3 13
1 14
6 15
1 16
2 17
9 18
5 19
6 20
20 21
8 22
9 23
10 24
7 25
4 26
19 27
24 28
4 29
5 30
19 31
6 32
26 33
23 34
17 35
10 36
28 37
15 38
18 39
26 40
33 41
38 42
41 43
34 44
18 45
12 46
33 47
34 48
25 49
27 50
10 51
21 52
29 53
4 54
30...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #23:

score: 17
Accepted
time: 1ms
memory: 6144kb

input:

100 3000 40000
1 2
1 3
1 4
1 5
3 6
1 7
1 8
5 9
2 10
6 11
3 12
9 13
7 14
12 15
8 16
9 17
11 18
13 19
17 20
19 21
18 22
20 23
14 24
18 25
24 26
25 27
24 28
21 29
20 30
22 31
26 32
23 33
24 34
26 35
32 36
28 37
36 38
34 39
34 40
35 41
32 42
34 43
41 44
43 45
43 46
41 47
38 48
43 49
42 50
42 51
49 52
48...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #24:

score: 17
Accepted
time: 1ms
memory: 6184kb

input:

100 3000 40000
1 2
2 3
1 4
1 5
1 6
1 7
1 8
1 9
1 10
2 11
2 12
1 13
2 14
2 15
2 16
2 17
2 18
2 19
2 20
1 21
1 22
1 23
2 24
1 25
1 26
2 27
2 28
2 29
2 30
1 31
1 32
1 33
2 34
1 35
2 36
2 37
1 38
1 39
2 40
2 41
2 42
1 43
2 44
1 45
2 46
1 47
2 48
2 49
2 50
2 51
1 52
1 53
1 54
1 55
2 56
1 57
2 58
2 59
1 6...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #25:

score: 17
Accepted
time: 0ms
memory: 10096kb

input:

100 3000 40000
1 2
2 3
3 4
4 5
2 6
1 7
7 8
1 9
2 10
3 11
4 12
9 13
3 14
1 15
7 16
5 17
10 18
7 19
6 20
4 21
2 22
8 23
7 24
4 25
2 26
5 27
6 28
3 29
4 30
7 31
10 32
7 33
5 34
10 35
5 36
8 37
7 38
3 39
6 40
3 41
4 42
5 43
7 44
10 45
8 46
9 47
4 48
2 49
4 50
2 51
3 52
5 53
6 54
3 55
10 56
1 57
5 58
7 5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #26:

score: 17
Accepted
time: 1ms
memory: 6180kb

input:

100 3000 40000
1 2
2 3
1 4
1 5
1 6
6 7
1 8
7 9
2 10
9 11
2 12
11 13
11 14
6 15
10 16
9 17
13 18
16 19
17 20
19 21
13 22
17 23
16 24
20 25
23 26
21 27
22 28
23 29
26 30
23 31
31 32
30 33
30 34
34 35
28 36
34 37
31 38
37 39
31 40
33 41
32 42
41 43
43 44
41 45
45 46
44 47
47 48
46 49
45 50
50 51
49 52
...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #27:

score: 17
Accepted
time: 1ms
memory: 6468kb

input:

100 3000 40000
1 2
2 3
3 4
4 5
5 6
2 7
7 8
8 9
9 10
2 11
4 12
3 13
2 14
1 15
4 16
2 17
6 18
2 19
9 20
7 21
1 22
8 23
1 24
5 25
3 26
8 27
7 28
3 29
5 30
10 31
6 32
6 33
10 34
8 35
7 36
6 37
3 38
9 39
6 40
5 41
3 42
6 43
1 44
6 45
8 46
3 47
1 48
2 49
2 50
8 51
7 52
8 53
9 54
1 55
2 56
1 57
9 58
5 59
9...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #28:

score: 17
Accepted
time: 1ms
memory: 6144kb

input:

100 3000 40000
1 2
1 3
1 4
1 5
5 6
5 7
6 8
7 9
1 10
9 11
8 12
8 13
9 14
5 15
8 16
15 17
14 18
9 19
14 20
18 21
18 22
19 23
17 24
16 25
21 26
23 27
24 28
23 29
29 30
29 31
29 32
24 33
27 34
31 35
34 36
29 37
34 38
38 39
34 40
34 41
33 42
33 43
42 44
42 45
36 46
45 47
38 48
45 49
40 50
50 51
45 52
47 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #29:

score: 17
Accepted
time: 1ms
memory: 6176kb

input:

100 3000 40000
1 2
1 3
3 4
4 5
5 6
6 7
4 8
3 9
9 10
4 11
2 12
7 13
7 14
6 15
7 16
3 17
7 18
2 19
9 20
10 21
9 22
8 23
8 24
4 25
1 26
7 27
7 28
9 29
9 30
10 31
7 32
5 33
2 34
3 35
9 36
3 37
9 38
8 39
8 40
5 41
3 42
8 43
7 44
1 45
2 46
4 47
9 48
4 49
4 50
9 51
8 52
3 53
2 54
3 55
7 56
1 57
2 58
9 59
4...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #30:

score: 17
Accepted
time: 1ms
memory: 8280kb

input:

100 3000 40000
1 2
2 3
3 4
4 5
5 6
6 7
5 8
8 9
7 10
4 11
9 12
9 13
5 14
1 15
8 16
1 17
10 18
8 19
4 20
9 21
2 22
4 23
10 24
7 25
9 26
3 27
1 28
5 29
10 30
7 31
9 32
3 33
5 34
2 35
8 36
7 37
6 38
8 39
10 40
7 41
1 42
5 43
2 44
8 45
7 46
9 47
8 48
4 49
2 50
3 51
6 52
1 53
7 54
4 55
6 56
3 57
9 58
9 59...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #31:

score: 17
Accepted
time: 1ms
memory: 6232kb

input:

100 3000 40000
1 2
1 3
2 4
1 5
1 6
1 7
1 8
1 9
2 10
2 11
1 12
1 13
2 14
1 15
1 16
2 17
1 18
1 19
1 20
1 21
1 22
1 23
1 24
1 25
2 26
1 27
2 28
1 29
2 30
1 31
1 32
1 33
2 34
1 35
1 36
1 37
1 38
1 39
1 40
2 41
2 42
2 43
1 44
2 45
2 46
2 47
1 48
1 49
2 50
2 51
2 52
2 53
1 54
1 55
2 56
2 57
2 58
1 59
2 6...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #32:

score: 17
Accepted
time: 1ms
memory: 6204kb

input:

100 3000 40000
1 2
1 3
1 4
1 5
1 6
1 7
3 8
1 9
4 10
6 11
11 12
5 13
5 14
11 15
14 16
10 17
15 18
12 19
18 20
12 21
13 22
17 23
15 24
22 25
19 26
26 27
26 28
27 29
22 30
26 31
26 32
26 33
25 34
30 35
33 36
31 37
31 38
35 39
30 40
35 41
33 42
40 43
37 44
43 45
44 46
38 47
38 48
43 49
42 50
46 51
43 52...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #33:

score: 17
Accepted
time: 1ms
memory: 6144kb

input:

100 3000 40000
73 53
73 12
73 75
73 88
73 24
73 30
73 99
73 81
73 43
73 84
73 11
73 94
73 97
73 26
73 25
73 4
73 14
73 44
73 34
73 71
73 51
73 16
73 77
73 32
73 58
73 36
73 8
73 76
73 59
73 15
73 87
73 45
73 3
73 35
73 91
73 67
73 92
75 65
84 80
44 40
34 42
16 37
88 13
99 90
58 38
84 95
91 85
75 2
7...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #34:

score: 17
Accepted
time: 1ms
memory: 8496kb

input:

100 3000 40000
53 59
53 50
53 8
53 49
53 11
53 37
53 69
53 68
53 16
53 67
53 74
53 36
53 84
53 1
53 3
53 56
53 91
53 85
53 18
53 43
53 89
53 75
53 78
53 41
53 83
53 70
53 51
53 97
53 73
53 33
53 99
53 90
53 24
53 98
53 96
53 44
53 14
53 63
53 39
53 28
53 86
53 64
53 2
53 9
53 60
53 93
53 77
53 92
53...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #35:

score: 17
Accepted
time: 1ms
memory: 6192kb

input:

100 3000 40000
1 2
1 3
1 4
1 5
2 6
2 7
2 8
3 9
3 10
3 11
4 12
4 13
4 14
5 15
5 16
5 17
6 18
6 19
6 20
7 21
7 22
7 23
8 24
8 25
8 26
9 27
9 28
9 29
10 30
10 31
10 32
11 33
11 34
11 35
12 36
12 37
12 38
13 39
13 40
13 41
14 42
14 43
14 44
15 45
15 46
15 47
16 48
16 49
16 50
17 51
17 52
17 53
18 54
18 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #36:

score: 17
Accepted
time: 1ms
memory: 6240kb

input:

100 3000 40000
47 87
41 47
50 41
71 50
17 71
54 18
89 58
33 89
60 33
35 60
79 35
12 79
83 12
81 83
20 81
37 20
23 37
56 23
11 56
21 11
40 21
98 40
9 98
61 9
22 61
99 22
30 99
73 30
82 73
85 82
10 85
51 10
93 51
91 93
24 91
7 24
8 7
92 8
55 92
67 55
53 67
57 53
64 57
74 64
16 74
90 16
13 90
77 25
96 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #37:

score: 17
Accepted
time: 0ms
memory: 8476kb

input:

100 3000 40000
77 72
77 66
77 95
77 15
77 96
77 41
77 50
77 34
77 68
77 97
77 20
77 64
77 37
77 80
77 90
77 31
77 60
77 81
77 78
77 55
77 79
77 53
77 70
77 62
77 19
77 26
77 43
77 75
77 83
77 89
77 91
77 67
77 35
77 59
77 17
77 54
77 14
77 8
77 84
77 10
77 74
77 76
77 32
77 2
77 23
77 88
77 56
77 39...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #38:

score: 17
Accepted
time: 1ms
memory: 6504kb

input:

100 3000 40000
54 61
54 15
54 94
54 30
54 56
54 6
54 55
54 4
54 78
54 29
54 9
54 87
54 23
54 33
54 2
54 50
54 11
54 65
54 22
54 68
54 1
54 3
54 95
54 34
54 73
54 48
54 32
54 57
54 84
54 24
54 45
54 72
54 19
54 74
54 49
54 12
54 28
54 41
54 64
54 53
54 36
95 79
65 44
78 60
23 82
48 16
30 10
56 91
12 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #39:

score: 17
Accepted
time: 0ms
memory: 6472kb

input:

100 3000 40000
75 8
75 88
75 16
75 7
75 5
75 11
75 72
75 86
75 91
75 14
75 57
75 55
75 71
75 97
75 50
75 84
75 48
75 27
75 64
75 79
75 85
75 39
75 32
75 53
75 46
75 49
75 37
75 78
75 45
75 44
75 25
75 13
75 67
75 15
75 35
75 12
75 23
75 69
75 68
75 90
75 92
75 65
75 41
75 87
75 56
75 81
75 1
75 95
7...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #40:

score: 17
Accepted
time: 1ms
memory: 10008kb

input:

100 3000 40000
1 2
1 3
2 4
4 5
4 6
5 7
6 8
8 9
9 10
10 11
11 12
11 13
12 14
13 15
14 16
16 17
17 18
17 19
19 20
20 21
21 22
21 23
23 24
24 25
24 26
25 27
27 28
28 29
28 30
30 31
30 32
31 33
33 34
33 35
34 36
35 37
37 38
38 39
38 40
40 41
40 42
41 43
43 44
43 45
44 46
46 47
46 48
47 49
49 50
50 51
51...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #41:

score: 17
Accepted
time: 1ms
memory: 6504kb

input:

100 3000 40000
1 2
2 3
2 4
1 5
2 6
1 7
2 8
2 9
2 10
1 11
1 12
2 13
1 14
2 15
1 16
1 17
1 18
1 19
1 20
1 21
2 22
2 23
2 24
1 25
2 26
2 27
2 28
2 29
1 30
1 31
2 32
1 33
2 34
1 35
1 36
1 37
1 38
2 39
2 40
1 41
1 42
2 43
2 44
1 45
1 46
2 47
1 48
2 49
2 50
2 51
2 52
2 53
2 54
1 55
2 56
1 57
2 58
1 59
1 6...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #42:

score: 17
Accepted
time: 0ms
memory: 6480kb

input:

100 3000 40000
1 2
2 3
1 4
2 5
3 6
3 7
6 8
5 9
6 10
4 11
9 12
7 13
3 14
2 15
4 16
11 17
2 18
12 19
14 20
2 21
11 22
1 23
1 24
3 25
8 26
23 27
20 28
27 29
25 30
7 31
7 32
29 33
6 34
15 35
22 36
32 37
27 38
2 39
3 40
7 41
18 42
6 43
34 44
35 45
35 46
12 47
47 48
3 49
37 50
45 51
31 52
9 53
11 54
41 55...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #43:

score: 17
Accepted
time: 1ms
memory: 6504kb

input:

100 3000 40000
1 2
1 3
2 4
4 5
4 6
5 7
7 8
7 9
8 10
9 11
10 12
11 13
12 14
14 15
15 16
16 17
17 18
18 19
19 20
19 21
21 22
21 23
23 24
24 25
24 26
26 27
27 28
28 29
28 30
29 31
31 32
31 33
32 34
34 35
34 36
35 37
36 38
38 39
39 40
39 41
40 42
42 43
43 44
43 45
44 46
45 47
47 48
47 49
48 50
50 51
50 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #44:

score: 17
Accepted
time: 1ms
memory: 6264kb

input:

100 3000 40000
1 2
1 3
1 4
1 5
2 6
2 7
2 8
3 9
3 10
3 11
4 12
4 13
4 14
5 15
5 16
5 17
6 18
6 19
6 20
7 21
7 22
7 23
8 24
8 25
8 26
9 27
9 28
9 29
10 30
10 31
10 32
11 33
11 34
11 35
12 36
12 37
12 38
13 39
13 40
13 41
14 42
14 43
14 44
15 45
15 46
15 47
16 48
16 49
16 50
17 51
17 52
17 53
18 54
18 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #45:

score: 17
Accepted
time: 0ms
memory: 6216kb

input:

100 3000 40000
1 2
1 3
3 4
4 5
5 6
6 7
6 8
8 9
8 10
10 11
11 12
11 13
12 14
14 15
15 16
16 17
17 18
17 19
18 20
19 21
20 22
21 23
23 24
24 25
25 26
26 27
27 28
27 29
28 30
30 31
30 32
32 33
32 34
34 35
34 36
36 37
37 38
37 39
38 40
40 41
40 42
41 43
43 44
44 45
45 46
45 47
47 48
48 49
48 50
50 51
50...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #46:

score: 17
Accepted
time: 1ms
memory: 8244kb

input:

100 3000 40000
1 2
1 3
2 4
3 5
4 6
5 7
6 8
8 9
8 10
10 11
10 12
11 13
13 14
14 15
14 16
15 17
16 18
17 19
19 20
19 21
20 22
21 23
22 24
24 25
25 26
25 27
26 28
27 29
28 30
29 31
31 32
32 33
32 34
33 35
35 36
36 37
37 38
38 39
38 40
39 41
40 42
42 43
43 44
43 45
44 46
46 47
47 48
47 49
48 50
50 51
51...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #47:

score: 17
Accepted
time: 1ms
memory: 6256kb

input:

100 3000 40000
1 2
1 3
1 4
1 5
2 6
2 7
2 8
1 9
2 10
2 11
2 12
1 13
1 14
2 15
2 16
2 17
1 18
1 19
2 20
2 21
1 22
1 23
1 24
1 25
1 26
1 27
1 28
1 29
1 30
1 31
2 32
1 33
2 34
2 35
2 36
1 37
1 38
2 39
1 40
1 41
1 42
1 43
1 44
2 45
2 46
1 47
1 48
1 49
2 50
1 51
2 52
1 53
1 54
1 55
2 56
1 57
2 58
2 59
2 6...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #48:

score: 17
Accepted
time: 0ms
memory: 6192kb

input:

100 3000 40000
1 2
2 3
1 4
1 5
1 6
1 7
2 8
1 9
2 10
2 11
1 12
2 13
1 14
2 15
1 16
1 17
2 18
2 19
2 20
2 21
1 22
1 23
2 24
1 25
1 26
1 27
1 28
2 29
2 30
2 31
2 32
1 33
2 34
2 35
2 36
1 37
1 38
2 39
1 40
2 41
2 42
2 43
2 44
1 45
1 46
1 47
1 48
2 49
1 50
2 51
2 52
1 53
1 54
2 55
1 56
2 57
2 58
1 59
1 6...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #49:

score: 17
Accepted
time: 1ms
memory: 6192kb

input:

100 3000 40000
68 81
10 68
32 10
30 32
87 30
86 87
43 86
74 43
72 74
52 72
17 52
80 17
73 80
97 73
9 97
31 9
84 31
18 84
39 18
37 39
27 37
25 27
50 25
62 50
99 62
40 99
4 40
71 4
65 71
44 65
14 44
59 14
46 59
56 46
49 56
53 49
34 53
5 34
36 5
94 36
57 94
42 57
79 42
41 79
83 41
54 83
45 54
11 45
91 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #50:

score: 17
Accepted
time: 1ms
memory: 6216kb

input:

100 3000 40000
31 68
31 37
31 9
31 93
31 73
31 60
31 20
31 19
31 8
31 34
31 36
31 87
31 46
31 24
31 72
31 53
31 39
31 71
31 51
31 3
31 41
31 97
31 15
31 7
31 38
31 22
31 1
31 44
31 80
31 59
31 11
31 61
31 23
31 90
31 47
31 16
31 69
31 56
31 89
31 30
31 2
31 74
31 28
31 43
31 12
31 75
31 55
31 48
31 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #51:

score: 17
Accepted
time: 0ms
memory: 9980kb

input:

100 3000 40000
1 2
1 3
3 4
4 5
4 6
3 7
2 8
5 9
7 10
3 11
1 12
3 13
8 14
8 15
5 16
8 17
7 18
4 19
7 20
1 21
8 22
7 23
6 24
4 25
8 26
3 27
7 28
6 29
1 30
9 31
5 32
10 33
6 34
4 35
2 36
6 37
10 38
2 39
5 40
5 41
5 42
8 43
3 44
3 45
1 46
2 47
9 48
5 49
9 50
6 51
1 52
8 53
4 54
9 55
5 56
8 57
10 58
6 59
...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #52:

score: 17
Accepted
time: 1ms
memory: 9992kb

input:

100 3000 40000
1 2
1 3
2 4
4 5
5 6
6 7
7 8
8 9
9 10
9 11
11 12
12 13
13 14
14 15
14 16
15 17
16 18
18 19
18 20
20 21
21 22
21 23
22 24
24 25
24 26
26 27
26 28
28 29
29 30
29 31
30 32
31 33
32 34
33 35
35 36
35 37
37 38
38 39
39 40
40 41
40 42
41 43
42 44
43 45
44 46
45 47
46 48
47 49
48 50
49 51
50 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #53:

score: 17
Accepted
time: 1ms
memory: 6184kb

input:

100 3000 40000
1 2
1 3
1 4
3 5
4 6
3 7
1 8
1 9
1 10
1 11
11 12
10 13
13 14
11 15
10 16
8 17
13 18
18 19
10 20
14 21
13 22
19 23
14 24
24 25
19 26
25 27
25 28
22 29
27 30
30 31
29 32
23 33
27 34
30 35
33 36
33 37
29 38
32 39
31 40
31 41
38 42
40 43
37 44
43 45
37 46
46 47
42 48
40 49
42 50
46 51
49 5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #54:

score: 17
Accepted
time: 1ms
memory: 6464kb

input:

100 3000 40000
89 26
89 45
89 20
89 98
89 4
89 73
89 77
89 70
89 95
89 46
89 96
89 84
89 83
89 50
89 49
89 80
89 7
89 40
89 6
89 69
89 55
89 79
89 51
89 10
89 42
89 72
89 34
89 35
89 11
89 59
89 68
89 92
89 24
89 65
89 9
89 90
7 87
35 48
70 2
4 63
83 44
11 56
11 75
84 47
7 29
26 5
6 30
55 97
11 15
8...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #55:

score: 17
Accepted
time: 1ms
memory: 9868kb

input:

100 3000 40000
1 2
1 3
2 4
2 5
3 6
3 7
4 8
4 9
5 10
5 11
6 12
6 13
7 14
7 15
8 16
8 17
9 18
9 19
10 20
10 21
11 22
11 23
12 24
12 25
13 26
13 27
14 28
14 29
15 30
15 31
16 32
16 33
17 34
17 35
18 36
18 37
19 38
19 39
20 40
20 41
21 42
21 43
22 44
22 45
23 46
23 47
24 48
24 49
25 50
25 51
26 52
26 53...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #56:

score: 17
Accepted
time: 1ms
memory: 8212kb

input:

100 3000 40000
1 2
2 3
2 4
2 5
1 6
2 7
2 8
2 9
2 10
1 11
2 12
1 13
2 14
1 15
1 16
2 17
1 18
2 19
2 20
2 21
1 22
1 23
2 24
1 25
2 26
2 27
2 28
2 29
1 30
1 31
1 32
2 33
2 34
1 35
2 36
1 37
1 38
2 39
1 40
1 41
2 42
1 43
1 44
2 45
1 46
2 47
1 48
1 49
1 50
2 51
1 52
1 53
1 54
2 55
2 56
2 57
2 58
2 59
2 6...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #57:

score: 17
Accepted
time: 0ms
memory: 6220kb

input:

100 3000 40000
89 14
28 89
100 28
2 100
10 2
63 10
56 63
60 56
4 60
41 4
8 41
81 8
46 81
71 46
51 71
58 51
90 58
65 90
74 65
62 74
93 62
97 93
85 97
3 85
31 3
59 31
27 59
20 27
22 20
15 22
42 15
69 42
57 69
50 35
12 50
11 12
16 11
45 16
64 45
88 64
26 88
38 26
73 38
68 73
37 68
53 37
98 53
5 98
33 5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #58:

score: 17
Accepted
time: 1ms
memory: 6184kb

input:

100 3000 40000
51 74
51 60
51 57
51 90
51 49
51 48
51 58
51 81
51 85
51 17
51 93
51 76
51 28
51 26
51 98
51 99
51 11
51 95
51 66
51 40
51 22
51 12
51 86
51 96
51 89
51 46
51 45
51 13
51 4
51 77
51 61
51 44
51 10
51 59
51 43
51 36
51 35
51 72
51 20
51 84
51 50
51 54
85 34
40 14
43 94
35 79
22 82
93 5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #59:

score: 17
Accepted
time: 0ms
memory: 10112kb

input:

100 3000 40000
1 2
2 3
3 4
4 5
5 6
6 7
2 8
8 9
7 10
5 11
2 12
7 13
10 14
5 15
1 16
1 17
5 18
6 19
4 20
6 21
3 22
8 23
10 24
4 25
4 26
4 27
4 28
2 29
4 30
2 31
6 32
6 33
10 34
6 35
9 36
2 37
6 38
2 39
9 40
9 41
10 42
10 43
3 44
3 45
9 46
5 47
6 48
8 49
4 50
4 51
5 52
10 53
8 54
3 55
4 56
3 57
4 58
9 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #60:

score: 17
Accepted
time: 1ms
memory: 6472kb

input:

100 3000 40000
1 2
1 3
2 4
2 5
3 6
6 7
1 8
1 9
7 10
2 11
4 12
5 13
10 14
4 15
7 16
2 17
4 18
17 19
19 20
13 21
17 22
16 23
8 24
11 25
12 26
10 27
27 28
22 29
21 30
23 31
17 32
11 33
33 34
15 35
33 36
16 37
18 38
26 39
7 40
2 41
41 42
32 43
33 44
40 45
33 46
3 47
35 48
14 49
22 50
1 51
19 52
36 53
32...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #61:

score: 17
Accepted
time: 1ms
memory: 6200kb

input:

100 3000 40000
1 2
1 3
1 4
1 5
2 6
2 7
2 8
1 9
1 10
2 11
2 12
2 13
1 14
2 15
2 16
1 17
1 18
2 19
1 20
2 21
1 22
1 23
1 24
1 25
2 26
1 27
1 28
2 29
1 30
2 31
1 32
1 33
1 34
1 35
2 36
2 37
1 38
1 39
2 40
1 41
2 42
2 43
2 44
2 45
2 46
2 47
2 48
1 49
1 50
2 51
1 52
2 53
1 54
1 55
2 56
1 57
1 58
2 59
2 6...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #62:

score: 17
Accepted
time: 1ms
memory: 6464kb

input:

100 3000 40000
13 45
13 37
13 9
13 94
13 97
13 34
13 86
13 23
13 20
13 100
13 90
13 85
13 62
13 46
13 14
13 42
13 29
13 44
13 28
13 51
13 63
13 93
13 78
13 50
13 19
13 39
13 68
13 40
13 16
13 36
13 35
13 38
13 55
13 48
13 92
13 70
13 96
13 5
13 83
13 21
13 56
13 22
13 7
13 65
13 69
13 80
13 66
13 60...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #63:

score: 17
Accepted
time: 1ms
memory: 6184kb

input:

100 3000 40000
75 11
70 75
51 70
36 51
87 36
96 87
53 96
90 53
68 90
27 68
88 27
55 88
39 55
16 39
73 16
38 73
54 38
12 54
50 12
37 50
63 37
56 63
60 56
91 84
4 91
95 4
10 95
66 10
76 66
22 76
31 22
43 31
82 43
24 82
58 24
92 58
7 92
86 7
1 86
42 1
81 42
6 49
21 17
15 21
34 19
77 34
85 77
59 85
65 5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #64:

score: 17
Accepted
time: 0ms
memory: 10224kb

input:

100 3000 40000
85 95
85 43
85 21
85 38
85 15
85 89
85 92
85 12
85 87
85 16
85 66
85 42
85 100
85 41
85 82
85 67
85 78
85 22
85 74
85 31
85 62
85 90
85 96
85 17
85 46
85 65
85 20
85 45
85 64
85 4
85 14
85 50
85 11
85 84
85 25
85 86
85 19
85 73
85 88
85 7
85 24
85 28
85 77
89 37
65 27
92 98
95 54
78 3...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #65:

score: 17
Accepted
time: 0ms
memory: 6504kb

input:

100 3000 40000
1 2
1 3
2 4
3 5
3 6
3 7
2 8
7 9
7 10
2 11
2 12
6 13
4 14
13 15
1 16
8 17
14 18
4 19
11 20
2 21
8 22
8 23
16 24
14 25
7 26
11 27
3 28
17 29
6 30
9 31
2 32
18 33
21 34
4 35
24 36
17 37
15 38
8 39
30 40
20 41
28 42
23 43
13 44
27 45
29 46
3 47
12 48
25 49
33 50
32 51
18 52
49 53
38 54
9 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #66:

score: 17
Accepted
time: 1ms
memory: 6192kb

input:

100 3000 40000
1 2
1 3
1 4
1 5
2 6
2 7
2 8
3 9
3 10
3 11
4 12
4 13
4 14
5 15
5 16
5 17
6 18
6 19
6 20
7 21
7 22
7 23
8 24
8 25
8 26
9 27
9 28
9 29
10 30
10 31
10 32
11 33
11 34
11 35
12 36
12 37
12 38
13 39
13 40
13 41
14 42
14 43
14 44
15 45
15 46
15 47
16 48
16 49
16 50
17 51
17 52
17 53
18 54
18 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #67:

score: 17
Accepted
time: 1ms
memory: 6464kb

input:

100 3000 40000
62 50
62 25
62 53
62 10
62 39
62 77
62 65
62 13
62 17
62 84
62 52
62 38
62 36
62 9
62 3
62 15
62 66
62 49
62 41
62 51
62 100
62 63
62 87
62 44
62 88
62 12
62 98
62 30
62 76
62 99
62 92
62 47
62 68
62 4
62 58
62 81
62 46
62 72
62 14
62 59
62 54
62 19
62 94
62 23
62 56
62 5
62 48
62 21
...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #68:

score: 17
Accepted
time: 1ms
memory: 6144kb

input:

100 3000 40000
1 2
1 3
3 4
4 5
4 6
5 7
7 8
7 9
9 10
10 11
11 12
11 13
12 14
14 15
15 16
16 17
17 18
18 19
19 20
19 21
21 22
22 23
23 24
24 25
24 26
26 27
27 28
27 29
29 30
29 31
31 32
31 33
32 34
33 35
35 36
35 37
37 38
37 39
38 40
40 41
41 42
42 43
43 44
43 45
45 46
45 47
46 48
48 49
48 50
49 51
51...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #69:

score: 17
Accepted
time: 1ms
memory: 6460kb

input:

100 3000 40000
1 2
2 3
2 4
1 5
1 6
3 7
1 8
2 9
5 10
10 11
1 12
9 13
9 14
12 15
6 16
8 17
6 18
15 19
2 20
12 21
6 22
3 23
21 24
5 25
7 26
5 27
13 28
8 29
25 30
27 31
21 32
21 33
21 34
31 35
6 36
1 37
6 38
19 39
11 40
16 41
20 42
1 43
16 44
34 45
30 46
3 47
37 48
35 49
18 50
11 51
24 52
10 53
52 54
4 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #70:

score: 17
Accepted
time: 1ms
memory: 6468kb

input:

100 3000 40000
1 2
2 3
2 4
1 5
2 6
1 7
2 8
1 9
1 10
2 11
1 12
2 13
2 14
1 15
1 16
2 17
1 18
2 19
2 20
2 21
1 22
1 23
2 24
1 25
2 26
2 27
2 28
2 29
1 30
1 31
1 32
2 33
2 34
2 35
1 36
2 37
2 38
1 39
2 40
2 41
2 42
2 43
1 44
2 45
2 46
2 47
2 48
2 49
2 50
2 51
2 52
2 53
2 54
1 55
2 56
1 57
1 58
1 59
2 6...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #71:

score: 17
Accepted
time: 0ms
memory: 6472kb

input:

100 3000 40000
1 2
1 3
1 4
1 5
2 6
2 7
1 8
1 9
2 10
1 11
1 12
2 13
2 14
1 15
2 16
2 17
1 18
1 19
1 20
2 21
2 22
1 23
2 24
2 25
2 26
1 27
2 28
1 29
2 30
1 31
2 32
2 33
2 34
1 35
2 36
1 37
2 38
1 39
1 40
1 41
2 42
2 43
1 44
1 45
2 46
2 47
2 48
2 49
1 50
1 51
2 52
1 53
2 54
1 55
1 56
2 57
1 58
2 59
1 6...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #72:

score: 17
Accepted
time: 1ms
memory: 8512kb

input:

100 3000 40000
1 2
1 3
2 4
2 5
3 6
3 7
4 8
4 9
5 10
5 11
6 12
6 13
7 14
7 15
8 16
8 17
9 18
9 19
10 20
10 21
11 22
11 23
12 24
12 25
13 26
13 27
14 28
14 29
15 30
15 31
16 32
16 33
17 34
17 35
18 36
18 37
19 38
19 39
20 40
20 41
21 42
21 43
22 44
22 45
23 46
23 47
24 48
24 49
25 50
25 51
26 52
26 53...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #73:

score: 17
Accepted
time: 1ms
memory: 6200kb

input:

100 3000 40000
1 2
1 3
1 4
2 5
1 6
1 7
1 8
5 9
8 10
5 11
8 12
6 13
11 14
9 15
15 16
7 17
16 18
15 19
19 20
12 21
21 22
13 23
16 24
20 25
23 26
20 27
22 28
24 29
26 30
26 31
24 32
26 33
26 34
33 35
35 36
34 37
36 38
33 39
38 40
36 41
35 42
41 43
40 44
44 45
38 46
37 47
47 48
48 49
48 50
42 51
50 52
4...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #74:

score: 17
Accepted
time: 1ms
memory: 6212kb

input:

100 3000 40000
1 2
1 3
2 4
2 5
3 6
3 7
4 8
4 9
5 10
5 11
6 12
6 13
7 14
7 15
8 16
8 17
9 18
9 19
10 20
10 21
11 22
11 23
12 24
12 25
13 26
13 27
14 28
14 29
15 30
15 31
16 32
16 33
17 34
17 35
18 36
18 37
19 38
19 39
20 40
20 41
21 42
21 43
22 44
22 45
23 46
23 47
24 48
24 49
25 50
25 51
26 52
26 53...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #75:

score: 17
Accepted
time: 0ms
memory: 6472kb

input:

100 3000 40000
99 78
99 72
99 73
99 44
99 71
99 90
99 49
99 22
99 62
99 84
99 50
99 59
99 31
99 47
99 25
99 82
99 30
99 11
99 43
99 51
99 77
99 81
99 32
99 88
99 48
99 10
99 46
99 55
99 6
99 52
99 89
99 9
99 37
99 100
99 80
99 83
99 28
99 56
99 13
99 17
99 35
99 85
99 2
99 61
99 42
99 63
99 67
99 1
...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #76:

score: 17
Accepted
time: 1ms
memory: 6252kb

input:

100 3000 40000
1 2
1 3
2 4
2 5
3 6
3 7
4 8
4 9
5 10
5 11
6 12
6 13
7 14
7 15
8 16
8 17
9 18
9 19
10 20
10 21
11 22
11 23
12 24
12 25
13 26
13 27
14 28
14 29
15 30
15 31
16 32
16 33
17 34
17 35
18 36
18 37
19 38
19 39
20 40
20 41
21 42
21 43
22 44
22 45
23 46
23 47
24 48
24 49
25 50
25 51
26 52
26 53...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #77:

score: 17
Accepted
time: 0ms
memory: 6204kb

input:

100 3000 40000
1 2
2 3
3 4
4 5
2 6
3 7
6 8
2 9
6 10
3 11
7 12
2 13
4 14
8 15
5 16
7 17
2 18
1 19
1 20
1 21
8 22
5 23
2 24
2 25
4 26
6 27
4 28
7 29
10 30
8 31
10 32
9 33
7 34
6 35
6 36
2 37
3 38
5 39
8 40
7 41
5 42
3 43
9 44
10 45
1 46
7 47
3 48
5 49
1 50
3 51
10 52
6 53
9 54
10 55
2 56
5 57
10 58
6 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #78:

score: 17
Accepted
time: 0ms
memory: 6140kb

input:

100 3000 40000
17 51
96 17
3 96
75 3
15 75
79 19
91 79
26 91
27 26
38 27
12 38
86 12
22 86
98 22
10 98
55 10
1 55
88 1
74 88
80 74
59 80
95 59
52 95
11 52
83 11
6 83
60 6
72 60
100 49
24 100
61 24
35 46
93 35
34 93
64 34
8 64
45 8
69 45
20 69
81 20
29 81
37 29
30 37
62 30
56 62
97 56
70 97
25 70
14 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #79:

score: 17
Accepted
time: 1ms
memory: 6140kb

input:

100 3000 40000
1 2
1 3
2 4
2 5
3 6
3 7
4 8
4 9
5 10
5 11
6 12
6 13
7 14
7 15
8 16
8 17
9 18
9 19
10 20
10 21
11 22
11 23
12 24
12 25
13 26
13 27
14 28
14 29
15 30
15 31
16 32
16 33
17 34
17 35
18 36
18 37
19 38
19 39
20 40
20 41
21 42
21 43
22 44
22 45
23 46
23 47
24 48
24 49
25 50
25 51
26 52
26 53...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #80:

score: 17
Accepted
time: 1ms
memory: 6088kb

input:

100 3000 40000
1 2
1 3
2 4
3 5
3 6
3 7
2 8
5 9
2 10
10 11
8 12
9 13
9 14
10 15
5 16
1 17
5 18
17 19
12 20
14 21
10 22
21 23
4 24
5 25
13 26
1 27
14 28
21 29
13 30
18 31
27 32
12 33
6 34
2 35
16 36
9 37
12 38
36 39
36 40
25 41
19 42
40 43
40 44
37 45
33 46
25 47
5 48
21 49
6 50
2 51
8 52
37 53
40 54
...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #81:

score: 17
Accepted
time: 0ms
memory: 8288kb

input:

100 3000 40000
1 2
2 3
3 4
1 5
1 6
1 7
1 8
6 9
5 10
6 11
7 12
12 13
13 14
10 15
10 16
10 17
11 18
11 19
12 20
11 21
16 22
20 23
18 24
19 25
23 26
21 27
22 28
21 29
29 30
28 31
25 32
25 33
26 34
28 35
30 36
34 37
35 38
29 39
39 40
39 41
33 42
37 43
35 44
36 45
39 46
39 47
43 48
48 49
44 50
43 51
44 5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #82:

score: 17
Accepted
time: 0ms
memory: 6216kb

input:

100 3000 40000
1 2
1 3
2 4
2 5
3 6
3 7
4 8
4 9
5 10
5 11
6 12
6 13
7 14
7 15
8 16
8 17
9 18
9 19
10 20
10 21
11 22
11 23
12 24
12 25
13 26
13 27
14 28
14 29
15 30
15 31
16 32
16 33
17 34
17 35
18 36
18 37
19 38
19 39
20 40
20 41
21 42
21 43
22 44
22 45
23 46
23 47
24 48
24 49
25 50
25 51
26 52
26 53...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #83:

score: 17
Accepted
time: 1ms
memory: 6476kb

input:

100 3000 40000
1 2
1 3
1 4
2 5
1 6
1 7
1 8
2 9
1 10
1 11
1 12
1 13
1 14
2 15
2 16
2 17
1 18
1 19
1 20
1 21
2 22
1 23
1 24
2 25
1 26
2 27
2 28
1 29
2 30
1 31
1 32
2 33
1 34
1 35
1 36
1 37
1 38
1 39
1 40
1 41
1 42
2 43
2 44
1 45
1 46
1 47
1 48
1 49
1 50
2 51
2 52
2 53
2 54
2 55
1 56
2 57
1 58
1 59
2 6...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #84:

score: 17
Accepted
time: 0ms
memory: 6224kb

input:

100 3000 40000
57 78
57 69
57 45
57 81
57 77
57 73
57 54
57 15
57 20
57 3
57 88
57 62
57 87
57 96
57 44
57 59
57 33
57 93
57 2
57 26
57 83
57 14
57 74
57 35
57 28
57 100
57 98
57 12
57 31
57 61
57 39
57 4
57 71
57 94
57 29
57 76
57 80
57 70
57 9
57 8
57 75
57 68
57 53
57 49
57 56
57 41
57 40
57 79
5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #85:

score: 17
Accepted
time: 1ms
memory: 6216kb

input:

100 3000 40000
1 2
2 3
3 4
4 5
3 6
3 7
7 8
4 9
4 10
6 11
7 12
9 13
10 14
10 15
9 16
6 17
8 18
10 19
7 20
7 21
4 22
7 23
6 24
3 25
2 26
1 27
6 28
7 29
10 30
9 31
5 32
4 33
7 34
8 35
7 36
10 37
6 38
9 39
5 40
7 41
8 42
2 43
6 44
10 45
6 46
3 47
2 48
4 49
1 50
9 51
9 52
9 53
6 54
8 55
2 56
7 57
8 58
3 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #86:

score: 17
Accepted
time: 1ms
memory: 9904kb

input:

100 3000 40000
1 2
1 3
2 4
1 5
2 6
1 7
1 8
2 9
2 10
1 11
1 12
1 13
1 14
2 15
1 16
1 17
2 18
1 19
1 20
2 21
1 22
1 23
1 24
2 25
2 26
1 27
2 28
1 29
1 30
2 31
1 32
1 33
2 34
1 35
2 36
1 37
1 38
1 39
2 40
2 41
1 42
1 43
1 44
2 45
2 46
2 47
1 48
1 49
1 50
1 51
2 52
2 53
1 54
1 55
2 56
2 57
2 58
1 59
2 6...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #87:

score: 17
Accepted
time: 0ms
memory: 6472kb

input:

100 3000 40000
1 2
1 3
2 4
2 5
3 6
3 7
4 8
4 9
5 10
5 11
6 12
6 13
7 14
7 15
8 16
8 17
9 18
9 19
10 20
10 21
11 22
11 23
12 24
12 25
13 26
13 27
14 28
14 29
15 30
15 31
16 32
16 33
17 34
17 35
18 36
18 37
19 38
19 39
20 40
20 41
21 42
21 43
22 44
22 45
23 46
23 47
24 48
24 49
25 50
25 51
26 52
26 53...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #88:

score: 17
Accepted
time: 1ms
memory: 6196kb

input:

100 3000 40000
1 2
2 3
2 4
1 5
5 6
3 7
6 8
8 9
9 10
3 11
2 12
6 13
9 14
4 15
9 16
5 17
2 18
9 19
2 20
7 21
8 22
4 23
4 24
2 25
5 26
3 27
6 28
9 29
5 30
6 31
9 32
3 33
9 34
2 35
2 36
7 37
8 38
5 39
9 40
9 41
4 42
1 43
5 44
10 45
5 46
7 47
6 48
10 49
10 50
9 51
8 52
10 53
3 54
5 55
9 56
6 57
10 58
2 5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #89:

score: 17
Accepted
time: 1ms
memory: 6256kb

input:

100 3000 40000
5 83
5 55
5 18
5 30
5 69
5 19
5 33
5 35
5 8
5 44
5 79
5 21
5 75
5 13
5 78
5 28
5 80
5 39
5 94
5 95
5 71
5 93
5 26
5 67
5 6
5 2
5 63
5 98
5 25
5 74
5 68
5 27
5 52
5 77
5 62
5 40
5 65
5 100
5 72
5 15
5 82
5 50
5 36
5 38
5 41
5 56
5 4
5 99
5 11
5 12
5 51
5 20
5 64
5 42
5 53
5 37
5 10
5 4...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #90:

score: 17
Accepted
time: 1ms
memory: 6260kb

input:

100 3000 40000
1 2
1 3
1 4
1 5
2 6
2 7
2 8
3 9
3 10
3 11
4 12
4 13
4 14
5 15
5 16
5 17
6 18
6 19
6 20
7 21
7 22
7 23
8 24
8 25
8 26
9 27
9 28
9 29
10 30
10 31
10 32
11 33
11 34
11 35
12 36
12 37
12 38
13 39
13 40
13 41
14 42
14 43
14 44
15 45
15 46
15 47
16 48
16 49
16 50
17 51
17 52
17 53
18 54
18 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #91:

score: 17
Accepted
time: 0ms
memory: 6252kb

input:

100 3000 40000
1 2
1 3
1 4
1 5
2 6
2 7
2 8
3 9
3 10
3 11
4 12
4 13
4 14
5 15
5 16
5 17
6 18
6 19
6 20
7 21
7 22
7 23
8 24
8 25
8 26
9 27
9 28
9 29
10 30
10 31
10 32
11 33
11 34
11 35
12 36
12 37
12 38
13 39
13 40
13 41
14 42
14 43
14 44
15 45
15 46
15 47
16 48
16 49
16 50
17 51
17 52
17 53
18 54
18 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #92:

score: 17
Accepted
time: 0ms
memory: 6148kb

input:

100 3000 40000
84 88
84 37
84 47
84 77
84 29
84 68
84 58
84 66
84 92
84 2
84 6
84 52
84 61
84 48
84 51
84 40
84 55
84 46
84 79
84 62
84 70
84 38
84 35
84 73
84 97
84 15
84 60
84 72
84 45
84 99
84 44
84 98
84 19
84 83
84 69
84 3
84 94
84 56
84 33
84 34
84 17
84 11
84 80
84 30
84 89
84 93
84 90
35 64
...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #93:

score: 17
Accepted
time: 1ms
memory: 8420kb

input:

100 3000 40000
1 2
1 3
2 4
1 5
1 6
2 7
1 8
2 9
1 10
2 11
1 12
2 13
1 14
2 15
1 16
1 17
2 18
2 19
1 20
2 21
2 22
1 23
1 24
2 25
2 26
1 27
2 28
2 29
2 30
1 31
2 32
2 33
1 34
2 35
2 36
2 37
1 38
1 39
1 40
2 41
1 42
1 43
1 44
1 45
1 46
1 47
2 48
1 49
1 50
1 51
1 52
2 53
1 54
2 55
2 56
1 57
1 58
1 59
2 6...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #94:

score: 17
Accepted
time: 1ms
memory: 6464kb

input:

100 3000 40000
1 2
1 3
1 4
1 5
2 6
2 7
2 8
3 9
3 10
3 11
4 12
4 13
4 14
5 15
5 16
5 17
6 18
6 19
6 20
7 21
7 22
7 23
8 24
8 25
8 26
9 27
9 28
9 29
10 30
10 31
10 32
11 33
11 34
11 35
12 36
12 37
12 38
13 39
13 40
13 41
14 42
14 43
14 44
15 45
15 46
15 47
16 48
16 49
16 50
17 51
17 52
17 53
18 54
18 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #95:

score: 17
Accepted
time: 1ms
memory: 6476kb

input:

100 3000 40000
1 2
2 3
1 4
1 5
2 6
3 7
1 8
4 9
1 10
5 11
3 12
4 13
12 14
5 15
14 16
11 17
2 18
11 19
15 20
11 21
20 22
11 23
22 24
2 25
11 26
11 27
26 28
19 29
27 30
10 31
8 32
26 33
10 34
21 35
13 36
7 37
7 38
38 39
39 40
5 41
37 42
35 43
20 44
32 45
37 46
40 47
13 48
20 49
18 50
50 51
7 52
18 53
5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #96:

score: 17
Accepted
time: 0ms
memory: 6476kb

input:

100 3000 40000
1 2
1 3
1 4
3 5
1 6
1 7
5 8
3 9
2 10
9 11
8 12
4 13
12 14
12 15
8 16
16 17
12 18
9 19
12 20
12 21
19 22
20 23
23 24
18 25
23 26
24 27
22 28
25 29
23 30
30 31
31 32
28 33
27 34
28 35
31 36
29 37
36 38
30 39
31 40
38 41
41 42
34 43
42 44
38 45
41 46
38 47
39 48
40 49
47 50
44 51
42 52
4...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #97:

score: 17
Accepted
time: 1ms
memory: 6464kb

input:

100 3000 40000
1 2
2 3
2 4
3 5
4 6
6 7
6 8
7 9
8 10
10 11
10 12
12 13
13 14
14 15
15 16
15 17
17 18
17 19
19 20
19 21
21 22
21 23
22 24
24 25
25 26
25 27
27 28
28 29
29 30
29 31
30 32
32 33
33 34
33 35
35 36
35 37
36 38
38 39
38 40
40 41
40 42
41 43
43 44
44 45
44 46
46 47
46 48
48 49
48 50
50 51
50...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #98:

score: 17
Accepted
time: 1ms
memory: 6240kb

input:

100 3000 40000
1 2
2 3
3 4
1 5
5 6
6 7
7 8
8 9
3 10
5 11
1 12
8 13
6 14
9 15
10 16
9 17
5 18
8 19
4 20
9 21
5 22
7 23
2 24
9 25
2 26
5 27
5 28
9 29
1 30
10 31
8 32
1 33
5 34
5 35
10 36
4 37
6 38
6 39
4 40
2 41
3 42
8 43
1 44
6 45
3 46
3 47
3 48
2 49
7 50
8 51
10 52
5 53
9 54
7 55
6 56
9 57
9 58
8 59...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #99:

score: 17
Accepted
time: 0ms
memory: 6204kb

input:

100 3000 40000
1 2
1 3
2 4
2 5
3 6
3 7
4 8
4 9
5 10
5 11
6 12
6 13
7 14
7 15
8 16
8 17
9 18
9 19
10 20
10 21
11 22
11 23
12 24
12 25
13 26
13 27
14 28
14 29
15 30
15 31
16 32
16 33
17 34
17 35
18 36
18 37
19 38
19 39
20 40
20 41
21 42
21 43
22 44
22 45
23 46
23 47
24 48
24 49
25 50
25 51
26 52
26 53...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #100:

score: 17
Accepted
time: 0ms
memory: 6144kb

input:

100 3000 40000
80 87
31 72
99 31
23 99
24 35
53 67
12 53
11 12
41 11
16 41
34 16
22 34
73 52
65 73
63 65
86 63
85 86
94 85
100 94
45 100
38 45
28 8
29 28
27 29
19 27
82 19
76 82
47 76
93 47
37 93
32 37
18 32
7 18
75 30
1 75
3 1
5 3
91 5
6 91
92 6
57 92
26 57
2 60
40 2
50 40
33 50
42 33
59 42
4 59
49...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #101:

score: 17
Accepted
time: 1ms
memory: 6260kb

input:

100 3000 40000
75 34
75 4
75 89
75 7
75 39
75 36
75 21
75 19
75 9
75 81
75 44
75 31
75 67
75 48
75 99
75 41
75 30
75 77
75 24
75 23
75 62
75 25
75 56
75 29
75 16
75 83
75 20
75 28
75 59
75 85
75 54
75 51
75 43
75 92
75 40
75 26
75 94
41 10
24 88
30 42
67 69
44 96
92 53
40 82
99 1
19 27
83 52
31 5
20...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #102:

score: 17
Accepted
time: 1ms
memory: 6472kb

input:

100 3000 40000
19 22
24 19
23 24
96 23
2 96
71 2
1 71
89 1
35 89
12 35
100 12
36 100
33 36
27 33
53 27
90 53
92 90
97 92
38 97
41 38
99 41
9 99
4 9
98 4
32 98
85 32
11 85
84 11
51 84
29 51
45 29
37 45
39 37
7 39
34 7
25 34
8 25
81 8
28 81
74 28
50 74
44 50
62 44
66 62
40 66
26 40
20 26
82 20
69 82
7...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #103:

score: 17
Accepted
time: 0ms
memory: 6504kb

input:

100 3000 40000
1 2
1 3
1 4
1 5
2 6
2 7
2 8
3 9
3 10
3 11
4 12
4 13
4 14
5 15
5 16
5 17
6 18
6 19
6 20
7 21
7 22
7 23
8 24
8 25
8 26
9 27
9 28
9 29
10 30
10 31
10 32
11 33
11 34
11 35
12 36
12 37
12 38
13 39
13 40
13 41
14 42
14 43
14 44
15 45
15 46
15 47
16 48
16 49
16 50
17 51
17 52
17 53
18 54
18 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #104:

score: 17
Accepted
time: 1ms
memory: 6472kb

input:

100 3000 40000
1 2
2 3
3 4
4 5
5 6
1 7
1 8
8 9
8 10
2 11
4 12
4 13
8 14
6 15
6 16
1 17
3 18
7 19
6 20
8 21
5 22
10 23
1 24
10 25
5 26
2 27
1 28
4 29
4 30
10 31
1 32
4 33
8 34
8 35
10 36
6 37
4 38
6 39
4 40
1 41
9 42
8 43
9 44
2 45
10 46
7 47
7 48
8 49
6 50
7 51
1 52
3 53
3 54
10 55
2 56
10 57
1 58
1...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #105:

score: 17
Accepted
time: 1ms
memory: 9996kb

input:

100 3000 40000
1 2
2 3
3 4
4 5
5 6
2 7
6 8
6 9
4 10
8 11
7 12
8 13
10 14
9 15
5 16
5 17
6 18
8 19
5 20
1 21
5 22
2 23
4 24
4 25
3 26
3 27
10 28
4 29
5 30
1 31
2 32
5 33
2 34
10 35
1 36
8 37
4 38
8 39
5 40
8 41
7 42
1 43
1 44
2 45
3 46
6 47
10 48
4 49
1 50
10 51
9 52
1 53
9 54
2 55
5 56
3 57
7 58
9 5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #106:

score: 17
Accepted
time: 1ms
memory: 10012kb

input:

100 3000 40000
1 2
2 3
1 4
3 5
5 6
2 7
7 8
4 9
6 10
4 11
11 12
8 13
13 14
10 15
7 16
2 17
8 18
7 19
4 20
16 21
21 22
6 23
15 24
21 25
3 26
1 27
24 28
17 29
14 30
5 31
3 32
30 33
6 34
29 35
21 36
2 37
24 38
14 39
12 40
39 41
15 42
17 43
15 44
8 45
31 46
22 47
19 48
7 49
44 50
17 51
19 52
7 53
7 54
20...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #107:

score: 17
Accepted
time: 1ms
memory: 8496kb

input:

100 3000 40000
8 10
8 75
8 68
8 22
8 92
8 16
8 54
8 6
8 94
8 65
8 32
8 88
8 42
8 95
8 89
8 62
8 82
8 14
8 36
8 33
8 1
8 26
8 21
8 93
8 57
8 19
75 11
89 28
68 12
54 84
26 4
54 50
21 55
75 51
68 86
68 64
26 18
21 27
94 98
65 76
75 46
22 2
32 31
95 43
21 61
42 70
1 49
42 56
19 96
94 7
95 80
1 74
16 13
...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #108:

score: 17
Accepted
time: 1ms
memory: 6468kb

input:

100 3000 40000
1 2
2 3
1 4
1 5
1 6
1 7
1 8
1 9
2 10
1 11
1 12
1 13
1 14
1 15
1 16
1 17
1 18
1 19
2 20
2 21
2 22
1 23
1 24
1 25
2 26
1 27
1 28
1 29
2 30
2 31
1 32
1 33
1 34
1 35
1 36
1 37
2 38
2 39
2 40
2 41
1 42
2 43
1 44
1 45
2 46
2 47
2 48
2 49
1 50
1 51
1 52
1 53
1 54
1 55
1 56
2 57
1 58
1 59
2 6...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #109:

score: 17
Accepted
time: 0ms
memory: 6464kb

input:

100 3000 40000
1 2
2 3
1 4
1 5
1 6
2 7
2 8
2 9
2 10
2 11
1 12
1 13
1 14
2 15
2 16
2 17
2 18
2 19
1 20
2 21
2 22
2 23
2 24
2 25
2 26
1 27
1 28
2 29
1 30
1 31
2 32
1 33
2 34
1 35
1 36
2 37
1 38
1 39
2 40
1 41
2 42
1 43
2 44
1 45
1 46
1 47
1 48
2 49
2 50
2 51
2 52
2 53
2 54
2 55
2 56
1 57
2 58
2 59
2 6...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #110:

score: 17
Accepted
time: 0ms
memory: 8196kb

input:

100 3000 40000
60 36
60 92
60 74
60 86
60 41
60 40
60 98
60 17
60 25
60 31
60 83
60 16
60 10
60 76
60 38
60 70
60 51
60 43
60 81
60 53
60 96
60 89
60 90
60 5
60 1
60 100
60 95
60 47
60 67
60 33
60 45
60 84
60 23
60 94
60 55
60 12
60 46
60 52
60 64
60 79
60 68
60 62
60 13
60 77
60 37
13 9
52 30
84 8
...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Subtask #3:

score: 20
Accepted

Test #111:

score: 20
Accepted
time: 20ms
memory: 11808kb

input:

1000 50000 3000000
126 207
937 126
615 937
837 615
500 837
588 500
505 588
353 505
60 353
904 60
656 904
685 656
460 685
614 460
551 614
537 551
858 537
596 858
9 596
738 9
918 738
322 918
940 322
859 940
113 859
110 113
312 110
995 312
443 995
246 443
257 246
238 257
999 238
885 999
976 885
330 976...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #112:

score: 20
Accepted
time: 12ms
memory: 11732kb

input:

1000 50000 3000000
1 2
1 3
2 4
2 5
3 6
3 7
4 8
4 9
5 10
5 11
6 12
6 13
7 14
7 15
8 16
8 17
9 18
9 19
10 20
10 21
11 22
11 23
12 24
12 25
13 26
13 27
14 28
14 29
15 30
15 31
16 32
16 33
17 34
17 35
18 36
18 37
19 38
19 39
20 40
20 41
21 42
21 43
22 44
22 45
23 46
23 47
24 48
24 49
25 50
25 51
26 52
2...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #113:

score: 20
Accepted
time: 12ms
memory: 11800kb

input:

1000 50000 3000000
1 2
2 3
2 4
4 5
5 6
6 7
6 8
8 9
8 10
10 11
10 12
12 13
12 14
13 15
14 16
15 17
16 18
18 19
18 20
19 21
20 22
21 23
22 24
24 25
24 26
26 27
27 28
27 29
28 30
29 31
30 32
31 33
32 34
34 35
35 36
36 37
36 38
37 39
39 40
39 41
41 42
41 43
42 44
43 45
45 46
45 47
47 48
48 49
48 50
50 5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #114:

score: 20
Accepted
time: 7ms
memory: 11844kb

input:

1000 50000 3000000
1 2
1 3
2 4
2 5
3 6
3 7
4 8
4 9
5 10
5 11
6 12
6 13
7 14
7 15
8 16
8 17
9 18
9 19
10 20
10 21
11 22
11 23
12 24
12 25
13 26
13 27
14 28
14 29
15 30
15 31
16 32
16 33
17 34
17 35
18 36
18 37
19 38
19 39
20 40
20 41
21 42
21 43
22 44
22 45
23 46
23 47
24 48
24 49
25 50
25 51
26 52
2...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #115:

score: 20
Accepted
time: 130ms
memory: 11828kb

input:

1000 50000 3000000
31 688
31 684
31 63
31 564
31 34
31 288
31 808
31 356
31 327
31 458
31 993
31 344
31 902
31 407
31 37
31 150
31 969
31 323
31 790
31 464
31 230
31 999
31 936
31 106
31 965
31 771
31 663
31 476
31 652
31 991
31 475
31 258
31 395
31 664
31 762
31 934
31 951
31 419
31 84
31 70
31 167...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #116:

score: 20
Accepted
time: 75ms
memory: 11820kb

input:

1000 50000 3000000
740 869
740 437
740 881
740 650
740 319
740 195
740 613
740 606
740 243
740 406
740 669
740 146
740 183
740 999
740 651
740 176
740 97
740 908
740 750
740 609
740 639
740 681
740 755
740 354
740 993
740 334
740 926
740 904
740 184
740 301
740 271
740 859
740 622
740 198
740 716
74...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #117:

score: 20
Accepted
time: 15ms
memory: 11860kb

input:

1000 50000 3000000
1 2
1 3
2 4
2 5
3 6
3 7
4 8
4 9
5 10
5 11
6 12
6 13
7 14
7 15
8 16
8 17
9 18
9 19
10 20
10 21
11 22
11 23
12 24
12 25
13 26
13 27
14 28
14 29
15 30
15 31
16 32
16 33
17 34
17 35
18 36
18 37
19 38
19 39
20 40
20 41
21 42
21 43
22 44
22 45
23 46
23 47
24 48
24 49
25 50
25 51
26 52
2...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #118:

score: 20
Accepted
time: 129ms
memory: 12072kb

input:

1000 50000 3000000
487 742
487 439
487 698
487 697
487 469
487 812
487 717
487 68
487 951
487 567
487 274
487 535
487 577
487 817
487 350
487 510
487 360
487 66
487 701
487 968
487 931
487 917
487 842
487 626
487 94
487 238
487 887
487 389
487 566
487 257
487 520
487 818
487 373
487 703
487 667
487 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #119:

score: 20
Accepted
time: 15ms
memory: 11804kb

input:

1000 50000 3000000
1 2
1 3
2 4
2 5
3 6
3 7
4 8
4 9
5 10
5 11
6 12
6 13
7 14
7 15
8 16
8 17
9 18
9 19
10 20
10 21
11 22
11 23
12 24
12 25
13 26
13 27
14 28
14 29
15 30
15 31
16 32
16 33
17 34
17 35
18 36
18 37
19 38
19 39
20 40
20 41
21 42
21 43
22 44
22 45
23 46
23 47
24 48
24 49
25 50
25 51
26 52
2...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #120:

score: 20
Accepted
time: 24ms
memory: 11852kb

input:

1000 50000 3000000
1 2
2 3
3 4
4 5
5 6
6 7
7 8
7 9
1 10
6 11
2 12
7 13
5 14
9 15
2 16
10 17
8 18
2 19
7 20
1 21
8 22
10 23
10 24
5 25
8 26
4 27
9 28
8 29
7 30
6 31
10 32
1 33
6 34
10 35
7 36
8 37
4 38
4 39
4 40
5 41
7 42
8 43
10 44
2 45
6 46
8 47
6 48
3 49
2 50
9 51
5 52
6 53
2 54
5 55
3 56
5 57
10 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #121:

score: 20
Accepted
time: 20ms
memory: 11808kb

input:

1000 50000 3000000
1 2
1 3
1 4
1 5
2 6
2 7
2 8
3 9
3 10
3 11
4 12
4 13
4 14
5 15
5 16
5 17
6 18
6 19
6 20
7 21
7 22
7 23
8 24
8 25
8 26
9 27
9 28
9 29
10 30
10 31
10 32
11 33
11 34
11 35
12 36
12 37
12 38
13 39
13 40
13 41
14 42
14 43
14 44
15 45
15 46
15 47
16 48
16 49
16 50
17 51
17 52
17 53
18 54...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #122:

score: 20
Accepted
time: 13ms
memory: 11740kb

input:

1000 50000 3000000
1 2
1 3
3 4
4 5
1 6
4 7
7 8
1 9
1 10
9 11
3 12
9 13
10 14
9 15
6 16
9 17
9 18
11 19
18 20
14 21
14 22
19 23
19 24
18 25
23 26
19 27
25 28
19 29
23 30
30 31
31 32
32 33
31 34
29 35
31 36
33 37
32 38
34 39
31 40
37 41
41 42
39 43
34 44
37 45
38 46
45 47
47 48
48 49
43 50
42 51
45 52...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #123:

score: 20
Accepted
time: 15ms
memory: 11820kb

input:

1000 50000 3000000
1 2
1 3
2 4
2 5
3 6
3 7
4 8
4 9
5 10
5 11
6 12
6 13
7 14
7 15
8 16
8 17
9 18
9 19
10 20
10 21
11 22
11 23
12 24
12 25
13 26
13 27
14 28
14 29
15 30
15 31
16 32
16 33
17 34
17 35
18 36
18 37
19 38
19 39
20 40
20 41
21 42
21 43
22 44
22 45
23 46
23 47
24 48
24 49
25 50
25 51
26 52
2...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #124:

score: 20
Accepted
time: 72ms
memory: 11880kb

input:

1000 50000 3000000
203 717
203 935
203 745
203 404
203 50
203 487
203 1
203 735
203 703
203 702
203 7
203 69
203 581
203 21
203 231
203 257
203 617
203 504
203 916
203 106
203 423
203 869
203 989
203 164
203 767
203 403
203 324
203 967
203 252
203 501
203 795
203 470
203 693
203 929
203 60
203 301
2...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #125:

score: 20
Accepted
time: 131ms
memory: 12076kb

input:

1000 50000 3000000
617 43
617 699
617 509
617 514
617 670
617 806
617 520
617 722
617 842
617 23
617 826
617 465
617 406
617 851
617 152
617 788
617 268
617 83
617 665
617 581
617 628
617 644
617 20
617 389
617 873
617 484
617 352
617 469
617 538
617 827
617 1
617 492
617 503
617 568
617 531
617 480...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #126:

score: 20
Accepted
time: 125ms
memory: 11752kb

input:

1000 50000 3000000
1 2
1 3
1 4
1 5
2 6
1 7
1 8
1 9
1 10
1 11
2 12
1 13
2 14
2 15
1 16
1 17
2 18
2 19
2 20
2 21
1 22
1 23
2 24
2 25
2 26
2 27
2 28
1 29
1 30
2 31
2 32
2 33
2 34
2 35
2 36
2 37
1 38
2 39
1 40
1 41
2 42
2 43
2 44
2 45
1 46
1 47
1 48
2 49
1 50
2 51
1 52
2 53
1 54
2 55
1 56
2 57
1 58
2 59...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #127:

score: 20
Accepted
time: 20ms
memory: 12112kb

input:

1000 50000 3000000
1 2
1 3
1 4
1 5
2 6
2 7
2 8
3 9
3 10
3 11
4 12
4 13
4 14
5 15
5 16
5 17
6 18
6 19
6 20
7 21
7 22
7 23
8 24
8 25
8 26
9 27
9 28
9 29
10 30
10 31
10 32
11 33
11 34
11 35
12 36
12 37
12 38
13 39
13 40
13 41
14 42
14 43
14 44
15 45
15 46
15 47
16 48
16 49
16 50
17 51
17 52
17 53
18 54...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #128:

score: 20
Accepted
time: 16ms
memory: 11808kb

input:

1000 50000 3000000
302 485
553 302
213 553
402 213
983 402
54 983
216 54
202 216
163 202
903 163
45 903
861 45
490 861
643 490
226 643
387 226
382 387
462 382
256 462
187 256
767 187
653 767
443 653
276 443
899 276
632 899
949 632
434 949
332 465
533 332
935 533
214 935
765 214
525 765
781 525
452 7...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #129:

score: 20
Accepted
time: 138ms
memory: 11860kb

input:

1000 50000 3000000
73 347
73 373
73 644
73 235
73 797
73 568
73 208
73 271
73 142
73 278
73 661
73 80
73 65
73 325
73 880
73 579
73 901
73 125
73 172
73 396
73 799
73 202
73 638
73 903
73 635
73 761
73 763
73 352
73 328
73 983
73 480
73 353
73 945
73 419
73 759
73 873
73 24
73 477
73 94
73 714
73 87...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #130:

score: 20
Accepted
time: 22ms
memory: 12108kb

input:

1000 50000 3000000
1 2
1 3
2 4
2 5
3 6
3 7
4 8
4 9
5 10
5 11
6 12
6 13
7 14
7 15
8 16
8 17
9 18
9 19
10 20
10 21
11 22
11 23
12 24
12 25
13 26
13 27
14 28
14 29
15 30
15 31
16 32
16 33
17 34
17 35
18 36
18 37
19 38
19 39
20 40
20 41
21 42
21 43
22 44
22 45
23 46
23 47
24 48
24 49
25 50
25 51
26 52
2...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #131:

score: 20
Accepted
time: 12ms
memory: 11828kb

input:

1000 50000 3000000
1 2
1 3
2 4
4 5
4 6
5 7
7 8
7 9
8 10
9 11
10 12
11 13
13 14
14 15
14 16
16 17
17 18
17 19
19 20
19 21
20 22
21 23
23 24
24 25
25 26
25 27
26 28
27 29
28 30
30 31
30 32
31 33
33 34
34 35
34 36
35 37
36 38
37 39
38 40
40 41
40 42
41 43
42 44
43 45
45 46
45 47
46 48
47 49
49 50
50 51...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #132:

score: 20
Accepted
time: 15ms
memory: 11800kb

input:

1000 50000 3000000
1 2
1 3
2 4
2 5
3 6
3 7
4 8
4 9
5 10
5 11
6 12
6 13
7 14
7 15
8 16
8 17
9 18
9 19
10 20
10 21
11 22
11 23
12 24
12 25
13 26
13 27
14 28
14 29
15 30
15 31
16 32
16 33
17 34
17 35
18 36
18 37
19 38
19 39
20 40
20 41
21 42
21 43
22 44
22 45
23 46
23 47
24 48
24 49
25 50
25 51
26 52
2...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #133:

score: 20
Accepted
time: 131ms
memory: 11780kb

input:

1000 50000 3000000
529 998
529 252
529 203
529 592
529 220
529 39
529 29
529 244
529 346
529 426
529 677
529 854
529 599
529 564
529 209
529 990
529 859
529 635
529 132
529 305
529 360
529 266
529 191
529 265
529 639
529 792
529 689
529 228
529 649
529 325
529 760
529 548
529 640
529 171
529 981
529...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #134:

score: 20
Accepted
time: 10ms
memory: 11800kb

input:

1000 50000 3000000
1 2
1 3
1 4
1 5
1 6
4 7
3 8
8 9
1 10
5 11
8 12
7 13
12 14
12 15
7 16
8 17
10 18
10 19
10 20
16 21
16 22
17 23
21 24
24 25
25 26
25 27
19 28
20 29
28 30
21 31
31 32
25 33
28 34
30 35
33 36
33 37
33 38
29 39
35 40
37 41
41 42
37 43
34 44
39 45
37 46
43 47
45 48
44 49
46 50
41 51
42 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #135:

score: 20
Accepted
time: 12ms
memory: 11820kb

input:

1000 50000 3000000
1 2
2 3
2 4
3 5
5 6
6 7
6 8
8 9
8 10
10 11
10 12
11 13
13 14
13 15
14 16
15 17
16 18
18 19
19 20
20 21
21 22
22 23
22 24
23 25
25 26
25 27
26 28
27 29
29 30
30 31
31 32
31 33
32 34
33 35
35 36
35 37
37 38
37 39
38 40
40 41
41 42
41 43
43 44
43 45
45 46
46 47
46 48
47 49
49 50
50 5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #136:

score: 20
Accepted
time: 57ms
memory: 11876kb

input:

1000 50000 3000000
1 2
2 3
2 4
4 5
3 6
6 7
7 8
6 9
7 10
10 11
7 12
8 13
5 14
5 15
5 16
2 17
8 18
2 19
1 20
1 21
3 22
4 23
3 24
10 25
3 26
2 27
7 28
1 29
8 30
6 31
9 32
7 33
6 34
2 35
1 36
6 37
9 38
5 39
6 40
9 41
8 42
7 43
4 44
2 45
8 46
3 47
4 48
2 49
9 50
1 51
2 52
7 53
10 54
9 55
2 56
9 57
5 58
4...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #137:

score: 20
Accepted
time: 8ms
memory: 11864kb

input:

1000 50000 3000000
1 2
1 3
2 4
2 5
3 6
3 7
4 8
4 9
5 10
5 11
6 12
6 13
7 14
7 15
8 16
8 17
9 18
9 19
10 20
10 21
11 22
11 23
12 24
12 25
13 26
13 27
14 28
14 29
15 30
15 31
16 32
16 33
17 34
17 35
18 36
18 37
19 38
19 39
20 40
20 41
21 42
21 43
22 44
22 45
23 46
23 47
24 48
24 49
25 50
25 51
26 52
2...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #138:

score: 20
Accepted
time: 3ms
memory: 12064kb

input:

1000 50000 3000000
1 2
1 3
1 4
4 5
1 6
2 7
3 8
5 9
8 10
10 11
4 12
6 13
4 14
10 15
12 16
7 17
10 18
11 19
16 20
19 21
12 22
16 23
22 24
23 25
24 26
24 27
18 28
24 29
24 30
21 31
31 32
28 33
26 34
26 35
32 36
30 37
37 38
36 39
39 40
35 41
41 42
36 43
40 44
40 45
43 46
37 47
45 48
41 49
45 50
45 51
45...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #139:

score: 20
Accepted
time: 124ms
memory: 11852kb

input:

1000 50000 3000000
1 2
2 3
2 4
2 5
2 6
2 7
2 8
2 9
1 10
1 11
2 12
2 13
2 14
1 15
1 16
2 17
1 18
2 19
1 20
2 21
2 22
1 23
2 24
2 25
2 26
1 27
1 28
1 29
1 30
1 31
1 32
2 33
2 34
1 35
2 36
1 37
1 38
2 39
1 40
1 41
2 42
2 43
2 44
1 45
2 46
2 47
2 48
2 49
2 50
2 51
2 52
2 53
1 54
1 55
2 56
1 57
1 58
2 59...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #140:

score: 20
Accepted
time: 125ms
memory: 11748kb

input:

1000 50000 3000000
1 2
2 3
2 4
1 5
2 6
2 7
2 8
1 9
1 10
2 11
1 12
1 13
1 14
1 15
1 16
1 17
1 18
1 19
1 20
1 21
1 22
1 23
1 24
1 25
1 26
2 27
1 28
1 29
2 30
1 31
2 32
1 33
1 34
1 35
2 36
1 37
1 38
1 39
2 40
2 41
2 42
2 43
1 44
2 45
1 46
2 47
2 48
2 49
2 50
2 51
1 52
1 53
2 54
2 55
1 56
2 57
2 58
1 59...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #141:

score: 20
Accepted
time: 135ms
memory: 11804kb

input:

1000 50000 3000000
737 875
737 669
737 564
737 902
737 892
737 141
737 214
737 461
737 374
737 776
737 748
737 657
737 972
737 178
737 689
737 625
737 997
737 483
737 79
737 497
737 616
737 397
737 984
737 20
737 960
737 955
737 647
737 25
737 104
737 534
737 903
737 203
737 160
737 35
737 579
737 6...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #142:

score: 20
Accepted
time: 10ms
memory: 11740kb

input:

1000 50000 3000000
1 2
1 3
1 4
1 5
1 6
5 7
4 8
5 9
5 10
5 11
8 12
10 13
8 14
10 15
7 16
8 17
11 18
14 19
19 20
18 21
12 22
16 23
19 24
17 25
20 26
25 27
23 28
24 29
27 30
29 31
24 32
29 33
29 34
32 35
30 36
30 37
29 38
29 39
36 40
33 41
39 42
36 43
41 44
35 45
39 46
39 47
46 48
46 49
48 50
43 51
50 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #143:

score: 20
Accepted
time: 24ms
memory: 11868kb

input:

1000 50000 3000000
1 2
1 3
2 4
3 5
2 6
2 7
7 8
4 9
2 10
1 11
3 12
12 13
6 14
11 15
7 16
10 17
3 18
1 19
18 20
1 21
20 22
9 23
13 24
7 25
12 26
21 27
21 28
14 29
4 30
16 31
31 32
24 33
23 34
33 35
18 36
23 37
12 38
32 39
25 40
12 41
10 42
42 43
43 44
23 45
34 46
1 47
23 48
22 49
31 50
20 51
17 52
29 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #144:

score: 20
Accepted
time: 74ms
memory: 12092kb

input:

1000 50000 3000000
351 978
351 494
351 849
351 231
351 649
351 251
351 450
351 914
351 414
351 180
351 955
351 320
351 255
351 175
351 906
351 417
351 667
351 661
351 539
351 265
351 330
351 881
351 496
351 474
351 93
351 333
351 801
351 57
351 880
351 622
351 213
351 510
351 119
351 737
351 181
351...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #145:

score: 20
Accepted
time: 127ms
memory: 11864kb

input:

1000 50000 3000000
853 255
853 350
853 552
853 945
853 502
853 571
853 869
853 857
853 960
853 693
853 825
853 786
853 474
853 542
853 996
853 85
853 367
853 814
853 306
853 137
853 247
853 240
853 827
853 837
853 500
853 904
853 811
853 779
853 546
853 490
853 622
853 753
853 993
853 99
853 967
853...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #146:

score: 20
Accepted
time: 69ms
memory: 12096kb

input:

1000 50000 3000000
121 748
121 430
121 374
121 283
121 41
121 19
121 574
121 436
121 318
121 842
121 101
121 958
121 311
121 100
121 596
121 67
121 78
121 179
121 877
121 307
121 686
121 284
121 652
121 368
121 208
121 292
121 390
121 740
121 323
121 641
121 143
121 750
121 252
121 562
121 615
121 5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #147:

score: 20
Accepted
time: 21ms
memory: 11788kb

input:

1000 50000 3000000
1 2
1 3
3 4
2 5
4 6
6 7
2 8
7 9
8 10
6 11
8 12
8 13
7 14
14 15
12 16
1 17
1 18
13 19
18 20
8 21
4 22
22 23
9 24
2 25
16 26
17 27
7 28
4 29
24 30
18 31
28 32
32 33
8 34
4 35
12 36
12 37
2 38
34 39
28 40
22 41
3 42
38 43
7 44
20 45
43 46
30 47
26 48
2 49
27 50
11 51
41 52
46 53
37 5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #148:

score: 20
Accepted
time: 12ms
memory: 11820kb

input:

1000 50000 3000000
1 2
1 3
2 4
2 5
3 6
3 7
4 8
4 9
5 10
5 11
6 12
6 13
7 14
7 15
8 16
8 17
9 18
9 19
10 20
10 21
11 22
11 23
12 24
12 25
13 26
13 27
14 28
14 29
15 30
15 31
16 32
16 33
17 34
17 35
18 36
18 37
19 38
19 39
20 40
20 41
21 42
21 43
22 44
22 45
23 46
23 47
24 48
24 49
25 50
25 51
26 52
2...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #149:

score: 20
Accepted
time: 124ms
memory: 11800kb

input:

1000 50000 3000000
460 205
460 72
460 306
460 776
460 657
460 470
460 140
460 883
460 307
460 664
460 79
460 941
460 119
460 953
460 946
460 961
460 569
460 135
460 662
460 282
460 136
460 257
460 539
460 799
460 653
460 831
460 400
460 857
460 695
460 600
460 76
460 544
460 382
460 950
460 439
460 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #150:

score: 20
Accepted
time: 13ms
memory: 11864kb

input:

1000 50000 3000000
1 2
1 3
1 4
4 5
3 6
5 7
5 8
8 9
3 10
3 11
2 12
6 13
8 14
10 15
7 16
10 17
9 18
11 19
10 20
16 21
20 22
13 23
19 24
17 25
22 26
19 27
19 28
27 29
28 30
24 31
30 32
27 33
24 34
27 35
32 36
29 37
29 38
34 39
32 40
36 41
38 42
37 43
37 44
39 45
39 46
41 47
45 48
41 49
41 50
41 51
44 5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #151:

score: 20
Accepted
time: 3ms
memory: 12112kb

input:

1000 50000 3000000
1 2
1 3
3 4
4 5
4 6
4 7
5 8
8 9
7 10
1 11
3 12
11 13
10 14
11 15
9 16
15 17
14 18
11 19
14 20
13 21
17 22
17 23
21 24
23 25
21 26
18 27
23 28
20 29
28 30
21 31
26 32
24 33
27 34
28 35
26 36
35 37
28 38
38 39
32 40
33 41
41 42
42 43
41 44
36 45
43 46
41 47
41 48
46 49
40 50
45 51
4...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #152:

score: 20
Accepted
time: 127ms
memory: 12112kb

input:

1000 50000 3000000
1 2
2 3
2 4
2 5
2 6
2 7
1 8
1 9
2 10
1 11
2 12
2 13
1 14
1 15
2 16
1 17
1 18
1 19
2 20
1 21
1 22
2 23
2 24
1 25
1 26
1 27
2 28
2 29
1 30
1 31
2 32
1 33
1 34
2 35
1 36
2 37
1 38
2 39
1 40
1 41
1 42
1 43
2 44
1 45
2 46
2 47
2 48
2 49
1 50
2 51
2 52
2 53
1 54
2 55
2 56
1 57
1 58
1 59...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #153:

score: 20
Accepted
time: 13ms
memory: 11744kb

input:

1000 50000 3000000
1 2
1 3
1 4
1 5
1 6
5 7
6 8
4 9
4 10
2 11
4 12
4 13
4 14
13 15
11 16
15 17
10 18
11 19
16 20
19 21
20 22
21 23
18 24
21 25
21 26
23 27
20 28
26 29
23 30
24 31
22 32
29 33
28 34
31 35
35 36
35 37
33 38
29 39
39 40
39 41
32 42
35 43
40 44
37 45
37 46
42 47
41 48
47 49
42 50
46 51
45...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #154:

score: 20
Accepted
time: 17ms
memory: 11804kb

input:

1000 50000 3000000
1 2
1 3
2 4
2 5
3 6
3 7
4 8
4 9
5 10
5 11
6 12
6 13
7 14
7 15
8 16
8 17
9 18
9 19
10 20
10 21
11 22
11 23
12 24
12 25
13 26
13 27
14 28
14 29
15 30
15 31
16 32
16 33
17 34
17 35
18 36
18 37
19 38
19 39
20 40
20 41
21 42
21 43
22 44
22 45
23 46
23 47
24 48
24 49
25 50
25 51
26 52
2...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #155:

score: 20
Accepted
time: 9ms
memory: 12072kb

input:

1000 50000 3000000
1 2
1 3
2 4
2 5
3 6
3 7
4 8
4 9
5 10
5 11
6 12
6 13
7 14
7 15
8 16
8 17
9 18
9 19
10 20
10 21
11 22
11 23
12 24
12 25
13 26
13 27
14 28
14 29
15 30
15 31
16 32
16 33
17 34
17 35
18 36
18 37
19 38
19 39
20 40
20 41
21 42
21 43
22 44
22 45
23 46
23 47
24 48
24 49
25 50
25 51
26 52
2...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #156:

score: 20
Accepted
time: 129ms
memory: 11800kb

input:

1000 50000 3000000
354 596
354 368
354 620
354 837
354 446
354 208
354 411
354 796
354 920
354 130
354 226
354 216
354 494
354 83
354 426
354 284
354 673
354 584
354 871
354 702
354 371
354 614
354 478
354 843
354 339
354 427
354 131
354 212
354 175
354 927
354 166
354 986
354 134
354 448
354 5
354 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #157:

score: 20
Accepted
time: 26ms
memory: 12080kb

input:

1000 50000 3000000
1 2
1 3
1 4
1 5
2 6
2 7
2 8
3 9
3 10
3 11
4 12
4 13
4 14
5 15
5 16
5 17
6 18
6 19
6 20
7 21
7 22
7 23
8 24
8 25
8 26
9 27
9 28
9 29
10 30
10 31
10 32
11 33
11 34
11 35
12 36
12 37
12 38
13 39
13 40
13 41
14 42
14 43
14 44
15 45
15 46
15 47
16 48
16 49
16 50
17 51
17 52
17 53
18 54...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #158:

score: 20
Accepted
time: 10ms
memory: 11816kb

input:

1000 50000 3000000
1 2
1 3
2 4
4 5
1 6
1 7
2 8
2 9
7 10
7 11
4 12
6 13
9 14
5 15
9 16
8 17
8 18
17 19
18 20
20 21
16 22
13 23
15 24
21 25
25 26
25 27
26 28
25 29
21 30
23 31
22 32
24 33
28 34
30 35
28 36
35 37
31 38
34 39
32 40
38 41
37 42
34 43
37 44
37 45
39 46
39 47
38 48
47 49
47 50
45 51
43 52
...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #159:

score: 20
Accepted
time: 128ms
memory: 12076kb

input:

1000 50000 3000000
1 2
1 3
1 4
2 5
1 6
1 7
2 8
1 9
1 10
2 11
2 12
1 13
2 14
2 15
1 16
2 17
1 18
1 19
2 20
2 21
2 22
2 23
2 24
2 25
1 26
1 27
1 28
2 29
2 30
1 31
1 32
2 33
1 34
1 35
1 36
1 37
1 38
2 39
1 40
2 41
1 42
1 43
1 44
2 45
2 46
2 47
2 48
1 49
2 50
1 51
1 52
1 53
1 54
1 55
2 56
1 57
2 58
1 59...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #160:

score: 20
Accepted
time: 18ms
memory: 12084kb

input:

1000 50000 3000000
1 2
1 3
1 4
3 5
4 6
3 7
2 8
3 9
4 10
2 11
6 12
9 13
1 14
3 15
13 16
9 17
5 18
17 19
13 20
15 21
1 22
6 23
13 24
11 25
2 26
1 27
7 28
26 29
14 30
18 31
24 32
19 33
17 34
24 35
20 36
19 37
15 38
36 39
22 40
3 41
40 42
19 43
7 44
20 45
4 46
31 47
42 48
12 49
10 50
18 51
27 52
19 53
5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #161:

score: 20
Accepted
time: 22ms
memory: 11852kb

input:

1000 50000 3000000
1 2
2 3
2 4
4 5
3 6
3 7
5 8
5 9
9 10
10 11
1 12
12 13
4 14
11 15
1 16
1 17
13 18
1 19
4 20
1 21
12 22
17 23
21 24
5 25
18 26
25 27
6 28
20 29
29 30
1 31
12 32
25 33
4 34
26 35
24 36
26 37
20 38
4 39
15 40
15 41
2 42
30 43
22 44
16 45
40 46
4 47
19 48
46 49
15 50
42 51
10 52
40 53
...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #162:

score: 20
Accepted
time: 33ms
memory: 12092kb

input:

1000 50000 3000000
1 2
2 3
2 4
3 5
5 6
6 7
7 8
3 9
2 10
5 11
7 12
2 13
4 14
5 15
3 16
10 17
2 18
4 19
2 20
9 21
9 22
1 23
3 24
6 25
10 26
2 27
5 28
10 29
9 30
8 31
4 32
3 33
4 34
3 35
2 36
2 37
10 38
2 39
8 40
7 41
3 42
2 43
2 44
3 45
1 46
9 47
3 48
8 49
8 50
8 51
5 52
10 53
7 54
2 55
10 56
4 57
10 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #163:

score: 20
Accepted
time: 25ms
memory: 12072kb

input:

1000 50000 3000000
1 2
1 3
1 4
1 5
2 6
2 7
2 8
3 9
3 10
3 11
4 12
4 13
4 14
5 15
5 16
5 17
6 18
6 19
6 20
7 21
7 22
7 23
8 24
8 25
8 26
9 27
9 28
9 29
10 30
10 31
10 32
11 33
11 34
11 35
12 36
12 37
12 38
13 39
13 40
13 41
14 42
14 43
14 44
15 45
15 46
15 47
16 48
16 49
16 50
17 51
17 52
17 53
18 54...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #164:

score: 20
Accepted
time: 47ms
memory: 11816kb

input:

1000 50000 3000000
1 2
2 3
3 4
4 5
2 6
1 7
7 8
1 9
9 10
5 11
4 12
5 13
7 14
2 15
9 16
1 17
5 18
2 19
3 20
2 21
2 22
8 23
2 24
1 25
2 26
1 27
10 28
2 29
5 30
5 31
2 32
6 33
7 34
9 35
9 36
1 37
4 38
6 39
3 40
2 41
9 42
4 43
3 44
7 45
4 46
8 47
10 48
8 49
2 50
1 51
1 52
1 53
8 54
9 55
4 56
7 57
8 58
5 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #165:

score: 20
Accepted
time: 15ms
memory: 11868kb

input:

1000 50000 3000000
69 368
769 69
851 769
468 851
868 468
627 868
522 627
754 522
219 754
839 219
478 839
998 478
537 998
320 537
593 320
829 593
536 829
385 536
286 385
808 286
454 808
722 454
491 722
993 491
696 993
833 696
861 833
382 861
503 382
260 503
743 260
850 743
166 850
404 166
79 404
355 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #166:

score: 20
Accepted
time: 18ms
memory: 12084kb

input:

1000 50000 3000000
1 2
1 3
1 4
1 5
2 6
2 7
2 8
3 9
3 10
3 11
4 12
4 13
4 14
5 15
5 16
5 17
6 18
6 19
6 20
7 21
7 22
7 23
8 24
8 25
8 26
9 27
9 28
9 29
10 30
10 31
10 32
11 33
11 34
11 35
12 36
12 37
12 38
13 39
13 40
13 41
14 42
14 43
14 44
15 45
15 46
15 47
16 48
16 49
16 50
17 51
17 52
17 53
18 54...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #167:

score: 20
Accepted
time: 38ms
memory: 11824kb

input:

1000 50000 3000000
1 2
2 3
3 4
4 5
5 6
6 7
7 8
6 9
9 10
6 11
8 12
8 13
10 14
4 15
5 16
5 17
3 18
6 19
3 20
4 21
3 22
9 23
8 24
3 25
7 26
8 27
6 28
4 29
10 30
9 31
9 32
6 33
3 34
9 35
7 36
9 37
3 38
3 39
4 40
10 41
5 42
6 43
7 44
7 45
6 46
6 47
6 48
8 49
2 50
3 51
8 52
9 53
6 54
6 55
1 56
5 57
1 58
3...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #168:

score: 20
Accepted
time: 6ms
memory: 11824kb

input:

1000 50000 3000000
1 2
1 3
3 4
3 5
4 6
6 7
7 8
8 9
8 10
9 11
11 12
11 13
12 14
14 15
14 16
15 17
16 18
18 19
19 20
19 21
21 22
21 23
22 24
24 25
24 26
26 27
26 28
27 29
29 30
30 31
31 32
31 33
32 34
33 35
34 36
35 37
36 38
37 39
38 40
39 41
40 42
41 43
42 44
43 45
45 46
45 47
46 48
48 49
49 50
49 51...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #169:

score: 20
Accepted
time: 15ms
memory: 12068kb

input:

1000 50000 3000000
1 2
1 3
2 4
2 5
3 6
3 7
4 8
4 9
5 10
5 11
6 12
6 13
7 14
7 15
8 16
8 17
9 18
9 19
10 20
10 21
11 22
11 23
12 24
12 25
13 26
13 27
14 28
14 29
15 30
15 31
16 32
16 33
17 34
17 35
18 36
18 37
19 38
19 39
20 40
20 41
21 42
21 43
22 44
22 45
23 46
23 47
24 48
24 49
25 50
25 51
26 52
2...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #170:

score: 20
Accepted
time: 13ms
memory: 11840kb

input:

1000 50000 3000000
1 2
1 3
1 4
3 5
1 6
5 7
1 8
1 9
1 10
2 11
3 12
6 13
5 14
6 15
10 16
7 17
10 18
13 19
15 20
19 21
20 22
16 23
20 24
21 25
23 26
23 27
27 28
25 29
20 30
24 31
22 32
31 33
29 34
33 35
28 36
33 37
37 38
30 39
31 40
36 41
40 42
39 43
42 44
36 45
43 46
37 47
43 48
44 49
46 50
43 51
45 5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #171:

score: 20
Accepted
time: 22ms
memory: 11792kb

input:

1000 50000 3000000
1 2
1 3
3 4
4 5
1 6
3 7
3 8
2 9
9 10
9 11
8 12
9 13
7 14
3 15
7 16
5 17
15 18
10 19
19 20
16 21
20 22
10 23
23 24
3 25
11 26
10 27
8 28
22 29
8 30
3 31
26 32
28 33
6 34
25 35
12 36
7 37
20 38
16 39
34 40
26 41
37 42
40 43
2 44
14 45
37 46
3 47
40 48
6 49
24 50
36 51
4 52
5 53
4 54...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #172:

score: 20
Accepted
time: 15ms
memory: 11800kb

input:

1000 50000 3000000
1 2
1 3
2 4
2 5
3 6
3 7
4 8
4 9
5 10
5 11
6 12
6 13
7 14
7 15
8 16
8 17
9 18
9 19
10 20
10 21
11 22
11 23
12 24
12 25
13 26
13 27
14 28
14 29
15 30
15 31
16 32
16 33
17 34
17 35
18 36
18 37
19 38
19 39
20 40
20 41
21 42
21 43
22 44
22 45
23 46
23 47
24 48
24 49
25 50
25 51
26 52
2...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #173:

score: 20
Accepted
time: 21ms
memory: 11816kb

input:

1000 50000 3000000
1 2
2 3
3 4
4 5
5 6
3 7
7 8
6 9
6 10
4 11
3 12
5 13
4 14
9 15
5 16
6 17
4 18
1 19
6 20
5 21
8 22
2 23
7 24
6 25
1 26
4 27
6 28
7 29
7 30
5 31
7 32
4 33
2 34
5 35
8 36
8 37
8 38
7 39
7 40
5 41
9 42
6 43
2 44
7 45
5 46
4 47
9 48
4 49
6 50
5 51
7 52
1 53
10 54
5 55
10 56
3 57
7 58
3 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #174:

score: 20
Accepted
time: 124ms
memory: 11868kb

input:

1000 50000 3000000
1 2
1 3
1 4
1 5
2 6
1 7
2 8
2 9
2 10
2 11
1 12
2 13
1 14
1 15
2 16
1 17
1 18
1 19
2 20
2 21
1 22
2 23
2 24
1 25
2 26
2 27
1 28
1 29
2 30
1 31
2 32
2 33
1 34
1 35
2 36
1 37
1 38
1 39
2 40
2 41
1 42
1 43
2 44
1 45
1 46
1 47
1 48
2 49
1 50
1 51
1 52
2 53
2 54
2 55
1 56
2 57
1 58
2 59...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #175:

score: 20
Accepted
time: 130ms
memory: 11864kb

input:

1000 50000 3000000
1 2
1 3
2 4
1 5
2 6
1 7
1 8
2 9
1 10
1 11
1 12
1 13
1 14
1 15
2 16
1 17
2 18
1 19
1 20
2 21
2 22
2 23
1 24
2 25
2 26
2 27
1 28
2 29
1 30
2 31
2 32
2 33
1 34
1 35
2 36
1 37
2 38
1 39
1 40
2 41
1 42
2 43
1 44
2 45
2 46
2 47
1 48
1 49
2 50
1 51
1 52
2 53
1 54
2 55
2 56
1 57
2 58
2 59...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #176:

score: 20
Accepted
time: 23ms
memory: 11788kb

input:

1000 50000 3000000
1 2
1 3
1 4
4 5
5 6
6 7
5 8
7 9
3 10
9 11
4 12
1 13
12 14
14 15
12 16
16 17
5 18
16 19
13 20
7 21
17 22
15 23
12 24
17 25
23 26
8 27
4 28
15 29
3 30
15 31
30 32
24 33
10 34
12 35
6 36
21 37
12 38
4 39
38 40
31 41
10 42
40 43
30 44
32 45
20 46
4 47
26 48
33 49
13 50
15 51
11 52
25 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #177:

score: 20
Accepted
time: 16ms
memory: 11888kb

input:

1000 50000 3000000
484 656
230 484
411 230
754 411
17 754
719 17
526 719
824 526
914 824
837 914
482 837
403 482
216 403
191 216
921 191
44 921
254 44
493 254
836 493
553 836
575 553
569 575
207 569
396 207
385 396
848 385
257 848
339 257
710 339
930 710
244 930
799 244
415 799
275 415
323 275
109 3...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #178:

score: 20
Accepted
time: 16ms
memory: 12068kb

input:

1000 50000 3000000
1 2
1 3
2 4
2 5
3 6
3 7
4 8
4 9
5 10
5 11
6 12
6 13
7 14
7 15
8 16
8 17
9 18
9 19
10 20
10 21
11 22
11 23
12 24
12 25
13 26
13 27
14 28
14 29
15 30
15 31
16 32
16 33
17 34
17 35
18 36
18 37
19 38
19 39
20 40
20 41
21 42
21 43
22 44
22 45
23 46
23 47
24 48
24 49
25 50
25 51
26 52
2...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #179:

score: 20
Accepted
time: 12ms
memory: 11836kb

input:

1000 50000 3000000
1 2
1 3
2 4
3 5
4 6
6 7
6 8
7 9
8 10
9 11
11 12
11 13
12 14
13 15
14 16
15 17
17 18
18 19
18 20
20 21
21 22
21 23
23 24
24 25
25 26
25 27
26 28
28 29
28 30
29 31
30 32
31 33
32 34
33 35
35 36
36 37
36 38
38 39
39 40
39 41
40 42
41 43
43 44
43 45
45 46
45 47
47 48
48 49
49 50
49 51...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #180:

score: 20
Accepted
time: 28ms
memory: 11876kb

input:

1000 50000 3000000
1 2
2 3
3 4
1 5
4 6
6 7
5 8
8 9
7 10
9 11
4 12
4 13
10 14
1 15
1 16
9 17
5 18
5 19
10 20
5 21
4 22
4 23
3 24
1 25
9 26
3 27
1 28
10 29
5 30
2 31
3 32
3 33
10 34
5 35
2 36
5 37
2 38
3 39
2 40
8 41
4 42
3 43
6 44
4 45
6 46
2 47
3 48
9 49
9 50
9 51
9 52
4 53
6 54
2 55
10 56
5 57
6 58...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #181:

score: 20
Accepted
time: 6ms
memory: 11828kb

input:

1000 50000 3000000
1 2
2 3
2 4
3 5
4 6
6 7
6 8
8 9
9 10
10 11
11 12
12 13
12 14
13 15
15 16
16 17
16 18
17 19
19 20
20 21
20 22
22 23
23 24
24 25
25 26
26 27
26 28
28 29
29 30
29 31
31 32
32 33
32 34
34 35
35 36
36 37
37 38
37 39
39 40
39 41
40 42
41 43
43 44
44 45
44 46
46 47
47 48
47 49
49 50
49 5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #182:

score: 20
Accepted
time: 29ms
memory: 11752kb

input:

1000 50000 3000000
1 2
2 3
3 4
3 5
4 6
6 7
7 8
8 9
9 10
7 11
8 12
9 13
7 14
4 15
4 16
3 17
7 18
3 19
10 20
5 21
7 22
5 23
3 24
10 25
5 26
2 27
5 28
9 29
7 30
8 31
9 32
5 33
2 34
10 35
6 36
1 37
8 38
1 39
4 40
6 41
3 42
9 43
9 44
5 45
4 46
10 47
6 48
10 49
3 50
1 51
6 52
8 53
9 54
6 55
8 56
8 57
7 58...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #183:

score: 20
Accepted
time: 19ms
memory: 12076kb

input:

1000 50000 3000000
1 2
1 3
1 4
1 5
2 6
2 7
2 8
3 9
3 10
3 11
4 12
4 13
4 14
5 15
5 16
5 17
6 18
6 19
6 20
7 21
7 22
7 23
8 24
8 25
8 26
9 27
9 28
9 29
10 30
10 31
10 32
11 33
11 34
11 35
12 36
12 37
12 38
13 39
13 40
13 41
14 42
14 43
14 44
15 45
15 46
15 47
16 48
16 49
16 50
17 51
17 52
17 53
18 54...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #184:

score: 20
Accepted
time: 14ms
memory: 11816kb

input:

1000 50000 3000000
1 2
1 3
2 4
2 5
1 6
1 7
1 8
3 9
5 10
5 11
6 12
5 13
13 14
8 15
14 16
8 17
14 18
12 19
17 20
11 21
15 22
15 23
17 24
22 25
20 26
23 27
19 28
23 29
29 30
29 31
28 32
25 33
28 34
33 35
32 36
34 37
35 38
34 39
35 40
35 41
40 42
40 43
41 44
40 45
41 46
40 47
40 48
47 49
40 50
41 51
47 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #185:

score: 20
Accepted
time: 21ms
memory: 11748kb

input:

1000 50000 3000000
1 2
1 3
1 4
1 5
2 6
2 7
2 8
3 9
3 10
3 11
4 12
4 13
4 14
5 15
5 16
5 17
6 18
6 19
6 20
7 21
7 22
7 23
8 24
8 25
8 26
9 27
9 28
9 29
10 30
10 31
10 32
11 33
11 34
11 35
12 36
12 37
12 38
13 39
13 40
13 41
14 42
14 43
14 44
15 45
15 46
15 47
16 48
16 49
16 50
17 51
17 52
17 53
18 54...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #186:

score: 20
Accepted
time: 22ms
memory: 12064kb

input:

1000 50000 3000000
1 2
1 3
3 4
3 5
2 6
4 7
6 8
8 9
9 10
9 11
3 12
4 13
3 14
6 15
1 16
9 17
15 18
12 19
6 20
5 21
9 22
6 23
3 24
15 25
8 26
3 27
22 28
10 29
24 30
8 31
20 32
3 33
33 34
14 35
25 36
20 37
9 38
23 39
22 40
18 41
12 42
16 43
11 44
34 45
34 46
42 47
34 48
46 49
48 50
11 51
6 52
7 53
48 54...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #187:

score: 20
Accepted
time: 13ms
memory: 12104kb

input:

1000 50000 3000000
1 2
1 3
3 4
1 5
5 6
1 7
4 8
3 9
2 10
5 11
2 12
4 13
11 14
12 15
13 16
16 17
10 18
16 19
11 20
16 21
21 22
16 23
14 24
17 25
16 26
26 27
24 28
24 29
20 30
23 31
31 32
32 33
27 34
26 35
32 36
31 37
30 38
31 39
37 40
36 41
40 42
40 43
41 44
37 45
39 46
39 47
46 48
42 49
44 50
42 51
5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #188:

score: 20
Accepted
time: 41ms
memory: 12036kb

input:

1000 50000 3000000
1 2
2 3
3 4
4 5
5 6
4 7
3 8
3 9
4 10
1 11
7 12
5 13
6 14
5 15
2 16
7 17
10 18
2 19
3 20
1 21
3 22
4 23
8 24
7 25
3 26
8 27
9 28
10 29
1 30
9 31
7 32
4 33
1 34
7 35
7 36
5 37
7 38
5 39
2 40
5 41
7 42
4 43
10 44
8 45
1 46
8 47
10 48
1 49
1 50
7 51
7 52
10 53
7 54
4 55
6 56
10 57
9 5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #189:

score: 20
Accepted
time: 12ms
memory: 12084kb

input:

1000 50000 3000000
1 2
1 3
2 4
3 5
5 6
6 7
6 8
8 9
9 10
9 11
10 12
12 13
12 14
14 15
15 16
16 17
16 18
17 19
18 20
20 21
20 22
21 23
23 24
24 25
25 26
26 27
26 28
28 29
28 30
30 31
30 32
32 33
33 34
33 35
34 36
35 37
36 38
38 39
38 40
39 41
40 42
42 43
43 44
44 45
44 46
46 47
46 48
48 49
49 50
49 51...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #190:

score: 20
Accepted
time: 74ms
memory: 11876kb

input:

1000 50000 3000000
710 738
710 156
710 501
710 530
710 127
710 755
710 305
710 7
710 339
710 2
710 863
710 914
710 984
710 303
710 725
710 13
710 76
710 852
710 294
710 867
710 316
710 560
710 765
710 343
710 256
710 247
710 53
710 207
710 734
710 503
710 46
710 744
710 403
710 890
710 963
710 467
7...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #191:

score: 20
Accepted
time: 23ms
memory: 11808kb

input:

1000 50000 3000000
1 2
1 3
1 4
2 5
3 6
6 7
5 8
3 9
8 10
10 11
6 12
2 13
1 14
8 15
1 16
9 17
3 18
11 19
10 20
2 21
7 22
22 23
9 24
3 25
24 26
26 27
20 28
18 29
10 30
5 31
21 32
15 33
3 34
26 35
13 36
28 37
21 38
33 39
20 40
1 41
40 42
11 43
20 44
30 45
36 46
16 47
12 48
7 49
35 50
4 51
7 52
14 53
36 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #192:

score: 20
Accepted
time: 11ms
memory: 11772kb

input:

1000 50000 3000000
1 2
2 3
3 4
4 5
4 6
5 7
6 8
7 9
9 10
10 11
11 12
11 13
12 14
14 15
15 16
15 17
16 18
18 19
19 20
19 21
20 22
21 23
23 24
24 25
24 26
26 27
26 28
28 29
29 30
30 31
30 32
32 33
33 34
33 35
35 36
35 37
37 38
38 39
39 40
39 41
40 42
42 43
42 44
43 45
44 46
46 47
47 48
47 49
49 50
49 5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #193:

score: 20
Accepted
time: 128ms
memory: 11872kb

input:

1000 50000 3000000
1 2
2 3
2 4
1 5
1 6
2 7
1 8
1 9
1 10
2 11
2 12
2 13
2 14
2 15
2 16
2 17
1 18
1 19
2 20
1 21
2 22
2 23
2 24
2 25
1 26
2 27
2 28
2 29
1 30
1 31
2 32
2 33
1 34
1 35
2 36
2 37
1 38
1 39
1 40
2 41
1 42
2 43
2 44
1 45
1 46
1 47
1 48
2 49
1 50
1 51
2 52
2 53
1 54
2 55
2 56
2 57
2 58
1 59...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #194:

score: 20
Accepted
time: 12ms
memory: 11768kb

input:

1000 50000 3000000
1 2
1 3
2 4
3 5
5 6
6 7
7 8
8 9
8 10
10 11
10 12
12 13
12 14
13 15
14 16
15 17
17 18
17 19
18 20
19 21
20 22
22 23
22 24
23 25
25 26
25 27
26 28
27 29
28 30
30 31
30 32
31 33
33 34
34 35
35 36
35 37
36 38
37 39
38 40
39 41
41 42
42 43
42 44
43 45
44 46
46 47
47 48
48 49
48 50
50 5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #195:

score: 20
Accepted
time: 24ms
memory: 12080kb

input:

1000 50000 3000000
1 2
2 3
3 4
4 5
5 6
6 7
7 8
8 9
4 10
5 11
8 12
6 13
6 14
4 15
8 16
7 17
9 18
10 19
10 20
8 21
1 22
8 23
8 24
10 25
8 26
3 27
2 28
5 29
6 30
8 31
10 32
3 33
8 34
9 35
1 36
8 37
6 38
2 39
3 40
10 41
2 42
1 43
9 44
4 45
7 46
8 47
1 48
5 49
8 50
3 51
9 52
7 53
4 54
1 55
1 56
8 57
5 58...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #196:

score: 20
Accepted
time: 20ms
memory: 11892kb

input:

1000 50000 3000000
455 277
465 455
871 465
581 871
578 581
669 578
637 669
437 637
9 437
786 9
375 786
363 375
664 363
184 664
223 184
107 223
126 107
23 126
343 23
326 343
660 326
692 660
116 692
515 116
288 515
801 288
282 801
890 282
10 890
579 10
917 579
772 917
344 772
708 344
413 708
550 413
1...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #197:

score: 20
Accepted
time: 19ms
memory: 11816kb

input:

1000 50000 3000000
684 515
308 684
792 308
818 792
295 818
985 295
337 985
882 337
471 863
763 471
961 763
455 961
68 455
780 68
918 780
733 918
137 733
979 137
210 979
951 210
948 951
556 948
561 556
605 561
513 605
862 513
81 862
397 81
743 397
163 743
89 163
846 89
899 846
152 899
155 152
972 155...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #198:

score: 20
Accepted
time: 122ms
memory: 11752kb

input:

1000 50000 3000000
460 556
460 864
460 114
460 177
460 130
460 587
460 413
460 877
460 63
460 59
460 994
460 123
460 590
460 208
460 753
460 183
460 676
460 734
460 54
460 255
460 427
460 648
460 58
460 304
460 223
460 236
460 795
460 908
460 979
460 493
460 871
460 439
460 694
460 552
460 573
460 9...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #199:

score: 20
Accepted
time: 21ms
memory: 11800kb

input:

1000 50000 3000000
1 2
1 3
1 4
1 5
2 6
2 7
2 8
3 9
3 10
3 11
4 12
4 13
4 14
5 15
5 16
5 17
6 18
6 19
6 20
7 21
7 22
7 23
8 24
8 25
8 26
9 27
9 28
9 29
10 30
10 31
10 32
11 33
11 34
11 35
12 36
12 37
12 38
13 39
13 40
13 41
14 42
14 43
14 44
15 45
15 46
15 47
16 48
16 49
16 50
17 51
17 52
17 53
18 54...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #200:

score: 20
Accepted
time: 82ms
memory: 11864kb

input:

1000 50000 3000000
620 406
620 156
620 974
620 836
620 228
620 817
620 776
620 678
620 122
620 735
620 852
620 326
620 169
620 84
620 582
620 701
620 976
620 905
620 580
620 366
620 805
620 70
620 881
620 197
620 762
620 388
620 832
620 368
620 676
620 811
620 83
620 968
620 500
620 218
620 799
620 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #201:

score: 20
Accepted
time: 29ms
memory: 11816kb

input:

1000 50000 3000000
1 2
2 3
1 4
4 5
5 6
3 7
5 8
4 9
5 10
3 11
9 12
6 13
10 14
2 15
6 16
2 17
6 18
4 19
4 20
7 21
8 22
1 23
7 24
3 25
6 26
10 27
6 28
3 29
4 30
9 31
1 32
5 33
1 34
9 35
3 36
1 37
1 38
6 39
7 40
2 41
2 42
9 43
2 44
10 45
5 46
5 47
5 48
10 49
6 50
4 51
7 52
5 53
5 54
4 55
5 56
10 57
3 58...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #202:

score: 20
Accepted
time: 20ms
memory: 11844kb

input:

1000 50000 3000000
280 935
147 280
435 147
825 435
693 825
923 693
957 923
285 957
329 285
546 329
647 546
665 647
914 665
473 914
374 473
971 374
568 971
316 568
19 316
586 19
897 586
689 897
805 689
560 805
794 560
997 794
207 997
344 207
418 344
565 418
810 565
727 810
303 727
73 303
469 73
37 46...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #203:

score: 20
Accepted
time: 8ms
memory: 12088kb

input:

1000 50000 3000000
1 2
2 3
2 4
3 5
4 6
6 7
6 8
7 9
8 10
9 11
11 12
11 13
13 14
13 15
14 16
15 17
17 18
18 19
18 20
19 21
21 22
21 23
22 24
24 25
25 26
25 27
27 28
28 29
28 30
30 31
30 32
31 33
33 34
34 35
35 36
35 37
36 38
38 39
38 40
40 41
40 42
41 43
43 44
44 45
44 46
45 47
46 48
48 49
49 50
50 51...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #204:

score: 20
Accepted
time: 30ms
memory: 11796kb

input:

1000 50000 3000000
1 2
1 3
3 4
4 5
5 6
6 7
3 8
5 9
3 10
10 11
1 12
5 13
2 14
1 15
7 16
7 17
9 18
1 19
9 20
6 21
9 22
9 23
4 24
4 25
10 26
4 27
10 28
9 29
7 30
2 31
6 32
9 33
2 34
5 35
1 36
7 37
1 38
5 39
9 40
1 41
9 42
6 43
1 44
9 45
3 46
8 47
6 48
8 49
10 50
9 51
5 52
10 53
6 54
7 55
6 56
3 57
7 58...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #205:

score: 20
Accepted
time: 124ms
memory: 11752kb

input:

1000 50000 3000000
1 2
2 3
1 4
2 5
1 6
1 7
2 8
2 9
1 10
1 11
2 12
2 13
2 14
2 15
1 16
1 17
2 18
1 19
2 20
2 21
2 22
1 23
1 24
1 25
2 26
1 27
2 28
2 29
1 30
1 31
1 32
1 33
1 34
1 35
1 36
2 37
1 38
1 39
1 40
2 41
2 42
1 43
1 44
2 45
1 46
1 47
2 48
1 49
1 50
1 51
2 52
2 53
1 54
1 55
1 56
2 57
2 58
1 59...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #206:

score: 20
Accepted
time: 12ms
memory: 11768kb

input:

1000 50000 3000000
1 2
1 3
2 4
3 5
4 6
5 7
7 8
7 9
9 10
10 11
10 12
11 13
12 14
13 15
15 16
16 17
17 18
17 19
19 20
20 21
20 22
22 23
22 24
24 25
25 26
26 27
27 28
28 29
29 30
30 31
30 32
31 33
33 34
34 35
34 36
35 37
36 38
38 39
38 40
39 41
40 42
42 43
42 44
44 45
45 46
45 47
46 48
48 49
48 50
50 5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #207:

score: 20
Accepted
time: 122ms
memory: 11816kb

input:

1000 50000 3000000
235 615
235 508
235 438
235 420
235 475
235 206
235 59
235 141
235 256
235 494
235 993
235 128
235 399
235 100
235 919
235 244
235 381
235 624
235 553
235 335
235 755
235 207
235 608
235 14
235 194
235 530
235 694
235 477
235 1
235 921
235 791
235 604
235 340
235 643
235 37
235 43...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #208:

score: 20
Accepted
time: 24ms
memory: 11860kb

input:

1000 50000 3000000
1 2
1 3
1 4
1 5
2 6
2 7
2 8
3 9
3 10
3 11
4 12
4 13
4 14
5 15
5 16
5 17
6 18
6 19
6 20
7 21
7 22
7 23
8 24
8 25
8 26
9 27
9 28
9 29
10 30
10 31
10 32
11 33
11 34
11 35
12 36
12 37
12 38
13 39
13 40
13 41
14 42
14 43
14 44
15 45
15 46
15 47
16 48
16 49
16 50
17 51
17 52
17 53
18 54...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #209:

score: 20
Accepted
time: 127ms
memory: 11812kb

input:

1000 50000 3000000
963 507
963 815
963 148
963 44
963 623
963 162
963 102
963 805
963 50
963 723
963 470
963 169
963 663
963 948
963 93
963 113
963 519
963 136
963 418
963 316
963 436
963 922
963 255
963 892
963 270
963 55
963 296
963 394
963 252
963 830
963 509
963 20
963 844
963 610
963 231
963 29...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #210:

score: 20
Accepted
time: 13ms
memory: 11820kb

input:

1000 50000 3000000
1 2
1 3
1 4
1 5
1 6
1 7
7 8
4 9
3 10
8 11
7 12
3 13
7 14
7 15
7 16
13 17
17 18
16 19
11 20
15 21
15 22
17 23
17 24
15 25
23 26
17 27
27 28
27 29
22 30
29 31
23 32
29 33
31 34
29 35
28 36
36 37
34 38
30 39
30 40
37 41
37 42
36 43
39 44
35 45
42 46
46 47
47 48
43 49
44 50
45 51
46 5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Subtask #4:

score: 60
Accepted

Test #211:

score: 60
Accepted
time: 24ms
memory: 11688kb

input:

990 8500 300000
1 2
1 3
1 4
1 5
2 6
2 7
2 8
3 9
3 10
3 11
4 12
4 13
4 14
5 15
5 16
5 17
6 18
6 19
6 20
7 21
7 22
7 23
8 24
8 25
8 26
9 27
9 28
9 29
10 30
10 31
10 32
11 33
11 34
11 35
12 36
12 37
12 38
13 39
13 40
13 41
14 42
14 43
14 44
15 45
15 46
15 47
16 48
16 49
16 50
17 51
17 52
17 53
18 54
18...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #212:

score: 60
Accepted
time: 22ms
memory: 11780kb

input:

992 8500 300000
1 2
2 3
3 4
4 5
3 6
5 7
7 8
3 9
3 10
2 11
8 12
4 13
4 14
9 15
11 16
5 17
5 18
7 19
12 20
5 21
5 22
10 23
9 24
23 25
22 26
11 27
21 28
28 29
23 30
19 31
5 32
12 33
9 34
11 35
3 36
19 37
10 38
33 39
12 40
12 41
38 42
31 43
25 44
6 45
5 46
36 47
23 48
28 49
31 50
28 51
25 52
5 53
25 54
...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #213:

score: 60
Accepted
time: 11ms
memory: 11852kb

input:

999 8500 300000
1 2
1 3
2 4
2 5
3 6
3 7
4 8
4 9
5 10
5 11
6 12
6 13
7 14
7 15
8 16
8 17
9 18
9 19
10 20
10 21
11 22
11 23
12 24
12 25
13 26
13 27
14 28
14 29
15 30
15 31
16 32
16 33
17 34
17 35
18 36
18 37
19 38
19 39
20 40
20 41
21 42
21 43
22 44
22 45
23 46
23 47
24 48
24 49
25 50
25 51
26 52
26 5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #214:

score: 60
Accepted
time: 21ms
memory: 11780kb

input:

995 8500 300000
1 2
1 3
2 4
1 5
1 6
2 7
7 8
3 9
6 10
9 11
2 12
1 13
9 14
4 15
9 16
13 17
13 18
14 19
6 20
18 21
21 22
14 23
12 24
19 25
9 26
26 27
16 28
28 29
7 30
14 31
1 32
25 33
32 34
5 35
8 36
22 37
19 38
15 39
13 40
27 41
25 42
18 43
12 44
14 45
8 46
36 47
33 48
45 49
46 50
44 51
47 52
15 53
2 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #215:

score: 60
Accepted
time: 51ms
memory: 11860kb

input:

999 8500 300000
1 2
2 3
3 4
4 5
2 6
5 7
4 8
8 9
6 10
1 11
7 12
6 13
2 14
2 15
10 16
10 17
7 18
9 19
4 20
4 21
7 22
1 23
4 24
8 25
1 26
8 27
5 28
6 29
3 30
8 31
6 32
8 33
3 34
10 35
9 36
5 37
9 38
3 39
10 40
7 41
6 42
8 43
7 44
2 45
3 46
10 47
2 48
2 49
5 50
6 51
1 52
2 53
3 54
1 55
7 56
5 57
3 58
10...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #216:

score: 60
Accepted
time: 15ms
memory: 11832kb

input:

993 8500 300000
1 2
1 3
2 4
2 5
3 6
3 7
4 8
4 9
5 10
5 11
6 12
6 13
7 14
7 15
8 16
8 17
9 18
9 19
10 20
10 21
11 22
11 23
12 24
12 25
13 26
13 27
14 28
14 29
15 30
15 31
16 32
16 33
17 34
17 35
18 36
18 37
19 38
19 39
20 40
20 41
21 42
21 43
22 44
22 45
23 46
23 47
24 48
24 49
25 50
25 51
26 52
26 5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #217:

score: 60
Accepted
time: 11ms
memory: 11756kb

input:

995 8500 300000
1 2
1 3
2 4
2 5
3 6
3 7
4 8
4 9
5 10
5 11
6 12
6 13
7 14
7 15
8 16
8 17
9 18
9 19
10 20
10 21
11 22
11 23
12 24
12 25
13 26
13 27
14 28
14 29
15 30
15 31
16 32
16 33
17 34
17 35
18 36
18 37
19 38
19 39
20 40
20 41
21 42
21 43
22 44
22 45
23 46
23 47
24 48
24 49
25 50
25 51
26 52
26 5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #218:

score: 60
Accepted
time: 8ms
memory: 12036kb

input:

992 8500 300000
1 2
1 3
3 4
3 5
1 6
2 7
5 8
5 9
4 10
8 11
4 12
4 13
12 14
7 15
10 16
12 17
12 18
17 19
18 20
17 21
14 22
18 23
20 24
17 25
18 26
19 27
21 28
21 29
27 30
23 31
23 32
31 33
28 34
28 35
27 36
34 37
33 38
34 39
31 40
40 41
38 42
39 43
35 44
43 45
45 46
41 47
47 48
47 49
43 50
42 51
49 52...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #219:

score: 60
Accepted
time: 6ms
memory: 11848kb

input:

993 8500 300000
1 2
1 3
2 4
3 5
5 6
6 7
7 8
7 9
8 10
9 11
11 12
11 13
13 14
14 15
14 16
16 17
16 18
17 19
18 20
20 21
21 22
21 23
23 24
23 25
25 26
25 27
27 28
27 29
28 30
29 31
31 32
32 33
32 34
34 35
34 36
36 37
37 38
37 39
39 40
39 41
40 42
42 43
43 44
44 45
45 46
46 47
47 48
48 49
48 50
50 51
51...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #220:

score: 60
Accepted
time: 12ms
memory: 11828kb

input:

993 8500 300000
1 2
1 3
1 4
1 5
3 6
5 7
6 8
5 9
3 10
6 11
6 12
7 13
10 14
6 15
8 16
15 17
11 18
15 19
16 20
15 21
15 22
16 23
19 24
20 25
22 26
20 27
19 28
28 29
21 30
27 31
30 32
26 33
31 34
32 35
28 36
35 37
31 38
31 39
38 40
32 41
34 42
41 43
35 44
37 45
45 46
43 47
41 48
46 49
43 50
41 51
49 52
...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #221:

score: 60
Accepted
time: 119ms
memory: 11800kb

input:

997 8500 300000
1 2
2 3
1 4
2 5
2 6
1 7
1 8
1 9
1 10
2 11
2 12
1 13
2 14
1 15
1 16
2 17
1 18
1 19
1 20
1 21
2 22
1 23
1 24
1 25
2 26
2 27
2 28
1 29
2 30
1 31
2 32
2 33
1 34
2 35
2 36
1 37
1 38
1 39
1 40
2 41
2 42
1 43
2 44
1 45
1 46
1 47
2 48
1 49
2 50
1 51
2 52
1 53
2 54
1 55
1 56
1 57
1 58
1 59
2 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #222:

score: 60
Accepted
time: 13ms
memory: 11824kb

input:

991 8500 300000
1 2
1 3
2 4
1 5
1 6
1 7
7 8
6 9
9 10
4 11
5 12
9 13
9 14
9 15
13 16
9 17
16 18
11 19
11 20
12 21
17 22
21 23
21 24
17 25
17 26
25 27
24 28
27 29
25 30
27 31
31 32
26 33
28 34
28 35
29 36
30 37
31 38
30 39
34 40
31 41
37 42
34 43
36 44
41 45
43 46
41 47
47 48
41 49
47 50
42 51
42 52
5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #223:

score: 60
Accepted
time: 69ms
memory: 11804kb

input:

996 8500 300000
149 957
149 250
149 933
149 297
149 546
149 684
149 74
149 372
149 741
149 548
149 11
149 400
149 128
149 860
149 812
149 28
149 434
149 136
149 770
149 772
149 58
149 674
149 763
149 988
149 616
149 513
149 476
149 574
149 187
149 355
149 95
149 344
149 652
149 15
149 482
149 396
14...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #224:

score: 60
Accepted
time: 128ms
memory: 11824kb

input:

997 8500 300000
399 637
399 573
399 677
399 261
399 9
399 825
399 534
399 755
399 631
399 993
399 88
399 494
399 366
399 946
399 604
399 408
399 138
399 346
399 624
399 497
399 453
399 516
399 898
399 597
399 753
399 32
399 757
399 145
399 122
399 458
399 563
399 337
399 468
399 766
399 476
399 192
...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #225:

score: 60
Accepted
time: 78ms
memory: 11864kb

input:

997 8500 300000
120 964
120 656
120 77
120 546
120 589
120 826
120 783
120 331
120 793
120 467
120 80
120 11
120 426
120 615
120 52
120 51
120 282
120 538
120 926
120 823
120 684
120 655
120 849
120 651
120 879
120 8
120 90
120 672
120 470
120 371
120 762
120 907
120 414
120 288
120 909
120 843
120 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #226:

score: 60
Accepted
time: 120ms
memory: 12028kb

input:

990 8500 300000
1 2
1 3
1 4
1 5
2 6
1 7
2 8
2 9
1 10
1 11
1 12
2 13
2 14
1 15
2 16
2 17
1 18
2 19
1 20
1 21
1 22
2 23
2 24
2 25
2 26
1 27
2 28
2 29
2 30
1 31
2 32
1 33
2 34
2 35
2 36
2 37
1 38
2 39
1 40
2 41
1 42
1 43
1 44
1 45
2 46
2 47
1 48
2 49
1 50
2 51
1 52
1 53
1 54
1 55
2 56
2 57
2 58
1 59
1 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #227:

score: 60
Accepted
time: 133ms
memory: 11864kb

input:

1000 8500 300000
1 2
1 3
2 4
1 5
1 6
2 7
2 8
1 9
2 10
2 11
1 12
2 13
2 14
2 15
2 16
1 17
1 18
2 19
1 20
2 21
1 22
2 23
2 24
2 25
2 26
2 27
2 28
1 29
2 30
1 31
2 32
2 33
1 34
1 35
2 36
2 37
1 38
1 39
2 40
2 41
2 42
1 43
1 44
2 45
2 46
2 47
1 48
2 49
1 50
1 51
2 52
1 53
2 54
2 55
1 56
2 57
2 58
2 59
1...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #228:

score: 60
Accepted
time: 53ms
memory: 11868kb

input:

997 8500 300000
1 2
2 3
3 4
1 5
5 6
3 7
5 8
8 9
2 10
2 11
7 12
3 13
7 14
3 15
3 16
1 17
10 18
9 19
8 20
2 21
6 22
10 23
8 24
6 25
5 26
7 27
4 28
8 29
9 30
3 31
1 32
6 33
9 34
2 35
7 36
2 37
5 38
1 39
9 40
3 41
5 42
3 43
8 44
8 45
4 46
7 47
9 48
10 49
3 50
7 51
3 52
3 53
8 54
1 55
7 56
5 57
3 58
1 59...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #229:

score: 60
Accepted
time: 36ms
memory: 11848kb

input:

992 8500 300000
1 2
2 3
3 4
4 5
5 6
6 7
7 8
8 9
5 10
6 11
7 12
6 13
10 14
5 15
10 16
7 17
2 18
9 19
10 20
3 21
6 22
4 23
6 24
3 25
9 26
9 27
5 28
4 29
5 30
4 31
7 32
2 33
5 34
1 35
10 36
2 37
6 38
10 39
2 40
1 41
7 42
4 43
10 44
6 45
10 46
1 47
4 48
5 49
5 50
9 51
3 52
2 53
8 54
8 55
6 56
10 57
8 58...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #230:

score: 60
Accepted
time: 18ms
memory: 11832kb

input:

991 8500 300000
1 2
2 3
3 4
4 5
4 6
2 7
1 8
1 9
7 10
7 11
9 12
3 13
9 14
9 15
10 16
1 17
1 18
7 19
8 20
4 21
9 22
1 23
3 24
10 25
2 26
3 27
10 28
7 29
6 30
6 31
7 32
3 33
10 34
4 35
3 36
5 37
5 38
6 39
4 40
9 41
7 42
1 43
8 44
4 45
7 46
8 47
6 48
6 49
7 50
5 51
2 52
1 53
5 54
4 55
7 56
8 57
9 58
2 5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #231:

score: 60
Accepted
time: 21ms
memory: 11756kb

input:

998 8500 300000
1 2
1 3
1 4
1 5
2 6
2 7
2 8
3 9
3 10
3 11
4 12
4 13
4 14
5 15
5 16
5 17
6 18
6 19
6 20
7 21
7 22
7 23
8 24
8 25
8 26
9 27
9 28
9 29
10 30
10 31
10 32
11 33
11 34
11 35
12 36
12 37
12 38
13 39
13 40
13 41
14 42
14 43
14 44
15 45
15 46
15 47
16 48
16 49
16 50
17 51
17 52
17 53
18 54
18...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #232:

score: 60
Accepted
time: 12ms
memory: 11868kb

input:

991 8500 300000
1 2
2 3
2 4
3 5
4 6
6 7
6 8
7 9
9 10
9 11
11 12
12 13
13 14
14 15
14 16
15 17
17 18
18 19
19 20
19 21
20 22
22 23
23 24
23 25
24 26
25 27
27 28
27 29
28 30
30 31
30 32
32 33
33 34
33 35
35 36
36 37
36 38
38 39
39 40
40 41
41 42
42 43
43 44
44 45
44 46
45 47
47 48
47 49
48 50
49 51
51...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #233:

score: 60
Accepted
time: 13ms
memory: 11820kb

input:

991 8500 300000
1 2
1 3
3 4
1 5
1 6
2 7
1 8
2 9
1 10
5 11
6 12
10 13
8 14
10 15
13 16
9 17
11 18
13 19
16 20
13 21
13 22
21 23
18 24
21 25
23 26
21 27
20 28
23 29
24 30
21 31
25 32
25 33
25 34
25 35
32 36
27 37
30 38
31 39
33 40
31 41
37 42
40 43
39 44
43 45
38 46
38 47
42 48
44 49
44 50
47 51
45 52...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #234:

score: 60
Accepted
time: 11ms
memory: 11848kb

input:

998 8500 300000
1 2
1 3
2 4
2 5
3 6
3 7
4 8
4 9
5 10
5 11
6 12
6 13
7 14
7 15
8 16
8 17
9 18
9 19
10 20
10 21
11 22
11 23
12 24
12 25
13 26
13 27
14 28
14 29
15 30
15 31
16 32
16 33
17 34
17 35
18 36
18 37
19 38
19 39
20 40
20 41
21 42
21 43
22 44
22 45
23 46
23 47
24 48
24 49
25 50
25 51
26 52
26 5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #235:

score: 60
Accepted
time: 121ms
memory: 11768kb

input:

990 8500 300000
1 2
2 3
1 4
1 5
2 6
2 7
1 8
2 9
2 10
1 11
1 12
2 13
1 14
1 15
1 16
1 17
2 18
2 19
2 20
2 21
1 22
2 23
2 24
2 25
1 26
2 27
1 28
2 29
1 30
1 31
2 32
2 33
1 34
2 35
2 36
2 37
2 38
2 39
2 40
2 41
1 42
2 43
2 44
2 45
1 46
2 47
1 48
2 49
1 50
2 51
2 52
2 53
1 54
1 55
2 56
2 57
1 58
2 59
2 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #236:

score: 60
Accepted
time: 130ms
memory: 11856kb

input:

997 8500 300000
471 224
471 52
471 94
471 691
471 783
471 527
471 201
471 528
471 677
471 305
471 402
471 269
471 91
471 590
471 81
471 183
471 332
471 966
471 535
471 472
471 478
471 211
471 636
471 430
471 114
471 809
471 18
471 462
471 129
471 870
471 727
471 865
471 572
471 899
471 716
471 355
4...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #237:

score: 60
Accepted
time: 13ms
memory: 12068kb

input:

991 8500 300000
1 2
1 3
1 4
1 5
1 6
3 7
7 8
6 9
2 10
9 11
6 12
3 13
11 14
11 15
12 16
15 17
9 18
17 19
16 20
18 21
13 22
15 23
16 24
15 25
21 26
18 27
18 28
22 29
20 30
27 31
24 32
27 33
31 34
25 35
35 36
32 37
35 38
33 39
35 40
37 41
34 42
37 43
39 44
44 45
42 46
41 47
39 48
45 49
45 50
49 51
48 52...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #238:

score: 60
Accepted
time: 21ms
memory: 11788kb

input:

991 8500 300000
1 2
2 3
2 4
1 5
5 6
6 7
2 8
4 9
2 10
9 11
10 12
5 13
11 14
1 15
13 16
13 17
9 18
5 19
4 20
11 21
11 22
3 23
7 24
17 25
1 26
11 27
23 28
13 29
18 30
19 31
16 32
11 33
29 34
25 35
17 36
10 37
5 38
7 39
6 40
26 41
40 42
18 43
4 44
24 45
28 46
21 47
33 48
18 49
32 50
28 51
15 52
13 53
45...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #239:

score: 60
Accepted
time: 13ms
memory: 11784kb

input:

998 8500 300000
1 2
1 3
1 4
1 5
1 6
2 7
7 8
3 9
9 10
6 11
8 12
5 13
13 14
10 15
12 16
12 17
8 18
17 19
18 20
11 21
15 22
22 23
22 24
15 25
24 26
18 27
26 28
23 29
25 30
26 31
30 32
30 33
32 34
28 35
29 36
35 37
31 38
38 39
38 40
35 41
41 42
35 43
41 44
36 45
43 46
41 47
45 48
40 49
44 50
42 51
46 52...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #240:

score: 60
Accepted
time: 15ms
memory: 12088kb

input:

997 8500 300000
1 2
1 3
2 4
2 5
3 6
3 7
4 8
4 9
5 10
5 11
6 12
6 13
7 14
7 15
8 16
8 17
9 18
9 19
10 20
10 21
11 22
11 23
12 24
12 25
13 26
13 27
14 28
14 29
15 30
15 31
16 32
16 33
17 34
17 35
18 36
18 37
19 38
19 39
20 40
20 41
21 42
21 43
22 44
22 45
23 46
23 47
24 48
24 49
25 50
25 51
26 52
26 5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #241:

score: 60
Accepted
time: 24ms
memory: 12060kb

input:

994 8500 300000
1 2
1 3
1 4
1 5
2 6
2 7
2 8
3 9
3 10
3 11
4 12
4 13
4 14
5 15
5 16
5 17
6 18
6 19
6 20
7 21
7 22
7 23
8 24
8 25
8 26
9 27
9 28
9 29
10 30
10 31
10 32
11 33
11 34
11 35
12 36
12 37
12 38
13 39
13 40
13 41
14 42
14 43
14 44
15 45
15 46
15 47
16 48
16 49
16 50
17 51
17 52
17 53
18 54
18...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #242:

score: 60
Accepted
time: 21ms
memory: 12052kb

input:

990 8500 300000
1 2
2 3
3 4
4 5
5 6
6 7
7 8
8 9
2 10
1 11
3 12
1 13
6 14
10 15
2 16
6 17
8 18
6 19
2 20
4 21
4 22
7 23
7 24
7 25
7 26
9 27
4 28
3 29
3 30
8 31
7 32
5 33
5 34
10 35
8 36
9 37
3 38
6 39
1 40
7 41
1 42
4 43
6 44
9 45
2 46
4 47
7 48
7 49
7 50
1 51
10 52
9 53
8 54
10 55
3 56
4 57
2 58
3 5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #243:

score: 60
Accepted
time: 16ms
memory: 11780kb

input:

991 8500 300000
1 2
1 3
2 4
2 5
3 6
3 7
4 8
4 9
5 10
5 11
6 12
6 13
7 14
7 15
8 16
8 17
9 18
9 19
10 20
10 21
11 22
11 23
12 24
12 25
13 26
13 27
14 28
14 29
15 30
15 31
16 32
16 33
17 34
17 35
18 36
18 37
19 38
19 39
20 40
20 41
21 42
21 43
22 44
22 45
23 46
23 47
24 48
24 49
25 50
25 51
26 52
26 5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #244:

score: 60
Accepted
time: 120ms
memory: 11780kb

input:

991 8500 300000
856 492
856 449
856 461
856 202
856 306
856 712
856 515
856 168
856 214
856 178
856 260
856 839
856 163
856 60
856 496
856 950
856 86
856 381
856 36
856 698
856 71
856 604
856 334
856 930
856 960
856 583
856 450
856 502
856 603
856 889
856 130
856 932
856 76
856 536
856 159
856 211
8...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #245:

score: 60
Accepted
time: 10ms
memory: 11840kb

input:

994 8500 300000
1 2
1 3
1 4
1 5
5 6
5 7
1 8
5 9
5 10
3 11
10 12
4 13
9 14
14 15
10 16
9 17
13 18
10 19
17 20
19 21
15 22
15 23
23 24
17 25
23 26
23 27
18 28
23 29
23 30
21 31
27 32
31 33
31 34
29 35
35 36
33 37
36 38
33 39
30 40
33 41
41 42
35 43
36 44
44 45
38 46
44 47
40 48
44 49
48 50
41 51
44 52...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #246:

score: 60
Accepted
time: 122ms
memory: 12056kb

input:

993 8500 300000
1 2
2 3
2 4
2 5
1 6
1 7
1 8
2 9
1 10
1 11
2 12
2 13
1 14
2 15
1 16
1 17
1 18
1 19
1 20
1 21
2 22
1 23
1 24
1 25
2 26
2 27
2 28
2 29
2 30
2 31
2 32
1 33
2 34
1 35
2 36
1 37
1 38
1 39
1 40
2 41
2 42
1 43
2 44
1 45
1 46
1 47
1 48
2 49
2 50
1 51
2 52
2 53
2 54
2 55
2 56
2 57
2 58
2 59
2 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #247:

score: 60
Accepted
time: 46ms
memory: 11852kb

input:

994 8500 300000
1 2
2 3
2 4
3 5
2 6
4 7
3 8
8 9
1 10
8 11
8 12
10 13
5 14
4 15
8 16
6 17
1 18
7 19
5 20
8 21
10 22
4 23
6 24
9 25
1 26
5 27
2 28
2 29
4 30
1 31
5 32
6 33
4 34
4 35
6 36
7 37
2 38
10 39
6 40
5 41
7 42
9 43
1 44
7 45
10 46
2 47
5 48
2 49
1 50
9 51
4 52
1 53
4 54
1 55
5 56
7 57
2 58
5 5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #248:

score: 60
Accepted
time: 66ms
memory: 11864kb

input:

996 8500 300000
961 126
961 600
961 836
961 656
961 153
961 727
961 620
961 794
961 171
961 602
961 761
961 854
961 424
961 958
961 962
961 472
961 696
961 242
961 453
961 344
961 85
961 277
961 232
961 379
961 442
961 781
961 396
961 872
961 974
961 676
961 855
961 569
961 877
961 251
961 191
961 8...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #249:

score: 60
Accepted
time: 34ms
memory: 11864kb

input:

997 8500 300000
1 2
2 3
3 4
4 5
3 6
5 7
4 8
6 9
3 10
1 11
4 12
7 13
5 14
10 15
10 16
5 17
5 18
9 19
4 20
4 21
5 22
10 23
10 24
2 25
8 26
7 27
3 28
9 29
5 30
10 31
4 32
5 33
8 34
6 35
1 36
6 37
10 38
7 39
1 40
10 41
6 42
7 43
2 44
7 45
7 46
7 47
7 48
5 49
1 50
10 51
10 52
10 53
1 54
5 55
6 56
8 57
10...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #250:

score: 60
Accepted
time: 16ms
memory: 11840kb

input:

994 8500 300000
1 2
1 3
2 4
2 5
3 6
3 7
4 8
4 9
5 10
5 11
6 12
6 13
7 14
7 15
8 16
8 17
9 18
9 19
10 20
10 21
11 22
11 23
12 24
12 25
13 26
13 27
14 28
14 29
15 30
15 31
16 32
16 33
17 34
17 35
18 36
18 37
19 38
19 39
20 40
20 41
21 42
21 43
22 44
22 45
23 46
23 47
24 48
24 49
25 50
25 51
26 52
26 5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #251:

score: 60
Accepted
time: 21ms
memory: 11784kb

input:

995 8500 300000
1 2
2 3
1 4
2 5
2 6
4 7
4 8
5 9
8 10
7 11
11 12
3 13
8 14
13 15
5 16
8 17
2 18
12 19
7 20
10 21
6 22
20 23
14 24
8 25
11 26
1 27
11 28
21 29
15 30
15 31
9 32
14 33
1 34
17 35
18 36
9 37
27 38
23 39
34 40
16 41
32 42
29 43
36 44
13 45
34 46
4 47
37 48
5 49
39 50
37 51
5 52
33 53
22 54...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #252:

score: 60
Accepted
time: 16ms
memory: 12092kb

input:

998 8500 300000
1 2
1 3
2 4
2 5
3 6
3 7
4 8
4 9
5 10
5 11
6 12
6 13
7 14
7 15
8 16
8 17
9 18
9 19
10 20
10 21
11 22
11 23
12 24
12 25
13 26
13 27
14 28
14 29
15 30
15 31
16 32
16 33
17 34
17 35
18 36
18 37
19 38
19 39
20 40
20 41
21 42
21 43
22 44
22 45
23 46
23 47
24 48
24 49
25 50
25 51
26 52
26 5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #253:

score: 60
Accepted
time: 6ms
memory: 11788kb

input:

997 8500 300000
1 2
1 3
1 4
1 5
5 6
6 7
4 8
2 9
1 10
7 11
3 12
3 13
9 14
8 15
15 16
8 17
14 18
17 19
17 20
11 21
14 22
13 23
22 24
21 25
22 26
25 27
21 28
24 29
25 30
21 31
26 32
29 33
27 34
31 35
34 36
28 37
34 38
32 39
39 40
38 41
34 42
40 43
38 44
44 45
44 46
41 47
41 48
48 49
48 50
48 51
47 52
4...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #254:

score: 60
Accepted
time: 17ms
memory: 11780kb

input:

994 8500 300000
1 2
1 3
3 4
4 5
1 6
6 7
4 8
7 9
9 10
8 11
4 12
3 13
7 14
2 15
3 16
1 17
13 18
6 19
3 20
2 21
4 22
8 23
16 24
15 25
17 26
10 27
11 28
5 29
14 30
9 31
21 32
26 33
22 34
10 35
27 36
21 37
8 38
18 39
32 40
24 41
20 42
32 43
7 44
6 45
30 46
2 47
1 48
7 49
46 50
4 51
27 52
3 53
16 54
10 55...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #255:

score: 60
Accepted
time: 12ms
memory: 12048kb

input:

992 8500 300000
1 2
1 3
3 4
4 5
5 6
5 7
6 8
7 9
8 10
9 11
11 12
11 13
13 14
13 15
15 16
15 17
17 18
17 19
18 20
20 21
20 22
21 23
22 24
23 25
24 26
26 27
26 28
28 29
29 30
29 31
31 32
31 33
32 34
33 35
35 36
36 37
36 38
38 39
39 40
39 41
40 42
41 43
42 44
43 45
45 46
45 47
47 48
47 49
48 50
50 51
51...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #256:

score: 60
Accepted
time: 22ms
memory: 12072kb

input:

999 8500 300000
1 2
2 3
3 4
1 5
2 6
2 7
4 8
8 9
2 10
4 11
4 12
2 13
4 14
14 15
9 16
15 17
5 18
11 19
10 20
2 21
7 22
21 23
1 24
11 25
18 26
13 27
11 28
16 29
10 30
27 31
10 32
30 33
30 34
25 35
1 36
3 37
34 38
3 39
38 40
23 41
39 42
4 43
36 44
39 45
14 46
46 47
22 48
36 49
35 50
21 51
26 52
27 53
50...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #257:

score: 60
Accepted
time: 17ms
memory: 11708kb

input:

992 8500 300000
1 2
1 3
1 4
2 5
5 6
4 7
3 8
3 9
2 10
1 11
9 12
7 13
8 14
10 15
4 16
16 17
2 18
17 19
11 20
2 21
8 22
5 23
23 24
5 25
4 26
1 27
8 28
1 29
22 30
6 31
9 32
24 33
28 34
7 35
34 36
27 37
9 38
37 39
14 40
3 41
38 42
28 43
5 44
8 45
17 46
6 47
19 48
9 49
21 50
9 51
14 52
40 53
19 54
33 55
5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #258:

score: 60
Accepted
time: 120ms
memory: 11796kb

input:

996 8500 300000
1 2
2 3
1 4
2 5
2 6
2 7
1 8
2 9
1 10
1 11
1 12
1 13
2 14
2 15
1 16
2 17
1 18
1 19
1 20
2 21
1 22
2 23
1 24
2 25
2 26
2 27
2 28
2 29
2 30
1 31
1 32
1 33
2 34
1 35
2 36
2 37
1 38
1 39
1 40
2 41
2 42
2 43
1 44
1 45
2 46
1 47
1 48
2 49
2 50
1 51
2 52
2 53
2 54
1 55
2 56
2 57
2 58
2 59
2 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #259:

score: 60
Accepted
time: 15ms
memory: 12036kb

input:

990 8500 300000
1 2
1 3
2 4
2 5
3 6
3 7
4 8
4 9
5 10
5 11
6 12
6 13
7 14
7 15
8 16
8 17
9 18
9 19
10 20
10 21
11 22
11 23
12 24
12 25
13 26
13 27
14 28
14 29
15 30
15 31
16 32
16 33
17 34
17 35
18 36
18 37
19 38
19 39
20 40
20 41
21 42
21 43
22 44
22 45
23 46
23 47
24 48
24 49
25 50
25 51
26 52
26 5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #260:

score: 60
Accepted
time: 118ms
memory: 11756kb

input:

991 8500 300000
1 2
2 3
1 4
1 5
2 6
2 7
1 8
1 9
1 10
2 11
1 12
2 13
1 14
2 15
2 16
1 17
1 18
1 19
1 20
2 21
1 22
1 23
1 24
1 25
1 26
1 27
1 28
1 29
1 30
1 31
2 32
1 33
1 34
2 35
1 36
1 37
1 38
1 39
1 40
1 41
1 42
2 43
2 44
2 45
2 46
2 47
2 48
2 49
2 50
2 51
2 52
2 53
1 54
1 55
1 56
1 57
1 58
2 59
2 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #261:

score: 60
Accepted
time: 10ms
memory: 11716kb

input:

993 8500 300000
1 2
1 3
1 4
4 5
1 6
4 7
4 8
4 9
1 10
3 11
4 12
6 13
12 14
5 15
9 16
11 17
15 18
16 19
19 20
15 21
20 22
21 23
23 24
24 25
17 26
17 27
27 28
24 29
23 30
27 31
22 32
32 33
26 34
26 35
27 36
31 37
36 38
32 39
38 40
39 41
36 42
35 43
37 44
42 45
44 46
42 47
44 48
45 49
40 50
50 51
45 52
...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #262:

score: 60
Accepted
time: 12ms
memory: 11744kb

input:

997 8500 300000
1 2
2 3
2 4
4 5
4 6
6 7
6 8
8 9
8 10
9 11
10 12
11 13
12 14
14 15
15 16
16 17
16 18
18 19
18 20
19 21
21 22
22 23
23 24
23 25
25 26
26 27
26 28
27 29
28 30
30 31
30 32
32 33
32 34
34 35
35 36
36 37
36 38
37 39
39 40
39 41
41 42
41 43
42 44
44 45
44 46
45 47
47 48
48 49
48 50
49 51
51...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #263:

score: 60
Accepted
time: 131ms
memory: 11800kb

input:

1000 8500 300000
177 688
177 689
177 589
177 513
177 40
177 104
177 48
177 316
177 247
177 320
177 699
177 231
177 175
177 779
177 816
177 792
177 791
177 886
177 256
177 449
177 586
177 923
177 771
177 222
177 144
177 709
177 225
177 747
177 387
177 44
177 285
177 596
177 793
177 961
177 912
177 97...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #264:

score: 60
Accepted
time: 13ms
memory: 11800kb

input:

1000 8500 300000
1 2
2 3
1 4
1 5
5 6
2 7
1 8
6 9
2 10
9 11
4 12
12 13
10 14
7 15
8 16
12 17
13 18
10 19
11 20
17 21
16 22
13 23
16 24
16 25
20 26
22 27
19 28
21 29
26 30
22 31
31 32
30 33
32 34
30 35
27 36
28 37
30 38
35 39
38 40
40 41
41 42
36 43
41 44
38 45
37 46
38 47
46 48
48 49
44 50
46 51
50 5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #265:

score: 60
Accepted
time: 23ms
memory: 11660kb

input:

990 8500 300000
1 2
2 3
3 4
4 5
1 6
6 7
7 8
6 9
5 10
7 11
7 12
7 13
2 14
2 15
7 16
8 17
4 18
3 19
1 20
2 21
9 22
3 23
3 24
9 25
6 26
2 27
4 28
4 29
5 30
4 31
6 32
9 33
2 34
3 35
2 36
9 37
2 38
4 39
2 40
9 41
6 42
2 43
8 44
3 45
2 46
10 47
3 48
5 49
9 50
8 51
7 52
3 53
10 54
1 55
4 56
4 57
5 58
9 59
...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #266:

score: 60
Accepted
time: 7ms
memory: 11772kb

input:

992 8500 300000
1 2
2 3
2 4
3 5
5 6
5 7
6 8
7 9
9 10
9 11
10 12
12 13
12 14
13 15
14 16
16 17
16 18
17 19
18 20
19 21
20 22
21 23
23 24
23 25
24 26
26 27
27 28
27 29
28 30
30 31
31 32
32 33
33 34
33 35
34 36
36 37
36 38
37 39
39 40
40 41
40 42
42 43
42 44
44 45
45 46
45 47
47 48
48 49
49 50
50 51
51...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #267:

score: 60
Accepted
time: 122ms
memory: 11784kb

input:

990 8500 300000
397 327
397 960
397 928
397 35
397 145
397 250
397 487
397 78
397 79
397 513
397 555
397 597
397 505
397 492
397 452
397 176
397 986
397 83
397 429
397 837
397 98
397 655
397 476
397 978
397 316
397 17
397 821
397 829
397 668
397 524
397 255
397 1
397 199
397 334
397 6
397 588
397 46...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #268:

score: 60
Accepted
time: 16ms
memory: 11852kb

input:

998 8500 300000
1 2
1 3
2 4
2 5
3 6
3 7
4 8
4 9
5 10
5 11
6 12
6 13
7 14
7 15
8 16
8 17
9 18
9 19
10 20
10 21
11 22
11 23
12 24
12 25
13 26
13 27
14 28
14 29
15 30
15 31
16 32
16 33
17 34
17 35
18 36
18 37
19 38
19 39
20 40
20 41
21 42
21 43
22 44
22 45
23 46
23 47
24 48
24 49
25 50
25 51
26 52
26 5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #269:

score: 60
Accepted
time: 22ms
memory: 11808kb

input:

995 8500 300000
1 2
1 3
2 4
1 5
2 6
5 7
5 8
2 9
2 10
8 11
2 12
10 13
4 14
11 15
14 16
11 17
1 18
11 19
12 20
2 21
5 22
15 23
15 24
9 25
25 26
22 27
10 28
24 29
23 30
6 31
25 32
6 33
2 34
32 35
4 36
25 37
18 38
33 39
37 40
12 41
23 42
26 43
38 44
25 45
7 46
16 47
11 48
11 49
25 50
13 51
44 52
46 53
1...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #270:

score: 60
Accepted
time: 41ms
memory: 12052kb

input:

992 8500 300000
1 2
1 3
3 4
4 5
3 6
6 7
6 8
8 9
4 10
2 11
4 12
8 13
2 14
4 15
2 16
8 17
10 18
6 19
5 20
6 21
10 22
3 23
5 24
8 25
9 26
6 27
3 28
6 29
10 30
9 31
9 32
9 33
5 34
7 35
8 36
9 37
1 38
10 39
4 40
2 41
1 42
2 43
3 44
5 45
6 46
10 47
9 48
4 49
7 50
4 51
9 52
7 53
5 54
10 55
9 56
9 57
5 58
9...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #271:

score: 60
Accepted
time: 12ms
memory: 11772kb

input:

990 8500 300000
1 2
1 3
2 4
2 5
3 6
3 7
4 8
4 9
5 10
5 11
6 12
6 13
7 14
7 15
8 16
8 17
9 18
9 19
10 20
10 21
11 22
11 23
12 24
12 25
13 26
13 27
14 28
14 29
15 30
15 31
16 32
16 33
17 34
17 35
18 36
18 37
19 38
19 39
20 40
20 41
21 42
21 43
22 44
22 45
23 46
23 47
24 48
24 49
25 50
25 51
26 52
26 5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #272:

score: 60
Accepted
time: 126ms
memory: 12068kb

input:

997 8500 300000
1 2
2 3
2 4
1 5
2 6
1 7
1 8
2 9
2 10
2 11
1 12
1 13
2 14
2 15
1 16
2 17
1 18
1 19
1 20
1 21
2 22
1 23
2 24
1 25
1 26
2 27
2 28
1 29
2 30
1 31
1 32
2 33
2 34
1 35
1 36
2 37
1 38
2 39
1 40
1 41
2 42
2 43
1 44
1 45
2 46
1 47
1 48
1 49
1 50
1 51
2 52
1 53
1 54
2 55
2 56
1 57
2 58
1 59
1 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #273:

score: 60
Accepted
time: 15ms
memory: 11784kb

input:

997 8500 300000
1 2
1 3
2 4
2 5
3 6
3 7
4 8
4 9
5 10
5 11
6 12
6 13
7 14
7 15
8 16
8 17
9 18
9 19
10 20
10 21
11 22
11 23
12 24
12 25
13 26
13 27
14 28
14 29
15 30
15 31
16 32
16 33
17 34
17 35
18 36
18 37
19 38
19 39
20 40
20 41
21 42
21 43
22 44
22 45
23 46
23 47
24 48
24 49
25 50
25 51
26 52
26 5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #274:

score: 60
Accepted
time: 12ms
memory: 11740kb

input:

990 8500 300000
1 2
1 3
1 4
1 5
5 6
6 7
5 8
8 9
3 10
3 11
2 12
8 13
5 14
5 15
9 16
15 17
16 18
11 19
11 20
16 21
16 22
13 23
21 24
20 25
24 26
24 27
21 28
19 29
27 30
24 31
25 32
28 33
31 34
25 35
32 36
30 37
29 38
35 39
32 40
33 41
38 42
41 43
38 44
39 45
44 46
44 47
40 48
44 49
40 50
44 51
47 52
4...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #275:

score: 60
Accepted
time: 24ms
memory: 12036kb

input:

990 8500 300000
1 2
1 3
2 4
4 5
5 6
5 7
4 8
2 9
4 10
5 11
1 12
2 13
12 14
11 15
1 16
3 17
4 18
7 19
9 20
3 21
21 22
12 23
3 24
20 25
10 26
3 27
13 28
19 29
10 30
29 31
27 32
1 33
31 34
11 35
2 36
7 37
20 38
2 39
6 40
3 41
5 42
6 43
16 44
12 45
23 46
11 47
9 48
18 49
13 50
21 51
3 52
13 53
34 54
39 5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #276:

score: 60
Accepted
time: 73ms
memory: 12088kb

input:

993 8500 300000
732 521
732 944
732 82
732 651
732 460
732 168
732 874
732 780
732 176
732 498
732 897
732 339
732 53
732 512
732 670
732 717
732 61
732 762
732 829
732 967
732 560
732 426
732 870
732 482
732 340
732 279
732 798
732 296
732 765
732 647
732 862
732 179
732 307
732 117
732 824
732 349...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #277:

score: 60
Accepted
time: 125ms
memory: 11804kb

input:

994 8500 300000
1 2
2 3
2 4
1 5
2 6
1 7
1 8
2 9
1 10
1 11
1 12
2 13
1 14
1 15
1 16
2 17
2 18
2 19
2 20
1 21
1 22
1 23
1 24
2 25
2 26
1 27
2 28
2 29
2 30
2 31
1 32
2 33
2 34
1 35
2 36
1 37
1 38
1 39
2 40
1 41
1 42
2 43
2 44
2 45
1 46
1 47
2 48
1 49
2 50
2 51
2 52
1 53
1 54
2 55
2 56
1 57
2 58
1 59
2 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #278:

score: 60
Accepted
time: 12ms
memory: 12064kb

input:

994 8500 300000
1 2
1 3
2 4
4 5
5 6
5 7
6 8
7 9
8 10
9 11
11 12
11 13
12 14
13 15
15 16
16 17
17 18
17 19
18 20
19 21
21 22
21 23
22 24
23 25
25 26
25 27
27 28
27 29
29 30
30 31
30 32
32 33
33 34
34 35
35 36
36 37
37 38
37 39
39 40
40 41
41 42
42 43
43 44
44 45
45 46
46 47
47 48
47 49
48 50
49 51
50...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #279:

score: 60
Accepted
time: 15ms
memory: 12084kb

input:

996 8500 300000
1 2
1 3
2 4
2 5
3 6
3 7
4 8
4 9
5 10
5 11
6 12
6 13
7 14
7 15
8 16
8 17
9 18
9 19
10 20
10 21
11 22
11 23
12 24
12 25
13 26
13 27
14 28
14 29
15 30
15 31
16 32
16 33
17 34
17 35
18 36
18 37
19 38
19 39
20 40
20 41
21 42
21 43
22 44
22 45
23 46
23 47
24 48
24 49
25 50
25 51
26 52
26 5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #280:

score: 60
Accepted
time: 24ms
memory: 12044kb

input:

993 8500 300000
1 2
1 3
1 4
1 5
2 6
2 7
2 8
3 9
3 10
3 11
4 12
4 13
4 14
5 15
5 16
5 17
6 18
6 19
6 20
7 21
7 22
7 23
8 24
8 25
8 26
9 27
9 28
9 29
10 30
10 31
10 32
11 33
11 34
11 35
12 36
12 37
12 38
13 39
13 40
13 41
14 42
14 43
14 44
15 45
15 46
15 47
16 48
16 49
16 50
17 51
17 52
17 53
18 54
18...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #281:

score: 60
Accepted
time: 14ms
memory: 11860kb

input:

1000 8500 300000
1 2
1 3
1 4
4 5
5 6
1 7
6 8
8 9
1 10
2 11
9 12
12 13
8 14
10 15
12 16
9 17
17 18
18 19
15 20
16 21
13 22
15 23
18 24
18 25
20 26
20 27
19 28
27 29
21 30
27 31
31 32
25 33
31 34
30 35
30 36
31 37
37 38
29 39
38 40
37 41
41 42
36 43
40 44
36 45
37 46
38 47
39 48
45 49
40 50
48 51
46 5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #282:

score: 60
Accepted
time: 32ms
memory: 12080kb

input:

997 8500 300000
1 2
2 3
3 4
3 5
5 6
5 7
1 8
5 9
7 10
9 11
8 12
3 13
10 14
8 15
6 16
1 17
10 18
2 19
6 20
1 21
2 22
10 23
8 24
6 25
9 26
9 27
6 28
9 29
3 30
7 31
9 32
3 33
7 34
10 35
2 36
7 37
4 38
6 39
8 40
5 41
9 42
8 43
5 44
10 45
2 46
5 47
5 48
6 49
7 50
2 51
7 52
5 53
2 54
7 55
8 56
7 57
6 58
3 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #283:

score: 60
Accepted
time: 127ms
memory: 11752kb

input:

1000 8500 300000
1 2
1 3
1 4
2 5
2 6
2 7
1 8
2 9
2 10
2 11
1 12
1 13
1 14
1 15
1 16
1 17
1 18
1 19
2 20
2 21
2 22
1 23
2 24
1 25
1 26
2 27
1 28
1 29
2 30
1 31
1 32
1 33
2 34
1 35
1 36
1 37
2 38
2 39
1 40
2 41
1 42
2 43
2 44
2 45
1 46
2 47
1 48
2 49
1 50
2 51
2 52
2 53
1 54
2 55
2 56
2 57
2 58
2 59
1...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #284:

score: 60
Accepted
time: 38ms
memory: 11776kb

input:

995 8500 300000
1 2
2 3
3 4
4 5
3 6
5 7
7 8
4 9
8 10
6 11
5 12
4 13
6 14
5 15
6 16
2 17
9 18
6 19
1 20
6 21
3 22
3 23
9 24
5 25
4 26
3 27
10 28
7 29
2 30
6 31
8 32
4 33
6 34
10 35
10 36
1 37
1 38
9 39
10 40
9 41
9 42
3 43
2 44
10 45
7 46
3 47
6 48
8 49
6 50
4 51
8 52
8 53
9 54
9 55
6 56
4 57
9 58
3 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #285:

score: 60
Accepted
time: 12ms
memory: 11796kb

input:

994 8500 300000
1 2
1 3
2 4
4 5
1 6
1 7
1 8
4 9
6 10
7 11
5 12
12 13
10 14
13 15
8 16
14 17
9 18
12 19
14 20
20 21
13 22
13 23
18 24
21 25
19 26
24 27
25 28
23 29
21 30
23 31
26 32
27 33
28 34
28 35
29 36
33 37
29 38
30 39
38 40
37 41
40 42
40 43
41 44
35 45
45 46
41 47
46 48
44 49
47 50
50 51
46 52...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #286:

score: 60
Accepted
time: 133ms
memory: 11772kb

input:

998 8500 300000
805 78
805 757
805 454
805 194
805 854
805 272
805 322
805 464
805 602
805 479
805 946
805 601
805 650
805 864
805 49
805 823
805 800
805 15
805 653
805 250
805 516
805 396
805 317
805 223
805 656
805 890
805 539
805 953
805 977
805 295
805 83
805 141
805 905
805 892
805 425
805 608
...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #287:

score: 60
Accepted
time: 35ms
memory: 12064kb

input:

997 8500 300000
1 2
2 3
1 4
2 5
1 6
2 7
7 8
7 9
4 10
9 11
6 12
4 13
10 14
7 15
1 16
6 17
3 18
6 19
10 20
9 21
10 22
8 23
6 24
6 25
3 26
4 27
6 28
5 29
5 30
5 31
8 32
2 33
2 34
6 35
3 36
7 37
1 38
4 39
9 40
7 41
6 42
6 43
6 44
5 45
8 46
3 47
6 48
3 49
1 50
2 51
8 52
10 53
5 54
10 55
5 56
10 57
8 58
4...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #288:

score: 60
Accepted
time: 47ms
memory: 12092kb

input:

1000 8500 300000
1 2
2 3
3 4
2 5
5 6
1 7
2 8
2 9
3 10
9 11
5 12
3 13
2 14
4 15
4 16
3 17
1 18
1 19
3 20
7 21
9 22
1 23
8 24
10 25
4 26
3 27
6 28
6 29
7 30
4 31
1 32
6 33
9 34
1 35
8 36
6 37
6 38
1 39
1 40
3 41
5 42
4 43
4 44
10 45
6 46
3 47
10 48
7 49
3 50
10 51
6 52
7 53
9 54
6 55
2 56
10 57
7 58
1...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #289:

score: 60
Accepted
time: 23ms
memory: 11788kb

input:

991 8500 300000
1 2
2 3
1 4
4 5
3 6
1 7
2 8
7 9
4 10
10 11
3 12
6 13
7 14
6 15
5 16
4 17
1 18
10 19
2 20
18 21
2 22
10 23
11 24
13 25
21 26
26 27
25 28
13 29
19 30
17 31
17 32
9 33
3 34
15 35
31 36
35 37
8 38
7 39
26 40
33 41
17 42
23 43
6 44
12 45
31 46
7 47
47 48
2 49
44 50
25 51
3 52
46 53
40 54
...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #290:

score: 60
Accepted
time: 15ms
memory: 11740kb

input:

990 8500 300000
1 2
1 3
2 4
2 5
3 6
3 7
4 8
4 9
5 10
5 11
6 12
6 13
7 14
7 15
8 16
8 17
9 18
9 19
10 20
10 21
11 22
11 23
12 24
12 25
13 26
13 27
14 28
14 29
15 30
15 31
16 32
16 33
17 34
17 35
18 36
18 37
19 38
19 39
20 40
20 41
21 42
21 43
22 44
22 45
23 46
23 47
24 48
24 49
25 50
25 51
26 52
26 5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #291:

score: 60
Accepted
time: 12ms
memory: 12060kb

input:

994 8500 300000
1 2
2 3
2 4
4 5
5 6
5 7
6 8
8 9
8 10
9 11
10 12
12 13
12 14
13 15
14 16
15 17
16 18
17 19
19 20
20 21
20 22
22 23
23 24
24 25
24 26
25 27
26 28
28 29
29 30
29 31
30 32
31 33
33 34
34 35
34 36
36 37
36 38
38 39
38 40
40 41
41 42
41 43
42 44
43 45
45 46
45 47
46 48
47 49
49 50
49 51
50...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #292:

score: 60
Accepted
time: 23ms
memory: 12076kb

input:

1000 8500 300000
1 2
1 3
2 4
2 5
1 6
2 7
1 8
3 9
3 10
10 11
1 12
1 13
3 14
12 15
1 16
14 17
16 18
6 19
10 20
7 21
12 22
12 23
19 24
7 25
23 26
15 27
24 28
18 29
2 30
2 31
30 32
15 33
27 34
2 35
3 36
35 37
33 38
7 39
22 40
20 41
15 42
31 43
20 44
36 45
31 46
18 47
39 48
18 49
9 50
15 51
42 52
14 53
1...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #293:

score: 60
Accepted
time: 72ms
memory: 11708kb

input:

991 8500 300000
161 643
161 650
161 90
161 664
161 499
161 529
161 241
161 375
161 163
161 445
161 948
161 802
161 77
161 421
161 409
161 703
161 768
161 19
161 918
161 128
161 125
161 60
161 818
161 16
161 602
161 178
161 788
161 272
161 783
161 858
161 393
161 810
161 386
161 479
161 989
161 276
1...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #294:

score: 60
Accepted
time: 25ms
memory: 11812kb

input:

992 8500 300000
1 2
2 3
3 4
4 5
1 6
3 7
5 8
1 9
1 10
3 11
2 12
9 13
5 14
10 15
5 16
7 17
1 18
5 19
6 20
8 21
17 22
5 23
13 24
11 25
22 26
25 27
15 28
17 29
17 30
4 31
31 32
30 33
13 34
34 35
8 36
12 37
8 38
2 39
32 40
15 41
31 42
5 43
27 44
2 45
37 46
45 47
5 48
8 49
44 50
10 51
47 52
24 53
30 54
1 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #295:

score: 60
Accepted
time: 10ms
memory: 11820kb

input:

991 8500 300000
1 2
1 3
1 4
4 5
1 6
1 7
2 8
4 9
2 10
3 11
4 12
12 13
12 14
9 15
11 16
7 17
15 18
15 19
14 20
12 21
21 22
21 23
21 24
15 25
22 26
18 27
18 28
23 29
28 30
22 31
31 32
29 33
25 34
28 35
27 36
30 37
28 38
33 39
35 40
36 41
34 42
36 43
38 44
39 45
42 46
46 47
42 48
39 49
40 50
48 51
42 52...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #296:

score: 60
Accepted
time: 24ms
memory: 11780kb

input:

991 8500 300000
1 2
1 3
1 4
1 5
2 6
2 7
2 8
3 9
3 10
3 11
4 12
4 13
4 14
5 15
5 16
5 17
6 18
6 19
6 20
7 21
7 22
7 23
8 24
8 25
8 26
9 27
9 28
9 29
10 30
10 31
10 32
11 33
11 34
11 35
12 36
12 37
12 38
13 39
13 40
13 41
14 42
14 43
14 44
15 45
15 46
15 47
16 48
16 49
16 50
17 51
17 52
17 53
18 54
18...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #297:

score: 60
Accepted
time: 20ms
memory: 11816kb

input:

996 8500 300000
1 2
2 3
3 4
4 5
4 6
1 7
4 8
5 9
7 10
5 11
11 12
11 13
8 14
9 15
4 16
11 17
9 18
1 19
7 20
16 21
17 22
12 23
19 24
2 25
19 26
24 27
25 28
12 29
11 30
27 31
30 32
24 33
1 34
25 35
13 36
28 37
19 38
29 39
4 40
2 41
41 42
6 43
25 44
9 45
22 46
33 47
2 48
41 49
28 50
11 51
46 52
31 53
42 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #298:

score: 60
Accepted
time: 31ms
memory: 12056kb

input:

991 8500 300000
1 2
2 3
1 4
4 5
5 6
5 7
7 8
8 9
6 10
3 11
4 12
8 13
5 14
6 15
4 16
3 17
9 18
1 19
9 20
9 21
8 22
8 23
3 24
7 25
8 26
9 27
2 28
3 29
4 30
7 31
6 32
8 33
6 34
9 35
10 36
5 37
9 38
2 39
1 40
9 41
6 42
5 43
6 44
6 45
8 46
7 47
8 48
4 49
2 50
8 51
4 52
2 53
4 54
8 55
5 56
5 57
2 58
3 59
6...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #299:

score: 60
Accepted
time: 71ms
memory: 12100kb

input:

993 8500 300000
196 218
196 730
196 337
196 281
196 71
196 194
196 794
196 746
196 154
196 749
196 133
196 884
196 22
196 137
196 818
196 573
196 841
196 402
196 296
196 979
196 239
196 419
196 421
196 509
196 211
196 922
196 732
196 638
196 302
196 829
196 733
196 220
196 492
196 73
196 37
196 763
...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #300:

score: 60
Accepted
time: 14ms
memory: 11784kb

input:

998 8500 300000
1 2
1 3
1 4
1 5
1 6
3 7
1 8
1 9
1 10
6 11
6 12
8 13
13 14
14 15
11 16
11 17
10 18
10 19
11 20
11 21
15 22
22 23
18 24
15 25
19 26
26 27
23 28
26 29
20 30
21 31
24 32
27 33
25 34
30 35
27 36
36 37
32 38
32 39
30 40
40 41
36 42
39 43
37 44
39 45
43 46
37 47
44 48
40 49
43 50
49 51
51 5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #301:

score: 60
Accepted
time: 12ms
memory: 11760kb

input:

995 8500 300000
1 2
2 3
1 4
1 5
1 6
5 7
4 8
4 9
1 10
3 11
3 12
12 13
8 14
13 15
12 16
14 17
17 18
18 19
15 20
11 21
20 22
21 23
14 24
20 25
25 26
20 27
26 28
27 29
26 30
24 31
29 32
26 33
33 34
28 35
33 36
34 37
36 38
34 39
31 40
36 41
33 42
38 43
35 44
35 45
45 46
37 47
46 48
46 49
46 50
48 51
43 5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #302:

score: 60
Accepted
time: 24ms
memory: 11804kb

input:

998 8500 300000
1 2
1 3
1 4
1 5
2 6
2 7
2 8
3 9
3 10
3 11
4 12
4 13
4 14
5 15
5 16
5 17
6 18
6 19
6 20
7 21
7 22
7 23
8 24
8 25
8 26
9 27
9 28
9 29
10 30
10 31
10 32
11 33
11 34
11 35
12 36
12 37
12 38
13 39
13 40
13 41
14 42
14 43
14 44
15 45
15 46
15 47
16 48
16 49
16 50
17 51
17 52
17 53
18 54
18...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #303:

score: 60
Accepted
time: 23ms
memory: 11864kb

input:

996 8500 300000
1 2
2 3
3 4
4 5
5 6
4 7
2 8
8 9
6 10
5 11
1 12
9 13
6 14
6 15
5 16
7 17
3 18
1 19
6 20
6 21
5 22
3 23
2 24
1 25
6 26
10 27
1 28
2 29
4 30
8 31
6 32
8 33
4 34
10 35
6 36
2 37
3 38
8 39
6 40
5 41
4 42
9 43
9 44
7 45
6 46
8 47
6 48
7 49
2 50
3 51
3 52
5 53
1 54
5 55
8 56
6 57
8 58
4 59
...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #304:

score: 60
Accepted
time: 74ms
memory: 11828kb

input:

997 8500 300000
284 343
284 126
284 513
284 582
284 991
284 699
284 36
284 256
284 741
284 147
284 820
284 196
284 579
284 483
284 225
284 994
284 602
284 723
284 555
284 396
284 192
284 282
284 205
284 348
284 872
284 138
284 169
284 720
284 405
284 377
284 90
284 697
284 901
284 319
284 585
284 91...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #305:

score: 60
Accepted
time: 25ms
memory: 11844kb

input:

995 8500 300000
1 2
1 3
1 4
1 5
2 6
2 7
2 8
3 9
3 10
3 11
4 12
4 13
4 14
5 15
5 16
5 17
6 18
6 19
6 20
7 21
7 22
7 23
8 24
8 25
8 26
9 27
9 28
9 29
10 30
10 31
10 32
11 33
11 34
11 35
12 36
12 37
12 38
13 39
13 40
13 41
14 42
14 43
14 44
15 45
15 46
15 47
16 48
16 49
16 50
17 51
17 52
17 53
18 54
18...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #306:

score: 60
Accepted
time: 12ms
memory: 11864kb

input:

997 8500 300000
1 2
2 3
2 4
4 5
5 6
5 7
6 8
8 9
8 10
9 11
11 12
12 13
12 14
14 15
14 16
16 17
17 18
17 19
18 20
20 21
21 22
22 23
23 24
23 25
25 26
26 27
27 28
28 29
28 30
30 31
30 32
31 33
33 34
34 35
34 36
35 37
37 38
37 39
39 40
40 41
40 42
41 43
42 44
43 45
44 46
46 47
46 48
48 49
49 50
49 51
50...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #307:

score: 60
Accepted
time: 25ms
memory: 12124kb

input:

999 8500 300000
1 2
1 3
3 4
4 5
2 6
1 7
2 8
6 9
7 10
5 11
4 12
12 13
6 14
1 15
7 16
11 17
6 18
2 19
16 20
4 21
1 22
8 23
3 24
19 25
12 26
11 27
3 28
28 29
17 30
19 31
3 32
19 33
12 34
8 35
7 36
1 37
33 38
33 39
29 40
15 41
14 42
29 43
29 44
7 45
25 46
42 47
8 48
23 49
39 50
32 51
36 52
40 53
24 54
2...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #308:

score: 60
Accepted
time: 73ms
memory: 11852kb

input:

997 8500 300000
467 257
467 36
467 593
467 28
467 356
467 711
467 362
467 891
467 830
467 790
467 526
467 41
467 316
467 355
467 788
467 29
467 505
467 281
467 729
467 464
467 954
467 951
467 670
467 54
467 918
467 993
467 765
467 687
467 25
467 709
467 204
467 435
467 80
467 199
467 525
467 562
467...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #309:

score: 60
Accepted
time: 22ms
memory: 11676kb

input:

991 8500 300000
1 2
1 3
1 4
1 5
2 6
2 7
2 8
3 9
3 10
3 11
4 12
4 13
4 14
5 15
5 16
5 17
6 18
6 19
6 20
7 21
7 22
7 23
8 24
8 25
8 26
9 27
9 28
9 29
10 30
10 31
10 32
11 33
11 34
11 35
12 36
12 37
12 38
13 39
13 40
13 41
14 42
14 43
14 44
15 45
15 46
15 47
16 48
16 49
16 50
17 51
17 52
17 53
18 54
18...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #310:

score: 60
Accepted
time: 24ms
memory: 11732kb

input:

994 8500 300000
1 2
1 3
1 4
1 5
2 6
2 7
2 8
3 9
3 10
3 11
4 12
4 13
4 14
5 15
5 16
5 17
6 18
6 19
6 20
7 21
7 22
7 23
8 24
8 25
8 26
9 27
9 28
9 29
10 30
10 31
10 32
11 33
11 34
11 35
12 36
12 37
12 38
13 39
13 40
13 41
14 42
14 43
14 44
15 45
15 46
15 47
16 48
16 49
16 50
17 51
17 52
17 53
18 54
18...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #311:

score: 60
Accepted
time: 85ms
memory: 11876kb

input:

1000 8500 300000
2 1
3 1
4 1
5 1
6 1
7 1
8 1
9 1
10 1
11 10
12 10
13 10
14 10
15 10
16 10
17 10
18 10
19 10
20 10
21 10
22 10
23 10
24 10
25 10
26 10
27 10
28 10
29 10
30 10
31 10
32 10
33 10
34 10
35 10
36 10
37 10
38 10
39 10
40 10
41 10
42 10
43 10
44 10
45 10
46 10
47 10
48 10
49 10
50 10
51 10
...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #312:

score: 60
Accepted
time: 16ms
memory: 11812kb

input:

1000 8500 300000
785 699
487 785
714 487
771 714
260 771
529 260
902 529
944 729
435 944
493 435
122 493
68 122
993 68
967 993
87 967
35 87
330 35
165 330
372 165
766 372
65 766
60 65
454 60
393 454
859 393
814 859
966 814
866 966
738 866
231 738
428 231
681 428
963 681
162 963
518 162
755 518
500 7...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #313:

score: 60
Accepted
time: 20ms
memory: 11816kb

input:

1000 8500 300000
275 973
525 275
103 525
993 103
308 993
928 308
385 928
352 385
877 352
914 877
613 914
456 613
78 456
663 78
874 663
900 874
18 900
505 18
698 505
867 698
295 867
110 295
116 110
560 116
922 560
553 922
752 553
506 752
546 506
215 546
758 215
683 758
83 683
929 83
836 929
274 836
5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #314:

score: 60
Accepted
time: 19ms
memory: 11804kb

input:

1000 8500 300000
418 587
564 418
203 564
676 203
936 676
337 936
696 337
279 696
118 279
753 118
267 753
514 267
131 514
269 131
866 269
85 866
257 85
870 257
531 870
591 531
239 591
701 239
865 701
383 865
894 383
984 894
938 984
610 938
929 610
766 929
586 766
160 586
691 160
109 691
896 109
495 8...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #315:

score: 60
Accepted
time: 20ms
memory: 11876kb

input:

1000 8500 300000
488 122
537 488
315 537
302 315
635 302
257 635
776 257
789 776
824 789
550 824
454 550
590 454
224 590
402 224
609 402
744 609
754 744
31 754
907 31
997 907
709 997
487 709
750 487
351 750
734 351
985 734
362 985
497 362
8 497
684 8
193 684
254 193
896 254
209 896
260 209
973 260
3...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #316:

score: 60
Accepted
time: 21ms
memory: 11880kb

input:

1000 8500 300000
703 560
802 703
542 802
233 542
164 233
612 164
161 612
135 161
222 135
777 222
243 777
391 243
789 391
130 789
833 130
120 833
381 120
814 381
949 814
26 949
536 26
989 536
722 989
344 722
588 344
876 588
418 876
459 418
575 459
606 575
548 606
955 548
628 955
42 628
524 42
128 524...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #317:

score: 60
Accepted
time: 17ms
memory: 12096kb

input:

1000 8500 300000
549 862
821 549
336 821
475 336
1 475
936 1
572 936
480 572
715 480
958 715
756 958
200 756
256 200
220 256
828 220
874 828
80 874
878 80
377 878
806 377
605 806
632 605
88 632
611 88
20 611
602 20
414 602
618 414
374 618
205 374
306 205
299 306
262 299
960 262
382 960
369 382
240 3...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #318:

score: 60
Accepted
time: 16ms
memory: 11872kb

input:

1000 8500 300000
725 980
157 725
785 157
118 785
328 118
152 328
711 152
668 711
363 668
106 363
244 106
795 244
535 795
932 535
348 932
635 348
495 635
438 495
993 438
18 993
497 18
527 497
697 527
284 697
298 284
107 298
930 107
752 930
199 752
37 199
136 37
621 136
190 621
613 190
879 613
26 879
...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #319:

score: 60
Accepted
time: 16ms
memory: 11812kb

input:

1000 8500 300000
8 766
282 8
749 282
688 749
44 688
771 44
790 771
847 790
329 847
174 329
930 174
100 930
2 100
10 2
807 10
386 807
928 386
596 928
657 596
802 657
551 802
694 551
680 694
514 680
792 514
926 792
259 926
454 259
493 454
740 493
322 740
975 322
479 975
164 479
57 164
268 57
521 268
8...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #320:

score: 60
Accepted
time: 21ms
memory: 11884kb

input:

1000 8500 300000
289 617
67 289
656 67
573 656
738 573
978 738
884 978
167 884
944 167
720 944
355 720
192 355
158 192
321 158
543 321
425 543
818 425
907 818
669 907
211 669
887 211
577 887
565 577
187 565
589 187
561 589
49 561
983 49
258 983
479 258
592 479
582 592
522 582
126 522
912 126
502 912...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #321:

score: 60
Accepted
time: 21ms
memory: 11844kb

input:

1000 8500 300000
960 812
872 960
169 872
598 169
535 598
351 535
344 351
897 344
457 897
90 457
131 90
814 131
103 814
478 103
2 478
301 2
668 301
302 668
65 302
227 65
193 227
731 193
228 731
628 228
519 628
83 519
895 83
737 895
568 737
632 568
430 632
182 430
138 182
287 138
219 287
200 219
475 2...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #322:

score: 60
Accepted
time: 16ms
memory: 11828kb

input:

1000 8500 300000
99 700
36 99
351 36
35 351
851 35
366 851
434 366
980 434
895 980
554 895
737 554
73 737
50 73
417 50
715 417
186 715
264 186
532 264
198 532
79 198
711 79
15 711
291 15
771 291
233 771
308 233
136 308
703 136
752 703
643 752
11 643
762 11
121 762
199 121
977 199
986 977
591 986
352...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #323:

score: 60
Accepted
time: 17ms
memory: 11768kb

input:

1000 8500 300000
195 414
962 195
171 756
7 171
662 7
970 662
439 970
907 439
976 907
275 976
604 275
36 604
419 36
341 419
121 341
412 121
485 412
119 485
573 119
319 573
748 319
142 748
311 142
494 311
147 494
335 147
613 335
888 613
224 888
807 224
435 807
674 435
555 674
974 555
978 974
861 978
2...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #324:

score: 60
Accepted
time: 20ms
memory: 11752kb

input:

1000 8500 300000
662 147
76 662
548 76
779 548
103 779
868 103
378 868
918 378
51 918
362 51
14 362
722 14
310 722
343 310
297 343
346 297
318 346
15 318
209 15
823 209
480 823
232 480
951 232
533 951
700 533
652 700
754 652
531 754
673 531
489 673
608 489
567 608
665 567
296 665
763 296
398 763
205...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #325:

score: 60
Accepted
time: 24ms
memory: 12076kb

input:

1000 8500 300000
230 750
230 59
230 336
230 319
230 552
230 718
230 614
230 315
230 596
230 772
230 224
230 638
230 721
230 633
230 919
230 828
230 85
230 514
230 695
230 999
230 202
230 370
230 47
230 795
230 529
230 136
230 132
230 788
230 119
230 389
230 150
230 725
230 166
230 851
230 964
230 92...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #326:

score: 60
Accepted
time: 24ms
memory: 12064kb

input:

1000 8500 300000
771 152
771 443
771 108
771 146
771 157
771 37
771 24
771 767
771 672
771 322
771 870
771 254
771 476
771 888
771 801
771 398
771 917
771 105
771 247
771 371
771 399
771 959
771 386
771 806
771 927
771 12
771 332
771 194
771 82
771 80
771 388
771 608
771 225
771 370
771 879
771 594
...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #327:

score: 60
Accepted
time: 27ms
memory: 11852kb

input:

1000 8500 300000
841 367
841 365
841 615
841 526
841 301
841 88
841 416
841 866
841 935
841 423
841 769
841 238
841 638
841 778
841 727
841 608
841 817
841 831
841 541
841 874
841 818
841 838
841 616
841 848
841 969
841 876
841 601
841 71
841 873
841 262
841 130
841 11
841 278
841 501
841 357
841 56...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #328:

score: 60
Accepted
time: 24ms
memory: 11860kb

input:

1000 8500 300000
212 625
212 207
212 279
212 964
212 733
212 286
212 142
212 454
212 594
212 204
212 320
212 249
212 867
212 266
212 732
212 182
212 246
212 400
212 500
212 921
212 631
212 664
212 143
212 601
212 51
212 701
212 7
212 347
212 526
212 471
212 723
212 157
212 123
212 834
212 636
212 25...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #329:

score: 60
Accepted
time: 26ms
memory: 11832kb

input:

1000 8500 300000
152 55
152 843
152 602
152 524
152 941
152 673
152 108
152 836
152 543
152 58
152 147
152 69
152 800
152 468
152 240
152 456
152 175
152 59
152 23
152 109
152 77
152 86
152 547
152 805
152 337
152 161
152 454
152 65
152 419
152 455
152 802
152 263
152 989
152 625
152 220
152 533
152...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #330:

score: 60
Accepted
time: 25ms
memory: 11788kb

input:

1000 8500 300000
766 839
766 442
766 981
766 677
766 725
766 891
766 215
766 526
766 642
766 523
766 884
766 139
766 181
766 514
766 711
766 735
766 990
766 465
766 613
766 43
766 512
766 65
766 70
766 701
766 775
766 255
766 895
766 220
766 137
766 536
766 510
766 444
766 254
766 306
766 826
766 65...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #331:

score: 60
Accepted
time: 24ms
memory: 12076kb

input:

1000 8500 300000
35 81
35 112
35 626
35 768
35 529
35 502
35 229
35 294
35 19
35 555
35 533
35 592
35 524
35 783
35 358
35 344
35 8
35 921
35 42
35 394
35 84
35 181
35 721
35 606
35 395
35 386
35 139
35 910
35 93
35 205
35 554
35 750
35 498
35 258
35 184
35 39
35 340
35 604
35 116
35 601
35 995
35 7...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #332:

score: 60
Accepted
time: 24ms
memory: 11868kb

input:

1000 8500 300000
413 881
413 198
413 455
413 456
413 758
413 775
413 184
413 430
413 599
413 72
413 49
413 555
413 387
413 254
413 906
413 696
413 903
413 168
413 781
413 907
413 223
413 382
413 432
413 720
413 901
413 452
413 476
413 853
413 36
413 648
413 211
413 557
413 83
413 839
413 587
413 727...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #333:

score: 60
Accepted
time: 24ms
memory: 12088kb

input:

1000 8500 300000
887 428
887 268
887 254
887 706
887 903
887 849
887 594
887 807
887 258
887 177
887 736
887 925
887 518
887 633
887 915
887 512
887 464
887 862
887 572
887 97
887 424
887 687
887 278
887 102
887 878
887 658
887 475
887 468
887 457
887 998
887 484
887 883
887 712
887 503
887 208
887 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #334:

score: 60
Accepted
time: 27ms
memory: 12076kb

input:

1000 8500 300000
735 820
735 354
735 721
735 957
735 266
735 263
735 357
735 301
735 210
735 900
735 540
735 638
735 26
735 964
735 3
735 265
735 370
735 970
735 649
735 439
735 362
735 410
735 406
735 390
735 740
735 303
735 855
735 634
735 446
735 914
735 160
735 710
735 699
735 36
735 509
735 441...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #335:

score: 60
Accepted
time: 21ms
memory: 11836kb

input:

1000 8500 300000
372 95
372 397
372 588
372 731
372 223
372 181
372 261
372 281
372 259
372 76
372 865
372 884
372 292
372 278
372 408
372 970
372 781
372 2
372 128
372 11
372 210
372 910
372 586
372 114
372 7
372 507
372 709
372 375
372 960
372 657
372 452
372 689
372 811
372 683
372 188
372 88
372...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #336:

score: 60
Accepted
time: 28ms
memory: 11752kb

input:

1000 8500 300000
651 710
651 416
651 535
651 975
651 854
651 216
651 94
651 960
651 804
651 850
651 236
651 31
651 593
651 377
651 862
651 748
651 158
651 715
651 808
651 950
651 742
651 983
651 64
651 758
651 879
651 135
651 546
651 8
651 283
651 989
651 559
651 348
651 179
651 564
651 187
651 678
...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #337:

score: 60
Accepted
time: 21ms
memory: 11748kb

input:

1000 8500 300000
136 567
136 539
136 513
136 489
136 57
136 197
136 133
136 707
136 961
136 869
136 563
136 791
136 398
136 65
136 428
136 1
136 18
136 697
136 205
136 309
136 374
136 127
136 953
136 527
136 147
136 805
136 138
136 571
136 843
136 870
136 834
136 705
136 630
136 584
136 494
136 481
...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #338:

score: 60
Accepted
time: 26ms
memory: 11872kb

input:

1000 8500 300000
227 749
227 186
227 84
227 162
227 53
227 621
227 923
227 353
227 222
227 423
227 808
227 112
227 89
227 363
227 768
227 879
227 704
227 518
227 798
227 910
227 44
227 232
227 476
227 292
227 356
227 219
227 594
227 667
227 980
227 885
227 449
227 354
227 263
227 742
227 17
227 647
...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #339:

score: 60
Accepted
time: 26ms
memory: 11812kb

input:

1000 8500 300000
74 533
74 134
74 321
74 359
74 658
74 486
74 529
74 512
74 593
74 642
74 113
74 848
74 794
74 606
74 905
74 109
74 344
74 608
74 793
74 752
74 768
74 126
74 168
74 625
74 148
74 26
74 4
74 603
74 517
74 711
74 12
74 277
74 65
74 803
74 460
74 225
74 146
74 174
74 307
74 472
74 548
7...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #340:

score: 60
Accepted
time: 25ms
memory: 12072kb

input:

1000 8500 300000
79 858
79 595
79 235
79 69
79 335
79 577
79 354
79 99
79 814
79 83
79 365
79 743
79 260
79 717
79 527
79 256
79 109
79 273
79 818
79 110
79 91
79 427
79 493
79 930
79 461
79 157
79 833
79 64
79 409
79 119
79 318
79 175
79 936
79 418
79 309
79 90
79 382
79 287
79 85
79 328
79 735
79 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #341:

score: 60
Accepted
time: 24ms
memory: 11752kb

input:

1000 8500 300000
720 521
720 228
720 928
720 752
720 243
720 267
720 227
720 974
720 946
720 98
720 805
720 738
720 680
720 902
720 129
720 160
720 119
720 691
720 923
720 16
720 236
720 533
720 471
720 849
720 460
720 103
720 312
720 176
720 839
720 93
720 640
720 126
720 756
720 68
720 83
720 422
...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #342:

score: 60
Accepted
time: 25ms
memory: 12084kb

input:

1000 8500 300000
220 994
220 875
220 440
220 733
220 577
220 528
220 610
220 337
220 105
220 244
220 600
220 274
220 829
220 113
220 500
220 224
220 481
220 958
220 980
220 585
220 788
220 508
220 591
220 633
220 744
220 505
220 536
220 88
220 460
220 961
220 330
220 918
220 392
220 59
220 617
220 9...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #343:

score: 60
Accepted
time: 22ms
memory: 11752kb

input:

1000 8500 300000
906 52
906 883
906 780
906 319
906 323
906 308
906 271
906 874
906 680
906 821
906 358
906 38
906 624
906 568
906 209
906 155
906 316
906 124
906 659
906 447
906 885
906 690
906 148
906 82
906 972
906 454
906 333
906 255
906 974
906 808
906 181
906 731
906 357
906 291
906 946
906 32...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #344:

score: 60
Accepted
time: 27ms
memory: 11872kb

input:

1000 8500 300000
493 602
493 813
493 156
493 861
493 442
493 649
493 8
493 885
493 97
493 196
493 817
493 121
493 830
493 132
493 735
493 823
493 179
493 38
493 250
493 686
493 757
493 624
493 581
493 821
493 231
493 284
493 127
493 467
493 297
493 160
493 711
493 252
493 822
493 497
493 591
493 62
...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #345:

score: 60
Accepted
time: 23ms
memory: 11828kb

input:

1000 8500 300000
365 454
365 336
365 354
365 711
365 922
365 941
365 673
365 355
365 291
365 438
365 623
365 778
365 657
365 285
365 474
365 697
365 520
365 792
365 819
365 173
365 746
365 333
365 731
365 53
365 670
365 747
365 703
365 483
365 566
365 240
365 398
365 751
365 678
365 574
365 323
365 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #346:

score: 60
Accepted
time: 20ms
memory: 12108kb

input:

1000 8500 300000
66 820
66 708
66 339
66 749
66 541
66 439
66 745
66 85
66 752
66 373
66 54
66 660
66 652
66 833
66 956
66 908
66 363
66 577
66 966
66 809
66 125
66 519
66 601
66 429
66 35
66 900
66 498
66 840
66 113
66 845
66 221
66 263
66 328
66 55
66 775
66 807
66 118
66 854
66 189
66 27
66 501
6...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #347:

score: 60
Accepted
time: 21ms
memory: 11860kb

input:

1000 8500 300000
710 765
710 163
710 431
710 869
710 874
710 361
710 275
710 829
710 518
710 59
710 51
710 944
710 623
710 873
710 668
710 393
710 504
710 958
710 379
710 900
710 990
710 527
710 740
710 783
710 610
710 438
710 886
710 414
710 342
710 416
710 607
710 633
710 643
710 121
710 422
710 5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #348:

score: 60
Accepted
time: 28ms
memory: 11872kb

input:

1000 8500 300000
312 552
312 336
312 258
312 58
312 139
312 50
312 847
312 923
312 878
312 214
312 613
312 69
312 796
312 300
312 546
312 341
312 22
312 545
312 284
312 446
312 893
312 95
312 745
312 540
312 339
312 767
312 564
312 756
312 694
312 34
312 591
312 561
312 542
312 428
312 692
312 924
3...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #349:

score: 60
Accepted
time: 23ms
memory: 11868kb

input:

1000 8500 300000
760 223
760 300
760 137
760 348
760 568
760 56
760 166
760 710
760 404
760 829
760 863
760 208
760 488
760 924
760 435
760 16
760 478
760 853
760 947
760 890
760 55
760 378
760 774
760 73
760 752
760 602
760 277
760 11
760 355
760 739
760 701
760 517
760 29
760 515
760 102
760 929
7...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #350:

score: 60
Accepted
time: 24ms
memory: 12076kb

input:

1000 8500 300000
152 659
152 790
152 484
152 662
152 62
152 244
152 625
152 775
152 717
152 48
152 745
152 158
152 945
152 202
152 930
152 282
152 344
152 293
152 119
152 781
152 720
152 313
152 91
152 106
152 100
152 697
152 376
152 956
152 711
152 916
152 335
152 173
152 447
152 704
152 454
152 24...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #351:

score: 60
Accepted
time: 27ms
memory: 11852kb

input:

1000 8500 300000
657 345
657 89
657 297
657 941
657 34
657 877
657 685
657 410
657 855
657 453
657 204
657 734
657 99
657 746
657 254
657 957
657 443
657 263
657 854
657 242
657 127
657 15
657 570
657 240
657 694
657 907
657 495
657 173
657 19
657 549
657 622
657 683
657 181
657 188
657 126
657 890
...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #352:

score: 60
Accepted
time: 33ms
memory: 12076kb

input:

1000 8500 300000
276 796
276 539
276 502
276 504
276 84
276 722
276 21
276 153
276 325
276 395
276 477
276 479
276 576
276 450
276 326
276 920
276 42
276 914
276 480
276 629
276 702
276 179
276 877
276 624
276 762
276 519
276 677
276 439
276 849
276 409
276 835
276 683
276 70
276 563
276 206
276 135...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #353:

score: 60
Accepted
time: 21ms
memory: 12076kb

input:

1000 8500 300000
26 453
26 517
26 533
26 556
26 716
26 86
26 670
26 562
26 965
26 929
26 155
26 515
26 909
26 250
26 508
26 601
26 891
26 266
26 737
26 741
26 767
26 992
26 358
26 859
26 961
26 199
26 919
26 846
26 962
26 518
26 526
26 510
26 403
26 490
26 145
26 623
26 244
26 240
26 905
26 129
26 6...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #354:

score: 60
Accepted
time: 28ms
memory: 11808kb

input:

1000 8500 300000
314 541
314 246
314 776
314 492
314 43
314 596
314 446
314 531
314 468
314 313
314 926
314 116
314 89
314 749
314 588
314 344
314 160
314 586
314 83
314 16
314 872
314 691
314 407
314 162
314 508
314 65
314 449
314 406
314 28
314 717
314 711
314 566
314 284
314 261
314 539
314 643
3...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #355:

score: 60
Accepted
time: 24ms
memory: 12020kb

input:

1000 8500 300000
608 149
608 553
608 420
608 676
608 183
608 635
608 329
608 972
608 836
608 612
608 124
608 212
608 802
608 311
608 566
608 505
608 534
608 949
608 238
608 275
608 997
608 522
608 644
608 970
608 531
608 740
608 892
608 379
608 716
608 636
608 571
608 287
608 302
608 89
608 37
608 8...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #356:

score: 60
Accepted
time: 23ms
memory: 11828kb

input:

1000 8500 300000
717 502
717 285
717 836
717 853
717 914
717 347
717 997
717 540
717 283
717 624
717 458
717 256
717 871
717 319
717 183
717 353
717 947
717 131
717 893
717 930
717 951
717 344
717 184
717 178
717 986
717 351
717 211
717 718
717 654
717 313
717 160
717 971
717 528
717 599
717 953
717...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #357:

score: 60
Accepted
time: 25ms
memory: 11752kb

input:

1000 8500 300000
648 715
648 596
648 803
648 493
648 610
648 148
648 698
648 114
648 321
648 431
648 252
648 292
648 973
648 265
648 909
648 510
648 144
648 944
648 863
648 658
648 302
648 918
648 52
648 743
648 757
648 554
648 225
648 201
648 53
648 359
648 801
648 653
648 937
648 704
648 240
648 6...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #358:

score: 60
Accepted
time: 24ms
memory: 11808kb

input:

1000 8500 300000
648 493
648 503
648 620
648 110
648 152
648 330
648 856
648 318
648 853
648 654
648 219
648 307
648 781
648 701
648 915
648 504
648 868
648 996
648 624
648 365
648 466
648 226
648 400
648 616
648 725
648 866
648 269
648 681
648 248
648 462
648 455
648 663
648 783
648 957
648 809
648...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #359:

score: 60
Accepted
time: 28ms
memory: 11820kb

input:

1000 8500 300000
937 197
937 64
937 266
937 651
937 546
937 84
937 478
937 487
937 521
937 780
937 900
937 888
937 806
937 816
937 203
937 824
937 220
937 366
937 793
937 145
937 904
937 144
937 295
937 650
937 462
937 296
937 865
937 732
937 514
937 852
937 208
937 783
937 562
937 965
937 970
937 2...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #360:

score: 60
Accepted
time: 24ms
memory: 12108kb

input:

1000 8500 300000
27 128
27 310
27 89
27 654
27 256
27 19
27 234
27 801
27 215
27 969
27 274
27 544
27 753
27 986
27 81
27 609
27 658
27 481
27 417
27 678
27 823
27 729
27 164
27 368
27 682
27 560
27 667
27 395
27 253
27 275
27 74
27 59
27 793
27 874
27 42
27 562
27 194
27 830
27 747
27 369
27 245
27...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #361:

score: 60
Accepted
time: 20ms
memory: 11868kb

input:

1000 8500 300000
758 374
758 640
758 399
758 985
758 23
758 139
758 349
758 214
758 827
758 834
758 569
758 523
758 153
758 897
758 698
758 441
758 825
758 54
758 53
758 936
758 405
758 626
758 442
758 376
758 887
758 251
758 934
758 993
758 382
758 308
758 547
758 495
758 379
758 293
758 348
758 65...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #362:

score: 60
Accepted
time: 23ms
memory: 12132kb

input:

1000 8500 300000
734 428
734 307
734 386
734 542
734 848
734 250
734 934
734 392
734 107
734 72
734 59
734 942
734 279
734 628
734 237
734 916
734 528
734 483
734 207
734 451
734 884
734 637
734 314
734 891
734 887
734 165
734 4
734 946
734 793
734 570
734 754
734 9
734 6
734 684
734 649
734 603
734...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #363:

score: 60
Accepted
time: 31ms
memory: 12088kb

input:

1000 8500 300000
786 904
786 396
786 34
786 210
786 513
786 961
786 292
786 323
786 349
786 173
786 277
786 719
786 736
786 88
786 957
786 49
786 588
786 393
786 282
786 212
786 193
786 936
786 65
786 649
786 718
786 906
786 694
786 791
786 456
786 580
786 622
786 918
786 553
786 334
786 988
786 653...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #364:

score: 60
Accepted
time: 28ms
memory: 11820kb

input:

1000 8500 300000
920 584
920 81
920 128
920 712
920 809
920 937
920 870
920 219
920 685
920 95
920 963
920 152
920 629
920 565
920 262
920 998
920 554
920 47
920 198
920 819
920 549
920 634
920 806
920 857
920 524
920 115
920 187
920 350
920 340
920 520
920 259
920 313
920 532
920 27
920 737
920 892...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #365:

score: 60
Accepted
time: 27ms
memory: 11828kb

input:

1000 8500 300000
712 199
712 131
712 611
712 286
712 15
712 149
712 204
712 610
712 73
712 438
712 108
712 539
712 578
712 598
712 294
712 991
712 533
712 200
712 516
712 648
712 683
712 429
712 92
712 699
712 441
712 548
712 167
712 805
712 481
712 180
712 106
712 375
712 156
712 675
712 317
712 12...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #366:

score: 60
Accepted
time: 24ms
memory: 11852kb

input:

1000 8500 300000
219 413
219 197
219 465
219 99
219 993
219 297
219 636
219 588
219 784
219 81
219 308
219 628
219 345
219 502
219 891
219 624
219 236
219 453
219 886
219 425
219 843
219 732
219 73
219 846
219 798
219 922
219 188
219 813
219 853
219 832
219 132
219 315
219 469
219 344
219 676
219 65...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #367:

score: 60
Accepted
time: 21ms
memory: 11756kb

input:

1000 8500 300000
940 876
940 386
940 554
940 266
940 37
940 264
940 948
940 650
940 401
940 613
940 669
940 719
940 476
940 298
940 286
940 606
940 888
940 643
940 518
940 308
940 198
940 344
940 400
940 223
940 519
940 627
940 258
940 215
940 654
940 695
940 494
940 441
940 436
940 630
940 182
940 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #368:

score: 60
Accepted
time: 23ms
memory: 11836kb

input:

1000 8500 300000
791 624
791 649
791 288
791 869
791 621
791 773
791 745
791 415
791 952
791 118
791 628
791 327
791 575
791 49
791 580
791 433
791 908
791 931
791 936
791 60
791 133
791 515
791 683
791 184
791 680
791 732
791 522
791 875
791 454
791 33
791 424
791 682
791 905
791 340
791 769
791 14...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #369:

score: 60
Accepted
time: 20ms
memory: 11816kb

input:

1000 8500 300000
41 201
41 966
41 705
41 750
41 339
41 875
41 773
41 956
41 501
41 926
41 55
41 230
41 340
41 625
41 530
41 928
41 484
41 367
41 973
41 75
41 995
41 374
41 807
41 474
41 71
41 247
41 865
41 540
41 402
41 4
41 691
41 864
41 351
41 98
41 42
41 354
41 421
41 666
41 525
41 344
41 608
41 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #370:

score: 60
Accepted
time: 24ms
memory: 11876kb

input:

1000 8500 300000
394 655
394 980
394 446
394 388
394 285
394 927
394 166
394 501
394 42
394 707
394 556
394 796
394 357
394 894
394 876
394 849
394 934
394 538
394 264
394 201
394 930
394 310
394 728
394 369
394 770
394 845
394 151
394 97
394 367
394 830
394 466
394 547
394 138
394 7
394 862
394 152...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #371:

score: 60
Accepted
time: 55ms
memory: 11756kb

input:

1000 8500 300000
2 1
3 1
4 1
5 1
6 1
7 1
8 1
9 1
10 1
11 1
12 1
13 1
14 13
15 13
16 13
17 13
18 13
19 13
20 13
21 13
22 13
23 13
24 13
25 13
26 13
27 13
28 13
29 13
30 13
31 13
32 13
33 13
34 13
35 13
36 13
37 13
38 13
39 13
40 13
41 13
42 13
43 13
44 13
45 13
46 13
47 13
48 13
49 13
50 13
51 13
52 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #372:

score: 60
Accepted
time: 38ms
memory: 11792kb

input:

1000 8500 300000
90 874
90 540
90 152
90 996
90 748
90 759
90 461
90 698
90 522
90 94
90 302
90 892
90 86
90 47
90 985
90 183
90 712
90 887
90 906
90 505
90 127
90 757
90 881
90 806
90 319
90 815
90 923
90 177
90 441
90 683
90 396
90 780
90 212
90 614
90 575
90 64
90 947
90 253
90 191
90 156
90 105
...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #373:

score: 60
Accepted
time: 35ms
memory: 12072kb

input:

1000 8500 300000
522 854
522 598
522 355
522 226
522 280
522 893
522 14
522 315
522 984
522 605
522 922
522 747
522 53
522 471
522 657
522 689
522 504
522 885
522 554
522 17
522 584
522 275
522 217
522 790
522 777
522 193
522 906
522 158
522 930
522 220
522 498
522 357
522 364
522 481
522 345
522 80...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #374:

score: 60
Accepted
time: 60ms
memory: 11836kb

input:

1000 8500 300000
988 555
988 19
988 14
988 664
988 517
988 623
988 76
988 196
988 999
988 962
988 875
988 807
988 639
988 883
988 191
988 315
988 446
988 297
988 735
988 110
988 291
988 484
988 404
988 585
988 516
988 909
988 882
988 223
988 595
988 26
988 151
988 876
988 106
988 970
988 66
988 912
...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #375:

score: 60
Accepted
time: 34ms
memory: 12080kb

input:

1000 8500 300000
66 60
66 825
66 222
66 56
66 660
66 162
66 761
66 853
66 811
66 418
66 539
66 515
66 386
66 450
66 798
66 97
66 424
66 656
66 475
66 258
66 303
66 605
66 362
66 208
66 368
66 766
66 372
66 765
66 711
66 346
66 115
66 330
66 164
66 211
66 715
66 236
66 822
66 404
66 96
66 764
66 768
...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #376:

score: 60
Accepted
time: 56ms
memory: 11876kb

input:

1000 8500 300000
613 632
613 54
613 757
613 203
613 72
613 592
613 906
613 521
613 266
613 558
613 485
613 62
613 387
613 280
613 222
613 839
613 304
613 300
613 375
613 860
613 447
613 321
613 836
613 63
613 599
613 243
613 875
613 57
613 869
613 65
613 199
613 202
613 469
613 407
613 284
613 86
61...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #377:

score: 60
Accepted
time: 33ms
memory: 12080kb

input:

1000 8500 300000
273 442
273 418
273 27
273 554
273 463
273 205
273 125
273 962
273 217
273 15
273 431
273 955
273 494
273 422
273 133
273 757
273 123
273 169
273 294
273 972
273 498
273 86
273 71
273 984
273 318
273 849
273 286
273 642
273 891
273 265
273 349
273 965
273 371
273 697
273 435
273 663...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #378:

score: 60
Accepted
time: 45ms
memory: 12088kb

input:

1000 8500 300000
179 934
179 361
179 164
179 86
179 22
179 65
179 699
179 153
179 744
179 476
179 487
179 223
179 379
179 23
179 449
179 27
179 475
179 538
179 467
179 408
179 174
179 245
179 426
179 618
179 200
179 92
179 575
179 94
179 266
179 16
179 486
179 302
179 46
179 566
179 420
179 103
179 ...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #379:

score: 60
Accepted
time: 24ms
memory: 12092kb

input:

1000 8500 300000
624 18
624 221
624 610
624 983
624 455
624 970
624 873
624 415
624 723
624 731
624 495
624 802
624 853
624 283
624 502
624 544
624 691
624 997
624 17
624 76
624 206
624 496
624 243
624 725
624 506
624 163
624 490
624 277
624 181
624 375
624 157
624 421
624 41
624 394
624 120
624 685...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #380:

score: 60
Accepted
time: 61ms
memory: 12088kb

input:

1000 8500 300000
983 541
983 205
983 812
983 505
983 28
983 633
983 937
983 29
983 391
983 228
983 71
983 431
983 745
983 456
983 763
983 412
983 501
983 293
983 208
983 209
983 492
983 380
983 308
983 401
983 689
983 283
983 36
983 111
983 222
983 144
983 860
983 712
983 993
983 764
983 660
983 650...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #381:

score: 60
Accepted
time: 21ms
memory: 11852kb

input:

1000 8500 300000
1 2
1 3
1 4
1 5
1 6
1 7
1 8
9 10
9 11
9 12
9 13
9 14
9 15
9 16
17 18
17 19
17 20
17 21
17 22
17 23
17 24
25 26
25 27
25 28
25 29
25 30
25 31
25 32
33 34
33 35
33 36
33 37
33 38
33 39
33 40
41 42
41 43
41 44
41 45
41 46
41 47
41 48
49 50
49 51
49 52
49 53
49 54
49 55
49 56
57 58
57 5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz

Test #382:

score: 60
Accepted
time: 13ms
memory: 12092kb

input:

1000 8500 300000
1 2
1 3
1 4
1 5
1 6
1 7
1 8
9 10
9 11
9 12
9 13
9 14
9 15
9 16
17 18
17 19
17 20
17 21
17 22
17 23
17 24
25 26
25 27
25 28
25 29
25 30
25 31
25 32
33 34
33 35
33 36
33 37
33 38
33 39
33 40
41 42
41 43
41 44
41 45
41 46
41 47
41 48
49 50
49 51
49 52
49 53
49 54
49 55
49 56
57 58
57 5...

output:

areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords

result:

ok Orz..Orz..Orz..Orz..Orz