問題一覧 > 通常問題

No.653 E869120 and Lucky Numbers

レベル : / AI推定難易度 : 1450 / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / 標準ジャッジ問題
タグ : (AC するまで非表示) / 解いたユーザー数 123
作問者 : e869120 / テスター : はむこ
お気に入りにしたユーザー ProblemId : 1921 / 自分の提出
問題文最終更新日: 2026-06-26 04:07:34
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence. Back to the original
yukicoder contest 184 (順位表) の他の問題:

Problem Statement

6 and 7 are good numbers. Numbers that use only these digits, such as "66", "767", "7767", and "6667", are lucky numbers. (0 is not a lucky number.)
Now, E869120 wants to make p by adding 2 lucky numbers. Determine whether this is possible, answering "Yes" or "No".

Input

p

  • $1≦p≦10^{20000}$

Output

Print "Yes" if it can be made, and "No" if it cannot. Print a newline at the end.

Sample

Sample 1
Input
123
Output
No

Sample 2
Input
142
Output
Yes

66 + 76 = 142.

Sample 3
Input
1552
Output
Yes

776 + 776 = 1552.

提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。