import sys

a=input()
print(a.replace("a*","ab"))