#29862: python新手解答


422596@st.tc.edu.tw (殤)


a=list(input().split(' '))

c=a[1]

for b in range(len(a)-2):

    c=c+" "+a[0]+' '+a[b+2]

print(c)