#include "bits/stdc++.h"
using namespace std;
typedef long long ll;

ll h[100000];
int main()
{
	int n;
	ll t;
	cin>>n>>t;
	for(int i=0;i<n;i++)
		cin>>h[i];
	ll ans=0;
	ll st=0; //最初の検査の開始時間
	ll nagai=h[0]; //最も検査時間の長い人
	ans=(t-st)/h[0]+1;
	cout<<ans<<endl; //最初の人の検査項目数
	for(int i=1;i<n;i++)
	{
		st+=h[i-1];
		if(nagai<h[i])
			nagai=h[i];
		if(st>t)
			ans=1;
		else{
			ans=(t-st)/nagai+1;
			if((t-st)%nagai>=h[i])
				ans++;
		}
		cout<<ans<<endl;
	}
	return 0;
}

### Prompt

In Cpp, your task is to solve the following problem:

Problem C Medical Checkup

Students of the university have to go for a medical checkup, consisting of lots of checkup items, numbered 1, 2, 3, and so on.

Students are now forming a long queue, waiting for the checkup to start. Students are also numbered 1, 2, 3, and so on, from the top of the queue. They have to undergo checkup items in the order of the item numbers, not skipping any of them nor changing the order. The order of students should not be changed either.

Multiple checkup items can be carried out in parallel, but each item can be carried out for only one student at a time. Students have to wait in queues of their next checkup items until all the others before them finish.

Each of the students is associated with an integer value called health condition. For a student with the health condition $h$, it takes $h$ minutes to finish each of the checkup items. You may assume that no interval is needed between two students on the same checkup item or two checkup items for a single student.

Your task is to find the items students are being checked up or waiting for at a specified time $t$.

Input

The input consists of a single test case in the following format.


$n$ $t$
$h_1$
...
$h_n$


$n$ and $t$ are integers. $n$ is the number of the students ($1 \leq n \leq 10^5$). $t$ specifies the time of our concern ($0 \leq t \leq 10^9$). For each $i$, the integer $h_i$ is the health condition of student $i$ ($1 \leq h_ \leq 10^9$).

Output

Output $n$ lines each containing a single integer. The $i$-th line should contain the checkup item number of the item which the student $i$ is being checked up or is waiting for, at ($t+0.5$) minutes after the checkup starts. You may assume that all the students are yet to finish some of the checkup items at that moment.

Sample Input 1


3 20
5
7
3


Sample Output 1


5
3
2


Sample Input 2


5 1000000000
5553
2186
3472
2605
1790


Sample Output 2


180083
180083
180082
180082
180082






Example

Input

3 20
5
7
3


Output

5
3
2

### Response

```cpp
#include "bits/stdc++.h"
using namespace std;
typedef long long ll;

ll h[100000];
int main()
{
	int n;
	ll t;
	cin>>n>>t;
	for(int i=0;i<n;i++)
		cin>>h[i];
	ll ans=0;
	ll st=0; //最初の検査の開始時間
	ll nagai=h[0]; //最も検査時間の長い人
	ans=(t-st)/h[0]+1;
	cout<<ans<<endl; //最初の人の検査項目数
	for(int i=1;i<n;i++)
	{
		st+=h[i-1];
		if(nagai<h[i])
			nagai=h[i];
		if(st>t)
			ans=1;
		else{
			ans=(t-st)/nagai+1;
			if((t-st)%nagai>=h[i])
				ans++;
		}
		cout<<ans<<endl;
	}
	return 0;
}

```