毎回よくわからなくなるのでメモ的記録。
s = input() # <= "abc"
N = int(input()) # <= 3
s1, s2, s3 = input().split() # <= aaa bbb ccc
N1, N2, N3 = map(int, input().split()) # <= 1 2 3
s = [input() for i in range(N)] # <= aaa
# bbb
# ccc
n = [int(input()) for i in range(N)] # <= 1
# 2
# 3
s = [input().split() for i in range(N)] # <= aaa ddd
# bbb eee
# ccc fff
N = [list(map(int, input().split())) for i in range(3)] # <= 1 1
# 2 2
# 3 3