#include <bits/stdc++.h>
using namespace std;
int m[10][10];
int rec(int x, int y, int t) {
  if (t == 8) return 1;
  if ((x < 1) || (x > 8) || (y < 1) || (y > 8)) return 0;
  if (m[x + t][y] == 2) return 0;
  if (m[x + t - 1][y] == 2) return 0;
  if (rec(x, y, t + 1)) return 1;
  if (rec(x + 1, y, t + 1)) return 1;
  if (rec(x - 1, y, t + 1)) return 1;
  if (rec(x, y + 1, t + 1)) return 1;
  if (rec(x, y - 1, t + 1)) return 1;
  if (rec(x + 1, y + 1, t + 1)) return 1;
  if (rec(x + 1, y - 1, t + 1)) return 1;
  if (rec(x - 1, y + 1, t + 1)) return 1;
  if (rec(x - 1, y - 1, t + 1)) return 1;
  return 0;
}
int main() {
  for (int i = 8; i > 0; i--) {
    for (int j = 1; j < 9; j++) {
      char c;
      cin >> c;
      if (c == '.') m[i][j] = 0;
      if (c == 'M') m[i][j] = 1;
      if (c == 'S') m[i][j] = 2;
    }
  }
  if (rec(1, 1, 0)) {
    cout << "WIN";
  } else {
    cout << "LOSE";
  }
  return 0;
}
