Problem Description

For each index i, print product of all elements except arr[i]. Do it without using division.

Input Format

One line: n then n integers.

Output Format

One line: n outputs.

Sample Test Case

Input:
4 1 2 3 4
Output:
24 12 8 6

Constraints

1

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next