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