#include <bits/stdc++.h>
using namespace std;
struct estado {
  int i;
  int j;
  int m;
};
int di[9] = {-1, -1, -1, 0, 0, 0, 1, 1, 1};
int dj[9] = {-1, 0, 1, -1, 0, 1, -1, 0, 1};
int main() {
  string board[8];
  for (int i = 0; i < 8; i++) {
    cin >> board[i];
  }
  estado maria;
  maria.i = 7;
  maria.j = 0;
  maria.m = 0;
  bool win = false;
  queue<estado> cola;
  cola.push(maria);
  estado actual;
  estado pushear;
  while (!cola.empty()) {
    actual = cola.front();
    cola.pop();
    if (actual.i == 0 && actual.j == 7) {
      win = true;
      break;
    }
    for (int k = 0; k < 9; k++) {
      if (actual.i + di[k] < 0 || actual.i + di[k] > 7) continue;
      if (actual.j + dj[k] < 0 || actual.j + dj[k] > 7) continue;
      if (actual.m > 7) {
        pushear.i = actual.i + di[k];
        pushear.j = actual.j + dj[k];
        pushear.m = 10;
        cola.push(pushear);
      } else {
        pushear.i = actual.i + di[k];
        pushear.j = actual.j + dj[k];
        pushear.m = actual.m + 1;
        if (actual.i + di[k] - pushear.m < 0 ||
            board[actual.i + di[k] - pushear.m][actual.j + dj[k]] != 'S') {
          if (actual.i + di[k] - (pushear.m - 1) < 0 ||
              board[actual.i + di[k] - (pushear.m - 1)][actual.j + dj[k]] !=
                  'S') {
            cola.push(pushear);
          }
        }
      }
    }
  }
  if (win) {
    puts("WIN");
  } else {
    puts("LOSE");
  }
  return 0;
}
