s = input()
n = len(s)
i = 0
while i < n:
    if s[i] == 'k':
        break
    else:
        i += 1
        if i ==n:
            print('NO')
            exit()
while i < n:
    if s[i] == 'e':
        break
    else:
        i += 1
        if i ==n:
            print('NO')
            exit()
while i < n:
    if s[i] == 'y':
        break
    else:
        i += 1
        if i ==n:
            print('NO')
            exit()
while i < n:
    if s[i] == 'e':
        break
    else:
        i += 1
        if i == n:
            print('NO')
            exit()
while i < n:
    if s[i] == 'n':
        break
    else:
        i += 1
        if i ==n:
            print('NO')
            exit()

while i < n:
    if s[i] == 'c':
        break
    else:
        i += 1
        if i ==n:
            print('NO')
            exit()

while i < n:
    if s[i] == 'e':
        break
    else:
        i += 1
        if i ==n:
            print('NO')
            exit()
print('YES')