Let us number the colors from 1 to n. Let c_i,j be 0 if i=j, and the color of the edge (i,j) in your coloring otherwise (in particular, in this case c_i,j=c_j,i). Print c_i,j in 7n lines containing 7n numbers each.
It is guaranteed that a solution exists.