Problem:
Problem Statement

There are N piles of candies on the table. The piles are numbered 1 through N. At first, pile i contains a_i candies.

Snuke and Ciel are playing a game. They take alternating turns. Snuke goes first. In each turn, the current player must perform one of the following two operations:

Choose a pile with the largest number of candies remaining, then eat all candies of that pile.

From each pile with one or more candies remaining, eat one candy.

The player who eats the last candy on the table, loses the game. Determine which player will win if both players play the game optimally.

Constraints

1≤N≤10^5

1≤a_i≤10^9

Input

The input is given from Standard Input in the following format:

N
a_1 a_2 … a_N

Output

If Snuke will win, print First. If Ciel will win, print Second.

Sample Input 1

2
1 3

Sample Output 1

First

At the beginning of the game, pile 2 contains the most candies. If Snuke eats all candies of this pile, Ciel has no choice but to eat the last candy.

Sample Input 2

3
1 2 1

Sample Output 2

First

If Snuke eats one candy from each pile, Ciel is again left with the last candy.

Sample Input 3

3
1 2 3

Sample Output 3

Second

Solution in C# (Mono 4.6.2.0) (judge verdict: Time Limit Exceeded)

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections;
using System.Diagnostics;

namespace CompetitiveProgramming
{
  class Solve
  {
    int N;
    int[] a;
    
    private int getMaxIndex() 
    {
      int index = -1;
      int M = -1;
      for (int i = 0; i < N; i++) 
      {
        if (a[i] > M) 
        {
          M = a[i];
          index = i;
        }
      }

      return index;
    }

    private void eatAll()
    {
      for (int i = 0; i < N; i++)
      {
        a[i]--;
      }
    }

    private void dumpAll()
    {
      for (int i = 0; i < N; i++)
      {
        a[i]++;
      }
    }

    bool isWin()
    {
      for (int i = 0; i < N; i++)
      {
        if (a[i] > 0)
        {
          break;
        }
        if (i == N - 1)
        {
          return true;
        }
      }
      bool win = false;

      int index = getMaxIndex();
      int temp = a[index];
      a[index] = 0;
      win |= isWin();
      a[index] = temp;
      eatAll();
      win |= isWin();
      dumpAll();

      return !win;
    }

    public Solve()
    {
      N = int.Parse(Console.ReadLine());
      a = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();

      bool ans = isWin();
      if (ans) 
      {
        Console.WriteLine("First");
      } else {
        Console.WriteLine("Second");
      }

    }
  }

  class Program
  {
    static void Main(string[] args)
    {
      new Solve();
    }
  }
}