import java.util.*; public class janken { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt() + 1; int b = sc.nextInt() + 1; // 0 ・・・ グー,1 ・・・ チー,2 ・・・ パー if (a <= 3){ a = 0; }else if (b <= 3) { b = 0; } if (a > b) { System.out.println("won"); }else if(a == b){ System.out.println("draw"); }else{ System.out.println("lose"); } } }