CSES - Stick Game
  • Time limit: 1.00 s
  • Memory limit: 512 MB

Consider a game where two players remove sticks from a heap. The players move alternately, and the player who removes the last stick wins the game.

A set P={p1,p2,,pk}P=\{p_1,p_2,\ldots,p_k\} determines the allowed moves. For example, if P={1,3,4}P=\{1,3,4\}, a player may remove 11, 33 or 44 sticks.

Your task is find out for each number of sticks 1,2,,n1,2,\dots,n if the first player has a winning or losing position.

Input

The first input line has two integers nn and kk: the number of sticks and moves.

The next line has kk integers p1,p2,,pkp_1,p_2,\dots,p_k that describe the allowed moves. All integers are distinct, and one of them is 11.

Output

Print a string containing nn characters: W means a winning position, and L means a losing position.

Constraints

  • 1n1061 \le n \le 10^6
  • 1k1001 \le k \le 100
  • 1pin1 \le p_i \le n

Example

Input:

10 3
1 3 4

Output:

WLWWWWLWLW