#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[i] = int(info[i])
W = int(line)
for i in range(0, W):
Wp[i] = (int(info[0]), int(info[1]))
productQ = {}
for j in range(1, info.size())+1:
productQ[j] = int(info[j])
Wi[i] = productsQ
nbC = int(line)
for i in range(0, nbC):
Cp[i] = (int(info[0]), int(info[1]))
nbP = int(line)
orderQ = {}
for j in range(0, nbP):
orderQ[j] = int(info[j])
Ci[i] = orderQ
return