import sys
while True:
l = sys.stdin.readline().strip()
if l == '':
break
l=l.split(",")
lst.append(l)
import sys
while True:
l = sys.stdin.readline().strip()
if l == '':
break
l=l.split(",")
lst.append(l)