#include <bits/stdc++.h>
                                        #include<iostream>
                                        #include<cstdio>
                                        #include<vector>
                                        #include<queue>
                                        #include<map>
                                        #include<cstring>
                                        #include<string>
                                        #include <math.h>
                                        #include<algorithm>
                                    //    #include <boost/multiprecision/cpp_int.hpp>
                                        #include<functional>
                                #define int long long
                                        #define inf  1000000007
                                        #define pa pair<int,int>
                                        #define ll long long
                                        #define pal pair<double,pa>
                                        #define ppa pair<int,int>
                                        #define ppap pair<pa,pa>
                                        #define ssa pair<string,int>
                                        #define  mp make_pair
                                        #define  pb push_back
                                        #define EPS (1e-10)
                                        #define equals(a,b) (fabs((a)-(b))<EPS)
                                  #define VI vector<int>
                                        using namespace std;
                                        
                                  class pas{
                                    	public:
                                    	int x,y;
                                    	pas(int x=0,int y=0):x(x),y(y) {}
                                    	pas operator + (pas p) {return pas(x+p.x,y+p.y);}
                                    	pas operator - (pas p) {return pas(x-p.x,y-p.y);}
                                    	pas operator * (int a) {return pas(x*a,y*a);}
                                    	pas operator / (int a) {return pas(x/a,y/a);}
                                    //	double absv() {return sqrt(norm());}
                                    	int norm() {return x*x+y*y;}
                                    	bool operator < (const pas &p) const{
                                    		return x != p.x ? x<p.x: y<p.y;
                                    	}
                                    	bool operator == (const pas &p) const{
                                    		return x==p.x && y==p.y;
                                    	}
                                    };
int x[60]={0};

vector<int> wa,sa;

int p[100][100];


           signed main(){
           
           	p[0][0]=1;
           	for(int i=0;i<100;i++)p[i][i]=1,p[i][0]=1;
           	for(int i=2;i<100;i++)for(int j=1;j<i;j++) p[i][j]=p[i-1][j]+p[i-1][j-1];
           	
           //	for(int i=0;i<100)
   int a,b,n;
     cin>>n>>a>>b;
           	for(int i=0;i<n;i++){
           	cin>>x[i];
           		x[i]*=-1;
           	
           	}
           	sort(x,x+n);
           	
           	int sum=0;
           	for(int i=0;i<a;i++){
           		sum-=x[i];
           		//x[i]*=-1;
           	}
           	for(int i=0;i<n;i++)x[i]*=-1;
           	printf("%.10lf\n",(sum+0.0)/(a+0.0));
           	
           	int d=x[a-1];
           	int dk=0;
           	int dm=0;
           	for(int i=0;i<n;i++)if(x[i]==d) dk++;
           	for(int i=0;i<n;i++)if(x[i]>d) dm++;
           	a-=dm;
           	b-=dm;
           	int ans=0;
           	if(d!=x[0]){
         //  	cout<<a<<" "<<b<<" "<<dk<<endl;
           	for(int i=a;i<=a;i++){
           		if(i>dk) continue;
           		
           		ans+=p[dk][i];
           		
           	}
           	}
           	
           	else{
           	for(int i=a;i<=b;i++){
           		if(i>dk) continue;
           		
           		ans+=p[dk][i];
           		
           	}
           	
           	}
           	cout<<ans<<endl;
           }
             

Measured memory_bytes: 384