10 lines
170 B
Python
10 lines
170 B
Python
|
import sys
|
||
|
from itertools import product
|
||
|
|
||
|
options = []
|
||
|
for line in sys.stdin:
|
||
|
options.append(line.strip().split())
|
||
|
|
||
|
for i in product(*options):
|
||
|
print ' '.join(i)
|