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

April Fools Day Contest 2021:

- Secret 2021

Virtual contest is a way to take part in past contest, as close as possible to participation on time. It is supported only 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

The problem statement has recently been changed. View the changes.

×
C. Fibonacci Words

time limit per test

1 secondmemory limit per test

256 megabytesinput

standard inputoutput

standard outputInput

The input consists of a single string of uppercase letters A-Z. The length of the string is between 1 and 10 characters, inclusive.

Output

Output "YES" or "NO".

Examples

Input

HELP

Output

YES

Input

AID

Output

NO

Input

MARY

Output

NO

Input

ANNA

Output

YES

Input

MUG

Output

YES

Input

CUP

Output

NO

Input

SUM

Output

YES

Input

PRODUCT

Output

NO

Codeforces (c) Copyright 2010-2021 Mike Mirzayanov

The only programming contests Web 2.0 platform

Server time: Aug/02/2021 04:47:00 (j2).

Desktop version, switch to mobile version.

Supported by

User lists

Name |
---|