Vasya decided to learn to play chess. Classic chess doesn't seem interesting to him, so he plays his own sort of chess.

The queen is the piece that captures all squares on its vertical, horizontal and diagonal lines. If the cell is located on the same vertical, horizontal or diagonal line with queen, and the cell contains a piece of the enemy color, the queen is able to move to this square. After that the enemy's piece is removed from the board. The queen cannot move to a cell containing an enemy piece if there is some other piece between it and the queen. 

There is an n × n chessboard. We'll denote a cell on the intersection of the r-th row and c-th column as (r, c). The square (1, 1) contains the white queen and the square (1, n) contains the black queen. All other squares contain green pawns that don't belong to anyone.

The players move in turns. The player that moves first plays for the white queen, his opponent plays for the black queen.

On each move the player has to capture some piece with his queen (that is, move to a square that contains either a green pawn or the enemy queen). The player loses if either he cannot capture any piece during his move or the opponent took his queen during the previous move. 

Help Vasya determine who wins if both players play with an optimal strategy on the board n × n.


-----Input-----

The input contains a single number n (2 ≤ n ≤ 10^9) — the size of the board.


-----Output-----

On the first line print the answer to problem — string "white" or string "black", depending on who wins if the both players play optimally. 

If the answer is "white", then you should also print two integers r and c representing the cell (r, c), where the first player should make his first move to win. If there are multiple such cells, print the one with the minimum r. If there are still multiple squares, print the one with the minimum c.


-----Examples-----
Input
2

Output
white
1 2

Input
3

Output
black



-----Note-----

In the first sample test the white queen can capture the black queen at the first move, so the white player wins.

In the second test from the statement if the white queen captures the green pawn located on the central vertical line, then it will be captured by the black queen during the next move. So the only move for the white player is to capture the green pawn located at (2, 1). 

Similarly, the black queen doesn't have any other options but to capture the green pawn located at (2, 3), otherwise if it goes to the middle vertical line, it will be captured by the white queen.

During the next move the same thing happens — neither the white, nor the black queen has other options rather than to capture green pawns situated above them. Thus, the white queen ends up on square (3, 1), and the black queen ends up on square (3, 3). 

In this situation the white queen has to capture any of the green pawns located on the middle vertical line, after that it will be captured by the black queen. Thus, the player who plays for the black queen wins.

Difficulty: interview

Starter code:

Solutions:
"""
Codeforces Contest 281 Div 2 Problem D

Author  : chaotic_iak
Language: Python 3.3.4
"""

def main():
    n, = read()
    if n%2:
        print("black")
    else:
        print("white")
        print("1 2")

################################### NON-SOLUTION STUFF BELOW

def read(mode=2):
    # 0: String
    # 1: List of strings
    # 2: List of integers
    inputs = input().strip()
    if mode == 0: return inputs
    if mode == 1: return inputs.split()
    if mode == 2: return list(map(int, inputs.split()))

def write(s="\n"):
    if s is None: s = ""
    if isinstance(s, list): s = " ".join(map(str, s))
    s = str(s)
    print(s, end="")

write(main())

n = int(input())

if n % 2 == 0:
    print("white\n1 2")
else:
    print("black")




n = int(input())

if n%2==0:
    print('white')
    print('1 2')
else:
    print('black')
    


n = int(input())
if n % 2 == 0:
    print('white')
    print(str(1) + ' ' + str(2))
else:
    print('black')

        


__author__ = 'PrimuS'

n = int(input())

if n % 2 == 1:
    print('black')
else:
    print('white')
    print("1 2")

n = int(input())
if n % 2 == 0:
    print("white\n1 2")
else:
    print("black")

n = int(input())
if n & 0b1:
    print("black")
else:
    print("white")
    print("1 2")


n = int(input())
if n % 2 == 1:
    print('black')
else:
    print('white')
    print('1 2')

n = int(input())
print('black' if n % 2 else 'white\n1 2')


n = int(input())
if n%2==0:
    print("white\n1 2")
else:
    print("black")

n = int(input())
if n % 2:
	print("black")
else:
	print("white\n1 2")


print("black"if int(input().split()[0])%2 else"white\n1 2")


print("black" if int(input())%2 else "white\n1 2")

print('black' if int(input()) % 2 == 1 else 'white\n1 2')

print('white\n1 2' if int(input()) % 2 == 0 else 'black')


x = int(input())
if x % 2 == 1:
    print("black")
else:
    print("white")
    print("1 2")

n=int(input());
if n%2==1:  print("black");
else: print("white\n1 2");

print('black' if int(input()) % 2 else 'white\n1 2')


n =int (input())
if n%2==0:
    print ("white\n1 2")
else:
    print("black")

'''
Created on ٠٥‏/١٢‏/٢٠١٤

@author: mohamed265
''' 
print("black")  if  int(input()) % 2 == 1 else print("white\n1 2")

n = int(input())
if n % 2 == 1:
    print("black")
else:
    print("white")
    print("1 2")


n = int(input())

if n % 2 == 0:
    print("white\n1 2")
else:
    print("black")
#


n = int(input())

if n % 2 == 0:
    print("white\n1 2")
else:
    print("black")
##


n=int(input())
print(("white\n1 2" if (n % 2==0) else "black"));


def main():
    n = int(input()) & 1
    print(('white', 'black')[n])
    if not n:
        print(1, 2)


main()