#include<stdio.h> int main() { int m,n; while(scanf("%d %d",&n,&m)!=EOF) { if(n>=m) printf("%d %d",n,m); else printf("%d %d",m,n); } return 0; }