Luke and Lucy are caught in a traffic jam, and they are bored, so they create a new game to play. The board is a street divided into small cells, numbered from 1. Some cars are standing on the street.
Lucy plays first, and in each turn, a player can take one car and moves it toward 1. A car cannot stand in a place where another car already is, and cannot jump over other cars. The player who makes the last move (after which cars are standing in positions ) wins.
Who will win the game, assuming that both players play optimally?
The first line of input contains a single integer N, the number of cars ().
For = 1 to , -th following line contains , the number of the cell where -th car is standing, .
Output either Lucy or Luke.
Author: Eryk Kopczynski
Generation: 2026-01-25T13:24:30.492Z
© Jutge.org, 2006–2026.
https://jutge.org