X=input() for t in range(1,111): if not('a'*t in X): print('a'*t) break