#include<bits/stdc++.h>
using namespace std;
char c2,c1,c3;
int main()
{
	c1=getchar(),c2=getchar(),c3=getchar();
	if (c1==c2&&c2==c3) printf("Won\n");
	else printf("Lost\n");
	return 0;
}
#include<bits/stdc++.h>
using namespace std;
#define MAX 101

int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    string slots;
    cin>>slots;
    if(slots[0]==slots[1]&&slots[1]==slots[2])
        cout<<"Won";
    else
        cout<<"Lost";
    return 0;
}
