#include <iostream>
#include <cstdio>
#include <cstring>
#define N 500005
using namespace std;
typedef long long ll;
struct P{
	long double t;
	ll v;
}a[N],q[N];
int n,L;
int main(){
	scanf("%d%d",&n,&L);
	for(int i=1;i<=n;i++) scanf("%Lf%lld",&a[i].t,&a[i].v);
	int tou=1,wei=1;
	ll sum=a[1].v;
	long double T=a[1].t*a[1].v;
	q[1]=a[1];
	printf("%.8Lf\n",a[1].t);
	for(int i=2;i<=n;i++){
		sum+=a[i].v;T+=a[i].t*a[i].v;
		while(sum>L){
			if(q[tou].v>sum-L) q[tou].v-=sum-L,T-=q[tou].t*(sum-L),sum=L;
			else sum-=q[tou].v,T-=q[tou].t*q[tou].v,tou++;
		}
		ll v=a[i].v;long double t=a[i].t;
		while(tou<=wei&&t<q[wei].t){
			t=(t*v+q[wei].t*q[wei].v)/(v+q[wei].v);
			v+=q[wei].v;
			wei--;
		}
		q[++wei].t=t;q[wei].v=v;
		printf("%.8Lf\n",T/sum);
	}
	return 0;
}