
P = list(str(input()))

#print(P[0])

N = len(P)

flg = 0

kaisu = 0

hantei = 0
i=0
j=0
k=0
l=0
m=0
n=0
o =0
w1=0
w2=0
w3=0
w4=0
w5=0
w6=0
w7 =0

for i in range(N):
    if P[i] == "k":
        w1 = i
        flg = 0
        for j in range(i+1,N):
            if P[j]=="e":
                w2 = j
                if w1+1 != w2:
                    flg = flg + 1
                for k in range(j+1,N):
                    if P[k]=="y":
                        w3 = k
                        if w2+1 != w3:
                            flg = flg + 1
                        for l in range(k+1,N):
                            if P[l]=="e":
                                w4 = l
                                if w3+1 != w4:
                                    flg = flg + 1
                                for m in range(l+1,N):
                                    if P[m]=="n":
                                        w5 = m
                                        if w4+1 != w5:
                                            flg = flg + 1
                                        for n in range(m+1,N):
                                                if P[n]=="c":
                                                    w6 = n
                                                    if w5+1 != w6:
                                                        flg = flg + 1
                                                    for o in range(n+1,N):
                                                        if P[o]=="e":
                                                            w7 = o
                                                            if w6+1 != w7:
                                                                flg = flg + 1
                                                            if  flg <= 1:
                                                                #print("YES")
                                                                hantei = hantei +1

if hantei == 1:
    print("YES")
else:
    print("NO")