def yn(hantei, yes='Yes', no='No'): print(yes if hantei else no) def p(*args): print(*args) s=input() for i in range(1,150): if 'a'*i not in s: print('a'*i) break