def yn(hantei, yes='Yes', no='No'): print(yes if hantei else no) def p(*args): print(*args) s=input() print('a'*(list(s).count('a')+1))