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

int main(){
	#ifndef ONLINE_JUDGE
	freopen("input.txt","r",stdin);
	freopen("output1.txt","w",stdout);
    #endif
    string s;
    cin >> s;
    if( (s[0]==s[1] && s[1]==s[2])){
    	cout << "Won";
    }
    else{
    	cout << "Lost";
    }
    return 0;
}
#include<bits/stdc++.h>

#define ll long long

using namespace std;

vector<int> primes;

ll isPrime(ll n){
	if(n==1){
		return 1;
	}
	for(int j=2; j*j<=n; j++){
		if(n%j==0){
			return 0;
		}
	}
	return 1;
}

void solve(){
	string in; cin >> in;
	set<char> s;
	for(int i=0; i<in.size(); i++){
		s.insert(in[i]);
	}
	if(s.size()==1){
		cout << "Won\n";
	}else{
		cout << "Lost\n";
	}
	return;
}

int main(){
	int t=1;
//	cin >> t;
	while(t--){
		solve();
	}
	return 0;
}