#include <stdio.h>

int main () {
  int t = 0;
  int n = 0;
  
  int res = 0;
  
  int ans = 0;
  
  res = scanf("%d", &t);
  while (t > 0) {
    res = scanf("%d", &n);
    printf("ABACBC");
    n -= 2;
    while (n > 0) {
      printf("ABC");
      n--;
    }
    printf("\n");
    t--;
  }
  
  return 0;
}