#include <iostream>
#include <string>
using namespace std;
#define MAX 255
int myStrlen(char s[]);
bool myStrcat(char s1[], char s2[]);
int main()
{
char s1[MAX], s2[MAX];
cin.getline(s1,MAX);
cin.getline(s2,MAX);
bool kt = myStrcat(s1, s2);
if (kt==false) cout << "Khong noi duoc. Khong du bo nho.";
else cout << s1 << s2;
}
bool myStrcat(char s1[], char s2[]){
if (myStrlen(s1)+myStrlen(s2)>256) return false;
return true;
}
int myStrlen(char s[]){
int dem = 0;
for (int i=0;s[i]!='\0';i++) ++dem;
return dem;
}
CiNpbmNsdWRlIDxpb3N0cmVhbT4KI2luY2x1ZGUgPHN0cmluZz4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKI2RlZmluZSBNQVggMjU1CgppbnQgbXlTdHJsZW4oY2hhciBzW10pOwpib29sIG15U3RyY2F0KGNoYXIgczFbXSwgY2hhciBzMltdKTsKCmludCBtYWluKCkKewoJY2hhciBzMVtNQVhdLCBzMltNQVhdOwoJY2luLmdldGxpbmUoczEsTUFYKTsKCWNpbi5nZXRsaW5lKHMyLE1BWCk7Cglib29sIGt0ID0gbXlTdHJjYXQoczEsIHMyKTsKCmlmIChrdD09ZmFsc2UpIGNvdXQgPDwgIktob25nIG5vaSBkdW9jLiBLaG9uZyBkdSBibyBuaG8uIjsKICAgIGVsc2UgY291dCA8PCBzMSA8PCBzMjsKfQoKCmJvb2wgbXlTdHJjYXQoY2hhciBzMVtdLCBjaGFyIHMyW10pewogICAgaWYgKG15U3RybGVuKHMxKStteVN0cmxlbihzMik+MjU2KSByZXR1cm4gZmFsc2U7CiAgICByZXR1cm4gdHJ1ZTsKCn0KCmludCBteVN0cmxlbihjaGFyIHNbXSl7CiAgICBpbnQgZGVtID0gMDsKICAgIGZvciAoaW50IGk9MDtzW2ldIT0nXDAnO2krKykgKytkZW07CiAgICByZXR1cm4gZGVtOwp9Cg==