#include <bits/stdc++.h>
using namespace std;
const long double EPS = 1e-6;
const long double pi = acos(-1);
const long long N = 4 + 1e5;
int main() {
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  long long t;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    if (n == 1) {
      cout << "-1" << endl;
    } else {
      cout << "2";
      for (long long i = 0; i < n - 1; i++) {
        cout << "7";
      }
      cout << endl;
    }
  }
  return 0;
}
