Traffic Jam X05864


Statement
 

pdf   zip

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.

image

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 1,2,,N1, 2, \ldots, N) wins.

Who will win the game, assuming that both players play optimally?

Input

The first line of input contains a single integer N, the number of cars (1N100001 \leq N \leq 10000).

For ii = 1 to NN, ii-th following line contains aia_i, the number of the cell where ii-th car is standing, 1a1a2aN1000000001 \leq a_1 \leq a_2 \cdots a_N \leq 100000000.

Output

Output either Lucy or Luke.

Public test cases
  • Input

    5
    1
    2
    3
    4
    5
    

    Output

    Luke
    
  • Input

    5
    2
    3
    4
    5
    6
    

    Output

    Lucy
    
  • Input

    6
    1
    3
    6
    9
    10
    14
    

    Output

    Luke
    
  • Information
    Author
    Eryk Kopczynski
    Language
    English
    Official solutions
    Unknown.
    User solutions
    C++