Telephone Directory Information Routing

Time limit1sMemory limit512 MB

Summary
Given a 7-digit phone number, print YES if its first three digits are 555, otherwise NO.
Level

Easy1 of 10

Topics
Implementation, Math
Solved
No attempts yet

Problem

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.

Input

The input consists of a single line containing a 7-digit positive integer NN, (1000000≤N≤99999991000000 \le N \le 9999999).

Output

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.

Examples4

  1. Example 1

    Input
    5551212
    
    Expected output
    YES
    
  2. Example 2

    Input
    5519876
    
    Expected output
    NO
    
  3. Example 3

    Input
    5055555
    
    Expected output
    NO
    
  4. Example 4

    Input
    5550000
    
    Expected output
    YES