T = int(input()) S = 'ccabcceacccccabebdccc'*10 for _ in range(T): N = int(input()) if N%21==0 or N%21==5 or N%21==10: print(S[len(S)-N::]) else: print('-1 ')