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.util.*;
import java.io.*;
import java.math.*;
public class Main{
	static InputReader in = new InputReader(System.in);
	static PrintWriter out = new PrintWriter(System.out);
	
	
	
	
	
	
	
	
	int n, a, b;
	long[] v = new long[100];
	HashMap<Long, Integer> m  = new HashMap<>();
	
	BigInteger fac(int x){
		BigInteger c = new BigInteger("1");
		for(int i=1; i<=x; i++) {
			c = c.multiply(new BigInteger(""+i));
		}
		return c;
	}
	BigInteger ncr(int n, int k){
		if( k > n) return new BigInteger("0");
		return fac(n).divide(fac(k)).divide(fac(n-k));
	}

	void solve(){
		n = in.nextInt();
		a = in.nextInt();
		b = in.nextInt();
		for(int i=1; i<=n; i++){ v[i] = in.nextLong();
			m.put(v[i], m.getOrDefault(v[i], 0) + 1);
		}
		
		Arrays.sort(v, 1, n+1);
		long maxsum = 0;
	
	for(int j=1, i = n; j <= a; j++,i--){
		maxsum += v[i];
	}
	if(a == n){
		out.printf("%.10f\n%d\n", (double)maxsum/(double)n, 1);
	}
	else{
		
		double ans = (double)maxsum/a;
		BigInteger ways = null;
		if(v[n-a] < v[n-a+1]) ways = new BigInteger("1");
		else{
			int k = n-a+1;
			while(k+1 <= n && v[k+1] == v[k]) k++;
			int occ = k - (n-a+1) + 1;
			if(occ < a){
			// compute X choose occ
			ways = ncr(m.get(v[n-a+1]), occ);
			}
			else{
				BigInteger sum = new BigInteger("0");
				for(int x =a; x <= b; x++){
					sum = sum.add(
					ncr(
					m.get(v[n-a+1]), x));
				}
				ways = sum;
			}
		}
		out.printf("%.10f\n%s\n", ans, ways);
	}
		
	}
	
	
		
	
	
	
	
	
	
	
	
	public static void main(String[] args){
		Main m = new Main();
		m.solve();
		out.flush();
		out.close();
	}
	
	static class InputReader{
		public BufferedReader reader;
		public StringTokenizer tokenizer;
		public InputReader(InputStream instream){
			reader = new BufferedReader(new InputStreamReader(instream), 1<<15);
			tokenizer = null;
		}
		public String next(){
			while(tokenizer == null || !tokenizer.hasMoreTokens()){
				try{
					tokenizer = new StringTokenizer(reader.readLine());
				}catch(Exception e){
					throw new RuntimeException(e);
				}
			}
			return tokenizer.nextToken();	
		}
		public String nextLine(){
			try{
			return reader.readLine();
			}catch(Exception e){
				throw new RuntimeException(e);
			}
		}
		public int nextInt(){
			return Integer.parseInt(next());
		}
		public long nextLong(){
			return Long.parseLong(next());
		}
		public double nextDouble(){
			return Double.parseDouble(next());
		}


	}
}