s = input() if s[-2:] == "er": print(s[:-2]) elif s[-2:] == "ly": print(s[:-2]) elif s[-3:] == "ing": print(s[:-3]) else: print(s)
https://www.luogu.com.cn/record/165351243