import static java.lang.System.*; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Scanner; public class JanKen_03 { static final int[] myvalidValues = {0,2}; static final int[] yourvalidValues = {0,2}; static final int GU = 0; static final int TYOKI = 0; static final int PA = 0; //勝敗 static final String KATI = "Won"; static final String MAKE = "Lost"; static final String AIKO = "Drew"; public static void main(String[] args) { Scanner sc = new Scanner(System.in); BufferedReader reader = new BufferedReader(new InputStreamReader(in)); int myHand = 0; int yourHand = 0; try{ String[] inputs = reader.readLine().split(" "); myHand = Integer.parseInt(inputs[0]); yourHand = Integer.parseInt(inputs[1]); if(validNum(myHand, yourHand, myvalidValues, yourvalidValues )){ System.out.println(janKen(myHand, yourHand)); } }catch(NumberFormatException ne){ System.out.println("1~2の数字を入力してください"); }catch(IOException io){ System.out.println("読込中にエラーが起きました"); }finally{ try{ reader.close(); }catch(IOException io){ System.out.println("BufferedReaderのクローズに失敗しました"); } } } static boolean validNum(int myHand,int yourHand,int[] myvalidValues,int[] yourvalidValues ){ boolean result = false; if(myHand >= myvalidValues[0] && myHand <= myvalidValues[1] && yourHand >= yourvalidValues[0] && yourHand <= yourvalidValues[1]){ return true; } return result; } static String janKen(int myHand,int yourHand){ switch(myHand - yourHand){ case -1: case 2 : return KATI; case 0 : return AIKO; default : return MAKE; } } }