#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    string s;
    if (n == 1)
      cout << -1 << endl;
    else {
      for (int i = 0; i < n - 2; i++) s += '3';
      s += '3';
      s += '4';
      cout << s << endl;
    }
  }
  return 0;
}
