from itertools import product

for xs in product(range(1, 5), repeat=3):
	print(str(xs))
