from bisect import bisect_right n, m, c = map(int, input().split()) a = list(map(int, input().split())) b = list(map(int, input().split())) b.sort() cnt = 0 for i in a: cnt += bisect_right(b, c / i) print((n * m - cnt) / (n * m))