#include <bits/stdc++.h>
using namespace std;
long long a[2000], b[2000], num[2000];
int n, m;
int main() {
  memset(a, 0, sizeof(a));
  memset(b, 0, sizeof(b));
  memset(num, 0, sizeof(num));
  scanf("%d%d", &n, &m);
  for (int i = 1; i <= n; i++) {
    scanf("%I64d", &a[i]);
    if (a[i] <= m) {
      int c = a[i];
      num[c]++;
    }
  }
  int t = n / m;
  for (int i = 1; i <= n; i++) {
    b[i] = a[i];
    if (a[i] <= m) {
      if (num[a[i]] <= t)
        continue;
      else {
        bool ok = 0;
        for (int j = 1; j <= m; j++) {
          if (num[j] < t) {
            num[j]++;
            num[a[i]]--;
            ok = 1;
            b[i] = j;
            break;
          }
        }
        if (!ok) continue;
      }
    } else {
      bool ok = 0;
      for (int j = 1; j <= m; j++) {
        if (num[j] < t) {
          num[j]++;
          ok = 1;
          b[i] = j;
          break;
        }
      }
      if (!ok) continue;
    }
  }
  int ans = 0;
  for (int i = 1; i <= n; i++)
    if (a[i] != b[i]) ans++;
  printf("%d %d\n", t, ans);
  for (int i = 1; i <= n; i++) {
    if (i > 1) printf(" ");
    printf("%I64d", b[i]);
  }
  return 0;
}
