#include <bits/stdc++.h>
using namespace std;
int main() {
  int T;
  scanf("%d", &T);
  while (T--) {
    int n;
    scanf("%d", &n);
    if (n == 1)
      printf("-1\n");
    else {
      printf("2");
      for (int i = 1; i <= n - 1; ++i) printf("%d", 3);
      printf("\n");
    }
  }
  return 0;
}
