import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] dp = new int[n + 1]; for(int i = 2; i < n + 1; i++) { int p = 0; int m = i; for(int j = 2; j < i - 1; j++) { if((m % j) == 0) { if(dp[i - j] == 0) p++; while((m % j) == 0) { m /= j; } } } if(p > 0) dp[i] = 1; } String ans = "Win"; if(dp[n] == 0) ans = "Lose"; for(int i = 0; i < 11; i++) { System.out.println(dp[i]); } System.out.println(ans); } }