s1 = input().strip()
s2 = input().strip()
ifs1.isalpha() and s2.isalpha():
print(s1+s2)
else:
print("invalid input")