#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  cin >> n >> m;
  string s;
  cin >> s;
  int cnt = 0;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == '#') cnt++;
    if (cnt >= m) {
      cout << "NO" << endl;
      return 0;
    }
    if (s[i] == '.') cnt = 0;
  }
  cout << "YES" << endl;
  return 0;
}
