#include using namespace std; using ll = long long; #define rep(i, n) for(ll i = 0; i < n; i++) int main() { int t; cin >> t; rep(i, t) { int d; ll a; cin >> d >> a; rep(j, d) { long double x; cin >> x; ll ans = round(x / a); if(j) cout << " "; cout << ans; } cout << endl; } }