#55111: python新手解法


ka2453@cnc.km.edu.tw (金湖國中Owen)


name=input().split()
words=input()
for i in range(len(name)):
 print(words+",",name[i])