Algorithm
Code Examples
#1 Code Example with C++ Programming
Code -
C++ Programming
#include <bits/stdc++.h>
using namespace std;
int n;
int main() {
scanf("%d\n", &n);
if(n % 2 == 0)
puts("white\n1 2");
else
puts("black");
return 0;
}
Copy The Code &
Try With Live Editor
Input
2
Output
white
1 2
1 2
Demonstration
Codeforces Solution-Vasya and Chess-Solution in C, C++, Java, Python