354 - Simple Equation
Simple Equation
Time Limit: 1 sec
The Problem
Suppose two linear equations of x and y are given.
X + Y = m
X – Y = n
You have to find the value of x and y.
Example:
X + Y = 7
X – Y = 3
The value of (x, y) = (5, 2)
The Input
The input file contains several lines. Each line contains two integer numbers m (m<=100) and n (n<=100). Input file is terminated by end of file (EOF)
The Output
For each line of input the output file print the value of x and y separated by a space.
Sample Input
7 3
10 12
Sample Output
5 2
11 -1
Problem Setter: Samia Safa Ahmed