#include <iostream>
#include <string>
#include <stdio.h>
#include <algorithm>
using namespace std;
int main()
{
char n;
while(cin>>n)
{
int a[3];
int b[3];
int i;
for(i=0;i<3;i++)
cin>>a[i];
for(i=0;i<3;i++)
cin>>b[i];
int x,y;
if(n=='W') {x=1;y=0;}
else {y=1;x=0;}
int c,d;
if((b[1]-a[2])>0) c=b[1]-a[2];
else c=0;
if((a[1]-b[2])>0) d=a[1]-b[2];
else {cout<<"Warrior loses"<<endl;continue;}
for(i=0;a[0]>0&&b[0]>0;i++)
{
if(i%2==x) a[0]=a[0]-c;
if(i%2==y) b[0]=b[0]-d;
}
if(a[0]>0) cout<<"Warrior wins";
else cout<<"Warrior loses";
cout<<endl;
}
return 0;
}
#include <string>
#include <stdio.h>
#include <algorithm>
using namespace std;
int main()
{
char n;
while(cin>>n)
{
int a[3];
int b[3];
int i;
for(i=0;i<3;i++)
cin>>a[i];
for(i=0;i<3;i++)
cin>>b[i];
int x,y;
if(n=='W') {x=1;y=0;}
else {y=1;x=0;}
int c,d;
if((b[1]-a[2])>0) c=b[1]-a[2];
else c=0;
if((a[1]-b[2])>0) d=a[1]-b[2];
else {cout<<"Warrior loses"<<endl;continue;}
for(i=0;a[0]>0&&b[0]>0;i++)
{
if(i%2==x) a[0]=a[0]-c;
if(i%2==y) b[0]=b[0]-d;
}
if(a[0]>0) cout<<"Warrior wins";
else cout<<"Warrior loses";
cout<<endl;
}
return 0;
}