#include <bits/stdc++.h>
using namespace std;
const int MAX_N = 1e5 + 1;
const int MOD = 1e9 + 7;
const int INF = 1e9;
const long long LINF = 1e18;
bool oppositeSigns(int x, int y) { return ((x ^ y) < 0); }
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n, t;
  cin >> t;
  while (t--) {
    cin >> n;
    if (n == 1)
      cout << -1 << endl;
    else {
      cout << 2;
      for (int i = 1; i <= n - 1; i++) cout << '3';
      cout << endl;
    }
  }
}
