#pragma GCC optimize("O3") #pragma GCC optimize("Ofast") #pragma GCC optimize("unroll-loops") #pragma GCC target("avx,avx2") #include #define INF 1000000001LL #define LNF 1000000000000000001LL #define MOD 1000000007LL #define MAX 300001 #define long long long #define all(x) x.begin(),x.end() using namespace std; void print(int x) { if(x) cout << "Yes\n"; else cout << "No\n"; } int main() { ios_base::sync_with_stdio(0); cin.tie(0); int n; cin >> n; string s; cin >> s; int pre = 0; if(s == "Yes") pre = 1; int res = pre; print(res); for(int i = 1; i> s; int cur = 0; if(s == "Yes") cur = 1; if(pre != (pre == cur)) res^=1; pre = cur; print(res); } return 0; }