local n = io.read("*n")
local edge = {}
local len = {}
for i = 1, n do
  edge[i] = {}
  len[i] = -1
end
for i = 1, n - 1 do
  local a, b = io.read("*n", "*n")
  edge[a][b], edge[b][a] = true, true
end
local tasks = {1}
len[1] = 0
for i = 1, n do
  local src = tasks[i]
  for dst, _u in pairs(edge[src]) do
    if len[dst] < 0 then
      len[dst] = len[src] + 1
      table.insert(tasks, dst)
    end
  end
end
local startpos = 1
for i = 2, n do
  if len[startpos] < len[i] then
    startpos = i
  end
end
tasks = {startpos}
for i = 1, n do
  len[i] = -1
end
len[startpos] = 0
for i = 1, n do
  local src = tasks[i]
  for dst, _u in pairs(edge[src]) do
    if len[dst] < 0 then
      len[dst] = len[src] + 1
      table.insert(tasks, dst)
    end
  end
end
local maxlen = 0
for i = 1, n do
  if maxlen < len[i] then maxlen = len[i] end
end
print(maxlen % 3 == 1 and "Second" or "First")
