#!/usr/bin/env python3 (n, m, k), s = (list(map(int, input().split())) for _ in "..") print(sum(sorted(s)[-m - k:]) / sum(s) * 100)