#include <bits/stdc++.h>
using namespace std;
int main(int argc, char *argv[]) {
  long long int t, n, i, j, k;
  string str = "-1";
  cin >> t;
  while (t--) {
    cin >> n;
    if (n == 1)
      cout << str << endl;
    else if (n > 1) {
      cout << "2";
      for (i = 1; i < n; i++) {
        cout << "3";
      }
      cout << endl;
    }
  }
  return 0;
}
