def checkInputPattern(inputList):
    a = 0
    b = 0
    c = 0
    d = 0
    e = 0
    for char in inputList:
        if(char == 'k'):
            a = 1
        elif(char == 'e' and b < 4):
            b += 1
        elif(char == 'y'):
            c = 1
        elif(char == 'n'):
            d = 1
        elif(char == 'c'):
            e = 1
    if(a == 1 and b == 3 and c == 1 and d == 1 and e == 1):
        return True
    else:
        return False

if __name__ == '__main__':
    inp = list(input())
    if checkInputPattern(inp):
        print("YES")
    else:
        print("NO")
