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