import re
m = """
0 1 2 3 4 5
1 0 1 2 3 4
2 1 1 2 3 4
"""
print(re.sub(r'^', '{} ', m.strip(), flags=re.M).format(*list('bip')))