atcoder#KEYENCE2019B. KEYENCE String
KEYENCE String
Score : points
Problem Statement
A string is called a KEYENCE string when it can be changed to keyence
by removing its contiguous substring (possibly empty) only once.
Given a string consisting of lowercase English letters, determine if is a KEYENCE string.
Constraints
- The length of is between and (inclusive).
- consists of lowercase English letters.
Input
Input is given from Standard Input in the following format:
Output
If is a KEYENCE string, print YES
; otherwise, print NO
.
keyofscience
YES
keyence
is an abbreviation of key of science
.
mpyszsbznf
NO
ashlfyha
NO
keyence
YES