A = list(map(int, input().split()))
B = list(map(int, input().split()))
C = [A[i-2]*B[i-1] - A[i-1]*B[i-2] for i in range(3)]
print(*C)