#3862. [Hnoi2010]chorus 合唱队

[Hnoi2010]chorus 合唱队

Background

Special for beginners, ^_^

Description

Format

Input

Output

Samples

4
1701 1702 1703 1704
8

Limitation