VAO10-DE16
Bộ tộc trên đảo
Nộp bài
Time limit: 1.0 /
Memory limit: 256M
Point: 4

Ví dụ
Input
10
2
3
2
2
1
2
3
2
2
3
Output
5



