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

#define ll long long

int main(){
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	cout.tie(NULL);
	
	char ch[3];
	for(ll i=0;i<3;i++) cin>>ch[i];
	
    char c = ch[0];
    if(ch[1]==c && ch[2]==c) cout<<"Won\n";
    else cout<<"Lost\n";
	
	return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main(){
  string s;
  cin>>s;
  if(s[0]==s[1]&&s[1]==s[2])
    cout<<"Won";
  else
    cout<<"Lost";
}