import sys input = sys.stdin.readline def subset(N, k): S = (1<> 1) | y return st N = int(input()) S = [list(map(int, input().split())) for _ in range(N)] dp = [[0] * N for _ in range(1<>i&1: for j in range(N): if Y>>j&1: dp[X|Y][i if S[i][j] else j] += dp[X][i] * dp[Y][j] * 2 k += 1 for i in range(N): print(dp[-1][i])