#include using namespace std; typedef signed long long ll; #undef _P #define _P(...) (void)printf(__VA_ARGS__) #define FOR(x,to) for(x=0;xB[0]) return _P("YES\n"); if(A[1]B[1]) return _P("YES\n"); if(A[2]