#include <bits/stdc++.h>
using namespace std;
int a[2010];
int n, m;
int b[2010];
int main() {
  scanf("%d%d", &n, &m);
  memset(b, 0, sizeof(b));
  for (int i = 0; i < n; i++) {
    scanf("%d", &a[i]);
    if (a[i] <= m) {
      b[a[i]]++;
    }
  }
  int ans = 0;
  int j = 0;
  for (int i = 1; i <= m; i++) {
    if (b[i] < n / m) {
      for (; j < n; j++) {
        if (b[i] == n / m) {
          break;
        }
        if (a[j] <= m) {
          if (b[a[j]] > n / m) {
            b[a[j]]--;
            b[i]++;
            a[j] = i;
            ans++;
          }
        } else {
          a[j] = i;
          b[i]++;
          ans++;
        }
      }
    }
  }
  printf("%d %d\n", n / m, ans);
  for (int i = 0; i < n; i++) {
    if (i) printf(" ");
    printf("%d", a[i]);
  }
}
