#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];
fgets(s1, 300, stdin);
fgets(s2, 300, stdin);
bool kt = myStrcat(s1, s2);
int len1 = myStrlen(s1);
int len2 = myStrlen(s2);
if(len1 + len2 > 255)
{
cout << "Khong noi duoc. Khong du bo nho.";
return 0;
}
for(int i = 0; i < len1; i++)
cout << s1[i];
s2[len2] = '\0';
for(int i = 0; i < len2; i++)
cout << s2[i];
}
bool myStrcat(char s1[], char s2[])
{
return true && false;
}
int myStrlen(char s[])
{
int k = 0;
while(s[k] != '\0' && s[k] != '\n' && s[k] != '\r')
k++;
return k;
}
CiNpbmNsdWRlIDxpb3N0cmVhbT4KI2luY2x1ZGUgPHN0cmluZz4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKI2RlZmluZSBNQVggMjU1CgppbnQgbXlTdHJsZW4oY2hhciBzW10pOwpib29sIG15U3RyY2F0KGNoYXIgczFbXSwgY2hhciBzMltdKTsKCmludCBtYWluKCkKewogICAgY2hhciBzMVtNQVhdLCBzMltNQVhdOwogICAgZmdldHMoczEsIDMwMCwgc3RkaW4pOwogICAgZmdldHMoczIsIDMwMCwgc3RkaW4pOwogICAgYm9vbCBrdCA9IG15U3RyY2F0KHMxLCBzMik7CiAgICBpbnQgbGVuMSA9IG15U3RybGVuKHMxKTsKICAgIGludCBsZW4yID0gbXlTdHJsZW4oczIpOwogICAgaWYobGVuMSArIGxlbjIgPiAyNTUpCiAgICB7CiAgICAgICAgY291dCA8PCAiS2hvbmcgbm9pIGR1b2MuIEtob25nIGR1IGJvIG5oby4iOwogICAgICAgIHJldHVybiAwOwogICAgfQogICAgZm9yKGludCBpID0gMDsgaSA8IGxlbjE7IGkrKykKICAgICAgICBjb3V0IDw8IHMxW2ldOwogICAgczJbbGVuMl0gPSAnXDAnOwogICAgZm9yKGludCBpID0gMDsgaSA8IGxlbjI7IGkrKykKICAgICAgICBjb3V0IDw8IHMyW2ldOwp9Cgpib29sIG15U3RyY2F0KGNoYXIgczFbXSwgY2hhciBzMltdKQp7CiAgICByZXR1cm4gdHJ1ZSAmJiBmYWxzZTsKfQoKaW50IG15U3RybGVuKGNoYXIgc1tdKQp7CiAgICBpbnQgayA9IDA7CiAgICB3aGlsZShzW2tdICE9ICdcMCcgJiYgc1trXSAhPSAnXG4nICYmIHNba10gIT0gJ1xyJykKICAgICAgICBrKys7CiAgICByZXR1cm4gazsKfQoK