def my_index(l, x, default=False):
    if x in l:
        return l.index(x)
    else:
        return -1

a = input().split()
a = list(a[0])
judge = 0
A = []
B = []

A.append(my_index(a, 'k'))
if (my_index(a, 'k') != -1):
 a[ my_index(a, 'k') ] = 'AAA'
 judge += 1
A.append(my_index(a, 'e'))
if (my_index(a, 'e') != -1):
 a[ my_index(a, 'e') ] = 'AAA'
 judge += 1
A.append(my_index(a, 'y'))
if (my_index(a, 'y') != -1):
 a[ my_index(a, 'y') ] = 'AAA'
 judge += 1
A.append(my_index(a, 'e'))
if (my_index(a, 'e') != -1):
 a[ my_index(a, 'e') ] = 'AAA'
 judge += 1
A.append(my_index(a, 'n'))
if (my_index(a, 'n') != -1):
 a[ my_index(a, 'n') ] = 'AAA'
 judge += 1
A.append(my_index(a, 'c'))
if (my_index(a, 'c') != -1):
 a[ my_index(a, 'c') ] = 'AAA'
 judge += 1
A.append(my_index(a, 'e'))
if (my_index(a, 'e') != -1):
 a[ my_index(a, 'e') ] = 'AAA'
 judge += 1

B = A
A.sort()
if( (A == B) and (judge==7) ):
 print('YES')
else:
 print("NO")


