import java.util.Arrays; import java.util.LinkedList; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); final int N = sc.nextInt(); boolean[] is_prime = new boolean[N + 1]; Arrays.fill(is_prime, true); is_prime[0] = is_prime[1] = false; List primes = new LinkedList(); for(int i = 2; i <= N; i++){ if(is_prime[i]){ primes.add(i); for(int j = i * 2; j <= N; j += i){ is_prime[j] = false; } } } boolean[] DP = new boolean[N + 1]; DP[0] = DP[1] = true; for(int i = 2; i <= N; i++){ boolean only_win = true; for(final int prime : primes){ if(prime > i){ break; } if(!DP[i - prime]){ only_win = false; break; } } DP[i] = !only_win; } //System.out.println(Arrays.toString(DP)); System.out.println(DP[N] ? "Win" : "Lose"); } }