#include <bits/stdc++.h>
using namespace std;
int solve() {
  int n;
  cin >> n;
  if (n == 1) return cout << -1 << endl, 0;
  string s = "";
  for (int i = 0; i < n - 1; i++) s += "3";
  cout << "2" + s << endl;
  return 0;
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int t;
  cin >> t;
  while (t--) solve();
  return 0;
}
