#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  long long tc;
  cin >> tc;
  while (tc--) {
    long long no;
    cin >> no;
    if (no == 1)
      cout << "-1";
    else {
      cout << "2";
      for (long long i = 1; i < no; i++) cout << "9";
    }
    cout << "\n";
  }
}
