#include
using namespace std;
int main() {
// your code goes here
int n,a,number,digit;
cin>>n;
for(int i=0;i<n;i++)
{
cin>>number;
a=number;
int rev=0;
do
{
digit=number%10;
rev=rev*10+digit;
number=number/10;
}while(number!=0);
if(a==rev)
{
std :: cout<<"Wins"<<std :: endl;
}
else if(a!=rev)
{
cout<<"Loses"<<endl;
}
}
return 0;
}