#line 1 "lib/core.hpp" // Library and Editor Setting is here: https://github.com/Nihonielse/competitive-library #ifndef CORE_FILE #define CORE_FILE #include using namespace std; using ll = long long; using ull = unsigned long long; #define rep(i, n) for (int i = 0; i < n; i++) #define rrep(i, n, s) for (int i = s; i < n; i++) #define vall(v) v.begin(), v.end() constexpr int INF = 1 << 30; constexpr int NEG_INF = -INF; constexpr ll LINF = 1ll << 62; constexpr ll NEG_LINF = -LINF; template inline bool chmax(T &a, const T &b) { if (a < b) { a = b; return true; } return false; } template inline bool chmin(T &a, const T &b) { if (a > b) { a = b; return true; } return false; } template using min_priority_queue = priority_queue,greater>; #endif #line 2 "codes/F.cpp" int main(){ int t; cin>>t; while(t--){ int h,w; cin>>h>>w; if(h<=2||w<=2){ cout<<"No"<