// editor5
#include<stdio.h>
void swap(int *x,int *y){
    int a=*x;
    int b=*y;
    int temp=a;
    a=b;
    b=temp;
}
int main(){
    int a,b;
    scanf("%d %d",&a,&b);
    if(a<0 || b<0){
        printf("Invalid input");
        return 0;
    }
    printf("%d %d",swap(a,b));
    return 0;
}