import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int N = scan.nextInt(); scan.close(); boolean prime[] = new boolean[N+1]; for(int i=2; i<=N; i++) { prime[i] = true; } for(int i=2; i=2; j--) { if(prime[j]) { if(i-j >= 2 && !dp[i-j]) { dp[i] = true; break; } } } } if(dp[N]) { System.out.println("win"); } else { System.out.println("lose"); } } }