#include <iostream>
#include <string>
#include <windows.h>
using namespace std;
void printAlfabet(string first, string second);
int main()
{
string firstString;
string secondString;
cin >> firstString;
cin >> secondString;
printAlfabet(firstString, secondString);
return 0;
}
void printAlfabet(string first, string second)
{
if(first[0] > second[0])
{
cout << second << " " << first;
}
else
cout << first << " " << second;
}
Comments
Leave a comment