The first line has four integers ...
If there is no solution, output "NO" (without double quotation marks).If there exists solutions, you only need to output any one: output three lines, the i-th line has one strings .
1 2 3 4
aqcc abpp abcc
1 2 3 3
NO