e-olymp
favorite We need a little bit of your help to keep things running, click on this banner to learn more
Competitions

Week 2: November 16 – 22. Conditional statement. Part 2

Two digits in a row

Four-digit number is given. Determine is there two consecutive digits 3 and 7.

Input

One four-digit number.

Output

Print "YES" if the number contains digits 3 and 7 in a row. Print "NO" otherwise.

Time limit 1 second
Memory limit 128 MiB
Input example #1
1378
Output example #1
YES
Input example #2
3478
Output example #2
NO