April Fools Day Contest 2021 |
---|

Finished |

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.

*special problem

implementation

*1400

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-2024 Mike Mirzayanov

The only programming contests Web 2.0 platform

Server time: Jul/18/2024 10:05:43 (i1).

Desktop version, switch to mobile version.

Supported by

User lists

Name |
---|