pn = [True for _ in range(10000)] pn[0] = False pn[1] = False for i in range(10000): if pn[i]: j = 2 while i * j <= 9999: pn[i * j] = False j += 1 pn_list = [] for i in range(10000): if pn[i]: pn_list.append(i) z = [0 for _ in range(10001)] z[2] = False z[3] = False for i in pn_list: if 2 + i <= 10000: z[2 + i] = True if 3 + i <= 10000: z[3 + i] = True for i in range(10001): for j in pn_list: if z[i] and i + j <= 10000 and z[i + j] == 0: z[i + j] = False if z[int(input())]: print("Win") else: print("Lose")