#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define rep2(i, x, n) for (int i = x; i < (n); i++)
#define all(n) begin(n), end(n)
struct cww
{
    cww()
    {
        ios::sync_with_stdio(false);
        cin.tie(0);
    }
} star;
const long long INF = numeric_limits<long long>::max();
typedef long long ll;
typedef vector<int> vint;
typedef vector<char> vchar;
typedef vector<vector<int>> vvint;
typedef vector<ll> vll;
typedef vector<vector<ll>> vvll;
typedef unsigned long long ull;
template <class T>
bool chmax(T &a, const T &b)
{
    if (a < b)
    {
        a = b;
        return 1;
    }
    return 0;
}
template <class T>
bool chmin(T &a, const T &b)
{
    if (b < a)
    {
        a = b;
        return 1;
    }
    return 0;
}
template <typename T>
vector<T> make_v(size_t a) { return vector<T>(a); }

template <typename T, typename... Ts>
auto make_v(size_t a, Ts... ts)
{
    return vector<decltype(make_v<T>(ts...))>(a, make_v<T>(ts...));
}
template <typename T, typename V>
typename enable_if<is_class<T>::value == 0>::type
fill_v(T &t, const V &v) { t = v; }

template <typename T, typename V>
typename enable_if<is_class<T>::value != 0>::type
fill_v(T &t, const V &v)
{
    for (auto &e : t)
        fill_v(e, v);
}
class Fraction
{
private:
    long long numer; // 分子
    long long denom; // 分母

    friend const bool operator==(const Fraction &a, const Fraction &b);
    friend const bool operator!=(const Fraction &a, const Fraction &b);
    friend const bool operator>=(const Fraction &a, const Fraction &b);
    friend const bool operator<=(const Fraction &a, const Fraction &b);
    friend const bool operator>(const Fraction &a, const Fraction &b);
    friend const bool operator<(const Fraction &a, const Fraction &b);

    friend const Fraction operator+(const Fraction &a, const Fraction &b);
    friend const Fraction operator-(const Fraction &a, const Fraction &b);
    friend const Fraction operator*(const Fraction &a, const Fraction &b);
    friend const Fraction operator/(const Fraction &a, const Fraction &b);

public:
    Fraction();
    Fraction(long long);
    Fraction(long long, long long);
    Fraction(const Fraction &);

    void set(long long, long long);
    void set(const Fraction &);
    void setNumer(long long);
    void setDenom(long long);

    long long getNumer();
    long long getDenom();

    static long long gcd(long long, long long); // 最大公約数
    static long long lcm(long long, long long); // 最小公倍数
    void normal();                              // 約分

    std::string toString();
    long double toLongDouble();

    bool equals(const Fraction &) const;
    long long compare(const Fraction &) const;

    Fraction &operator=(const Fraction &b);

    Fraction &operator+=(const Fraction &b);
    Fraction &operator-=(const Fraction &b);
    Fraction &operator*=(const Fraction &b);
    Fraction &operator/=(const Fraction &b);

    Fraction operator+();
    Fraction operator-();

    Fraction &operator++();
    Fraction operator++(int);

    Fraction &operator--();
    Fraction operator--(int);
};
long long Fraction::gcd(long long a, long long b)
{
    a = abs(a);
    b = abs(b);
    if (a < b)
        std::swap(a, b);

    long long tmp;
    while (b != 0)
    {
        tmp = b;
        b = a % b;
        a = tmp;
    }

    return a;
}
long long Fraction::lcm(long long a, long long b)
{
    a = abs(a);
    b = abs(b);
    if (a > b)
        std::swap(a, b);

    if (a == 1)
        return b;

    long long i = a;
    while (i % b != 0)
    {
        i += a;
    }
    return i;
}

Fraction::Fraction()
{
    set(0, 1);
}
Fraction::Fraction(long long n)
{
    set(n, 1);
}
Fraction::Fraction(long long numer, long long denom)
{
    set(numer, denom);
}
Fraction::Fraction(const Fraction &b)
{
    set(b);
}

void Fraction::set(long long numer, long long denom)
{
    this->numer = numer;
    this->denom = denom;
    normal();
}
void Fraction::set(const Fraction &b)
{
    this->numer = b.numer;
    this->denom = b.denom;
}
void Fraction::setNumer(long long numer)
{
    this->numer = numer;
    normal();
}
void Fraction::setDenom(long long denom)
{
    this->denom = denom;
    normal();
}

inline long long Fraction::getNumer()
{
    return numer;
}
inline long long Fraction::getDenom()
{
    return denom;
}

void Fraction::normal()
{
    long long gcd = this->gcd(getNumer(), getDenom());

    if (gcd == 1)
    {
        // 分母は常に正
        if (denom < 0)
        {
            numer *= -1;
            denom *= -1;
        }

        return;
    }

    long long numer = getNumer() / gcd;
    long long denom = getDenom() / gcd;

    // 分母は常に正
    if (denom < 0)
    {
        numer *= -1;
        denom *= -1;
    }

    set(numer, denom);
}

