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