4721: P8787 [蓝桥杯 2022 省 B] 砍竹子
          Memory Limit:128 MB
          Time Limit:1.000 S
         
      
      
        
          Judge Style:Text Compare
          Creator:
      
      
          Submit:0
          Solved:0
      
Description

Input

Output

Sample Input Copy
6
2 1 4 2 6 7Sample Output Copy
5HINT
