import java.util.Arrays; import java.util.Scanner; public class Main86 { public static void main(String[] args) { Main86 p = new Main86(); } char[][] map; public Main86() { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int m = sc.nextInt(); map = new char[n][]; for(int i=0;i(n+m)*4) break; for(int k=0;k<4;k++){ sx = j; sy = i; rec(j, i, k); res |= isOk(); } if(res) break; } if(tc>(n+m)*4 || res) break; } System.out.println(res ? "YES" : "NO"); } private boolean isOk() { boolean ok = true; for(int i=0;i