n=int(input()) d=list(map(int,input().split())) p=[(c//26,chr(c%26+ord("A"))) for c in d] p.sort() print("".join(c for _,c in p))