#include <bits/stdc++.h>
using namespace std;
int n, m;
int a[2005];
map<int, int> mp;
int main() {
  cin >> n >> m;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    mp[a[i]]++;
  }
  int k = n / m;
  int ans = 0;
  for (int i = 1; i <= m; i++) {
    for (int j = 0; j < n; j++) {
      if ((mp[a[j]] > k || a[j] > m) && mp[i] < k) {
        mp[i]++;
        ans++;
        mp[a[j]]--;
        a[j] = i;
      }
    }
  }
  printf("%d %d\n", k, ans);
  printf("%d", a[0]);
  for (int i = 1; i < n; i++) {
    printf(" %d", a[i]);
  }
  printf("\n");
  return 0;
}
