Return an array where each element is the product of all the other elements. Do not use division.
Input: one line of space-separated integers. Output: the resulting array, space-separated.
Your program reads from stdin and prints to stdout.
Example 1
Input: 1 2 3 4
Output: 24 12 8 6
Hints