#include<bits/stdc++.h> using namespace std; int n,x,y,s; int main(){ cin>>x>>y; if(x>y){ cout<<y<<' '<<x; }else{ cout<<x<<' '<<y; } }