#include <bits/stdc++.h>
using namespace std;
const long long INF = 1LL << 60;
signed main() {
  long long n;
  cin >> n;
  for (long long i = 0; i < n; i++) {
    long long a;
    cin >> a;
    if (a == 1) {
      cout << -1 << endl;
    } else {
      string ans;
      for (long long j = 0; j < a; j++) {
        if (j == 0)
          ans.push_back('2');
        else
          ans.push_back('3');
      }
      cout << ans << endl;
    }
  }
  return 0;
}
