str_old = input()
str_new = str_old.replace('a*', 'ab')
print(str_new)