#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  const int max_n = 3;
  const int max_m = 5;
  int s[max_m + 1];
  int c[max_m + 1];
  int num[max_n + 1];
  for (int i = 0; i < n; i++) num[i] = 0;
  cin >> n >> m;
  return 0;
}
