from random import random
t = 100
print(t)
n = 10000
k = 5000
l = 10000
for _ in range(t):
    print('{} {}'.format(n, k))
    print(' '.join(str(int(random() * l)) for _ in range(n)))
    print(' '.join(str(int(random() * l)) for _ in range(n)))

704d3b979e7eeaa6e60f8483ca004c9ed3815947
<mask token>

<mask token>
print(t)
<mask token>
for _ in range(t):
    print('{} {}'.format(n, k))
    print(' '.join(str(int(random() * l)) for _ in range(n)))
    print(' '.join(str(int(random() * l)) for _ in range(n)))

<mask token>
t = 100
print(t)
n = 10000
k = 5000
l = 10000
for _ in range(t):
    print('{} {}'.format(n, k))
    print(' '.join(str(int(random() * l)) for _ in range(n)))
    print(' '.join(str(int(random() * l)) for _ in range(n)))

from random import random
t = 100
print(t)
n = 10000
k = 5000
l = 10000
for _ in range(t):
    print('{} {}'.format(n, k))
    print(' '.join(str(int(random() * l)) for _ in range(n)))
    print(' '.join(str(int(random() * l)) for _ in range(n)))
