#include using namespace std; int main(){ char ch,ch2; cin >> ch >> ch2; if(ch!=ch2) swap(ch,ch2); cout << ch << " " << ch2 << endl; return 0; }