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