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