s = input() for i in range(1, 1000): t = "a" * i if t not in s: print(t) break