a, b = map(int, input().split()) c, d = map(int, input().split()) u, v, x, y = a * a + b * c, a * b + b * d, c * a + d * c, c * b + d * d print(a * u + b * x, a * v + b * y) print(c * u + d * x, c * v + d * y)