1.py 124 Bytes Edit 1 2 3 4 5 6 7 8 abc=input() if "er" in abc or "ly" in abc: a=abc[:-2] elif "ing" in abc: a=abc[:-3] else: a=abc print(a)