a = list(map(str,input().split()))b = a[0]a.pop(0)print(a[0],end=" ")for i in range(1, len(a)): print(b,a[i],end=" ")