#include <bits/stdc++.h>
using namespace std;
int a[2500];
map<int, int> mp;
int main() {
  int n, m;
  cin >> n >> m;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    mp[a[i]]++;
  }
  int k = 0;
  int mn = n / m;
  for (int i = 0; i < n; i++) {
    if (a[i] > m || mp[a[i]] > mn) {
      for (int j = 1; j <= m; j++) {
        if (j != a[i] && mp[j] < mn) {
          mp[a[i]]--;
          mp[j]++;
          a[i] = j;
          k++;
          break;
        }
      }
    }
  }
  cout << mn << " " << k << endl;
  for (int i = 0; i < n; i++) {
    cout << a[i] << " ";
  }
}
