#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int T;
  cin >> T;
  while (T--) {
    int N;
    cin >> N;
    if (N == 1)
      cout << -1 << endl;
    else {
      string temp(N - 1, '3');
      cout << "4" << temp << endl;
    }
  }
  return 0;
}
