#include #include #include #include #include int main(void) { char tf1; char tf2; scanf("%c %c",&tf1,&tf2); if(tf1==tf2) { printf("%c %c",tf1,tf2); } else { printf("%c %c",tf2,tf1); } }