#include <iostream>
using namespace std;

int main() {

    int a = 0;
    int b = 0;
    int c;
    cin >> a;
    cin >> b;
    c=a;
    a=b;
    b=c;
    //write your code here.......
    

    cout << a << " " << b << endl;
    
    return 0;
}