*G=gets
~/^1$/&&(puts :First;exit)
$<.map{|l|eval"X="+l.split*?,;X.map{|a|G[a]||=[];G[a].push *X}}
d,*v=->i{a=[[i,0]]
(i,l=a.pop
v[i]=l
G[i].map{|j|v[j]||a<<[j,l+1]})while a[0]},0
d[1]
a=v.index v.max
*v=0
d[a]
puts v.max%3==1?:Second: :First