s = input()

if s[0] != 'k':
    if s[-7:] == 'keyence':
        print('YES')
    else:
        print('NO')
elif s[0] == 'k' and s[1] != 'e':
    if s[-6:] == 'eyence':
        print('YES')
    else:
        print('NO')
elif s[0:2] == 'ke' and s[2] != 'y':
    if s[-5:] == 'yence':
        print('YES')
    else:
        print('NO')
elif s[0:3] == 'key' and s[3] != 'e':
    if s[-4:] == 'ence':
        print('YES')
    else:
        print('NO')
elif s[0:4] == 'keye' and s[4] != 'e':
    if s[-3:] == 'nce':
        print('YES')
    else:
        print('NO')
elif s[0:5] == 'keyen' and s[5] != 'c':
    if s[-2:] == 'ce':
        print('YES')
    else:
        print('NO')
elif s[0:6] == 'keyenc' and s[5] != 'e':
    if s[-1] == 'e':
        print('YES')
    else:
        print('NO')
elif s[0:7] == 'keyence':
    print('YES')