#include using namespace std; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); unsigned short T, D, i, j; unsigned long long A, X; cin >> T; for (i = 0; i != T; ++i) { cin >> D >> A >> X; cout << (X * 10 / A + 5) / 10; for (j = 1; j != D; ++j) cin >> X, cout << ' ' << (X * 10 / A + 5) / 10; cout << '\n'; } return 0; }