S = list(input()) from collections import Counter c = Counter(S) if 'a' not in S: print('a') exit() x = c['a'] print('a'*(x+1))