import numpy as np A = list(map(int, input().split())) B = list(map(int, input().split())) C = np.cross(A,B) print(' '.join(map(str, C.tolist())))