#include <bits/stdc++.h>
using namespace std;
const int maxn = 1000 + 10;
string s[8];
bool a[64][8][8];
void shift() {
  for (int i = 7; i > 0; i--) {
    s[i] = s[i - 1];
  }
  s[0] = string(8, '.');
}
int main() {
  for (int i = 0; i < 8; i++) {
    cin >> s[i];
  }
  a[0][7][0] = 1;
  for (int i = 0; i < 50; i++) {
    for (int j = 0; j < 8; j++) {
      for (int k = 0; k < 8; k++) {
        for (int z = -1; z <= 1; z++) {
          for (int l = -1; l <= 1; l++) {
            int nx = j + z, ny = k + l;
            if (0 <= nx && nx < 8 && 0 <= ny && ny < 8) {
              if (a[i][j][k] && s[nx][ny] != 'S' &&
                  (!nx || s[nx - 1][ny] != 'S')) {
                a[i + 1][nx][ny] = 1;
              }
            }
          }
        }
      }
    }
    if (a[i][0][7] == 1) {
      cout << "WIN" << endl;
      return 0;
    }
    shift();
  }
  cout << "LOSE" << endl;
  return 0;
}
