XxOoRr XXOORR

Read problem statements in Bengali, Mandarin Chinese, Russian, and Vietnamese as well.

Given an array $A_1, A_2 \ldots A_N$, find the minimum number of operations (possibly zero) required to convert all integers in $A$ to $0$.

In one operation, you

Input

Output

For each test case, output the minimum number of operations to make all elements of the array $0$.

Constraints

Subtasks

Sample Input

1
3 2
3 6 10

Sample Output

5

Explanation

Here is one way to achieve $[0, 0, 0]$ from $[3, 6, 10]$ in $5$ operations:

  1. Choose $p = 0$ and indices ${1}$. Now $A$ becomes $[2, 6, 10]$.
  2. Choose $p = 1$ and indices ${1,2}$. Now $A$ becomes $[0, 4, 10]$.
  3. Choose $p = 1$ and indices ${3}$. Now $A$ becomes $[0, 4, 8]$.
  4. Choose $p = 2$ and indices ${2}$. Now $A$ becomes $[0, 0, 8]$.
  5. Choose $p = 3$ and indices ${3}$. Now $A$ becomes $[0, 0, 0]$.

It can be shown that at least $5$ operations are required.