import java.util.*; import java.io.*; public class grid { static long x,y; static long [][] ways; public static final String INFILE="grid.in"; public static void main(String[] args) throws Exception{ long count; BufferedReader br= new BufferedReader(new InputStreamReader(new FileInputStream(INFILE))); StringTokenizer tok; try { while (true) { tok=new StringTokenizer(br.readLine().trim()); x=Long.parseLong(tok.nextToken()); y=Long.parseLong(tok.nextToken()); if (x==0 && y==0) System.exit(0); ways=new long[(int)x][(int)y]; for (int x=0;x