from bisect import * N,M,C = map(int,input().split()) A = list(map(int,input().split())) B = list(map(int,input().split())) A.sort() B.sort() cnt = 0 for a in A: cnt += bisect_right(B,C/a) print(1 - cnt/N/M)