Universal Cup Judging System

Universal Cup

시간 제한: 1.0 s 메모리 제한: 1024 MB 총점: 100 해킹 가능 ✓
통계

Description

Why are you not doing Universal Cup?

If you have ever had a ucup account, then you will know that the format of a ucup account is ucup-teamXXXX, where XXXX is a number with at least three digits and no leading zeros.

Now given several account names, please determine whether they match the ucup account format.

Input

The first line contains the number of test cases $T$ ($1 \le T \le 10^5$).

For each test case, one line contains a string $s$ ($1 \le |s| \le 50$) consisting only of lowercase letters, digits, and the hyphen -, representing an account name.

Output

For each test case, output one line YES or NO, indicating whether it matches the ucup format.

Examples

input1

5
abcdeabcdeabc
ucup-team7610
ucup-team22
ucup-team01234
ucup-team123456789123456789

output1

NO
YES
NO
NO
YES

Note

Will we ever live to see the day when ucup-team123456789123456789 gets registered?

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.