#include <bits/stdc++.h>
using namespace std;
int arr[2005];
int main() {
  ios_base::sync_with_stdio(0);
  int n, m;
  cin >> n >> m;
  map<int, int> mym;
  for (int i = 1; i <= m; i++) mym[i] = 0;
  int maximumMinimum = n / m;
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
    if (arr[i] <= m) mym[arr[i]]++;
  }
  int ans = 0;
  for (map<int, int>::iterator it = mym.begin(); it != mym.end(); it++) {
    if (it->second < maximumMinimum) {
      for (int i = 0; i < n; i++) {
        if (arr[i] > m) {
          arr[i] = it->first;
          it->second++;
          ans++;
          if (it->second >= maximumMinimum) break;
        }
      }
    }
  }
  for (map<int, int>::iterator it = mym.begin(); it != mym.end(); it++) {
    if (it->second < maximumMinimum) {
      for (int i = 0; i < n; i++) {
        if (mym[arr[i]] > maximumMinimum) {
          mym[arr[i]]--;
          arr[i] = it->first;
          it->second++;
          ans++;
          if (it->second >= maximumMinimum) break;
        }
      }
    }
  }
  cout << maximumMinimum << " " << ans << endl;
  for (int i = 0; i < n; i++) cout << arr[i] << " ";
  return 0;
}
