Decide if the representation below is a function.
Input
1
3
-1
3
Output
3 9
-3
-12
