AA = input() BB = AA.split() CC = BB[0] + BB[1] DD = input() print(CC, DD)