10 5
9 6
import sys
s=sys.stdin.read().strip().split()
if not s: sys.exit(0)
x=int(s[0]); y=int(s[1])
x=x+y
y=y+1
x=x-y
sys.stdout.write(f"{x} {y}")
import sys
s=sys.stdin.read().strip().split()
if not s: sys.exit(0)
x=int(s[0]); y=int(s[1])
x=x+y
y=y+1
x=x-y
sys.stdout.write(f"{x} {y}")