#include <bits/stdc++.h>
using namespace std;
long long powerMod(long long number, long long power) {
  long long int ret = 0;
  if (power == 0) return 1;
  if (power == 1) return number;
  if (power % 2 == 0) {
    ret = powerMod(number, power / 2);
    ret = (ret * ret);
    return ret;
  } else {
    ret = powerMod(number, power / 2);
    ret = (ret * ret * number);
    return ret;
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    if (n == 1)
      cout << "-1" << '\n';
    else {
      for (int i = 0; i < n - 1; i++) {
        cout << "5";
      }
      cout << "4" << '\n';
    }
  }
  return 0;
}
