
#include <iostream>

using namespace std;

int main()
{
  char x ,y,z;
  cin>>x>>y>>z;

  if(x>=65&&x<=90)
  {
      if(y>=65&&y<=90)
      {
          if(z>=65&&z<=90)
          {
              if(x==y && y==z)
    cout<<"Won\n";
  else
      cout<<"Lost\n";

          }


      }
  }

    return 0;
}
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)

int main() {
    char c1, c2, c3;
    cin >> c1 >> c2 >> c3;
    string ans = "Lost";
    if (c1 == c2) {
        if (c2 == c3) {
            ans = "Won";
        }
    }
    cout << ans << endl;
    return 0;
}