#include using namespace std; int main(){ // FILE* fp_in = freopen("data.txt", "r", stdin); int n; cin >> n; bool founded[n]; for(int i=0; i> s; if(s.compare("nyanpass") != 0 && s.compare("-") != 0){ founded[j] = false; } } } int renchon = 0; for(int i=0; i 0){ // 特定できず renchon = 0; break; } renchon = (i+1); } } if (renchon > 0) cout << renchon << endl; else cout << -1 << endl; return 0; }