#C11914. Double the Values with Condition

    ID: 41283 Type: Default 1000ms 256MiB

Double the Values with Condition

Double the Values with Condition

You are given a list of integers. Your task is to output a new list where each element is doubled. However, if the input list is empty or contains the integer zero, you must print an empty list.

Formally, let the list be \(L = [a_1, a_2, \dots, a_n]\). You should output:

\[ \begin{cases} [] & \text{if } n = 0 \text{ or if } \exists\, a_i = 0, \\ [2a_1, 2a_2, \dots, 2a_n] & \text{otherwise.} \end{cases} \]

Input is read from standard input and output is printed to standard output. The output must be in the Python list format including brackets, commas, and spaces as shown in the examples.

Example:
Input:
3
1 2 3

Output: [2, 4, 6]

</p>

inputFormat

The input consists of two lines. The first line contains an integer \(n\) (where \(n \ge 0\)) representing the number of elements in the list. The second line contains \(n\) space-separated integers. When \(n = 0\), the second line may be empty.

outputFormat

Print the resulting list in Python list format. If the list is empty or contains a zero, print []. Otherwise, print the list of doubled integers, ensuring the format includes the square brackets, commas, and spaces exactly as shown.

## sample
0

[]