#include using namespace std; int main(){ ios_base::sync_with_stdio(false); cin.tie(nullptr); int N; cin >> N; vector T(N); for(int i=0; i> s; if(s == "Yes") T.at(i) = true; } vector answer(N); int now = 1; for(int i=0; i