a = input () b = input () c = a.spilit( ) d = c[0]+c[1] print(d+" "+b)