#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1000000007;
const long long alphabet = 256;
map<long long, long long> mp;
int main() {
  long long n, m;
  cin >> n >> m;
  long long arr[n + 1];
  for (long long i = 1; i <= n; i++) {
    cin >> arr[i];
    mp[arr[i]]++;
  }
  long long ans = n / m;
  long long count1 = 0;
  for (long long i = 1; i <= m; i++) {
    if (mp[i] >= ans) continue;
    for (long long j = 1; j <= n; j++) {
      if (mp[i] >= ans) break;
      if (mp[arr[j]] > ans || arr[j] > m) {
        mp[arr[j]]--;
        arr[j] = i;
        mp[i]++;
        count1++;
      }
    }
  }
  cout << ans << " " << count1 << endl;
  for (long long i = 1; i <= n; i++) {
    cout << arr[i] << " ";
  }
}
