#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t) {
    int a, i;
    cin >> a;
    if (a == 1)
      cout << "-1" << endl;
    else {
      cout << "2";
      for (i = 1; i < a; i++) {
        cout << "3";
      }
      cout << "\n";
    }
    t--;
  }
}
