*G=gets
$<.map{x=_1.split.map &:to_i;x.map{|a|G[a]||=[];G[a].push *x}}
puts G[1]&&(d,*v=->i{a=[[i,1]]
(i,l=a.pop
v[i]=l
G[i].map{v[_1]||a<<[_1,l+1]})while a[0]},0
d[1]
a=v.index v.max
*v=0
d[a]
v.max%3>1)?:Second: :First