A = tuple(map(int,input().split())) B = tuple(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)