#include <bits/stdc++.h>
using namespace std;
int main() {
int q;
cin >> q;
while (q--) {
long long op, n, x;
cin >> op >> n >> x;
if (op == 1 && x == n - 1 || op == 2 && x == n - 1) {
for (int i = 1; i <= n - 1; i++) {
cout << 1 << ' ' ;
}
cout << endl;
continue;
}
if (op == 1 && x < n - 1 || op == 2 && x < n - 1) {
cout << -1 << endl;
continue;
}
if (op == 1) {
for (int i = 1; i <= n - 2; i++) {
cout << 1 << ' ';
}
cout << x - n + 2 << ' ' << x - n + 2 << endl;
}
if (op == 2) {
for (int i = 1; i <= n - 1; i++) {
cout << 1 << ' ';
}
cout << x - n + 2 << endl;
}
}
return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
int q;
cin >> q;
while (q--) {
long long op, n, x;
cin >> op >> n >> x;
if (op == 1 && x == n - 1 || op == 2 && x == n - 1) {
for (int i = 1; i <= n - 1; i++) {
cout << 1 << ' ' ;
}
cout << endl;
continue;
}
if (op == 1 && x < n - 1 || op == 2 && x < n - 1) {
cout << -1 << endl;
continue;
}
if (op == 1) {
for (int i = 1; i <= n - 2; i++) {
cout << 1 << ' ';
}
cout << x - n + 2 << ' ' << x - n + 2 << endl;
}
if (op == 2) {
for (int i = 1; i <= n - 1; i++) {
cout << 1 << ' ';
}
cout << x - n + 2 << endl;
}
}
return 0;
}