P25384 [AtCoder] Snuke Nurturing - Registration
普及
题目描述

Problem Description

You have acquired the nurturing simulation game "Snuke Nurturing".

In "Snuke Nurturing", you encounter the world's smartest cat, "Snuke", by chance in an alleyway. The newly picked-up Snuke is still weak and only meows. However, as he grows, Snuke can do more and more things.

Hand, jump, catch mice, do laundry, move house, competitive programming, game development, tax filing, entrepreneurship... Snuke's potential is infinite! A dream-like life with a smart and slightly unusual cat awaits you!

Aside from that, to start the game, you must decide on your name. The name you can register must be a string consisting of English lowercase letters between $ A $ and $ B $ characters long.

Given $ A $, $ B $, and the string $ S $ representing the name you want to register, determine if the name can be registered.

Input Format

The input is given from the standard input in the following format:

$ A $ $ B $ $ S $

Output Format

Output YES if the name can be registered, otherwise output NO.

Sample Input and Output

Sample Input #1

4 8
colopl

Sample Output #1

YES

Sample Input #2

2 7
kitayuta

Sample Output #2

NO

Sample Input #3

7 8
kyuri

Sample Output #3

NO

Notes/Hints

Constraints

  • $1 \leq A \leq B \leq 10$
  • $ A $ and $ B $ are integers.
  • The length of $ S $ is between $ 1 $ and $ 10 $ inclusive.
  • $ S $ consists of English lowercase letters.

Sample Explanation 1

colopl is 6 characters long, so it can be registered.

Sample Explanation 2

kitayuta is 8 characters long, so it cannot be registered.

输入格式

见题面 Input 部分

输出格式

见题面 Output 部分

样例输入
4 8 colopl
样例输出
YES