#Read the input file
def Read_input_file(file):
f = open(file, 'r')
line = f.readline()
info = line.split(' ')
GRILLE = (int(info[0]), int(info[1]))
D = int(info[2])
T = int(info[3])
M = int(info[4])
P = int(line)
for i in range(0, P):
Pw.append(int(info[i]))
W = int(line)
for i in range(0, W):
Wp.append((int(info[0]), int(info[1])))
productQ = {}
for j in range(0, len(info)):
productQ[j] = int(info[j])
Wi.append(productQ)
nbC = int(line)
for i in range(0, nbC):
Cp.append((int(info[0]), int(info[1])))
nbP = int(line)
orderQ = {}
for k in range(0, P):
orderQ[k] = 0
for j in range(0, nbP):
orderQ[int(info[j])] += 1
Ci.append(orderQ)
return