#include <bits/stdc++.h>
using namespace std;
string s[10];
bool flag[10][10], win;
vector<pair<int, int>> vec;
bool check(int x, int y) {
  if (x > 7 || y > 7 || x < 0 || y < 0) return false;
  return true;
}
void dfs(int t, int x, int y) {
  if (!check(x, y) || (x - t >= 0 && s[x - t][y] == 'S') || win ||
      (x - t + 1 >= 0 && s[x - t + 1][y] == 'S'))
    return;
  if (check(x, y) && t > 7) {
    win = true;
    return;
  }
  for (int i = -1; i < 2; i++)
    for (int j = -1; j < 2; j++) dfs(t + 1, x + i, y + j);
}
void read_input() {
  for (int i = 0; i < 8; i++) cin >> s[i];
}
void solve() {
  dfs(0, 7, 0);
  cout << (!win ? "LOSE" : "WIN");
}
int main() {
  read_input(), solve();
  return 0;
}
