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