Preparando MOJI

Alex and broken contest

2000ms 262144K

Description:

One day Alex was creating a contest about his friends, but accidentally deleted it. Fortunately, all the problems were saved, but now he needs to find them among other problems.

But there are too many problems, to do it manually. Alex asks you to write a program, which will determine if a problem is from this contest by its name.

It is known, that problem is from this contest if and only if its name contains one of Alex's friends' name exactly once. His friends' names are "Danil", "Olya", "Slava", "Ann" and "Nikita".

Names are case sensitive.

Input:

The only line contains string from lowercase and uppercase letters and "_" symbols of length, not more than 100 — the name of the problem.

Output:

Print "YES", if problem is from this contest, and "NO" otherwise.

Sample Input:

Alex_and_broken_contest

Sample Output:

NO

Sample Input:

NikitaAndString

Sample Output:

YES

Sample Input:

Danil_and_Olya

Sample Output:

NO

Informação

Codeforces

Provedor Codeforces

Código CF877A

Tags

implementationstrings

Submetido 0

BOUA! 0

Taxa de BOUA's 0%

Datas 09/05/2023 09:19:54

Relacionados

Nada ainda