#include <bits/stdc++.h>
using namespace std;
const int MAX1 = 2000 + 5;
int n, m;
int IVal, ICha, IYu, a[MAX1], b[MAX1], j;
int main() {
  cin >> n >> m;
  IVal = n / m;
  IYu = n % m;
  ICha = 0;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] <= m) {
      b[a[i]]++;
      if (b[a[i]] > IVal) {
        b[a[i]]--;
        if (IYu > 0) {
          IYu--;
        } else {
          a[i] = m + 1;
        }
      }
    }
  }
  j = 1;
  for (int i = 0; i < n; i++) {
    if (a[i] > m) {
      while (b[j] == IVal) {
        j++;
      }
      if (j > m) {
        break;
      }
      ICha++;
      b[j]++;
      a[i] = j;
    }
  }
  printf("%d %d\n", IVal, ICha);
  for (int i = 0; i < n; i++) {
    printf("%d ", a[i]);
  }
  cout << endl;
  return 0;
}
