import sys import random N = int(input()) S = set([input() for i in range(N)]) while True: ab = "ab" x = "".join( [ab[random.randint(0,1)] for i in range(N)] ) if x not in S: print (x) sys.exit()