#include using namespace std; //#include //using namespace atcoder; using ll=long long; using Graph=vector>; #define MOD 998244353 #define INF 1000000000000000000 #define MAX 2000 int main(){ int N; cin>>N; vector A(N); vector> B(N,vector(N)); for(int i=0;i>A[i]; } for(int i=0;i>B[i][j]; } } vector dp(1<>=1; k++; } bit=i-(1<>=1; } } ll score=0; int bit=0; for(int i=0;i<(1<=score){ bit=i; score=dp[i]; } } vector ans; for(int i=0;i>i)&1)==1){ ans.push_back(i+1); } } cout<