#C5148. Yearbook Signatures Update

    ID: 48765 Type: Default 1000ms 256MiB

Yearbook Signatures Update

Yearbook Signatures Update

You are given \(N\) students and an array \(A\) of length \(N\), where \(A[i]\) represents the initial number of signatures of the \(i\)-th student. In the yearbook, every student signs the yearbook of every other student. This means that each student receives a signature from each of the other \(N-1\) students. Your task is to update the array \(A\) such that for each \(i\), \(A[i] = A[i] + (N-1)\).

Input/Output Example:

Input:
3
0 0 0

Output: 2 2 2

</p>

Note: Use stdin for input and stdout for output. All formulas are given in \(\LaTeX\) format for clarity.

inputFormat

The first line of input contains an integer \(N\) which denotes the number of students.

The second line contains \(N\) space-separated integers representing the initial signature count for each student.

outputFormat

Output a single line with \(N\) space-separated integers, where the \(i\)-th integer is the updated number of signatures for the \(i\)-th student.

## sample
3
0 0 0
2 2 2