func_code_string: #include <bits/stdc++.h>   using namespace std;   void seif() { std::ios_base::sync_with_stdio(0); }   int xa[] = {-1, -1, -1, 0, 0, 0, 1, 1, 1};   int ya[] = {1, 0, -1, 1, 0, -1, 1, 0, -1};   int anx, any, marx, mary;   bool ok = false;   char grid[8][8];   bool valid(int x, int y) {     if (x < 0 || y < 0 || x > 7 || y > 7 || ok) return false;     return true;   }   void check(int cx, int cy, int deg) {     if (cx == 0 && cy == 7) {       cout <<  WIN ;       ok = true;     }     if (ok) return;     for (int i = 0; i < 9; i++) {       int mtx = cx + xa[i];       int mty = cy + ya[i];       if (!valid(mtx, mty)) continue;       if (mtx - deg >= 0 && grid[mtx - deg][mty] ==  S ) continue;       if (mtx - deg - 1 >= 0 && grid[mtx - deg - 1][mty] ==  S ) continue;       check(mtx, mty, deg + 1);     }     return;   }   int main() {     seif();     bool flag = false;     for (int i = 0; i < 8; i++) {       for (int j = 0; j < 8; j++) {         cin >> grid[i][j];         if (grid[i][j] ==  S ) flag = true;       }     }     if (!flag) return cout <<  WIN , 0;     check(7, 0, 0);     if (!ok) cout <<  LOSE ;     return 0;   }   