import java.util.Scanner;
public class Main{
public static void main(String[]args){
Scanner in = new Scanner(System.in);
int a = in.nextInt();
int b = in.nextInt();
int [] arr = {a,b};
swap(arr, 0, 1);
System.out.println(arr[0] + ” ” + arr[1]);
}
public static void swap(int [] arr, int a, int b){
int temp = arr[a];
arr[a] = arr[b];
arr[b] = temp;
}
}