import java.util.ArrayList; import java.util.Arrays; import java.util.Scanner; public class Main { static ArrayList PrimeList=new ArrayList<>(); static int[] judge; public static void main(String[] args){ Scanner sc=new Scanner(System.in); int n=sc.nextInt(); judge=new int[n+1]; Arrays.fill(judge, 0);//0は未探索とする 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 j=false; int p; if(judge[n]==1)return true; if(judge[n]==-1)return false; for(int i=0;i