#ARC157A. [ARC157A] XXYYX

[ARC157A] XXYYX

Score : 300300 points

Problem Statement

Determine whether there is a string SS of length NN consisting of X and Y that satisfies the following condition.

Condition: Among the (N1)(N - 1) pairs of consecutive characters in SS,

  • exactly AA are XX,
  • exactly BB are XY,
  • exactly CC are YX, and
  • exactly DD are YY.

Constraints

  • 1N2×1051 \leq N \leq 2 \times 10^5
  • A0A \geq 0
  • B0B \geq 0
  • C0C \geq 0
  • D0D \geq 0
  • A+B+C+D=N1A + B + C + D = N - 1

Input

The input is given from Standard Input in the following format:

NN AA BB CC DD

Output

If there is a string SS that satisfies the condition, print Yes; otherwise, print No.

5 1 1 1 1
Yes

For instance, if S=S = {}XXYYX, the pairs of consecutive characters are XX, XY, YY, and YX from left to right. Each pattern occurs exactly once, so the condition is satisfied.

5 1 2 1 0
Yes

For instance, S=S = {}XXYXY satisfies the condition.

5 0 4 0 0
No

No string satisfies the condition.