std::string Fraction::toString()
{
    std::string str = "";

    if (getDenom() == 1)
        str = std::to_string(getNumer());
    else
        str = std::to_string(getNumer()) + "/" + std::to_string(getDenom());

    return str;
}
long double Fraction::toLongDouble()
{
    return (long double)getNumer() / getDenom();
}

bool Fraction::equals(const Fraction &b) const
{
    return numer == b.numer && denom == b.denom;
}
long long Fraction::compare(const Fraction &b) const
{
    long long lcm = this->lcm(denom, b.denom);

    return (lcm / denom) * numer - (lcm / b.denom) * b.numer;
}

const bool operator==(const Fraction &a, const Fraction &b) { return a.equals(b); }
const bool operator!=(const Fraction &a, const Fraction &b) { return !a.equals(b); }
const bool operator>=(const Fraction &a, const Fraction &b) { return a.compare(b) >= 0; }
const bool operator<=(const Fraction &a, const Fraction &b) { return a.compare(b) <= 0; }
const bool operator>(const Fraction &a, const Fraction &b) { return a.compare(b) > 0; }
const bool operator<(const Fraction &a, const Fraction &b) { return a.compare(b) < 0; }

Fraction &Fraction::operator=(const Fraction &b)
{
    this->set(b);

    return *this;
}

const Fraction operator+(const Fraction &a, const Fraction &b)
{
    long long lcm = Fraction::lcm(a.denom, b.denom);
    long long numer = a.numer * (lcm / a.denom) + b.numer * (lcm / b.denom);

    return Fraction(numer, lcm);
}
const Fraction operator-(const Fraction &a, const Fraction &b)
{
    return operator+(a, Fraction(-b.numer, b.denom));
}
const Fraction operator*(const Fraction &a, const Fraction &b)
{
    long long gcd = Fraction::gcd(a.numer, b.denom);
    long long numer = a.numer / gcd;
    long long denom = b.denom / gcd;

    gcd = Fraction::gcd(b.numer, a.denom);
    numer *= b.numer / gcd;
    denom *= a.denom / gcd;

    return Fraction(numer, denom);
}
const Fraction operator/(const Fraction &a, const Fraction &b)
{
    return operator*(a, Fraction(b.denom, b.numer));
}

Fraction &Fraction::operator+=(const Fraction &b) { return *this = *this + b; }
Fraction &Fraction::operator-=(const Fraction &b) { return *this = *this - b; }
Fraction &Fraction::operator*=(const Fraction &b) { return *this = *this * b; }
Fraction &Fraction::operator/=(const Fraction &b) { return *this = *this / b; }

Fraction Fraction::operator+() { return Fraction(this->numer, this->denom); };
Fraction Fraction::operator-() { return Fraction(-(this->numer), this->denom); };

Fraction &Fraction::operator++() { return *this += 1; }
Fraction &Fraction::operator--() { return *this += -1; }
Fraction Fraction::operator++(int)
{
    Fraction tmp = *this;
    *this += 1;
    return tmp;
}
Fraction Fraction::operator--(int)
{
    Fraction tmp = *this;
    *this += -1;
    return tmp;
}
auto memo = make_v<ll>(51, 51);
ll COM(int n, int k)
{
    if (n < 0 or k < 0)
        return 0;
    if (memo[n][k] != -1)
    {
        return memo[n][k];
    }
    else

        return memo[n][k] = COM(n - 1, k - 1) + COM(n - 1, k);
}
int main()
{
    int N, A, B;
    fill_v(memo, -1);
    for (size_t i = 0; i < 51; i++)
    {
        memo[i][0] = 1;
        memo[i][i] = 1;
    }

    cin >> N >> A >> B;
    vector<long double> v(N), s(N + 1);
    map<ll, int> cnt;
    for (size_t i = 0; i < N; i++)
    {
        cin >> v[i];
        cnt[v[i]]++;
    }
    sort(all(v), greater<ll>());
    for (size_t i = 0; i < N; i++)
    {
        s[i + 1] = s[i] + v[i];
    }

    Fraction Max = 0;
    for (long double c = A; c <= B; c++)
    {
        if (Max.getDenom() * s[(int)c] > Max.getNumer() * c)
        {
            Max = Fraction(s[(int)c], c);
        }
    }
    ll ans = 0;
    for (long double c = A; c <= B; c++)
    {
        if (Max.getDenom() * s[(int)c] == Max.getNumer() * c)
        {
            ll tmp = 1;
            int now = 0;
            for (size_t i = 0; i < c and now < c; i++)
            {
                tmp *= COM(cnt[v[i]], min(((int)c - now), cnt[v[i]]));
                now += min(((int)c - now), cnt[v[i]]);
            }

            ans += tmp;
        }
    }

    cout << setprecision(30) << Max.toLongDouble() << endl;
    cout << ans;
    return 0;
}

Measured memory_bytes: 256