#include using namespace std; int main() { int N; cin >> N; vector P(N); for (int i = 0; i < N; i++) { string s; cin >> s; P[i] = s == "Yes"; } bool now = true; for (int i = 0; i < N; i++) { if (now == P[i]) { cout << "Yes\n"; } else { cout << "No\n"; } now = now == P[i]; } }