#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using pii = pair<int, int>;
constexpr int N = 2e5 + 5;
constexpr int M = 20;
int t, n;
void Solve() {
  cin >> n;
  if (n == 1) {
    cout << -1 << "\n";
    return;
  }
  for (int i = 1; i < n; i++) cout << 5;
  cout << 4 << "\n";
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  cin >> t;
  while (t--) Solve();
  return 0;
}
