#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using pi = pair<int, int>;
using vb = vector<bool>;
using vi = vector<int>;
using vpi = vector<pi>;
using vll = vector<ll>;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(0);
  set<pi> statues;
  for (int i = 0; i < 8; ++i) {
    for (int j = 0; j < 8; ++j) {
      char c;
      cin >> c;
      if (c == 'S') {
        statues.emplace(i, j);
      }
    }
  }
  queue<tuple<int, int, int>> q;
  q.emplace(7, 0, 0);
  while (q.size()) {
    auto [r, c, t] = q.front();
    q.pop();
    if (t >= 8) {
      cout << "WIN";
      return 0;
    }
    int nt = t + 1;
    for (int dr = -1; dr <= 1; ++dr) {
      for (int dc = -1; dc <= 1; ++dc) {
        int nr = r + dr;
        int nc = c + dc;
        if (nr < 0 || nc < 0 || nr > 7 || nc > 7) continue;
        bool ok = 1;
        for (auto& [x, y] : statues) {
          if ((x + nt == nr || x + t == nr) && y == nc) {
            ok = 0;
            break;
          }
        }
        if (ok) {
          q.emplace(nr, nc, nt);
        }
      }
    }
  }
  cout << "LOSE";
}
