#include #include using namespace std; using namespace atcoder; using pdi = pair; pdi op(pdi a, pdi b) { return {a.first + b.first, a.second + b.second}; } pdi e() { return {0, 1}; } pdi mapping(long double f, pdi x) { return {x.first + f * x.second, x.second}; } long double composition(long double f, long double g) { return f + g; } long double id() { return 0; } void fast_io() { ios::sync_with_stdio(false); std::cin.tie(nullptr); } int main() { fast_io(); int t; cin >> t; for (; t--;) { int d; long long a; cin >> d >> a; for (int i = 0; i < d; i++) { long long x; cin >> x; cout << x / a << (i + 1 == d ? "\n" : " "); } } }