QOJ.ac

QOJ

Límite de tiempo: 1.0 s Límite de memoria: 1024 MB Puntuación total: 100 Hackeable ✓

#15237. What is all you need?

Estadísticas

Since the publication of the Transformer architecture paper "Attention is All You Need" in June 2017, many papers with titles like "X is All You Need" have emerged.

Siri is a cat who loves to learn. One night before the Hebei Provincial Collegiate Programming Contest, she decided to read a paper. She believes that if a paper's title ends with "is All You Need", then the content preceding "is All You Need" is what Siri needs to learn; otherwise, it is not something she needs to learn, and she will not study it.

Siri tells you the title of the paper and asks you whether she should study it. If she needs to study it, you must tell her what the content she needs to learn is. Because Siri finds dealing with spaces and capitalization very troublesome, she tells you that when she processes a paper title, she will remove all spaces and convert all uppercase letters to their corresponding lowercase letters.

After this transformation, you only need to determine whether the paper title ends with "isallyouneed". If it does, then the content preceding it is what Siri needs to learn.

Input

A single string representing the paper title. The length of the title $n$ satisfies $13 \le n \le 100$.

The title is guaranteed to:

  • Consist only of lowercase English letters.
  • Since $n \ge 13$, it is guaranteed that the title will not be exactly "isallyouneed".

Output

If Siri needs to study, output "Yes" on the first line; otherwise, output "No" and no further output is required.

If Siri needs to study, output the content Siri wants to learn on the second line.

Examples

Input 1

attentionisallyouneed

Output 1

Yes
attention

Input 2

hbcpcisallyoneed

Output 2

No

Discussions

About Discussions

The discussion section is only for posting: General Discussions (problem-solving strategies, alternative approaches), and Off-topic conversations.

This is NOT for reporting issues! If you want to report bugs or errors, please use the Issues section below.

Open Discussions 0
No discussions in this category.

Issues

About Issues

If you find any issues with the problem (statement, scoring, time/memory limits, test cases, etc.), you may submit an issue here. A problem moderator will review your issue.

Guidelines:

  1. This is not a place to publish discussions, editorials, or requests to debug your code. Issues are only visible to you and problem moderators.
  2. Do not submit duplicated issues.
  3. Issues must be filed in English or Chinese only.
Active Issues 0
No issues in this category.
Closed/Resolved Issues 0
No issues in this category.