#include using namespace std; void fast_io() { ios::sync_with_stdio(false); std::cin.tie(nullptr); } int main() { fast_io(); int n; cin >> n; vector p(n); for (int i = 0; i < n; i++) { string s; cin >> s; p[i] = (s == "Yes"); } vector cum(n); cum[0] = p[0]; for (int i = 1; i < n; i++) { cum[i] = (cum[i - 1] == p[i]); } for (int i = 0; i < n; i++) { cout << (cum[i] ? "Yes" : "No") << endl; } return 0; }