An -row, -column grid is given. . denotes an empty cell and # denotes a student. Place exactly one box of Pepero in every empty cell and choose its direction.
- gives one Pepero to every student in its row.| gives one Pepero to every student in its column.Other boxes and students do not block delivery. Determine whether all students can receive at least one Pepero, and construct such an assignment if possible.
The input is given in the following format:
If no assignment exists, print NO. Otherwise, print YES, followed by lines of characters describing the assignment. Keep every original # unchanged and replace every original . with either - or |. If there are multiple solutions, print any of them.
. or # ().is a string of length describing row .