while 1:a=input().split();[X+y in a==print(x+X+X+y+y+Y)for x,X in a for y,Y in a]