#include <bits/stdc++.h>
using namespace std;
long long num[2005];
int book[2005];
int main() {
  int m, n;
  scanf("%d %d", &n, &m);
  long long t;
  for (int i = 0; i < n; i++) {
    scanf("%lld", &t);
    num[i] = t;
    if (t <= m) book[t]++;
  }
  int x = n / m;
  int cnt = 0;
  int flag = 0;
  for (int i = 0; i < n; i++) {
    if (num[i] <= m) {
      if (book[num[i]] > x) {
        int p = num[i];
        for (int j = 1; j <= m; j++) {
          if (book[j] < x) {
            num[i] = j;
            book[j]++;
            cnt++;
            flag = 1;
            break;
          }
        }
        if (flag) book[p]--;
        flag = 0;
      }
    } else {
      for (int j = 1; j <= m; j++) {
        if (book[j] < x) {
          num[i] = j;
          book[j]++;
          cnt++;
          break;
        }
      }
    }
  }
  printf("%d %d\n", x, cnt);
  for (int i = 0; i < n; i++) printf("%d ", num[i]);
}
