from bisect import bisect_right def M():return map(int,input().split()) n,m,c,L=M() a=list(M()) b=sorted(list(M())) C=0 for i in a:C+=bisect_right(b,c//i) print((n*m-C)/(n*m))