from sys import stdin, stdout txt = stdin.read() output = txt.replace(' the ', ' ******a***** ') stdout.write(output)