시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 512 MB 2 1 1 50.000%

문제

A certain ICPC regional contest has specific requirements for the names of the competing teams. One of the reasons this is done is so spectators can determine which school each team is from. The requirements for a team name are specified on the website for the region as shown here:

  • Each team name must consist of the institution name (greater than 1 character but less than or equal to 8 characters) followed by a hyphen (-) followed by a team name (greater than 0 characters but less than or equal to 24 characters). Please note that spaces are counted as characters.
  • Format: INSTITUTION-TEAMNAME INSTITUTION = University name or abbreviation. 1 < length(INSTITUTION ) <= 8. TEAMNAME = Your team name. 1 <= length(TEAMNAME) <= 24.

Write a program that determines if a supplied string is a valid team name for this region.

입력

The input consists of a single line containing a string of characters at least one character long and no more than 80 characters long. The input string will not have any leading or trailing spaces. The INSTITUTION may not contain hyphens (obviously). The TEAMNAME, however, may contain hyphens.

출력

The single output line consists of the word YES if the string represents a valid team name for the region or NO if the string does not represent a valid team name for the region.

예제 입력 1

Stevens-1

예제 출력 1

YES

예제 입력 2

INSTITUTION-TEAMNAME

예제 출력 2

NO

예제 입력 3

Dragons

예제 출력 3

NO

예제 입력 4

VIRGTECH - Eagles

예제 출력 4

NO