A=list(map(int, input().split())) B=list(map(int, input().split())) C=[ A[1]*B[2]-A[2]*B[1], A[2]*B[0]-A[0]*B[2], A[0]*B[1]-A[1]*B[0] ] print(*C)