#include <bits/stdc++.h>
using namespace std;
const int inf = 1e9 + 7;
const long long int mod = 1e9 + 7;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int T;
  cin >> T;
  int n;
  while (T--) {
    cin >> n;
    if (n == 1) {
      cout << -1 << endl;
      continue;
    }
    cout << 2;
    for (int i = 1; i < n; i++) cout << 3;
    cout << endl;
  }
  return 0;
}
