#include <bits/stdc++.h>
using namespace std;
int main()
{
	char a, b, c;
	cin >> a >> b >> c;
	if(a != b)
	{
		cout << "Lost" << endl;
		return 0;
	}
	if(a != c)
	{
		cout << "Lost" << endl;
		return 0;
	}
	if(b != c)
	{
		cout << "Lost" << endl;
		return 0;
	}
	cout << "Won" << endl;
	return 0;
}
//In the name of Almighty Allah
//Alhamdulillah
#include<bits/stdc++.h>
using namespace std ;
int main ()
{
    string s;
    cin >> s;
    if(s[0]==s[1] && s[1]==s[2])
    {
      cout << "Won\n";
    }
    else
    {
      cout << "Lost\n";
    }

    return 0;
}