You received a notebook which is called Death Note. This notebook has infinite number of pages. A rule is written on the last page (huh) of this notebook. It says: "You have to write names in this notebook during $n$ consecutive days. During the $i$-th day you have to write exactly $a_i$ names.". You got scared (of course you got scared, who wouldn't get scared if he just receive a notebook which is named Death Note with a some strange rule written in it?).

Of course, you decided to follow this rule. When you calmed down, you came up with a strategy how you will write names in the notebook. You have calculated that each page of the notebook can contain exactly $m$ names. You will start writing names from the first page. You will write names on the current page as long as the limit on the number of names on this page is not exceeded. When the current page is over, you turn the page. Note that you always turn the page when it ends, it doesn't matter if it is the last day or not. If after some day the current page still can hold at least one name, during the next day you will continue writing the names from the current page.

Now you are interested in the following question: how many times will you turn the page during each day? You are interested in the number of pages you will turn each day from $1$ to $n$.


-----Input-----

The first line of the input contains two integers $n$, $m$ ($1 \le n \le 2 \cdot 10^5$, $1 \le m \le 10^9$) — the number of days you will write names in the notebook and the number of names which can be written on each page of the notebook.

The second line contains $n$ integers $a_1, a_2, \dots, a_n$ ($1 \le a_i \le 10^9$), where $a_i$ means the number of names you will write in the notebook during the $i$-th day.


-----Output-----

Print exactly $n$ integers $t_1, t_2, \dots, t_n$, where $t_i$ is the number of times you will turn the page during the $i$-th day.


-----Examples-----
Input
3 5
3 7 9

Output
0 2 1 

Input
4 20
10 9 19 2

Output
0 0 1 1 

Input
1 100
99

Output
0 



-----Note-----

In the first example pages of the Death Note will look like this $[1, 1, 1, 2, 2], [2, 2, 2, 2, 2], [3, 3, 3, 3, 3], [3, 3, 3, 3]$. Each number of the array describes during which day name on the corresponding position will be written. It is easy to see that you should turn the first and the second page during the second day and the third page during the third day.

Difficulty: interview

Starter code:

Solutions:
import sys
import io

stream_enable = 0

inpstream = """
3 5
3 7 9

"""

if stream_enable:
    sys.stdin = io.StringIO(inpstream)
    input()

def inpmap():
    return list(map(int, input().split()))

n, m = inpmap()
arr = inpmap()
s = 0
for x in arr:
    s += x
    print(s // m, end=' ')
    s %= m
print()


'''input
1 100
99
'''
n, m = map(int, input().split())
a = list(map(int, input().split()))
c = 0
for d in range(n):
	c += a[d]
	print(c // m, end=' ')
	c %= m



n, m = map(int, input().split())
a = list(map(int, input().split()))
x = a[0]
y = 0
for i in range(n-1):
    print(x//m - y//m, end = " ")
    x+=a[i+1]
    y+=a[i]
print(x//m - y//m, end = " ")

n, m = map(int,input().split())
a = list(map(int, input().split()))
cnt = 0
for i in range(len(a)):
    cnt += a[i]
    print(cnt // m, end=' ')
    cnt = cnt % m

n, m = map(int, input().split())
a = list(map(int, input().split()))

s = 0
ans = 0
for i in range(n):
    s += a[i]
    print(s // m - ans, end=' ')
    ans = s // m

from collections import defaultdict

n, m = [int(i) for i in input().split()]
x = [int(i) for i in input().split()]

r = 0
s = ""
for i in x:
    r += i
    s += str(r // m) + " "
    r %= m

print(s)


def mi():
	return map(int, input().split())

n,m = mi()
a = list(mi())
s = 0
t = []
for i in a:
	s+=i
	t.append(s//m)
for i in range(n):
	if i==0:
		print (t[i], end = ' ')
	else:
		print (t[i]-t[i-1], end=  ' ')

n, m = map(int, input().split())
a = list(map(int, input().split()))
left = m
for x in a:
    turn = 0
    if x < left:
        left -= x
    else:
        x -= left
        turn = 1 + x // m
        left = m - x % m
    print(turn, end= ' ')
print()


cur = 0
n, m = list(map(int, input().split()))
ans = []
for a in map(int, input().split()):
  cur += a
  ans += [cur // m]
  cur %= m
print(' '.join(map(str, ans)))


def main():
    n, m = [int(x) for x in input().split()]
    a = [int(x) for x in input().split()]

    delim = 0

    for i, e in enumerate(a):
        e += delim
        p, delim = divmod(e, m)
        print(p, end=' ')

    print()


def __starting_point():
    main()

__starting_point()

N, M = map(int, input().split())
curname = 0

arr = map(int, input().split())
for a in arr:
    curname += a
    cnt = curname // M
    curname = curname % M
    print(cnt, end=' ')
    




n,m=[int(x) for x in input().split()]
a=[int(x) for x in input().split()]
k=0
ans=0
for i in a:
    k+=i
    ans=k//m
    k=k%m
    print(ans,end=" ")
    


from sys import stdin,exit
def listInput():
	return list(map(int,stdin.readline().rstrip().split()))
n,m= listInput()
li = listInput()
rem = 0
ans = []
for i in li:
	ans.append((i+rem)//m)
	rem = (i+rem)%m
print(" ".join([str(i) for i in ans]))

n, m = map(int, input().split())
a = list(map(int, input().split()))
rec = []
pre = 0
for i in range(n):
    rec.append((a[i] + pre) // m)
    pre = (a[i] + pre) % m

print(" ".join(map(str, rec)))

n, m = map(int, input().split())
s = list(map(int, input().split()))
t = 0
k = 0
for i in range(len(s)):
    k = (t + s[i]) // m
    print(k, end = " ")
    t = (t + s[i]) % m
    


n, m = (int(x) for x in input().split())
a = [int(x) for x in input().split()]

c = 0
res = []
for x in a:
    res.append((c + x) // m - c // m)
    c += x
print(' '.join([str(x) for x in res]))


n, m = map(int, input().split())
arr = list(map(int, input().split()))
s = 0
for i in arr:
    s += i
    print(s // m, end = " ")
    s = s % m



n, m = map(int, input().split())
a = list(map(int, input().split()))
cnt = 0
for i in a:
    cnt += i
    print(cnt//m, end=' ')
    cnt %= m


n, m = list(map(int, input().split()))
a = list(map(int, input().split()))

bal = 0
for i in range(n):
    print((bal + a[i]) // m, end=' ')
    bal = (bal + a[i]) % m

#      
import collections, atexit, math, sys, bisect 

sys.setrecursionlimit(1000000)
def getIntList():
    return list(map(int, input().split()))    

try :
    #raise ModuleNotFoundError
    import numpy
    def dprint(*args, **kwargs):
        print(*args, **kwargs, file=sys.stderr)
    dprint('debug mode')
except ModuleNotFoundError:
    def dprint(*args, **kwargs):
        pass



inId = 0
outId = 0
if inId>0:
    dprint('use input', inId)
    sys.stdin = open('input'+ str(inId) + '.txt', 'r') #标准输出重定向至文件
if outId>0:
    dprint('use output', outId)
    sys.stdout = open('stdout'+ str(outId) + '.txt', 'w') #标准输出重定向至文件
    atexit.register(lambda :sys.stdout.close())     #idle 中不会执行 atexit
    
N, M = getIntList()
za =  getIntList()

res = []

c = 0
for i in range(N):
    t = c + za[i]
    x = t//M
    c = t%M
    res.append(str(x))

print(' '.join(res))








#codeforces_1016A_live
gi = lambda: list(map(int,input().split(" ")))
n,m = gi()
line = gi()
acc = 0
for k in range(n):
	acc += line[k]
	print(acc//m,end=" ")
	acc %= m

n, m = map(int, input().split())
a = [int(x) for x in input().split()]
pages = 0

for i in a:
    pages += i
    print(pages // m, end = ' ')
    if pages >= m:
        pages %= m


n, m = map(int, input().split())
copy = 0
a = list(map(int, input().split()))
for i in a:
    copy += i
    print(copy // m, end = ' ')
    copy %= m

n, m = list(map(int,input().split()))

data = list( map(int,input().split()))

answer = [0 for i in range(n)]

ind = 0
prev = 0

for el in data:
    val = prev + el
    t = val // m
    prev = val % m
    
    answer[ind] = t
    ind += 1

print(" ".join(str(el) for el in answer))


n, m = [int(i) for i in input().split()]
a = [int(i) for i in input().split()]
for i in range(1, n):
    a[i] += a[i - 1]

current = 1
for i in range(n):
    page = a[i] // m + 1
    print(page - current, end = " ")
    current = page
print()