using System;
using static System.Console;
using System.Linq;
using System.Collections.Generic;

class Program
{
    static int NN => int.Parse(ReadLine());
    static long[] NList => ReadLine().Split().Select(long.Parse).ToArray();
    static string[] SList(long n) => Enumerable.Repeat(0, (int)n).Select(_ => ReadLine()).ToArray();
    public static void Main()
    {
        Solve();
    }
    static void Solve()
    {
        var c = NList;
        var (h, w) = (c[0], c[1]);
        var s = SList(h);
        var x = 0;
        for (var j = 0; j < w; ++j)
        {
            var sum = 0;
            for (var i = 0; i < h; ++i) if (s[i][j] == 'o')
            {
                sum += i % 2 == 0 ? 1 : 2;
            }
            x ^= sum % 3;
        }
        WriteLine(x == 0 ? "Second" : "First");
    }
}