#include <bits/stdc++.h>
using namespace std;
template <typename T>
void Min(T &a, T b) {
  a = min(a, b);
}
template <typename T>
void Max(T &a, T b) {
  a = max(a, b);
}
ostream &operator<<(ostream &cout, vector<int> &a) {
  cout << "{";
  for (auto &it : a) cout << it << ", ";
  cout << "}";
  return cout;
}
ostream &operator<<(ostream &cout, set<int> &a) {
  cout << "{";
  for (auto &it : a) cout << it << ", ";
  cout << "}";
  return cout;
}
const int mod = 1e9 + 7;
const int inf = 2e9;
const int N = 3e5 + 15;
int n, m, a[N];
int main() {
  ios_base::sync_with_stdio(0);
  cout.tie(0);
  cin.tie(0);
  cin >> m;
  while (m--) {
    cin >> n;
    if (n == 1) {
      cout << -1 << '\n';
      continue;
    }
    cout << 2;
    for (int i = 1; i < n; ++i) cout << 3;
    cout << '\n';
  }
  return 0;
}
