#include <bits/stdc++.h>
using namespace std;
const int MN = 10 + 10;
char map[MN][MN];
int now[2][MN][MN];
bool cu = 1;
int main() {
  for (int i = 0; i < 8; i++)
    for (int j = 0; j < 8; j++) {
      char c;
      cin >> c;
      if (c == 'M')
        now[0][i][j] = 1;
      else if (c == 'S')
        now[0][i][j] = 2;
    }
  while (1) {
    bool end = true;
    for (int i = 0; i < 8; i++)
      for (int j = 0; j < 8; j++)
        if (now[1 - cu][i][j] == 1) {
          end = false;
          break;
        }
    if (end) {
      cout << "LOSE" << endl;
      return 0;
    }
    if (now[1 - cu][0][0] == 1) {
      cout << "WIN" << endl;
      return 0;
    }
    for (int i = 0; i < 8; i++)
      for (int j = 0; j < 8; j++) now[cu][i][j] = 0;
    for (int i = 0; i < 8; i++)
      for (int j = 0; j < 8; j++)
        if (now[1 - cu][i][j] == 1) {
          now[cu][i][j] = 1;
          for (int k = i - 1; k <= i + 1; k++)
            for (int k2 = j - 1; k2 <= j + 1; k2++)
              if (k >= 0 && k2 >= 0 && k < 8 && k2 < 8) now[cu][k][k2] = 1;
        }
    for (int i = 0; i < 8; i++)
      for (int j = 0; j < 8; j++)
        if (now[1 - cu][i][j] == 2) now[cu][i][j] = 0;
    for (int i = 0; i < 8; i++)
      for (int j = 0; j < 8; j++)
        if (now[1 - cu][i][j] == 2) {
          if (i != 7) now[cu][i + 1][j] = 2;
        }
    cu ^= 1;
  }
  return 0;
}
