Logo
(追記) (追記ここまで)

17863번 - FYI 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 512 MB42533372319780.005%

문제

In the United States of America, telephone numbers within an area code consist of 7 digits: the prefix number is the first 3 digits and the line number is the last 4 digits. Traditionally, the 555 prefix number has been used to provide directory information and assistance as in the following examples:

  • 555-1212
  • 555-9876
  • 555-5000
  • 555-7777

Telephone company switching hardware would detect the 555 prefix and route the call to a directory information operator. Now-a-days, telephone switching is done digitally and somewhere along the line a computer decides where to route calls.

For this problem, write a program that determines if a supplied 7-digit telephone number should be routed to the directory information operator, that is, the prefix number is 555.

입력

The input consists of a single line containing a 7-digit positive integer N, (1000000 <= N <= 9999999).

출력

The single output line consists of the word YES if the number should be routed to the directory information operator or NO if the number should not be routed to the directory information operator.

제한

예제 입력 1

5551212

예제 출력 1

YES

예제 입력 2

5519876

예제 출력 2

NO

예제 입력 3

5055555

예제 출력 3

NO

예제 입력 4

5550000

예제 출력 4

YES

힌트

출처

ICPC > Regionals > North America > Greater New York Region > 2019 Greater New York Programming Contest A번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /