xxxxxxxxxx
#follow paimon on the grepper
import re
char=input("Write the word: ") #input the word
#here's where the magic happens
if len(char)<=3:
print(char)
elif char[-3:]!="ing":
print(char+"ing")
else:
print(re.sub(r'(ing)', r'\1ly', char))