N=gets.to_i
$g=[*1..N].map{[]}
dfs=->(x,v,d){(t=($g[v]-[x]))!=[]?t.map{|i|dfs(v,i,d+1)}.max_by{|i|i[0]}:[d,v]}
N.downto(2){
a,b=gets.split.map &:to_i
$g[a-1]<<b-1
$g[b-1]<<a-1
}
r=dfs[-1,0,0]
puts dfs[-1,r[1],0][0]%3==1?:Second: :First