import java.util.Scanner; class no264 { public static void main( String args[] )throws java.io.IOException { int a, b; System.out.println("0:グー 1:チョキ 2:パー"); Scanner jan = new Scanner(System.in); a = jan.nextByte(); b = jan.nextByte(); if( a == 0 ) { if( b == 0 ) System.out.println("draw"); if( b == 1 ) System.out.println("won"); if( b == 2 ) System.out.println("lost"); } if( a == 1 ) { if( b == 0 ) System.out.println("lost"); if( b == 1 ) System.out.println("draw"); if( b == 2 ) System.out.println("won"); } if( a == 2 ) { if( b == 0 ) System.out.println("won"); if( b == 1 ) System.out.println("lost"); if( b == 2 ) System.out.println("draw"); } } }