프롬프트 없음
5 6 3 1 2 3 1 2 1 1 5 2 3 2 3 3 4 5 4 2 7 4 5 10
12
출처: USACO 2012 February Contest, Silver Division Problem 3. Relocation