#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int t;
  cin >> t;
  while (t--) {
    long long int n;
    cin >> n;
    long long int check = 0;
    if (n == 1)
      cout << -1 << endl;
    else {
      cout << 6;
      for (long long int i = 1; i < n; i++) {
        cout << 7;
      }
      cout << endl;
    }
  }
  return 0;
}
