22 token = l.split(
' ')[0]
26 return l.find(
'+') == -1
and l.find(
'-') == -1
28 if __name__ ==
'__main__':
35 l1 = sys.stdin.readline().strip()
36 l2 = sys.stdin.readline().strip()
37 itemsPerLine = getOffset(l2) - getOffset(l1)
42 for l
in [l1, l2] + sys.stdin.readlines():
49 tokens = l.strip().split(
' ')
55 if ntokens == itemPerLine:
67 lines.append(
', '.join(items))
69 print(
",\n".join(lines))