#include <bits/stdc++.h>
using namespace std;
int n;
char s[200];
int main() {
  int r = 0;
  scanf("%d", &n);
  scanf("%s", s);
  for (int i = 0; i < n; i++) r++;
  if (r * 2 > n)
    printf("Yes\n");
  else
    printf("No\n");
  return 0;
}
