#include <bits/stdc++.h>
using namespace std;
const long long MOD = 3;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  ;
  long long t;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    if (n == 1)
      cout << -1 << "\n";
    else {
      cout << 2;
      n--;
      while (n--) cout << 3;
      cout << "\n";
    }
  }
}
