#include <bits/stdc++.h>
using namespace std;
using ll = long long int;
using vi = vector<int>;
const ll INF = 1e9 + 7;
void solution() {
  int n;
  cin >> n;
  if (n == 1) {
    cout << "-1\n";
    return;
  } else {
    cout << "2";
    n -= 1;
    while (n--) {
      cout << "3";
    }
  }
  cout << endl;
}
int main() {
  int test;
  cin >> test;
  while (test--) {
    solution();
  }
  return 0;
}
