func_code_string: #include <bits/stdc++.h>   using namespace std;   const bool online_judge = true;   const long long inf = 1LL << 60;   long long toInt(string s) {     long long res;     stringstream ss;     ss << s;     ss >> res;     return res;   }   string toString(long long n) {     stringstream ss;     ss << n;     return ss.str();   }   long long dx[3] = {1, 0, -1};   long long dy[3] = {1, 0, -1};   vector<pair<long long, long long> > statue;   bool valid(long long x, long long y, long long turn) {     if (!(((x) >= (0) && (x) <= (7)) && ((y) >= (0) && (y) <= (7)))) return false;     for (long long i = 0; i < ((long long)((statue).size())); i++) {       long long sx = statue[i].first + turn;       long long sy = statue[i].second;       if ((sx == x && sy == y) || (sx + 1 == x && sy == y)) return false;     }     return true;   }   bool solve(long long x, long long y, long long turn) {     if (turn == 8) return true;     for (long long i = 0; i < 3; i++) {       for (long long j = 0; j < 3; j++) {         long long nx = x + dx[i];         long long ny = y + dy[j];         if (valid(nx, ny, turn) && solve(nx, ny, turn + 1)) {           return true;         }       }     }     return false;   }   void run() {     statue.clear();     for (long long i = 0; i < 8; i++) {       string s;       cin >> s;       for (long long j = 0; j < 8; j++) {         if (s[j] ==  S ) statue.emplace_back(i, j);       }     }     bool ans = solve(7, 0, 0);     if (ans)       cout <<  WIN  << endl;     else       cout <<  LOSE  << endl;   }   int main(int argc, char *argv[]) {     run();     return 0;   }   