a,b,c,d,e=map(int,input().split()) n=(a+b)*(c+d) L=[] for i in range(n): if i%(a+b)