#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int a[8][8];
  string s;
  for (int i = 0; i < 8; i++) {
    cin >> s;
    for (int j = 0; j < 8; j++) {
      if (s[j] == 'S')
        a[i][j] = 1;
      else
        a[i][j] = 0;
    }
  }
  int dp[8][8][9];
  for (int i = 0; i < 8; i++) {
    for (int j = 0; j < 8; j++) {
      for (int m = 0; m < 9; m++) dp[i][j][m] = 0;
    }
  }
  dp[7][0][0] = 1;
  for (int m = 1; m < 9; m++) {
    for (int i = 0; i < 8; i++) {
      for (int j = 0; j < 8; j++) {
        if ((i - m) >= 0 && a[i - m][j] == 1)
          dp[i][j][m] = 0;
        else if (i - (m - 1) >= 0 && a[i - m + 1][j] == 1)
          dp[i][j][m] = 0;
        else {
          if (i - 1 >= 0 && j - 1 >= 0 && dp[i - 1][j - 1][m - 1] == 1) {
            dp[i][j][m] = 1;
          } else if (i >= 0 && j - 1 >= 0 && dp[i][j - 1][m - 1] == 1) {
            dp[i][j][m] = 1;
          } else if (i + 1 < 8 && j - 1 >= 0 && dp[i + 1][j - 1][m - 1] == 1) {
            dp[i][j][m] = 1;
          } else if (j - 1 >= 0 && dp[i][j - 1][m - 1] == 1) {
            dp[i][j][m] = 1;
          } else if (dp[i][j][m - 1] == 1) {
            dp[i][j][m] = 1;
          } else if (j + 1 < 8 && dp[i][j + 1][m - 1] == 1) {
            dp[i][j][m] = 1;
          } else if (i + 1 < 8 && j - 1 >= 0 && dp[i + 1][j - 1][m - 1] == 1) {
            dp[i][j][m] = 1;
          } else if (i + 1 < 8 && dp[i + 1][j][m - 1] == 1) {
            dp[i][j][m] = 1;
          } else if (i + 1 < 8 && j + 1 < 8 && dp[i + 1][j + 1][m - 1] == 1) {
            dp[i][j][m] = 1;
          }
        }
      }
    }
  }
  for (int i = 0; i < 8; i++) {
    for (int j = 0; j < 8; j++) {
      if (dp[i][j][8] == 1) {
        cout << "WIN";
        return 0;
      }
    }
  }
  cout << "LOSE";
  return 0;
}
