#include <bits/stdc++.h>
using namespace std;
const long long N = 2e1 + 123, M = 1e6 + 5, inf = 1e9 + 123, mod = 1e9 + 7,
                key = 31;
const double EPS = 0.000001;
template <typename T>
inline T sqr(T t) {
  return t * t;
}
inline void file() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
}
struct pt {
  int x, y;
};
int n, m, k, x, ans, mn, mx, err, y;
char ch[N][N];
vector<pt> st;
bool check(int x, int y, int turn) {
  if (x < 1 || x > 8) return false;
  if (y < 1 || y > 8) return false;
  for (int i = 0; i < st.size(); i++)
    if (st[i].y == y && st[i].x + turn == x) return false;
  return true;
}
void rec(int x, int y, int turn) {
  if (turn == 10) {
    cout << "WIN";
    exit(0);
  } else {
    for (int i = 0; i < st.size(); i++)
      if (st[i].y == y && st[i].x + turn == x) return;
    if (check(x, y, turn)) rec(x, y, turn + 1);
    if (check(x + 1, y, turn)) rec(x + 1, y, turn + 1);
    if (check(x - 1, y, turn)) rec(x - 1, y, turn + 1);
    if (check(x, y + 1, turn)) rec(x, y + 1, turn + 1);
    if (check(x, y - 1, turn)) rec(x, y - 1, turn + 1);
    if (check(x + 1, y + 1, turn)) rec(x + 1, y + 1, turn + 1);
    if (check(x + 1, y - 1, turn)) rec(x + 1, y - 1, turn + 1);
    if (check(x - 1, y + 1, turn)) rec(x - 1, y + 1, turn + 1);
    if (check(x - 1, y - 1, turn)) rec(x - 1, y - 1, turn + 1);
  }
}
int main() {
  file();
  for (int i = 1; i <= 8; i++)
    for (int j = 1; j <= 8; j++) {
      cin >> ch[i][j];
      if (ch[i][j] == 'S') {
        pt go;
        go.x = i;
        go.y = j;
        st.push_back(go);
      }
    }
  rec(8, 1, 0);
  cout << "LOSE";
}
