using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Globalization;
using System.Diagnostics;
using static System.Console;
using Pair = System.Collections.Generic.KeyValuePair<int, int>;
using System.Numerics;

class Program
{
    static void Main()
    {
        //SetOut(new StreamWriter(OpenStandardOutput()) { AutoFlush = false });
        new Program().Solve();
        Out.Flush();
    }
    Scanner cin = new Scanner();
    Random rnd = new Random();
    Stopwatch sw = new Stopwatch();
    readonly int[] dd = { 0, 1, 0, -1, 0 };
    readonly int mod = 1000000007;
    readonly string alfa = "abcdefghijklmnopqrstuvwxyz";


    void Solve()
    {
        var T = new string[] {"1", "1" ,
"2" ,
"6" ,
"24" ,
"120" ,
"720" ,
"5040" ,
"40320" ,
"362880" ,
"3628800" ,
"39916800" ,
"479001600" ,
"6227020800" ,
"87178291200" ,
"1307674368000" ,
"20922789888000" ,
"355687428096000" ,
"6402373705728000" ,
"121645100408832000" ,
"2432902008176640000" ,
"51090942171709440000" ,
"1124000727777607680000" ,
"25852016738884976640000" ,
"620448401733239439360000" ,
"15511210043330985984000000" ,
"403291461126605635584000000" ,
"10888869450418352160768000000" ,
"304888344611713860501504000000" ,
"8841761993739701954543616000000" ,
"265252859812191058636308480000000" ,
"8222838654177922817725562880000000" ,
"263130836933693530167218012160000000" ,
"8683317618811886495518194401280000000" ,
"295232799039604140847618609643520000000" ,
"10333147966386144929666651337523200000000" ,
"371993326789901217467999448150835200000000" ,
"13763753091226345046315979581580902400000000" ,
"523022617466601111760007224100074291200000000" ,
"20397882081197443358640281739902897356800000000" ,
"815915283247897734345611269596115894272000000000" ,
"33452526613163807108170062053440751665152000000000" ,
"1405006117752879898543142606244511569936384000000000" ,
"60415263063373835637355132068513997507264512000000000" ,
"2658271574788448768043625811014615890319638528000000000" ,
"119622220865480194561963161495657715064383733760000000000" ,
"5502622159812088949850305428800254892961651752960000000000" ,
"258623241511168180642964355153611979969197632389120000000000" ,
"12413915592536072670862289047373375038521486354677760000000000" ,
"608281864034267560872252163321295376887552831379210240000000000" ,
"30414093201713378043612608166064768844377641568960512000000000000" };
        var S = new BigInteger[51];
        for (int i = 0; i < 51; i++)
        {
            S[i] = BigInteger.Parse(T[i]);
        }

        int N = cin.Nextint;
        int A = cin.Nextint;
        int B = cin.Nextint;
        var V = cin.Scanlong;
        Array.Sort(V);
        Array.Reverse(V);
        var G = new Dictionary<long, int>();
        foreach (var item in V)
        {
            if (G.ContainsKey(item))
            {
                G[item]++;
            }
            else
            {
                G[item] = 1;
            }
        }

        long sum = 0;
        int end = 0;
        bool flag = true;
        for (; end < B; end++)
        {
            if (end > 0 && V[end] != V[end - 1])
            {
                flag = false;
            }


            if (end >= A && !flag)
            {
                break;
            }
            sum += V[end];

            if (end == A - 1)
            {
                WriteLine(((decimal)sum / A).ToString("F7"));
            }
        }

        BigInteger ans = 0;
        var H = G.OrderByDescending(i => i.Key).ToArray();

        for (int i = A; i <= end; i++)
        {
            var r = i;
            for (int j = 0; j < H.Length; j++)
            {
                if (H[j].Value - r < 0)
                {
                    r -= H[j].Value;
                }
                else
                {
                    //H[j].Value から r個選ぶ
                    ans += S[H[j].Value] / S[H[j].Value - r] / S[r];
                    break;
                }
            }
        }


        WriteLine(ans);
    }

}

class Scanner
{
    string[] s; int i;
    char[] cs = new char[] { ' ' };
    public Scanner() { s = new string[0]; i = 0; }
    public string[] Scan { get { return ReadLine().Split(); } }
    public int[] Scanint { get { return Array.ConvertAll(Scan, int.Parse); } }
    public long[] Scanlong { get { return Array.ConvertAll(Scan, long.Parse); } }
    public double[] Scandouble { get { return Array.ConvertAll(Scan, double.Parse); } }
    public string Next
    {
        get
        {
            if (i < s.Length) return s[i++];
            string st = ReadLine();
            while (st == "") st = ReadLine();
            s = st.Split(cs, StringSplitOptions.RemoveEmptyEntries);
            i = 0;
            return Next;
        }
    }
    public int Nextint { get { return int.Parse(Next); } }
    public long Nextlong { get { return long.Parse(Next); } }
    public double Nextdouble { get { return double.Parse(Next); } }
}

Measured memory_bytes: 13916