def main():

    S = input()
    if S[:7] == "keyence" or S[-7:] == "keyence":
        return "YES"
    elif S[:3] == "key" and S[-4:] == "ence":
        return "YES"
    return "NO"


if __name__ == '__main__':
    print(main())