Write a program to take two numbers as input and print their difference if the first number is greater than the second number otherwise$otherwise$ print their sum.

-----Input:-----
- First line will contain the first number (N1$N1$)
- Second line will contain the second number (N2$N2$)

-----Output:-----
Output a single line containing the difference of 2 numbers (N1−N2)$(N1 - N2)$ if the first number is greater than the second number otherwise output their sum (N1+N2)$(N1 + N2)$.

-----Constraints-----
- −1000≤N1≤1000$-1000 \leq N1 \leq 1000$
- −1000≤N2≤1000$-1000 \leq N2 \leq 1000$

-----Sample Input:-----
82
28

-----Sample Output:-----
54

Source: codechef | Difficulty: UNKNOWN_DIFFICULTY


Solutions:
m = int(input())
n = int(input())
print(m - n) if m > n else print(m + n)


a = int(input())
b = int(input())
if a > b:
	print(a - b)
else:
	print(a + b)


n1 = int(input())
n2 = int(input())
print(n1 - n2) if n1 > n2 else print(n1 + n2)


from sys import *

def main():
	nbre1 = int(stdin.readline().strip())
	nbre2 = int(stdin.readline().strip())
	if nbre1 > nbre2:
		difference = nbre1 - nbre2
		stdout.write(str(difference))
	else:
		somme = nbre1 + nbre2
		stdout.write(str(somme))

def __starting_point():
	main()
__starting_point()


x = int(input())
y = int(input())
if x > y:
	print(x - y)
else:
	print(x + y)


num1 = int(input())
num2 = int(input())
if num1 > num2:
	print(num1 - num2)
else:
	print(num1 + num2)


(N1, N2) = (int(input()), int(input()))
if N1 > N2:
	print(N1 - N2)
else:
	print(N1 + N2)