Write a program that takes in a list of integers and produces a new list of scaled integer values. The value of each will be the original value multiplied by its neighbors.
There will be an unknown number of inputs each on its own line. Each input will contain an unknown number of values separated by spaces.
Display the result of each input on its own line, with each value separated by a single space.