#include <bits/stdc++.h>
using namespace std;
int a[2222];
int b[2222];
int vis[2222];
int main() {
  int n, m;
  while (~scanf("%d %d", &n, &m)) {
    for (int i = 1; i <= m; i++) b[i] = 0;
    for (int i = 0; i < n; i++) {
      scanf("%d", &a[i]);
      if (a[i] <= m) b[a[i]]++;
    }
    int sum = 0, len = 0, len1 = 0;
    for (int i = 1; i <= m; i++)
      if (b[i] < n / m)
        for (int j = b[i]; j < n / m; j++) vis[len++] = i;
    for (int i = 0; i < n && len != len1; i++)
      if (a[i] > m) a[i] = vis[len1++], sum++;
    for (int i = 1; i <= m; i++) b[i] = 0;
    for (int i = 0; i < n && len != len1; i++) {
      if (b[a[i]] < n / m)
        b[a[i]]++;
      else
        a[i] = vis[len1++], sum++;
    }
    printf("%d %d\n", n / m, sum);
    for (int i = 0; i < n; i++) {
      if (i) printf(" ");
      printf("%d", a[i]);
    }
    puts("");
  }
  return 0;
}
