import sys
sys.stdin = open("0814_bonus_snail.txt", "r")

T = int(input())

for t in range(T):
    row = int(input())

7dd4da9dd0420945baf0589410f960fdea4ed921
<mask token>

<mask token>
for t in range(T):
    row = int(input())

<mask token>
sys.stdin = open('0814_bonus_snail.txt', 'r')
T = int(input())
for t in range(T):
    row = int(input())

import sys
sys.stdin = open('0814_bonus_snail.txt', 'r')
T = int(input())
for t in range(T):
    row = int(input())

import sys
sys.stdin = open("0814_bonus_snail.txt", "r")

T = int(input())

for t in range(T):
    row = int(input())
