#include int main() { int t, T, X, Y; scanf("%d", &T); for (t = 1; t <= T; t++) { scanf("%d %d", &X, &Y); if (X == 1 && Y > 1) printf("No\n"); else printf("Yes\n"); } fflush(stdout); return 0; }