Logo
(追記) (追記ここまで)

15402번 - Cunning Friends 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
2 초 64 MB69333262.745%

문제

Anthony and his friends Ben and Chris decided to play a game. They have N piles of stones such that the i th-pile contains Ai stones. In one move a player chooses one pile and may take any non-zero number of stones from it. The players take turns. Anthony goes first then Ben and then Chris. If some player cannot make a move (no more stones exist) he loses. Ben colluded with Chris so their goal is to make Anthony lose. But Anthony doesn't want to lose. You have to find out if Anthony can avoid defeat if all players play optimally

입력

The first line contains one integer N (1 ≤ N ≤ 105).

The next line contains N integers Ai (1 ≤ Ai ≤ 109).

출력

Print "Lose" if Anthony will lose in this game and "Win" otherwise.

제한

예제 입력 1

3
2 2 1

예제 출력 1

Win

예제 입력 2

2
4 7

예제 출력 2

Lose

힌트

출처

ICPC > Regionals > Europe > Southeastern European Regional Contest > SEERC 2017 J번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /