Problem: You are given N items.
The value of the i-th item (1 \leq i \leq N) is v_i.
Your have to select at least A and at most B of these items.
Under this condition, find the maximum possible arithmetic mean of the values of selected items.
Additionally, find the number of ways to select items so that the mean of the values of selected items is maximized.

Constraints

* 1 \leq N \leq 50
* 1 \leq A,B \leq N
* 1 \leq v_i \leq 10^{15}
* Each v_i is an integer.

Input

The input is given from Standard Input in the following format:


N A B
v_1
v_2
...
v_N


Output

Print two lines.
The first line should contain the maximum possible arithmetic mean of the values of selected items. The output should be considered correct if the absolute or relative error is at most 10^{-6}.
The second line should contain the number of ways to select items so that the mean of the values of selected items is maximized.

Examples

Input

5 2 2
1 2 3 4 5


Output

4.500000
1


Input

4 2 3
10 20 10 10


Output

15.000000
3


Input

5 1 5
1000000000000000 999999999999999 999999999999998 999999999999997 999999999999996


Output

1000000000000000.000000
1

Solution (in JAVA):

Solution:
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class Main {
	static List<Integer> path;

	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] sa = br.readLine().split(" ");
		int n = Integer.parseInt(sa[0]);
		int a = Integer.parseInt(sa[1]);
		int b = Integer.parseInt(sa[2]);
		sa = br.readLine().split(" ");
		List<Long> list = new ArrayList<Long>(n);
		for (int i = 0; i < n; i++) {
			list.add(Long.parseLong(sa[i]));
		}
		br.close();

		Collections.sort(list);
		Collections.reverse(list);

		long sum = 0;
		double m = 0;
		for (int i = 0; i < b; i++) {
			sum += list.get(i);
			if (i >= a - 1) {
				double d = (double) sum / (i + 1);
				m = Math.max(m, d);
			}
		}
		System.out.println(new BigDecimal(m).toString());

		long cnt1 = 0;
		long cnt2 = 0;
		long va = list.get(a - 1);
		for (int i = 0; i < list.size(); i++) {
			if (list.get(i) > va) {
				cnt1++;
			} else if (list.get(i) == va) {
				cnt2++;
			}
		}

		long ans = 0;
		long f = (long) Math.floor(m);
		long c = (long) Math.floor(m);
		if (f == c && f == va) {
			for (int i = a; i <= b; i++) {
				ans += nCr(cnt2, i - cnt1);
			}
		} else {
			ans += nCr(cnt2, a - cnt1);
		}
		System.out.println(ans);
	}

	static long nCr(long n, long r) {
		long val = 1;
		for (long i = 1; i <= r; i++) {
			val = val * (n - i + 1) / i;
		}
		return val;
	}
}