#include<cstdio> int main() { int a,b; scanf("%d%d",&a,&b); if(a<b)b+=a,a-=b,b+=a,a=-a; printf("%d\n%d",a,b); }