SP740 TRT - Treats for the Cows

Description

FJ has purchased N (1

Input Format

Line 1: A single integer, N Lines 2..N+1: Line i+1 contains the value of treat v(i)

Output Format

The maximum revenue FJ can achieve by selling the treats