#include <bits/stdc++.h>

using namespace std;

vector<int> g[222222];
int f(int s, int p, int &u) {
	int m = -1;
	u = s;
	for (auto i : g[s]) {
		if (i == p) continue;
		int v;
		int j = f(i, s, v);
		if (m < j) m = j, u = v;
	}
	return m + 1;
}
int main() {
	int n;
	cin >> n;
	for (int i = 1; i < n; i++) {
		int a, b;
		scanf("%d%d", &a, &b);
		g[a].push_back(b);
		g[b].push_back(a);
	}
	int u, v;
	f(1, 0, u);
	int c = f(u, 0, v);
	cout << (c % 3 == 1 ? "Second" : "First") << endl;
	return 0;
}
