#include <bits/stdc++.h>
using namespace std;
const int N = 2005;
int n, m;
int a[N];
int ans1, ans2;
int c[N];
int main() {
  cin >> n >> m;
  ans1 = n / m;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] <= m) c[a[i]]++;
  }
  ans2 = 0;
  for (int i = 0; i < n; i++) {
    if (a[i] > m || (a[i] <= m && c[a[i]] > ans1)) {
      for (int j = 1; j <= m; j++) {
        if (c[j] < ans1) {
          if (a[i] <= m) c[a[i]]--;
          a[i] = j;
          c[j]++;
          ans2++;
          break;
        }
      }
    }
  }
  cout << ans1 << " " << ans2 << endl;
  for (int i = 0; i < n; i++) cout << a[i] << " ";
  cout << endl;
  return 0;
}
