import re inputt = input() # write the characters you want to remove in square brackets line = re.sub('[ie]', '', inputt) print(line)