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