{"trustable":true,"sections":[{"title":"","value":{"format":"HTML","content":"A square township has been divided up into n*m(n rows and m columns) square plots (1\u0026lt;\u003dN,M\u0026lt;\u003d8),some of them are blocked, others are unblocked. The Farm is located in the lower left plot and the Market is located in the lower right plot. Tony takes her tour of the township going from Farm to Market by walking through every unblocked plot exactly once.\r\u003cbr\u003eWrite a program that will count how many unique tours Betsy can take in going from Farm to Market. \r\u003cbr\u003e"}},{"title":"Input","value":{"format":"HTML","content":"The input contains several test cases. The first line of each test case contain two integer numbers n,m, denoting the number of rows and columns of the farm. The following n lines each contains m characters, describe the farm. A \u0027#\u0027 means a blocked square, a \u0027.\u0027 means a unblocked square.\r\u003cbr\u003eThe last test case is followed by two zeros.\r\u003cbr\u003e"}},{"title":"Output","value":{"format":"HTML","content":"For each test case output the answer on a single line."}},{"title":"Sample","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e2 2\r\n..\r\n..\r\n2 3\r\n#..\r\n...\r\n3 4\r\n....\r\n....\r\n....\r\n0 0\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e1\r\n1\r\n4\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}