#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  while (1) {
    cin >> n >> m;
    if (n == 0 && m == 0) break;
    int result[255][20001];
    for (int i = 0; i < 255; i++) {
      for (int j = 0; j < 20001; j++) {
        result[i][j] = 0;
      }
    }
    break;
  }
  return 0;
}
