Replace each element with product of every other element

EASY

Given an input string with numbers separated by a single space.

Replace each element of the string with product of every other element in the string.

For example, line "1 2 3"
New value instead "1" is "2 * 3 = 6". For "2" is "1 * 3 = 3". For "3" is "1 * 2 = 2"

Example #1

Input

1 2 3

Output

6 3 2

Solution