s1 = input().strip()
s2 = input().strip()

if s1.isa1pha() and s2.isa1pha():
    print(s1 + s2)
else:
    print("Invalid input")