/*==========================================================================*/ /* auther: Dev1ce created: 06.04.2024 15:58:49 */ /*--------------------------------------------------------------------------*/ #include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); int t; cin >> t; while (t--) { int d, a; cin >> d >> a; while (d--) { long long x; cin >> x; long double ans = (long double) x / (long double) a; cout << (long long) round(ans) << " "; } cout << '\n'; } return 0; }