import java.util.ArrayList; import java.util.Arrays; import java.util.Scanner; public class Main { static ArrayList PrimeList=new ArrayList<>(); public static void main(String[] args){ Scanner sc=new Scanner(System.in); int n=sc.nextInt(); boolean isPrime[]=new boolean[n+1]; isPrime=isPrime(n); //for(int i=0;i<=n;i++){ //System.out.println("isPrime["+i+"]="+isPrime[i]); //} PrimeList=PrimeList(n); if(judge(n)){ System.out.println("Win"); }else{ System.out.println("Lose"); } } public static boolean[] isPrime(int n){ boolean isPrime[]=new boolean[n+1]; Arrays.fill(isPrime, true); isPrime[0]=false; isPrime[1]=false; for(int i=2;i PrimeList(int n){ ArrayList PrimeList=new ArrayList<>(); boolean[] isPrime=new boolean[n+1]; isPrime=isPrime(n); for(int i=2;i<=n;i++){ if(isPrime[i]){ PrimeList.add(i); } } return PrimeList; } //judge(n)の数字で回って来た時の自分の勝ち負けを調べる。 public static boolean judge(int n){ boolean judge=false; int p; for(int i=0;i