#K93417. Unique Password Generation

    ID: 38415 Type: Default 1000ms 256MiB

Unique Password Generation

Unique Password Generation

Given an integer n that represents the desired length of a password, determine whether it is possible to generate a unique password that meets all of the following conditions:

  • The password must contain at least one digit, one lowercase Latin letter, and one special character (for example: !, @, #, etc.).
  • No two consecutive characters can be the same.

Since the minimum set of characters required is 3, it is only possible to generate such a password if n is at least 3. Otherwise, it is impossible.

inputFormat

The input consists of a single integer n (1 ≤ n ≤ 105), representing the desired length of the password.

outputFormat

Output a single line containing YES if it is possible to generate a password that meets the constraints. Otherwise, output NO.

## sample
1
NO