#MTH000000017. Bật đèn, tắt đèn (Light, more light)

Bật đèn, tắt đèn (Light, more light)

Light, more light

Source: UVa

Version: Phuoc Hung OJ Extended

Problem Statement

There are nn light bulbs numbered from 11 to nn. Initially, every bulb is off.

Exactly nn passes are performed. On pass ii, the state of every bulb whose number is divisible by ii is toggled.

Determine the final state of bulb nn.

Input

One positive integer nn.

Output

Print yes if bulb nn is on after all passes; otherwise print no.

Subtasks

  • Subtask 1 (20%): n≤104n\le10^4.
  • Subtask 2 (30%): n≤109n\le10^9.
  • Subtask 3 (50%): Full constraints: 1≤n≤232−11\le n\le2^{32}-1.

Examples

Input

4

Output

yes

Explanation

Initially all four bulbs are off. Track bulb 44 through the four passes:

  • Pass 11: bulb 44 changes from off to on.
  • Pass 22: bulb 44 changes from on to off.
  • Pass 33: bulb 44 is not affected, so it remains off.
  • Pass 44: bulb 44 changes from off to on.

After the final pass, bulb 44 is on, so the program prints yes.