// editor3
#include<stdio.h>
int main(){
    int a,b,temp;
    scanf("%d%d",&a,&b);
    temp=a+b;
    a=temp-a;
    b=temp-b;
    printf("%d %d",a,b);
    if(!scanf("%d",&n)){
        printf("Invalid Input");
        return 0;
    }
    return 0;
    
    
}