Please subscribe to the official Codeforces channel in Telegram via the link: https://t.me/codeforces_official.
×

The following languages are only available languages for the problems from the contest

Surprise Language Round #7:

- FALSE

Virtual contest is a way to take part in past contest, as close as possible to participation on time. It is supported only ACM-ICPC mode for virtual contests.
If you've seen these problems, a virtual contest is not for you - solve these problems in the archive.
If you just want to solve some problem from a contest, a virtual contest is not for you - solve this problem in the archive.
Never use someone else's code, read the tutorials or communicate with other person during a virtual contest.

No tag edit access

B. Hexakosioihexekontahexaphobia

time limit per test

2 secondsmemory limit per test

256 megabytesinput

standard inputoutput

standard outputThis (unpronounceable) word means simply fear of number 666.

You are given a string of digits. Check whether it is scary for a person suffering from this phobia, i.e., whether it contains number 666 as a substring.

Input

The input will consist of a single string *p*. The string contains between 1 and 100 digits ('0'-'9'), inclusive. The string doesn't contain any other characters except digits.

Output

Output "YES" if given string contains number 666, and "NO" otherwise (quotes for clarity only).

Examples

Input

123098

Output

NO

Input

16660

Output

YES

Input

1606061

Output

NO

Note

Note that 666 must be a contiguous substring of *p*, not a subsequence (see sample 3).

Codeforces (c) Copyright 2010-2018 Mike Mirzayanov

The only programming contests Web 2.0 platform

Server time: Dec/12/2018 11:50:03 (d1).

Desktop version, switch to mobile version.

Supported by

User lists

Name |
---|