#include <bits/stdc++.h>
using namespace std;
int b,t;
double ff;
double prob[12];
double val[12];
double f(int idx, int mask)
{
if ( idx == t ) return 0.0;
if ( mask == ((1<<b)-1) ) return 0.0;
double p = -1.0;
int ii = -1;
for ( int i = 0; i < b; i++ ) {
if ( mask&(1<<i)) continue;
if ( prob[i]*val[i] > p ) {
p = prob[i]*val[i];
ii = i;
}
}
double ans = 0.0,now=prob[ii];
// not solve
prob[ii] *= ff;
ans += (1.0-now)*f(idx+1,mask);
// solve
prob[ii] /= ff;
ans += now*(val[ii] + f(idx+1,mask|(1<<ii)));
return ans;
}
int main()
{
cin >> b >> t >> ff;
for ( int i = 0; i < b; i++ ) cin >> prob[i] >> val[i];
double ans = f(0,0);
printf("%0.6lf\n", ans);
return 0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+Cgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IGIsdDsKZG91YmxlIGZmOwpkb3VibGUgcHJvYlsxMl07CmRvdWJsZSB2YWxbMTJdOwoKZG91YmxlIGYoaW50IGlkeCwgaW50IG1hc2spCnsKICAgIGlmICggaWR4ID09IHQgKSByZXR1cm4gMC4wOwogICAgaWYgKCBtYXNrID09ICgoMTw8YiktMSkgKSByZXR1cm4gMC4wOwogICAgZG91YmxlIHAgPSAtMS4wOwogICAgaW50IGlpID0gLTE7CiAgICBmb3IgKCBpbnQgaSA9IDA7IGkgPCBiOyBpKysgKSB7CiAgICAgICAgaWYgKCBtYXNrJigxPDxpKSkgY29udGludWU7CiAgICAgICAgaWYgKCBwcm9iW2ldKnZhbFtpXSA+IHAgKSB7CiAgICAgICAgICAgIHAgPSBwcm9iW2ldKnZhbFtpXTsKICAgICAgICAgICAgaWkgPSBpOwogICAgICAgIH0KICAgIH0KICAgIGRvdWJsZSBhbnMgPSAwLjAsbm93PXByb2JbaWldOwogICAgLy8gbm90IHNvbHZlCiAgICBwcm9iW2lpXSAqPSBmZjsKICAgIGFucyArPSAoMS4wLW5vdykqZihpZHgrMSxtYXNrKTsKICAgLy8gc29sdmUKICAgIHByb2JbaWldIC89IGZmOwogICAgYW5zICs9IG5vdyoodmFsW2lpXSArIGYoaWR4KzEsbWFza3woMTw8aWkpKSk7CiAgICByZXR1cm4gYW5zOwp9CgppbnQgbWFpbigpCnsKICAgIGNpbiA+PiBiID4+IHQgPj4gZmY7CiAgICBmb3IgKCBpbnQgaSA9IDA7IGkgPCBiOyBpKysgKSBjaW4gPj4gcHJvYltpXSA+PiB2YWxbaV07CiAgICBkb3VibGUgYW5zID0gZigwLDApOwogICAgcHJpbnRmKCIlMC42bGZcbiIsIGFucyk7CiAgICByZXR1cm4gMDsKfQ==