#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout << fixed;
  int t;
  cin >> t;
  for (int ts = 0; ts < t; ts++) {
    int N;
    cin >> N;
    if (N == 1) {
      cout << -1 << endl;
    } else {
      cout << 23;
      for (int i = 0; i < N - 2; i++) {
        cout << 9;
      }
      cout << endl;
    }
  }
}
