#K85332. Add Two 2D Vectors
Add Two 2D Vectors
Add Two 2D Vectors
Given two 2D vectors \(\mathbf{v_1} = (x_1, y_1)\) and \(\mathbf{v_2} = (x_2, y_2)\), your task is to compute their sum \(\mathbf{v_1} + \mathbf{v_2} = (x_1+x_2, \; y_1+y_2)\).
The input will be provided via stdin and the result should be printed to stdout as two space-separated integers representing the resulting vector.
inputFormat
The input consists of a single line containing four space-separated integers:
- x1 and y1, the coordinates of the first vector
- x2 and y2, the coordinates of the second vector
You can assume that all numbers are integers.
outputFormat
Output the sum of the two vectors as two space-separated integers representing the x and y coordinates of the resulting vector.
## sample1 2 3 4
4 6