import std.stdio, std.array, std.string, std.conv, std.algorithm;
import std.typecons, std.range, std.random, std.math, std.container;
import std.numeric, std.bigint, core.bitop;

void main() {
    auto s = readln.split.map!(to!long);
    auto N = s[0].to!int;
    auto L = s[1];
    auto TV = N.iota.map!(_ => readln.split.map!(to!long).array).array;

    long[] PL = [0];
    real[] PC = [0];
    
    foreach (i; 0..N) {
        auto t = TV[i][0];
        auto v = TV[i][1];
        long cap = v;
        real tmp = t;
        
        for (int j = i; cap < L; --j) {
            long x = min(L - cap, PL[j]);
            tmp = (cap * tmp + x * PC[j]) / (cap + x);
            cap += x;
        }

        writefln("%.9f", tmp);

        if (t >= PC.back) {
            PL ~= v;
            PC ~= t;
        } else {
            long x = min(L - v, PL.back);
            PC ~= (v * t + x * PC.back) / (v + x);
            PL ~= v + x;
        }
    }
}
