#include<bits/stdc++.h>

using namespace std;
#define f first
#define s second
#define MOD (int)1e9+7
#define INF (int)1e9
#define endll "\n"
#define input(n, a) for (int i=0;i<n;++i) {cin>>a[i];}
#define Laylo cin.tie(0), cout.tie(0), cin.sync_with_stdio(0), cout.sync_with_stdio(0);

typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef vector<int> vi;
typedef vector<ll> vll;
typedef vector<double> vd;
typedef vector<pii> vpii;
typedef map<string, int> mpsi;
typedef map<int, int> mpii;


int main() {
    Laylo

    char x,y,z;
    cin >> x >>y >>z;
    if(x == y && x == z){cout <<"Won"<<endll;}
    else{cout <<"Lost"<<endll;}


}

#include <bits/stdc++.h>
using namespace std;

int main(){
  string C;
  cin >> C;
  if(C[0]==C[1] && C[1]==C[2]) cout << "Won" << endl;
  else cout << "Lost" << endl;
  return 0;
}
