s = input()
n = len(s)
i = 0
a = [0]*7
while i < n:
    if s[i] == 'k':
        i += 1
        break
    else:
        i += 1
        a[0] = 1
        if i == n:
            print('NO')
            exit()
if i > n-6:
    print('NO')
    exit()

while i < n:
    if s[i] == 'e':
        i += 1
        break
    else:
        i += 1
        a[1] = 1
        if i ==n:
            print('NO')
            exit()
if i > n-5:
    print('NO')
    exit()
while i < n:
    if s[i] == 'y':
        i += 1
        break
    else:
        i += 1
        a[2] = 1
        if i ==n:
            print('NO')
            exit()
if i > n-4:
    print('NO')
    exit()
while i < n:
    if s[i] == 'e':
        i += 1
        break
    else:
        i += 1
        a[3] = 1
        if i == n:
            print('NO')
            exit()
if i > n-3:
    print('NO')
    exit()
while i < n:
    if s[i] == 'n':
        i += 1
        break
    else:
        i += 1
        a[4] = 1
        if i ==n:
            print('NO')
            exit()
if i > n-2:
    print('NO')
    exit()
while i < n:
    if s[i] == 'c':
        i += 1
        break
    else:
        i += 1
        a[5] = 1
        if i ==n:
            print('NO')
            exit()
if i > n-1:
    print('NO')
    exit()
while i < n:
    if s[i] == 'e':
        i += 1
        break
    else:
        i += 1
        a[6] = 1
        if i == n:
            print('NO')
            exit()
if a.count(1) <= 1:
    print('YES')
else:
    print('NO')