
a = list(input().rstrip())


count = 0

for i in range(len(a)):
    if a[i] == 'k':
        count = count + 1
        if a[i+1] == 'e':
            count = count + 1
            if a[i+2] == 'y':
                count = count + 1
                if a[i+3] == 'e':
                    count = count + 1
                    if a[i+4] == 'n':
                        count = count + 1
                        if a[i+5] == 'c':
                            count = count + 1
                            if a[i+5] == 'e':
                                count = count + 1
                            else:
                                break
                        else:
                            break    
                    else:
                        break
                else:
                    break
            else:
                break    
        else:
            break   
    else:
        continue

a.reverse()

for j in range(len(a)):
    if a[i] == 'e':
        count = count + 1
        if a[i+1] == 'c':
            count = count + 1
            if a[i+2] == 'n':
                count = count + 1
                if a[i+3] == 'e':
                    count = count + 1
                    if a[i+4] == 'y':
                        count = count + 1
                        if a[i+5] == 'e':
                            count = count + 1
                            if a[i+5] == 'k':
                                count = count + 1
                            else:
                                break
                        else:
                            break    
                    else:
                        break
                else:
                    break
            else:
                break    
        else:
            break   
    else:
        continue

if count >= 7:
    print('YES')
else:
    print('NO')