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

@author: mohamed265
''' 
print("black") if int(input()) % 2 == 1 else print("white\n1 2")
6ca4126f482aa8d9e126b616628789b105479537
<mask token>

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

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

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