#include<iostream> using namespace std; int main(){ long long a=0,b=0,c=0; cin>>a>>b; if(a>b){ c=a; a=b; b=c; } cout<<a<<" "<<b<<endl; return 0; }