http://codeforces.com/problemset/problem/841/A
#include <cstdio>
#include <iostream>
#include <cstring>
#include <cmath>
#include <algorithm> //理解错了题目意思
using namespace std;
int main(){
int n,k;
while(scanf("%d %d",&n,&k) != EOF){
getchar();
int a[26] = {0};char temp;
for(int i = 0;i < n;i++){
cin >> temp;
a[temp - 97]++;
}
bool flag = true;
for(int i = 0;i <= 25;i++){
if(a[i] > k){
flag = false;
break;
}
}
if(flag){
cout << "YES" << endl;
}else{
cout << "NO" << endl;
}
}
}