#include<iostream>
using namespace std;
int main()
{
	string s;
	cin>>s;
	int c=0;
	for(int i=0;i<s.length()-1;i++)
		{
			if(s[i]==s[i+1])
			{
            c++;
			}
		}
		if(c==2)
		{
			cout<<"Won";
		}else
		{
			cout<<"Lost";
		}

}
#include <iomanip>
#include <iostream>
#include <string>
#include <vector>

int main()
{
    std::string str;
    std::cin >> str;
    for (auto c : str) {
        if (c == '.')
            break;
        std::cout << c;
    }
    std::cout << "\n";
    return 0;
}
