s = input()
n = len(s)
a = [0]*8
i = 0
while s[i] != 'k':
    i += 1
    a[0] = 1
    if i == n:
        print('NO')
        exit()
i += 1
if i == n:
    print('NO')
    exit()
while s[i] != 'e':
    i += 1
    a[1] = 1
    if i == n:
        print('NO')
        exit()
i += 1
if i == n:
    print('NO')
    exit()
while s[i] != 'y':
    i += 1
    a[2] = 1
    if i == n:
        print('NO')
        exit()
i += 1
if i == n:
    print('NO')
    exit()
while s[i] != 'e':
    i += 1
    a[3] = 1
    if i == n:
        print('NO')
        exit()
i += 1
if i == n:
    print('NO')
    exit()
while s[i] != 'n':
    i += 1
    a[4] = 1
    if i == n:
        print('NO')
        exit()
i += 1
if i == n:
    print('NO')
    exit()
while s[i] != 'c':
    i += 1
    a[5] = 1
    if i == n:
        print('NO')
        exit()
i += 1
if i == n:
    print('NO')
    exit()
while s[i] != 'e':
    i += 1
    a[6] = 1
    if i == n:
        print('NO')
        exit()
if i < n:
    a[7] += 1
#print(a)
if a.count(1) > 1:
    print('NO')
else:
    print('YES')