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

typedef long long int ll;

int main()
{
	// ios::sync_with_stdio(false);
	// cin.tie(NULL);

	ll i,j,k,l,m,n,t;

	char s,c;

	cin >> s;

	cin >> c;

	if(s == 'Y')
		cout << (char)toupper(c) << '\n';
	else
		cout << c << '\n';

	

}
#include<bits/stdc++.h>
using namespace std;
typedef unsigned long long ll; 
#define fi first
#define se second
#define endl '\n'
#define sf(n) scanf("%d",&n);
#define pf(n) printf("%d\n",n);
#define fast_io ios_base::sync_with_stdio(0); cin.tie(0)
int main()
{
	fast_io;
	
	char v1,v2,v3;
	cin >> v1 >> v2 >> v3;

	if(v1==v2 && v2==v3){
		cout << "Won" << endl;
	}
	else{
		cout << "Lost" << endl;
	}
	
	return 0;

}
