| TheForces Round #15 (Yummy-Forces) |
|---|
| Finished |
You're given an array of integers $$$a = a_1a_2...a_n$$$, now you like to see number $$$69$$$ as many as possible in the array, for this goal there are two operations that can be used in a move :
Note that you can choose exactly one of the operations above at each moment and you can do each operation many times (possibly $$$0$$$), also numbers can become negative during the operations.
Now your task is to find the maximum number of $$$69$$$ you can obtain in the array.
In the first line of input you'll be given a number $$$n$$$ which shows the length of the array.
$$$$$$1 \le n \le 2000$$$$$$
In the second line you'll receive the array.
$$$$$$1 \le a_i \le 10^9$$$$$$
Print the maximum number of $$$69$$$ you can obtain with the given operations in the array.
7 64 69 72 72 72 69 64
4
7 72 77 71 5 73 71 72
5
Operations of testcase $$$2$$$ :
The array after the operations : $$$a = $$${$$$69, 74, 69, 3, 69, 69, 69$$$}.
| Name |
|---|


