using System; public class Hello { static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var a = long.Parse(line[0]); var b = long.Parse(line[1]); line = Console.ReadLine().Trim().Split(' '); var c = long.Parse(line[0]); var d = long.Parse(line[1]); getAns(a, b, c, d); } static void getAns(long a, long b, long c, long d) { var n = a * c - b * d; var m = a * d + b * c; Console.WriteLine("{0} {1}", n, m); } }