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