a,b,c,d,e=map(int,input().split()) m=(a+b)*(c+d) ans=0 for i in range(m): if i%(a+b)