Let p and q be two permutations of 1,2,…,N.
Similarity graph of p and q, S(p,q), is defined as following:
You are given a simple undirected graph G with N labeled vertices, numbered from 1 to N.
Find a pair (p,q) of permutations of 1,2,…,N, satisfying S(p,q)=G.
The first line contains one integer, N.
The next N lines contain space-separated N integers. The j-th integer of the i-th line is E(i,j). E(i,j) is 1 if there is an edge between vertex i and vertex j, and 0 otherwise.
If it is impossible to find p and q satisfying the condition, output NO.
Otherwise, output YES on the first line. On the following two lines, output p and q. If there are multiple answers, output any.