*G=gets
$<.map{|l|x=l.split.map &:to_i;x.map{|a|G[a]=[*G[a],*x]}}
puts G[1]&&(d,*v=->i{a=[[i,1]];(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];v.max%3>1)?:Second: :First