main=do
 [a,b,c,d,e,f]<-map read.words<$>getLine
 (putStrLn.unwords.map show.k.map h)[(100*(w*a+x*b),y*c+z*d)|w<-[0..(quot f (100*a))],x<-[0..(quot (f-100*w*a) (100*b))],y<-[0..(quot(f-100*(w*a+x*b))c)],z<-[0..(quot(f-100*(w*a+x*b)-y*c)d)],w+x>0,y*c+z*d<=e*(w*a+x*b)]
  where k tri = j ((length tri)-1) (tail tri) (head tri)
        j 0 _ (x,y,z) = [y+z,z]
        j n ((a,b,c):t) (x,y,z) = j(n-1)t(max(a,b,c)(x,y,z))
        h (w,s) =(quot(s*10000)(w+s),w,s)