#include <bits/stdc++.h>
using namespace std;
void solve(long long int a[]) {
  long long int n, m, i = 0, j = 0, k = 0, sum = 0, z = 0, mn = 0;
  cin >> n;
  long long int s;
  if (n == 1)
    cout << "-1"
         << "\n";
  else {
    cout << "2";
    for (int i = 0; i < (n - 1); i++) cout << "3";
    cout << "\n";
  }
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long int t = 1;
  cin >> t;
  long long int a[100001] = {0};
  for (int i = 1; i < (100001); i++) {
    a[i] = a[i - 1] * 10 + 3;
  }
  while (t--) {
    solve(a);
  }
  return 0;
}
