#include <bits/stdc++.h>
using namespace std;
#define int long long
typedef pair<int,double> P;
#define fi first
#define se second

deque<P> d;		//first: v(水) second: t(温度)
signed main(){
	int n, v, L;
	scanf("%lld%lld", &n, &L);
	
	double t, V = 0;
	for(int i = 0;i < n;i++){
		scanf("%lf%lld", &t, &v);
		int u = v;
		
		while(i && u > 0){
			P p = d.front();
			int dis = min(p.fi, u);
			u -= dis;
			V -= dis*p.se;
			d.pop_front();
			if(p.fi-dis > 0)d.push_front(P(p.fi-dis, p.se));
		}
		
		while(!d.empty() && d.back().se > t){
			P p = d.back();d.pop_back();
			V -= p.fi*p.se;
			t = (t*v+p.fi*p.se)/(v+p.fi);
			v += p.fi;
		}
		
		V += t*v;
		d.push_back(P(v, t));
		printf("%lf\n", V/L);
	}
	return 0;
}
