#include <bits/stdc++.h>
int main() {
  int n, i, j, m;
  char s[50][50];
  scanf("%d%d", &n, &m);
  for (i = 0; i < n; i++) {
    for (j = 0; j < m; j++) {
      scanf("%s", &s[i][j]);
    }
  }
  if ((s[2][0] == '*') || (s[0][0] == '*') || (s[1][1] == '*'))
    printf("YES");
  else
    printf("NO");
  return 0;
}
