#include <bits/stdc++.h>
using namespace std;
set<pair<long long, long long>>::iterator it;
multiset<long long>::iterator itr;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  ;
  long long t;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    if (n == 1) {
      cout << -1 << endl;
    } else {
      for (long long(i) = 0; (i) < (n - 1); (i)++) {
        cout << 5;
      }
      for (long long(i) = 0; (i) < (1); (i)++) {
        cout << 4 << endl;
      }
    }
  }
}
