PHƯỚC HƯNG OJ · THỬ THÁCH THUẬT TOÁN

#SP0000022. Ước số lẻ lớn hơn một (Odd Divisor)

HỌC THEO LỘ TRÌNH

Bài tập thuộc lộ trình

1 lộ trình

Ước số lẻ lớn hơn một (Odd Divisor)

Odd Divisor

Source: Codeforces

Version: Phuoc Hung OJ Extended

Problem Statement

Given an integer n≥2n\ge2, determine whether it has an odd divisor d>1d>1, meaning nn is divisible by the odd integer dd. For instance, 66 has odd divisor 33, but 44 has no qualifying odd divisor. Report existence only; do not print the divisor.

Input

One line contains integer nn.

Output

Print YES if an odd divisor greater than 11 exists, or NO otherwise.

Subtasks

  • Subtask 1 (20 points): 2≤n≤10002\le n\le 1000.
  • Subtask 2 (30 points): 2≤n≤10000000002\le n\le 1000000000.
  • Subtask 3 (50 points): 2≤n≤1000000000000002\le n\le 100000000000000.

Examples

Input

6

Output

YES

Explanation

Since 6=2⋅36=2\cdot3, the odd divisor 3>13>1 exists. Print YES.

Input

4

Output

NO

Explanation

The positive divisors of 44 are 1,2,41,2,4. The only odd one is 11, which is not allowed. Print NO.

Input

1099511627776

Output

NO

Explanation

Here 1099511627776=2401099511627776=2^{40}, whose divisors are all powers of two. None is an odd integer greater than 11.