#define _USE_MATH_DEFINES
#define INF 100000000

#include <iostream>
#include <sstream>
#include <cmath>
#include <cstdlib>
#include <algorithm>
#include <queue>
#include <stack>
#include <limits>
#include <map>
#include <string>
#include <cstring>
#include <set>
#include <deque>
#include <bitset>
#include <list>
#include <cctype>
#include <utility>

using namespace std;

typedef long long ll;
typedef pair <string,int> P;
typedef pair <int,int> Pn;
typedef pair <int,P> PP;

static const double EPS = 1e-8;

int cost[1000000][1<<5];
char stage[1000][1000];


int main(){
	int w,h;
	while(~scanf("%d %d",&w,&h)){
		for(int y=0;y<h;y++){
			char buf[1024];
			scanf("%s",buf);
			for(int x=0;x<w;x++){
				stage[y][x] = buf[x];
			}
		}
	}
}