using System.Numerics; public class Program { public static void Main() { //BigInteger num = BigInteger.Parse(Console.ReadLine() ?? string.Empty); //int num = int.Parse(Console.ReadLine() ?? string.Empty); string[] str = (Console.ReadLine() ?? string.Empty).Trim().Split(' '); string[] str2 = (Console.ReadLine() ?? string.Empty).Trim().Split(' '); //string str = Console.ReadLine() ?? string.Empty; int ax = int.Parse(str[0]); int ay = int.Parse(str[1]); int az = int.Parse(str[2]); int bx = int.Parse(str2[0]); int by = int.Parse(str2[1]); int bz = int.Parse(str2[2]); int cx = (ay*bz)-(az*by); int cy = (az*bx)-(ax*bz); int cz = (ax*by)-(ay*bx); Console.WriteLine("{0} {1} {2}",cx,cy,cz); } }