c=int(input())d=int(input())c=c+dd=c-d;c=c-d;print(c,d)
3 6
6 3
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!