# Practice on Toph

Participate in exhilarating programming contests, solve unique algorithm and data structure challenges and be a part of an awesome community.

Participate in exhilarating programming contests, solve unique algorithm and data structure challenges and be a part of an awesome community.

Limits
1s, 512 MB

October month of year 20** has been wonderful for our department .One team from our department has just arrived to KUET participating in the word final of ”ACM ICPC” and at the same time our department became champion in inter department football tournament.What a coincidence!!! I will tell you the story later, let’s solve a problem for this time!!! Today is the prize giving ceremony but “Man of the Tournament” of this tournament yet to be decided. Committee members are having tough time with the calculations, they decided to go to the world finalist team for the solution.Then suddenly you have come to the committee saying “ Vhai, let them rest, ami bepar ta dekhtechi”. Then committee is describing the problem as follows:

You have got an array A consisting of N integers **A _{1},A_{2},…..A_{n}**.

Input starts with an integer **N (1 <= N <= 150)** which denotes the number of players in the tournament.
Second line contains **A _{1},A_{2},A_{3},…..A_{N} (0 <= Ai <= 50)** - the elements of the array

For each test case you have to print highest points gained by a single player. If all the player fail to achieve positive valued points then you will print “0” ( zero without quotation mark ).

Input | Output |
---|---|

3 10 20 50 2 4 6 | 940 |

Login to submit

Will be Updated soon!!!