def main(): a,b=map(int,input().split()) c,d=map(int,input().split()) x=a*c-b*d y=a*d+b*c print(x,y) if __name__ == "__main__": main()