func_code_string: #include <bits/stdc++.h>   using namespace std;   const int INF = 1e9;   void process() {     vector<vector<char> > d(8, vector<char>(8));     int x1 = 8, y1 = 8, x2 = 8, y2 = 8;     vector<vector<pair<int, int> > > steps(         8, vector<pair<int, int> >(8, make_pair(-INF, -INF)));     for (int i = 0; i < 8; i++)       for (int j = 0; j < 8; j++) {         cin >> d[i][j];         if (d[i][j] ==  K )           if (x1 == 8) {             x1 = j;             y1 = i;           } else {             x2 = j;             y2 = i;           }       }     for (int i = 0; i < 8; i++)       for (int j = 0; j < 8; j++) {         if (abs(x1 - j) % 4 + abs(y1 - i) % 4 == 0) steps[i][j].first = 0;         if (abs(x1 - j) % 4 == 2 && abs(y1 - i) % 4 == 2) steps[i][j].first = 1;         if (abs(x2 - j) % 4 + abs(y2 - i) % 4 == 0) steps[i][j].second = 0;         if (abs(x2 - j) % 4 == 2 && abs(y2 - i) % 4 == 2) steps[i][j].second = 1;       }     for (int i = 0; i < 8; i++)       for (int j = 0; j < 8; j++)         if (steps[i][j].first == steps[i][j].second && steps[i][j].first >= 0 &&             d[i][j] !=  # ) {           cout <<  YES  << endl;           return;         }     cout <<  NO  << endl;     return;   }   int main() {     int n;     cin >> n;     for (int i = 0; i < n; i++) process();     return 0;   }   