T = int(input()) for _ in range(T): D, A = map(int, input().split()) X = list(map(int, input().split())) P = [int(x / A + 0.5) for x in X] print(*P)