import java.io.*; import java.util.*; public class No013 { static int[][] map; static boolean[][] bool_map; static int w; static int h; static boolean[][] dp; public static void main(String[] args) throws IOException { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st=new StringTokenizer(br.readLine()); w=Integer.parseInt(st.nextToken()); h=Integer.parseInt(st.nextToken()); map=new int[h][w]; bool_map=new boolean[h][w]; dp=new boolean[h+1][w+1]; for(int i=0;i0 && map[tate-1][yoko]==map[tate][yoko] && course!=1){ if(bool_map[tate-1][yoko] || dfs(tate-1,yoko,3)){ System.out.println("possible"); System.exit(0); } }if(yoko0 && map[tate][yoko-1]==map[tate][yoko] && course!=4){ if(bool_map[tate][yoko-1] || dfs(tate,yoko-1,2)){ System.out.println("possible"); System.exit(0); } } dp[tate][yoko]=true; bool_map[tate][yoko]=false; return false; } }